diff --git a/README.md b/README.md index b3bba26c70c..7bf6a1be337 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,9 @@ client = Cloudflare( ) zone_create_response = client.zones.create( - account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, + account={ + "id": "023e105f4ecef8ad9ca31a8372d0c353" + }, name="example.com", type="full", ) @@ -56,15 +58,15 @@ client = AsyncCloudflare( api_email=os.environ.get("CLOUDFLARE_EMAIL"), ) - async def main() -> None: - zone_create_response = await client.zones.create( - account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, - name="example.com", - type="full", - ) - print(zone_create_response.id) - + zone_create_response = await client.zones.create( + account={ + "id": "023e105f4ecef8ad9ca31a8372d0c353" + }, + name="example.com", + type="full", + ) + print(zone_create_response.id) asyncio.run(main()) ``` @@ -97,13 +99,15 @@ client = Cloudflare() try: client.zones.create( - account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, + account={ + "id": "023e105f4ecef8ad9ca31a8372d0c353" + }, name="example.com", type="full", ) 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: @@ -143,8 +147,10 @@ client = Cloudflare( ) # Or, configure per-request: -client.with_options(max_retries=5).zones.create( - account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, +client.with_options(max_retries = 5).zones.create( + account={ + "id": "023e105f4ecef8ad9ca31a8372d0c353" + }, name="example.com", type="full", ) @@ -170,8 +176,10 @@ client = Cloudflare( ) # Override per-request: -client.with_options(timeout=5 * 1000).zones.create( - account={"id": "023e105f4ecef8ad9ca31a8372d0c353"}, +client.with_options(timeout = 5 * 1000).zones.create( + account={ + "id": "023e105f4ecef8ad9ca31a8372d0c353" + }, name="example.com", type="full", ) @@ -238,14 +246,16 @@ 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. @@ -265,10 +275,7 @@ from cloudflare import Cloudflare client = Cloudflare( # Or use the `CLOUDFLARE_BASE_URL` env var base_url="http://my.test.server.example.com:8083", - http_client=httpx.Client( - proxies="http://my.test.proxy.example.com", - transport=httpx.HTTPTransport(local_address="0.0.0.0"), - ), + http_client=httpx.Client(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 353459eb58e..44daf278284 100644 --- a/api.md +++ b/api.md @@ -17,12 +17,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CertificateDeleteResponse, - CertificateGetResponse, - CertificateOriginCaCreateCertificateResponse, - CertificateOriginCaListCertificatesResponse, -) +from cloudflare.types import CertificateDeleteResponse, CertificateGetResponse, CertificateOriginCaCreateCertificateResponse, CertificateOriginCaListCertificatesResponse ``` Methods: @@ -49,12 +44,7 @@ Methods: Types: ```python -from cloudflare.types import ( - MembershipUpdateResponse, - MembershipListResponse, - MembershipDeleteResponse, - MembershipGetResponse, -) +from cloudflare.types import MembershipUpdateResponse, MembershipListResponse, MembershipDeleteResponse, MembershipGetResponse ``` Methods: @@ -124,12 +114,7 @@ Methods: Types: ```python -from cloudflare.types.users.firewalls.access_rules import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, - RuleIPAccessRulesForAUserListIPAccessRulesResponse, -) +from cloudflare.types.users.firewalls.access_rules import RuleUpdateResponse, RuleDeleteResponse, RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, RuleIPAccessRulesForAUserListIPAccessRulesResponse ``` Methods: @@ -144,11 +129,7 @@ Methods: Types: ```python -from cloudflare.types.users import ( - InviteUpdateResponse, - InviteGetResponse, - InviteUserSInvitesListInvitationsResponse, -) +from cloudflare.types.users import InviteUpdateResponse, InviteGetResponse, InviteUserSInvitesListInvitationsResponse ``` Methods: @@ -164,13 +145,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers import ( - MonitorCreateResponse, - MonitorUpdateResponse, - MonitorListResponse, - MonitorDeleteResponse, - MonitorGetResponse, -) +from cloudflare.types.users.load_balancers import MonitorCreateResponse, MonitorUpdateResponse, MonitorListResponse, MonitorDeleteResponse, MonitorGetResponse ``` Methods: @@ -186,9 +161,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers.monitors import ( - PreviewLoadBalancerMonitorsPreviewMonitorResponse, -) +from cloudflare.types.users.load_balancers.monitors import PreviewLoadBalancerMonitorsPreviewMonitorResponse ``` Methods: @@ -200,9 +173,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers.monitors import ( - ReferenceLoadBalancerMonitorsListMonitorReferencesResponse, -) +from cloudflare.types.users.load_balancers.monitors import ReferenceLoadBalancerMonitorsListMonitorReferencesResponse ``` Methods: @@ -214,14 +185,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers import ( - PoolUpdateResponse, - PoolDeleteResponse, - PoolGetResponse, - PoolLoadBalancerPoolsCreatePoolResponse, - PoolLoadBalancerPoolsListPoolsResponse, - PoolLoadBalancerPoolsPatchPoolsResponse, -) +from cloudflare.types.users.load_balancers import PoolUpdateResponse, PoolDeleteResponse, PoolGetResponse, PoolLoadBalancerPoolsCreatePoolResponse, PoolLoadBalancerPoolsListPoolsResponse, PoolLoadBalancerPoolsPatchPoolsResponse ``` Methods: @@ -238,9 +202,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers.pools import ( - HealthLoadBalancerPoolsPoolHealthDetailsResponse, -) +from cloudflare.types.users.load_balancers.pools import HealthLoadBalancerPoolsPoolHealthDetailsResponse ``` Methods: @@ -264,9 +226,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancers.pools import ( - ReferenceLoadBalancerPoolsListPoolReferencesResponse, -) +from cloudflare.types.users.load_balancers.pools import ReferenceLoadBalancerPoolsListPoolReferencesResponse ``` Methods: @@ -292,9 +252,7 @@ Methods: Types: ```python -from cloudflare.types.users.load_balancing_analytics import ( - EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse, -) +from cloudflare.types.users.load_balancing_analytics import EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse ``` Methods: @@ -306,11 +264,7 @@ Methods: Types: ```python -from cloudflare.types.users import ( - OrganizationDeleteResponse, - OrganizationGetResponse, - OrganizationUserSOrganizationsListOrganizationsResponse, -) +from cloudflare.types.users import OrganizationDeleteResponse, OrganizationGetResponse, OrganizationUserSOrganizationsListOrganizationsResponse ``` Methods: @@ -324,11 +278,7 @@ Methods: Types: ```python -from cloudflare.types.users import ( - SubscriptionUpdateResponse, - SubscriptionDeleteResponse, - SubscriptionUserSubscriptionGetUserSubscriptionsResponse, -) +from cloudflare.types.users import SubscriptionUpdateResponse, SubscriptionDeleteResponse, SubscriptionUserSubscriptionGetUserSubscriptionsResponse ``` Methods: @@ -342,13 +292,7 @@ Methods: Types: ```python -from cloudflare.types.users import ( - TokenUpdateResponse, - TokenDeleteResponse, - TokenGetResponse, - TokenUserAPITokensCreateTokenResponse, - TokenUserAPITokensListTokensResponse, -) +from cloudflare.types.users import TokenUpdateResponse, TokenDeleteResponse, TokenGetResponse, TokenUserAPITokensCreateTokenResponse, TokenUserAPITokensListTokensResponse ``` Methods: @@ -364,9 +308,7 @@ Methods: Types: ```python -from cloudflare.types.users.tokens import ( - PermissionGroupPermissionGroupsListPermissionGroupsResponse, -) +from cloudflare.types.users.tokens import PermissionGroupPermissionGroupsListPermissionGroupsResponse ``` Methods: @@ -402,13 +344,7 @@ Methods: Types: ```python -from cloudflare.types import ( - ZoneCreateResponse, - ZoneUpdateResponse, - ZoneListResponse, - ZoneDeleteResponse, - ZoneGetResponse, -) +from cloudflare.types import ZoneCreateResponse, ZoneUpdateResponse, ZoneListResponse, ZoneDeleteResponse, ZoneGetResponse ``` Methods: @@ -450,13 +386,7 @@ Methods: Types: ```python -from cloudflare.types import ( - LoadBalancerCreateResponse, - LoadBalancerUpdateResponse, - LoadBalancerListResponse, - LoadBalancerDeleteResponse, - LoadBalancerGetResponse, -) +from cloudflare.types import LoadBalancerCreateResponse, LoadBalancerUpdateResponse, LoadBalancerListResponse, LoadBalancerDeleteResponse, LoadBalancerGetResponse ``` Methods: @@ -472,13 +402,7 @@ Methods: Types: ```python -from cloudflare.types.load_balancers import ( - MonitorCreateResponse, - MonitorUpdateResponse, - MonitorListResponse, - MonitorDeleteResponse, - MonitorGetResponse, -) +from cloudflare.types.load_balancers import MonitorCreateResponse, MonitorUpdateResponse, MonitorListResponse, MonitorDeleteResponse, MonitorGetResponse ``` Methods: @@ -494,9 +418,7 @@ Methods: Types: ```python -from cloudflare.types.load_balancers.monitors import ( - PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse, -) +from cloudflare.types.load_balancers.monitors import PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse ``` Methods: @@ -508,9 +430,7 @@ Methods: Types: ```python -from cloudflare.types.load_balancers.monitors import ( - ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse, -) +from cloudflare.types.load_balancers.monitors import ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse ``` Methods: @@ -522,13 +442,7 @@ Methods: Types: ```python -from cloudflare.types.load_balancers import ( - PoolCreateResponse, - PoolUpdateResponse, - PoolListResponse, - PoolDeleteResponse, - PoolGetResponse, -) +from cloudflare.types.load_balancers import PoolCreateResponse, PoolUpdateResponse, PoolListResponse, PoolDeleteResponse, PoolGetResponse ``` Methods: @@ -581,10 +495,7 @@ Methods: Types: ```python -from cloudflare.types.load_balancers import ( - RegionGetResponse, - RegionLoadBalancerRegionsListRegionsResponse, -) +from cloudflare.types.load_balancers import RegionGetResponse, RegionLoadBalancerRegionsListRegionsResponse ``` Methods: @@ -611,13 +522,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - AppCreateResponse, - AppUpdateResponse, - AppListResponse, - AppDeleteResponse, - AppGetResponse, -) +from cloudflare.types.access import AppCreateResponse, AppUpdateResponse, AppListResponse, AppDeleteResponse, AppGetResponse ``` Methods: @@ -633,12 +538,7 @@ Methods: Types: ```python -from cloudflare.types.access.apps import ( - CaCreateResponse, - CaListResponse, - CaDeleteResponse, - CaGetResponse, -) +from cloudflare.types.access.apps import CaCreateResponse, CaListResponse, CaDeleteResponse, CaGetResponse ``` Methods: @@ -677,14 +577,7 @@ Methods: Types: ```python -from cloudflare.types.access.apps import ( - PolicyCreateResponse, - PolicyUpdateResponse, - PolicyDeleteResponse, - PolicyAccessPoliciesCreateAnAccessPolicyResponse, - PolicyAccessPoliciesListAccessPoliciesResponse, - PolicyGetResponse, -) +from cloudflare.types.access.apps import PolicyCreateResponse, PolicyUpdateResponse, PolicyDeleteResponse, PolicyAccessPoliciesCreateAnAccessPolicyResponse, PolicyAccessPoliciesListAccessPoliciesResponse, PolicyGetResponse ``` Methods: @@ -701,13 +594,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - CertificateUpdateResponse, - CertificateDeleteResponse, - CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, - CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, - CertificateGetResponse, -) +from cloudflare.types.access import CertificateUpdateResponse, CertificateDeleteResponse, CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, CertificateGetResponse ``` Methods: @@ -736,13 +623,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - GroupUpdateResponse, - GroupDeleteResponse, - GroupAccessGroupsCreateAnAccessGroupResponse, - GroupAccessGroupsListAccessGroupsResponse, - GroupGetResponse, -) +from cloudflare.types.access import GroupUpdateResponse, GroupDeleteResponse, GroupAccessGroupsCreateAnAccessGroupResponse, GroupAccessGroupsListAccessGroupsResponse, GroupGetResponse ``` Methods: @@ -758,13 +639,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - IdentityProviderUpdateResponse, - IdentityProviderDeleteResponse, - IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, - IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, - IdentityProviderGetResponse, -) +from cloudflare.types.access import IdentityProviderUpdateResponse, IdentityProviderDeleteResponse, IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, IdentityProviderGetResponse ``` Methods: @@ -780,11 +655,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, -) +from cloudflare.types.access import OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse ``` Methods: @@ -798,9 +669,7 @@ Methods: Types: ```python -from cloudflare.types.access.organizations import ( - RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse, -) +from cloudflare.types.access.organizations import RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse ``` Methods: @@ -812,12 +681,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - ServiceTokenUpdateResponse, - ServiceTokenDeleteResponse, - ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, - ServiceTokenAccessServiceTokensListServiceTokensResponse, -) +from cloudflare.types.access import ServiceTokenUpdateResponse, ServiceTokenDeleteResponse, ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, ServiceTokenAccessServiceTokensListServiceTokensResponse ``` Methods: @@ -832,9 +696,7 @@ Methods: Types: ```python -from cloudflare.types.access.service_tokens import ( - RefreshAccessServiceTokensRefreshAServiceTokenResponse, -) +from cloudflare.types.access.service_tokens import RefreshAccessServiceTokensRefreshAServiceTokenResponse ``` Methods: @@ -846,9 +708,7 @@ Methods: Types: ```python -from cloudflare.types.access.service_tokens import ( - RotateAccessServiceTokensRotateAServiceTokenResponse, -) +from cloudflare.types.access.service_tokens import RotateAccessServiceTokensRotateAServiceTokenResponse ``` Methods: @@ -860,12 +720,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - BookmarkUpdateResponse, - BookmarkDeleteResponse, - BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, - BookmarkGetResponse, -) +from cloudflare.types.access import BookmarkUpdateResponse, BookmarkDeleteResponse, BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, BookmarkGetResponse ``` Methods: @@ -880,10 +735,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, - KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, -) +from cloudflare.types.access import KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse ``` Methods: @@ -910,9 +762,7 @@ Methods: Types: ```python -from cloudflare.types.access.logs import ( - AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse, -) +from cloudflare.types.access.logs import AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse ``` Methods: @@ -985,13 +835,7 @@ Methods: Types: ```python -from cloudflare.types.access import ( - CustomPageCreateResponse, - CustomPageUpdateResponse, - CustomPageListResponse, - CustomPageDeleteResponse, - CustomPageGetResponse, -) +from cloudflare.types.access import CustomPageCreateResponse, CustomPageUpdateResponse, CustomPageListResponse, CustomPageDeleteResponse, CustomPageGetResponse ``` Methods: @@ -1071,12 +915,7 @@ Methods: Types: ```python -from cloudflare.types.ssls import ( - CertificatePackUpdateResponse, - CertificatePackDeleteResponse, - CertificatePackCertificatePacksListCertificatePacksResponse, - CertificatePackGetResponse, -) +from cloudflare.types.ssls import CertificatePackUpdateResponse, CertificatePackDeleteResponse, CertificatePackCertificatePacksListCertificatePacksResponse, CertificatePackGetResponse ``` Methods: @@ -1091,9 +930,7 @@ Methods: Types: ```python -from cloudflare.types.ssls.certificate_packs import ( - OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, -) +from cloudflare.types.ssls.certificate_packs import OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse ``` Methods: @@ -1105,9 +942,7 @@ Methods: Types: ```python -from cloudflare.types.ssls.certificate_packs import ( - QuotaCertificatePacksGetCertificatePackQuotasResponse, -) +from cloudflare.types.ssls.certificate_packs import QuotaCertificatePacksGetCertificatePackQuotasResponse ``` Methods: @@ -1146,10 +981,7 @@ Methods: Types: ```python -from cloudflare.types.ssls import ( - VerificationUpdateResponse, - VerificationSSLVerificationSSLVerificationDetailsResponse, -) +from cloudflare.types.ssls import VerificationUpdateResponse, VerificationSSLVerificationSSLVerificationDetailsResponse ``` Methods: @@ -1162,15 +994,7 @@ Methods: Types: ```python -from cloudflare.types import ( - SubscriptionUpdateResponse, - SubscriptionDeleteResponse, - SubscriptionAccountSubscriptionsCreateSubscriptionResponse, - SubscriptionAccountSubscriptionsListSubscriptionsResponse, - SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, - SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, - SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse, -) +from cloudflare.types import SubscriptionUpdateResponse, SubscriptionDeleteResponse, SubscriptionAccountSubscriptionsCreateSubscriptionResponse, SubscriptionAccountSubscriptionsListSubscriptionsResponse, SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse ``` Methods: @@ -1241,9 +1065,7 @@ Methods: Types: ```python -from cloudflare.types.analytics.latencies import ( - ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse, -) +from cloudflare.types.analytics.latencies import ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse ``` Methods: @@ -1270,10 +1092,7 @@ Methods: Types: ```python -from cloudflare.types.argo import ( - TieredCachingTieredCachingGetTieredCachingSettingResponse, - TieredCachingTieredCachingPatchTieredCachingSettingResponse, -) +from cloudflare.types.argo import TieredCachingTieredCachingGetTieredCachingSettingResponse, TieredCachingTieredCachingPatchTieredCachingSettingResponse ``` Methods: @@ -1313,10 +1132,7 @@ Methods: Types: ```python -from cloudflare.types.caches import ( - CacheReserveListResponse, - CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, -) +from cloudflare.types.caches import CacheReserveListResponse, CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse ``` Methods: @@ -1329,11 +1145,7 @@ Methods: Types: ```python -from cloudflare.types.caches import ( - TieredCacheSmartTopologyEnableDeleteResponse, - TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, - TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, -) +from cloudflare.types.caches import TieredCacheSmartTopologyEnableDeleteResponse, TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse ``` Methods: @@ -1347,11 +1159,7 @@ Methods: Types: ```python -from cloudflare.types.caches import ( - VariantListResponse, - VariantDeleteResponse, - VariantZoneCacheSettingsChangeVariantsSettingResponse, -) +from cloudflare.types.caches import VariantListResponse, VariantDeleteResponse, VariantZoneCacheSettingsChangeVariantsSettingResponse ``` Methods: @@ -1367,10 +1175,7 @@ Methods: Types: ```python -from cloudflare.types.certificate_authorities import ( - HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, - HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, -) +from cloudflare.types.certificate_authorities import HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse ``` Methods: @@ -1383,13 +1188,7 @@ Methods: Types: ```python -from cloudflare.types import ( - ClientCertificateUpdateResponse, - ClientCertificateDeleteResponse, - ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, - ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, - ClientCertificateGetResponse, -) +from cloudflare.types import ClientCertificateUpdateResponse, ClientCertificateDeleteResponse, ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, ClientCertificateGetResponse ``` Methods: @@ -1405,13 +1204,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CustomCertificateCreateResponse, - CustomCertificateUpdateResponse, - CustomCertificateListResponse, - CustomCertificateDeleteResponse, - CustomCertificateGetResponse, -) +from cloudflare.types import CustomCertificateCreateResponse, CustomCertificateUpdateResponse, CustomCertificateListResponse, CustomCertificateDeleteResponse, CustomCertificateGetResponse ``` Methods: @@ -1427,9 +1220,7 @@ Methods: Types: ```python -from cloudflare.types.custom_certificates import ( - PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse, -) +from cloudflare.types.custom_certificates import PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse ``` Methods: @@ -1441,13 +1232,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CustomHostnameUpdateResponse, - CustomHostnameDeleteResponse, - CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, - CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, - CustomHostnameGetResponse, -) +from cloudflare.types import CustomHostnameUpdateResponse, CustomHostnameDeleteResponse, CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, CustomHostnameGetResponse ``` Methods: @@ -1463,11 +1248,7 @@ Methods: Types: ```python -from cloudflare.types.custom_hostnames import ( - FallbackOriginUpdateResponse, - FallbackOriginDeleteResponse, - FallbackOriginGetResponse, -) +from cloudflare.types.custom_hostnames import FallbackOriginUpdateResponse, FallbackOriginDeleteResponse, FallbackOriginGetResponse ``` Methods: @@ -1519,16 +1300,7 @@ Methods: Types: ```python -from cloudflare.types import ( - DNSRecordCreateResponse, - DNSRecordUpdateResponse, - DNSRecordListResponse, - DNSRecordDeleteResponse, - DNSRecordExportResponse, - DNSRecordGetResponse, - DNSRecordImportResponse, - DNSRecordScanResponse, -) +from cloudflare.types import DNSRecordCreateResponse, DNSRecordUpdateResponse, DNSRecordListResponse, DNSRecordDeleteResponse, DNSRecordExportResponse, DNSRecordGetResponse, DNSRecordImportResponse, DNSRecordScanResponse ``` Methods: @@ -1610,13 +1382,7 @@ Methods: Types: ```python -from cloudflare.types.emails.routings import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, - RuleEmailRoutingRoutingRulesListRoutingRulesResponse, - RuleGetResponse, -) +from cloudflare.types.emails.routings import RuleUpdateResponse, RuleDeleteResponse, RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, RuleEmailRoutingRoutingRulesListRoutingRulesResponse, RuleGetResponse ``` Methods: @@ -1632,10 +1398,7 @@ Methods: Types: ```python -from cloudflare.types.emails.routings.rules import ( - CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, - CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, -) +from cloudflare.types.emails.routings.rules import CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse ``` Methods: @@ -1648,12 +1411,7 @@ Methods: Types: ```python -from cloudflare.types.emails.routings import ( - AddressDeleteResponse, - AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, - AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, - AddressGetResponse, -) +from cloudflare.types.emails.routings import AddressDeleteResponse, AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, AddressGetResponse ``` Methods: @@ -1668,14 +1426,7 @@ Methods: Types: ```python -from cloudflare.types import ( - FilterUpdateResponse, - FilterDeleteResponse, - FilterFiltersCreateFiltersResponse, - FilterFiltersListFiltersResponse, - FilterFiltersUpdateFiltersResponse, - FilterGetResponse, -) +from cloudflare.types import FilterUpdateResponse, FilterDeleteResponse, FilterFiltersCreateFiltersResponse, FilterFiltersListFiltersResponse, FilterFiltersUpdateFiltersResponse, FilterGetResponse ``` Methods: @@ -1694,13 +1445,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls import ( - LockdownUpdateResponse, - LockdownDeleteResponse, - LockdownGetResponse, - LockdownZoneLockdownCreateAZoneLockdownRuleResponse, - LockdownZoneLockdownListZoneLockdownRulesResponse, -) +from cloudflare.types.firewalls import LockdownUpdateResponse, LockdownDeleteResponse, LockdownGetResponse, LockdownZoneLockdownCreateAZoneLockdownRuleResponse, LockdownZoneLockdownListZoneLockdownRulesResponse ``` Methods: @@ -1716,15 +1461,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleFirewallRulesCreateFirewallRulesResponse, - RuleFirewallRulesListFirewallRulesResponse, - RuleFirewallRulesUpdateFirewallRulesResponse, - RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, - RuleGetResponse, -) +from cloudflare.types.firewalls import RuleUpdateResponse, RuleDeleteResponse, RuleFirewallRulesCreateFirewallRulesResponse, RuleFirewallRulesListFirewallRulesResponse, RuleFirewallRulesUpdateFirewallRulesResponse, RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, RuleGetResponse ``` Methods: @@ -1742,13 +1479,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls import ( - AccessRuleCreateResponse, - AccessRuleUpdateResponse, - AccessRuleListResponse, - AccessRuleDeleteResponse, - AccessRuleGetResponse, -) +from cloudflare.types.firewalls import AccessRuleCreateResponse, AccessRuleUpdateResponse, AccessRuleListResponse, AccessRuleDeleteResponse, AccessRuleGetResponse ``` Methods: @@ -1764,13 +1495,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls import ( - UaRuleUpdateResponse, - UaRuleDeleteResponse, - UaRuleGetResponse, - UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, - UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, -) +from cloudflare.types.firewalls import UaRuleUpdateResponse, UaRuleDeleteResponse, UaRuleGetResponse, UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse ``` Methods: @@ -1788,13 +1513,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls.waf import ( - OverrideUpdateResponse, - OverrideDeleteResponse, - OverrideGetResponse, - OverrideWAFOverridesCreateAWAFOverrideResponse, - OverrideWAFOverridesListWAFOverridesResponse, -) +from cloudflare.types.firewalls.waf import OverrideUpdateResponse, OverrideDeleteResponse, OverrideGetResponse, OverrideWAFOverridesCreateAWAFOverrideResponse, OverrideWAFOverridesListWAFOverridesResponse ``` Methods: @@ -1823,11 +1542,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls.waf.packages import ( - GroupUpdateResponse, - GroupGetResponse, - GroupWAFRuleGroupsListWAFRuleGroupsResponse, -) +from cloudflare.types.firewalls.waf.packages import GroupUpdateResponse, GroupGetResponse, GroupWAFRuleGroupsListWAFRuleGroupsResponse ``` Methods: @@ -1841,11 +1556,7 @@ Methods: Types: ```python -from cloudflare.types.firewalls.waf.packages import ( - RuleUpdateResponse, - RuleGetResponse, - RuleWAFRulesListWAFRulesResponse, -) +from cloudflare.types.firewalls.waf.packages import RuleUpdateResponse, RuleGetResponse, RuleWAFRulesListWAFRulesResponse ``` Methods: @@ -1859,13 +1570,7 @@ Methods: Types: ```python -from cloudflare.types import ( - HealthcheckUpdateResponse, - HealthcheckDeleteResponse, - HealthcheckGetResponse, - HealthcheckHealthChecksCreateHealthCheckResponse, - HealthcheckHealthChecksListHealthChecksResponse, -) +from cloudflare.types import HealthcheckUpdateResponse, HealthcheckDeleteResponse, HealthcheckGetResponse, HealthcheckHealthChecksCreateHealthCheckResponse, HealthcheckHealthChecksListHealthChecksResponse ``` Methods: @@ -1881,11 +1586,7 @@ Methods: Types: ```python -from cloudflare.types.healthchecks import ( - PreviewDeleteResponse, - PreviewGetResponse, - PreviewHealthChecksCreatePreviewHealthCheckResponse, -) +from cloudflare.types.healthchecks import PreviewDeleteResponse, PreviewGetResponse, PreviewHealthChecksCreatePreviewHealthCheckResponse ``` Methods: @@ -1899,13 +1600,7 @@ Methods: Types: ```python -from cloudflare.types import ( - KeylessCertificateCreateResponse, - KeylessCertificateUpdateResponse, - KeylessCertificateListResponse, - KeylessCertificateDeleteResponse, - KeylessCertificateGetResponse, -) +from cloudflare.types import KeylessCertificateCreateResponse, KeylessCertificateUpdateResponse, KeylessCertificateListResponse, KeylessCertificateDeleteResponse, KeylessCertificateGetResponse ``` Methods: @@ -1962,13 +1657,7 @@ Methods: Types: ```python -from cloudflare.types.logpush import ( - JobCreateResponse, - JobUpdateResponse, - JobListResponse, - JobDeleteResponse, - JobGetResponse, -) +from cloudflare.types.logpush import JobCreateResponse, JobUpdateResponse, JobListResponse, JobDeleteResponse, JobGetResponse ``` Methods: @@ -1996,9 +1685,7 @@ Methods: Types: ```python -from cloudflare.types.logpush.ownerships import ( - ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse, -) +from cloudflare.types.logpush.ownerships import ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse ``` Methods: @@ -2014,9 +1701,7 @@ Methods: Types: ```python -from cloudflare.types.logpush.validates.destinations import ( - ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, -) +from cloudflare.types.logpush.validates.destinations import ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse ``` Methods: @@ -2028,9 +1713,7 @@ Methods: Types: ```python -from cloudflare.types.logpush.validates import ( - OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse, -) +from cloudflare.types.logpush.validates import OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse ``` Methods: @@ -2048,10 +1731,7 @@ Methods: Types: ```python -from cloudflare.types.logs.controls.retentions import ( - FlagLogsReceivedGetLogRetentionFlagResponse, - FlagLogsReceivedUpdateLogRetentionFlagResponse, -) +from cloudflare.types.logs.controls.retentions import FlagLogsReceivedGetLogRetentionFlagResponse, FlagLogsReceivedUpdateLogRetentionFlagResponse ``` Methods: @@ -2066,11 +1746,7 @@ Methods: Types: ```python -from cloudflare.types.logs.controls.cmb import ( - ConfigDeleteResponse, - ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, - ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse, -) +from cloudflare.types.logs.controls.cmb import ConfigDeleteResponse, ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse ``` Methods: @@ -2120,12 +1796,7 @@ Methods: Types: ```python -from cloudflare.types import ( - OriginTLSClientAuthCreateResponse, - OriginTLSClientAuthListResponse, - OriginTLSClientAuthDeleteResponse, - OriginTLSClientAuthGetResponse, -) +from cloudflare.types import OriginTLSClientAuthCreateResponse, OriginTLSClientAuthListResponse, OriginTLSClientAuthDeleteResponse, OriginTLSClientAuthGetResponse ``` Methods: @@ -2153,12 +1824,7 @@ Methods: Types: ```python -from cloudflare.types.origin_tls_client_auth.hostnames import ( - CertificateCreateResponse, - CertificateListResponse, - CertificateDeleteResponse, - CertificateGetResponse, -) +from cloudflare.types.origin_tls_client_auth.hostnames import CertificateCreateResponse, CertificateListResponse, CertificateDeleteResponse, CertificateGetResponse ``` Methods: @@ -2173,10 +1839,7 @@ Methods: Types: ```python -from cloudflare.types.origin_tls_client_auth import ( - SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, - SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, -) +from cloudflare.types.origin_tls_client_auth import SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse ``` Methods: @@ -2189,13 +1852,7 @@ Methods: Types: ```python -from cloudflare.types import ( - PageruleCreateResponse, - PageruleUpdateResponse, - PageruleListResponse, - PageruleDeleteResponse, - PageruleGetResponse, -) +from cloudflare.types import PageruleCreateResponse, PageruleUpdateResponse, PageruleListResponse, PageruleDeleteResponse, PageruleGetResponse ``` Methods: @@ -2211,9 +1868,7 @@ Methods: Types: ```python -from cloudflare.types.pagerules import ( - SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse, -) +from cloudflare.types.pagerules import SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse ``` Methods: @@ -2253,12 +1908,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import ( - IncomingDeleteResponse, - IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, - IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, - IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, -) +from cloudflare.types.secondary_dns import IncomingDeleteResponse, IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse ``` Methods: @@ -2273,12 +1923,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import ( - OutgoingDeleteResponse, - OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, - OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, - OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, -) +from cloudflare.types.secondary_dns import OutgoingDeleteResponse, OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse ``` Methods: @@ -2293,9 +1938,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns.outgoings import ( - DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse, -) +from cloudflare.types.secondary_dns.outgoings import DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse ``` Methods: @@ -2307,9 +1950,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns.outgoings import ( - EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse, -) +from cloudflare.types.secondary_dns.outgoings import EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse ``` Methods: @@ -2321,9 +1962,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns.outgoings import ( - ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse, -) +from cloudflare.types.secondary_dns.outgoings import ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse ``` Methods: @@ -2335,9 +1974,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns.outgoings import ( - StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse, -) +from cloudflare.types.secondary_dns.outgoings import StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse ``` Methods: @@ -2349,13 +1986,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import ( - ACLUpdateResponse, - ACLDeleteResponse, - ACLGetResponse, - ACLSecondaryDNSACLCreateACLResponse, - ACLSecondaryDNSACLListACLsResponse, -) +from cloudflare.types.secondary_dns import ACLUpdateResponse, ACLDeleteResponse, ACLGetResponse, ACLSecondaryDNSACLCreateACLResponse, ACLSecondaryDNSACLListACLsResponse ``` Methods: @@ -2371,13 +2002,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import ( - PeerUpdateResponse, - PeerDeleteResponse, - PeerGetResponse, - PeerSecondaryDNSPeerCreatePeerResponse, - PeerSecondaryDNSPeerListPeersResponse, -) +from cloudflare.types.secondary_dns import PeerUpdateResponse, PeerDeleteResponse, PeerGetResponse, PeerSecondaryDNSPeerCreatePeerResponse, PeerSecondaryDNSPeerListPeersResponse ``` Methods: @@ -2393,13 +2018,7 @@ Methods: Types: ```python -from cloudflare.types.secondary_dns import ( - TsigUpdateResponse, - TsigDeleteResponse, - TsigGetResponse, - TsigSecondaryDNSTsigCreateTsigResponse, - TsigSecondaryDNSTsigListTsiGsResponse, -) +from cloudflare.types.secondary_dns import TsigUpdateResponse, TsigDeleteResponse, TsigGetResponse, TsigSecondaryDNSTsigCreateTsigResponse, TsigSecondaryDNSTsigListTsiGsResponse ``` Methods: @@ -2428,10 +2047,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - ZeroRttGetResponse, - ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse, -) +from cloudflare.types.settings import ZeroRttGetResponse, ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse ``` Methods: @@ -2482,10 +2098,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - AutomaticHTTPSRewriteUpdateResponse, - AutomaticHTTPSRewriteGetResponse, -) +from cloudflare.types.settings import AutomaticHTTPSRewriteUpdateResponse, AutomaticHTTPSRewriteGetResponse ``` Methods: @@ -2498,10 +2111,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - AutomaticPlatformOptimizationUpdateResponse, - AutomaticPlatformOptimizationGetResponse, -) +from cloudflare.types.settings import AutomaticPlatformOptimizationUpdateResponse, AutomaticPlatformOptimizationGetResponse ``` Methods: @@ -2787,10 +2397,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - OpportunisticEncryptionUpdateResponse, - OpportunisticEncryptionGetResponse, -) +from cloudflare.types.settings import OpportunisticEncryptionUpdateResponse, OpportunisticEncryptionGetResponse ``` Methods: @@ -2803,10 +2410,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - OpportunisticOnionUpdateResponse, - OpportunisticOnionGetResponse, -) +from cloudflare.types.settings import OpportunisticOnionUpdateResponse, OpportunisticOnionGetResponse ``` Methods: @@ -2832,10 +2436,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - OriginErrorPagePassThruUpdateResponse, - OriginErrorPagePassThruGetResponse, -) +from cloudflare.types.settings import OriginErrorPagePassThruUpdateResponse, OriginErrorPagePassThruGetResponse ``` Methods: @@ -2848,10 +2449,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - OriginMaxHTTPVersionUpdateResponse, - OriginMaxHTTPVersionGetResponse, -) +from cloudflare.types.settings import OriginMaxHTTPVersionUpdateResponse, OriginMaxHTTPVersionGetResponse ``` Methods: @@ -2981,10 +2579,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - SortQueryStringForCacheUpdateResponse, - SortQueryStringForCacheGetResponse, -) +from cloudflare.types.settings import SortQueryStringForCacheUpdateResponse, SortQueryStringForCacheGetResponse ``` Methods: @@ -3049,10 +2644,7 @@ Methods: Types: ```python -from cloudflare.types.settings import ( - TrueClientIPHeaderUpdateResponse, - TrueClientIPHeaderGetResponse, -) +from cloudflare.types.settings import TrueClientIPHeaderUpdateResponse, TrueClientIPHeaderGetResponse ``` Methods: @@ -3104,13 +2696,7 @@ Methods: Types: ```python -from cloudflare.types import ( - WaitingRoomCreateResponse, - WaitingRoomUpdateResponse, - WaitingRoomListResponse, - WaitingRoomDeleteResponse, - WaitingRoomGetResponse, -) +from cloudflare.types import WaitingRoomCreateResponse, WaitingRoomUpdateResponse, WaitingRoomListResponse, WaitingRoomDeleteResponse, WaitingRoomGetResponse ``` Methods: @@ -3138,13 +2724,7 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import ( - EventUpdateResponse, - EventDeleteResponse, - EventGetResponse, - EventWaitingRoomCreateEventResponse, - EventWaitingRoomListEventsResponse, -) +from cloudflare.types.waiting_rooms import EventUpdateResponse, EventDeleteResponse, EventGetResponse, EventWaitingRoomCreateEventResponse, EventWaitingRoomListEventsResponse ``` Methods: @@ -3172,13 +2752,7 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleWaitingRoomCreateWaitingRoomRuleResponse, - RuleWaitingRoomListWaitingRoomRulesResponse, - RuleWaitingRoomReplaceWaitingRoomRulesResponse, -) +from cloudflare.types.waiting_rooms import RuleUpdateResponse, RuleDeleteResponse, RuleWaitingRoomCreateWaitingRoomRuleResponse, RuleWaitingRoomListWaitingRoomRulesResponse, RuleWaitingRoomReplaceWaitingRoomRulesResponse ``` Methods: @@ -3206,11 +2780,7 @@ Methods: Types: ```python -from cloudflare.types.waiting_rooms import ( - WaitingroomZoneSettingsResponse, - SettingUpdateResponse, - SettingGetResponse, -) +from cloudflare.types.waiting_rooms import WaitingroomZoneSettingsResponse, SettingUpdateResponse, SettingGetResponse ``` Methods: @@ -3225,13 +2795,7 @@ Methods: Types: ```python -from cloudflare.types.web3s import ( - HostnameUpdateResponse, - HostnameDeleteResponse, - HostnameGetResponse, - HostnameWeb3HostnameCreateWeb3HostnameResponse, - HostnameWeb3HostnameListWeb3HostnamesResponse, -) +from cloudflare.types.web3s import HostnameUpdateResponse, HostnameDeleteResponse, HostnameGetResponse, HostnameWeb3HostnameCreateWeb3HostnameResponse, HostnameWeb3HostnameListWeb3HostnamesResponse ``` Methods: @@ -3249,10 +2813,7 @@ Methods: Types: ```python -from cloudflare.types.web3s.hostnames.ipfs_universal_paths import ( - ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, - ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, -) +from cloudflare.types.web3s.hostnames.ipfs_universal_paths import ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse ``` Methods: @@ -3265,13 +2826,7 @@ Methods: Types: ```python -from cloudflare.types.web3s.hostnames.ipfs_universal_paths.content_lists import ( - EntryUpdateResponse, - EntryDeleteResponse, - EntryGetResponse, - EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, - EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, -) +from cloudflare.types.web3s.hostnames.ipfs_universal_paths.content_lists import EntryUpdateResponse, EntryDeleteResponse, EntryGetResponse, EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse ``` Methods: @@ -3317,10 +2872,7 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import ( - ScheduleWorkerCronTriggerGetCronTriggersResponse, - ScheduleWorkerCronTriggerUpdateCronTriggersResponse, -) +from cloudflare.types.workers.scripts import ScheduleWorkerCronTriggerGetCronTriggersResponse, ScheduleWorkerCronTriggerUpdateCronTriggersResponse ``` Methods: @@ -3333,11 +2885,7 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import ( - TailDeleteResponse, - TailWorkerTailLogsListTailsResponse, - TailWorkerTailLogsStartTailResponse, -) +from cloudflare.types.workers.scripts import TailDeleteResponse, TailWorkerTailLogsListTailsResponse, TailWorkerTailLogsStartTailResponse ``` Methods: @@ -3351,10 +2899,7 @@ Methods: Types: ```python -from cloudflare.types.workers.scripts import ( - UsageModelWorkerScriptFetchUsageModelResponse, - UsageModelWorkerScriptUpdateUsageModelResponse, -) +from cloudflare.types.workers.scripts import UsageModelWorkerScriptFetchUsageModelResponse, UsageModelWorkerScriptUpdateUsageModelResponse ``` Methods: @@ -3367,12 +2912,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - FilterUpdateResponse, - FilterDeleteResponse, - FilterWorkerFiltersDeprecatedCreateFilterResponse, - FilterWorkerFiltersDeprecatedListFiltersResponse, -) +from cloudflare.types.workers import FilterUpdateResponse, FilterDeleteResponse, FilterWorkerFiltersDeprecatedCreateFilterResponse, FilterWorkerFiltersDeprecatedListFiltersResponse ``` Methods: @@ -3387,13 +2927,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - RouteUpdateResponse, - RouteDeleteResponse, - RouteGetResponse, - RouteWorkerRoutesCreateRouteResponse, - RouteWorkerRoutesListRoutesResponse, -) +from cloudflare.types.workers import RouteUpdateResponse, RouteDeleteResponse, RouteGetResponse, RouteWorkerRoutesCreateRouteResponse, RouteWorkerRoutesListRoutesResponse ``` Methods: @@ -3409,10 +2943,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, - AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, -) +from cloudflare.types.workers import AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse ``` Methods: @@ -3451,11 +2982,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - DomainGetResponse, - DomainWorkerDomainAttachToDomainResponse, - DomainWorkerDomainListDomainsResponse, -) +from cloudflare.types.workers import DomainGetResponse, DomainWorkerDomainAttachToDomainResponse, DomainWorkerDomainListDomainsResponse ``` Methods: @@ -3496,13 +3023,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - QueueUpdateResponse, - QueueListResponse, - QueueDeleteResponse, - QueueGetResponse, - QueueQueueCreateQueueResponse, -) +from cloudflare.types.workers import QueueUpdateResponse, QueueListResponse, QueueDeleteResponse, QueueGetResponse, QueueQueueCreateQueueResponse ``` Methods: @@ -3518,12 +3039,7 @@ Methods: Types: ```python -from cloudflare.types.workers.queues import ( - ConsumerUpdateResponse, - ConsumerListResponse, - ConsumerDeleteResponse, - ConsumerQueueCreateQueueConsumerResponse, -) +from cloudflare.types.workers.queues import ConsumerUpdateResponse, ConsumerListResponse, ConsumerDeleteResponse, ConsumerQueueCreateQueueConsumerResponse ``` Methods: @@ -3538,10 +3054,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - SubdomainWorkerSubdomainCreateSubdomainResponse, - SubdomainWorkerSubdomainGetSubdomainResponse, -) +from cloudflare.types.workers import SubdomainWorkerSubdomainCreateSubdomainResponse, SubdomainWorkerSubdomainGetSubdomainResponse ``` Methods: @@ -3554,10 +3067,7 @@ Methods: Types: ```python -from cloudflare.types.workers import ( - DeploymentsByScriptListResponse, - DeploymentsByScriptDetailResponse, -) +from cloudflare.types.workers import DeploymentsByScriptListResponse, DeploymentsByScriptDetailResponse ``` Methods: @@ -3618,10 +3128,7 @@ Methods: Types: ```python -from cloudflare.types import ( - ManagedHeaderListResponse, - ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, -) +from cloudflare.types import ManagedHeaderListResponse, ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse ``` Methods: @@ -3634,10 +3141,7 @@ Methods: Types: ```python -from cloudflare.types import ( - PageShieldListResponse, - PageShieldPageShieldUpdatePageShieldSettingsResponse, -) +from cloudflare.types import PageShieldListResponse, PageShieldPageShieldUpdatePageShieldSettingsResponse ``` Methods: @@ -3650,10 +3154,7 @@ Methods: Types: ```python -from cloudflare.types.page_shields import ( - ConnectionGetResponse, - ConnectionPageShieldListPageShieldConnectionsResponse, -) +from cloudflare.types.page_shields import ConnectionGetResponse, ConnectionPageShieldListPageShieldConnectionsResponse ``` Methods: @@ -3666,10 +3167,7 @@ Methods: Types: ```python -from cloudflare.types.page_shields import ( - ScriptGetResponse, - ScriptPageShieldListPageShieldScriptsResponse, -) +from cloudflare.types.page_shields import ScriptGetResponse, ScriptPageShieldListPageShieldScriptsResponse ``` Methods: @@ -3682,12 +3180,7 @@ Methods: Types: ```python -from cloudflare.types import ( - RulesetCreateResponse, - RulesetUpdateResponse, - RulesetListResponse, - RulesetGetResponse, -) +from cloudflare.types import RulesetCreateResponse, RulesetUpdateResponse, RulesetListResponse, RulesetGetResponse ``` Methods: @@ -3715,11 +3208,7 @@ Methods: Types: ```python -from cloudflare.types.rulesets import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, -) +from cloudflare.types.rulesets import RuleUpdateResponse, RuleDeleteResponse, RuleAccountRulesetsCreateAnAccountRulesetRuleResponse ``` Methods: @@ -3733,10 +3222,7 @@ Methods: Types: ```python -from cloudflare.types.rulesets import ( - VersionAccountRulesetsListAnAccountRulesetSVersionsResponse, - VersionGetResponse, -) +from cloudflare.types.rulesets import VersionAccountRulesetsListAnAccountRulesetSVersionsResponse, VersionGetResponse ``` Methods: @@ -3762,10 +3248,7 @@ Methods: Types: ```python -from cloudflare.types import ( - URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, - URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, -) +from cloudflare.types import URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse ``` Methods: @@ -3784,9 +3267,7 @@ Methods: Types: ```python -from cloudflare.types.spectrums.analytics.aggregates import ( - CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, -) +from cloudflare.types.spectrums.analytics.aggregates import CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse ``` Methods: @@ -3800,9 +3281,7 @@ Methods: Types: ```python -from cloudflare.types.spectrums.analytics.events import ( - BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse, -) +from cloudflare.types.spectrums.analytics.events import BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse ``` Methods: @@ -3814,9 +3293,7 @@ Methods: Types: ```python -from cloudflare.types.spectrums.analytics.events import ( - SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse, -) +from cloudflare.types.spectrums.analytics.events import SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse ``` Methods: @@ -3828,13 +3305,7 @@ Methods: Types: ```python -from cloudflare.types.spectrums import ( - AppUpdateResponse, - AppDeleteResponse, - AppGetResponse, - AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, - AppSpectrumApplicationsListSpectrumApplicationsResponse, -) +from cloudflare.types.spectrums import AppUpdateResponse, AppDeleteResponse, AppGetResponse, AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, AppSpectrumApplicationsListSpectrumApplicationsResponse ``` Methods: @@ -3852,13 +3323,7 @@ Methods: Types: ```python -from cloudflare.types.addresses import ( - AddressMapCreateResponse, - AddressMapUpdateResponse, - AddressMapListResponse, - AddressMapDeleteResponse, - AddressMapGetResponse, -) +from cloudflare.types.addresses import AddressMapCreateResponse, AddressMapUpdateResponse, AddressMapListResponse, AddressMapDeleteResponse, AddressMapGetResponse ``` Methods: @@ -3913,9 +3378,7 @@ Methods: Types: ```python -from cloudflare.types.addresses import ( - LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse, -) +from cloudflare.types.addresses import LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse ``` Methods: @@ -3939,13 +3402,7 @@ Methods: Types: ```python -from cloudflare.types.addresses import ( - PrefixUpdateResponse, - PrefixDeleteResponse, - PrefixGetResponse, - PrefixIPAddressManagementPrefixesAddPrefixResponse, - PrefixIPAddressManagementPrefixesListPrefixesResponse, -) +from cloudflare.types.addresses import PrefixUpdateResponse, PrefixDeleteResponse, PrefixGetResponse, PrefixIPAddressManagementPrefixesAddPrefixResponse, PrefixIPAddressManagementPrefixesListPrefixesResponse ``` Methods: @@ -3963,10 +3420,7 @@ Methods: Types: ```python -from cloudflare.types.addresses.prefixes.bgps import ( - StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, - StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, -) +from cloudflare.types.addresses.prefixes.bgps import StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse ``` Methods: @@ -3979,11 +3433,7 @@ Methods: Types: ```python -from cloudflare.types.addresses.prefixes import ( - DelegationDeleteResponse, - DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, - DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, -) +from cloudflare.types.addresses.prefixes import DelegationDeleteResponse, DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse ``` Methods: @@ -4025,9 +3475,7 @@ Methods: Types: ```python -from cloudflare.types.brand_protections import ( - SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse, -) +from cloudflare.types.brand_protections import SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse ``` Methods: @@ -4039,9 +3487,7 @@ Methods: Types: ```python -from cloudflare.types.brand_protections import ( - URLInfoPhishingURLInformationGetResultsForAURLScanResponse, -) +from cloudflare.types.brand_protections import URLInfoPhishingURLInformationGetResultsForAURLScanResponse ``` Methods: @@ -4053,13 +3499,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CfdTunnelUpdateResponse, - CfdTunnelDeleteResponse, - CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, - CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, - CfdTunnelGetResponse, -) +from cloudflare.types import CfdTunnelUpdateResponse, CfdTunnelDeleteResponse, CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, CfdTunnelGetResponse ``` Methods: @@ -4075,10 +3515,7 @@ Methods: Types: ```python -from cloudflare.types.cfd_tunnels import ( - ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, - ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, -) +from cloudflare.types.cfd_tunnels import ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse ``` Methods: @@ -4091,10 +3528,7 @@ Methods: Types: ```python -from cloudflare.types.cfd_tunnels import ( - ConnectionDeleteResponse, - ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse, -) +from cloudflare.types.cfd_tunnels import ConnectionDeleteResponse, ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse ``` Methods: @@ -4159,10 +3593,7 @@ Methods: Types: ```python -from cloudflare.types.dlps import ( - PayloadLogDLPPayloadLogSettingsGetSettingsResponse, - PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, -) +from cloudflare.types.dlps import PayloadLogDLPPayloadLogSettingsGetSettingsResponse, PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse ``` Methods: @@ -4188,12 +3619,7 @@ Methods: Types: ```python -from cloudflare.types.dlps.profiles import ( - CustomUpdateResponse, - CustomDeleteResponse, - CustomDLPProfilesCreateCustomProfilesResponse, - CustomGetResponse, -) +from cloudflare.types.dlps.profiles import CustomUpdateResponse, CustomDeleteResponse, CustomDLPProfilesCreateCustomProfilesResponse, CustomGetResponse ``` Methods: @@ -4221,13 +3647,7 @@ Methods: Types: ```python -from cloudflare.types import ( - DNSFirewallCreateResponse, - DNSFirewallUpdateResponse, - DNSFirewallListResponse, - DNSFirewallDeleteResponse, - DNSFirewallGetResponse, -) +from cloudflare.types import DNSFirewallCreateResponse, DNSFirewallUpdateResponse, DNSFirewallListResponse, DNSFirewallDeleteResponse, DNSFirewallGetResponse ``` Methods: @@ -4271,13 +3691,7 @@ Methods: Types: ```python -from cloudflare.types.images import ( - V1UpdateResponse, - V1DeleteResponse, - V1CloudflareImagesListImagesResponse, - V1CloudflareImagesUploadAnImageViaURLResponse, - V1GetResponse, -) +from cloudflare.types.images import V1UpdateResponse, V1DeleteResponse, V1CloudflareImagesListImagesResponse, V1CloudflareImagesUploadAnImageViaURLResponse, V1GetResponse ``` Methods: @@ -4317,13 +3731,7 @@ Methods: Types: ```python -from cloudflare.types.images.v1s import ( - VariantUpdateResponse, - VariantDeleteResponse, - VariantCloudflareImagesVariantsCreateAVariantResponse, - VariantCloudflareImagesVariantsListVariantsResponse, - VariantGetResponse, -) +from cloudflare.types.images.v1s import VariantUpdateResponse, VariantDeleteResponse, VariantCloudflareImagesVariantsCreateAVariantResponse, VariantCloudflareImagesVariantsListVariantsResponse, VariantGetResponse ``` Methods: @@ -4357,9 +3765,7 @@ Methods: Types: ```python -from cloudflare.types.images.v2s import ( - DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response, -) +from cloudflare.types.images.v2s import DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response ``` Methods: @@ -4469,9 +3875,7 @@ Methods: Types: ```python -from cloudflare.types.intels import ( - MiscategorizationMiscategorizationCreateMiscategorizationResponse, -) +from cloudflare.types.intels import MiscategorizationMiscategorizationCreateMiscategorizationResponse ``` Methods: @@ -4497,12 +3901,7 @@ Methods: Types: ```python -from cloudflare.types.magics import ( - CfInterconnectUpdateResponse, - CfInterconnectGetResponse, - CfInterconnectMagicInterconnectsListInterconnectsResponse, - CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, -) +from cloudflare.types.magics import CfInterconnectUpdateResponse, CfInterconnectGetResponse, CfInterconnectMagicInterconnectsListInterconnectsResponse, CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse ``` Methods: @@ -4517,14 +3916,7 @@ Methods: Types: ```python -from cloudflare.types.magics import ( - GreTunnelUpdateResponse, - GreTunnelDeleteResponse, - GreTunnelGetResponse, - GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, - GreTunnelMagicGreTunnelsListGreTunnelsResponse, - GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, -) +from cloudflare.types.magics import GreTunnelUpdateResponse, GreTunnelDeleteResponse, GreTunnelGetResponse, GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, GreTunnelMagicGreTunnelsListGreTunnelsResponse, GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse ``` Methods: @@ -4541,14 +3933,7 @@ Methods: Types: ```python -from cloudflare.types.magics import ( - IpsecTunnelUpdateResponse, - IpsecTunnelDeleteResponse, - IpsecTunnelGetResponse, - IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, - IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, - IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, -) +from cloudflare.types.magics import IpsecTunnelUpdateResponse, IpsecTunnelDeleteResponse, IpsecTunnelGetResponse, IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse ``` Methods: @@ -4565,9 +3950,7 @@ Methods: Types: ```python -from cloudflare.types.magics.ipsec_tunnels import ( - PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse, -) +from cloudflare.types.magics.ipsec_tunnels import PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse ``` Methods: @@ -4579,14 +3962,7 @@ Methods: Types: ```python -from cloudflare.types.magics import ( - RouteUpdateResponse, - RouteDeleteResponse, - RouteGetResponse, - RouteMagicStaticRoutesCreateRoutesResponse, - RouteMagicStaticRoutesListRoutesResponse, - RouteMagicStaticRoutesUpdateManyRoutesResponse, -) +from cloudflare.types.magics import RouteUpdateResponse, RouteDeleteResponse, RouteGetResponse, RouteMagicStaticRoutesCreateRoutesResponse, RouteMagicStaticRoutesListRoutesResponse, RouteMagicStaticRoutesUpdateManyRoutesResponse ``` Methods: @@ -4603,13 +3979,7 @@ Methods: Types: ```python -from cloudflare.types import ( - AccountMemberCreateResponse, - AccountMemberUpdateResponse, - AccountMemberListResponse, - AccountMemberDeleteResponse, - AccountMemberGetResponse, -) +from cloudflare.types import AccountMemberCreateResponse, AccountMemberUpdateResponse, AccountMemberListResponse, AccountMemberDeleteResponse, AccountMemberGetResponse ``` Methods: @@ -4627,13 +3997,7 @@ Methods: Types: ```python -from cloudflare.types.mnms import ( - ConfigDeleteResponse, - ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, - ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, - ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse, - ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse, -) +from cloudflare.types.mnms import ConfigDeleteResponse, ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse ``` Methods: @@ -4649,9 +4013,7 @@ Methods: Types: ```python -from cloudflare.types.mnms.configs import ( - FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse, -) +from cloudflare.types.mnms.configs import FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse ``` Methods: @@ -4663,14 +4025,7 @@ Methods: Types: ```python -from cloudflare.types.mnms import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleGetResponse, - RuleMagicNetworkMonitoringRulesCreateRulesResponse, - RuleMagicNetworkMonitoringRulesListRulesResponse, - RuleMagicNetworkMonitoringRulesUpdateRulesResponse, -) +from cloudflare.types.mnms import RuleUpdateResponse, RuleDeleteResponse, RuleGetResponse, RuleMagicNetworkMonitoringRulesCreateRulesResponse, RuleMagicNetworkMonitoringRulesListRulesResponse, RuleMagicNetworkMonitoringRulesUpdateRulesResponse ``` Methods: @@ -4687,9 +4042,7 @@ Methods: Types: ```python -from cloudflare.types.mnms.rules import ( - AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse, -) +from cloudflare.types.mnms.rules import AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse ``` Methods: @@ -4701,12 +4054,7 @@ Methods: Types: ```python -from cloudflare.types import ( - MtlsCertificateUpdateResponse, - MtlsCertificateListResponse, - MtlsCertificateDeleteResponse, - MtlsCertificateGetResponse, -) +from cloudflare.types import MtlsCertificateUpdateResponse, MtlsCertificateListResponse, MtlsCertificateDeleteResponse, MtlsCertificateGetResponse ``` Methods: @@ -4735,14 +4083,7 @@ Methods: Types: ```python -from cloudflare.types.pages import ( - ProjectCreateResponse, - ProjectUpdateResponse, - ProjectListResponse, - ProjectDeleteResponse, - ProjectGetResponse, - ProjectPurgeBuildCacheResponse, -) +from cloudflare.types.pages import ProjectCreateResponse, ProjectUpdateResponse, ProjectListResponse, ProjectDeleteResponse, ProjectGetResponse, ProjectPurgeBuildCacheResponse ``` Methods: @@ -4759,12 +4100,7 @@ Methods: Types: ```python -from cloudflare.types.pages.projects import ( - DeploymentCreateResponse, - DeploymentListResponse, - DeploymentDeleteResponse, - DeploymentGetResponse, -) +from cloudflare.types.pages.projects import DeploymentCreateResponse, DeploymentListResponse, DeploymentDeleteResponse, DeploymentGetResponse ``` Methods: @@ -4781,9 +4117,7 @@ Methods: Types: ```python -from cloudflare.types.pages.projects.deployments.histories import ( - LogPagesDeploymentGetDeploymentLogsResponse, -) +from cloudflare.types.pages.projects.deployments.histories import LogPagesDeploymentGetDeploymentLogsResponse ``` Methods: @@ -4807,9 +4141,7 @@ Methods: Types: ```python -from cloudflare.types.pages.projects.deployments import ( - RollbackPagesDeploymentRollbackDeploymentResponse, -) +from cloudflare.types.pages.projects.deployments import RollbackPagesDeploymentRollbackDeploymentResponse ``` Methods: @@ -4821,13 +4153,7 @@ Methods: Types: ```python -from cloudflare.types.pages.projects import ( - DomainUpdateResponse, - DomainDeleteResponse, - DomainGetResponse, - DomainPagesDomainsAddDomainResponse, - DomainPagesDomainsGetDomainsResponse, -) +from cloudflare.types.pages.projects import DomainUpdateResponse, DomainDeleteResponse, DomainGetResponse, DomainPagesDomainsAddDomainResponse, DomainPagesDomainsGetDomainsResponse ``` Methods: @@ -4843,11 +4169,7 @@ Methods: Types: ```python -from cloudflare.types import ( - PcapGetResponse, - PcapMagicPcapCollectionCreatePcapRequestResponse, - PcapMagicPcapCollectionListPacketCaptureRequestsResponse, -) +from cloudflare.types import PcapGetResponse, PcapMagicPcapCollectionCreatePcapRequestResponse, PcapMagicPcapCollectionListPacketCaptureRequestsResponse ``` Methods: @@ -4861,10 +4183,7 @@ Methods: Types: ```python -from cloudflare.types.pcaps import ( - OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, - OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, -) +from cloudflare.types.pcaps import OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse ``` Methods: @@ -4878,9 +4197,7 @@ Methods: Types: ```python -from cloudflare.types.pcaps.ownerships import ( - ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse, -) +from cloudflare.types.pcaps.ownerships import ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse ``` Methods: @@ -4943,13 +4260,7 @@ Methods: Types: ```python -from cloudflare.types.rules import ( - ListUpdateResponse, - ListDeleteResponse, - ListGetResponse, - ListListsCreateAListResponse, - ListListsGetListsResponse, -) +from cloudflare.types.rules import ListUpdateResponse, ListDeleteResponse, ListGetResponse, ListListsCreateAListResponse, ListListsGetListsResponse ``` Methods: @@ -4977,13 +4288,7 @@ Methods: Types: ```python -from cloudflare.types.rules.lists import ( - ItemDeleteResponse, - ItemGetResponse, - ItemListsCreateListItemsResponse, - ItemListsGetListItemsResponse, - ItemListsUpdateAllListItemsResponse, -) +from cloudflare.types.rules.lists import ItemDeleteResponse, ItemGetResponse, ItemListsCreateListItemsResponse, ItemListsGetListItemsResponse, ItemListsUpdateAllListItemsResponse ``` Methods: @@ -5016,12 +4321,7 @@ Methods: Types: ```python -from cloudflare.types.storage.kv import ( - NamespaceUpdateResponse, - NamespaceListResponse, - NamespaceDeleteResponse, - NamespaceWorkersKvNamespaceCreateANamespaceResponse, -) +from cloudflare.types.storage.kv import NamespaceUpdateResponse, NamespaceListResponse, NamespaceDeleteResponse, NamespaceWorkersKvNamespaceCreateANamespaceResponse ``` Methods: @@ -5036,10 +4336,7 @@ Methods: Types: ```python -from cloudflare.types.storage.kv.namespaces import ( - BulkDeleteResponse, - BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, -) +from cloudflare.types.storage.kv.namespaces import BulkDeleteResponse, BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse ``` Methods: @@ -5076,11 +4373,7 @@ Methods: Types: ```python -from cloudflare.types.storage.kv.namespaces import ( - ValueUpdateResponse, - ValueDeleteResponse, - ValueGetResponse, -) +from cloudflare.types.storage.kv.namespaces import ValueUpdateResponse, ValueDeleteResponse, ValueGetResponse ``` Methods: @@ -5094,11 +4387,7 @@ Methods: Types: ```python -from cloudflare.types import ( - StreamUpdateResponse, - StreamGetResponse, - StreamStreamVideosListVideosResponse, -) +from cloudflare.types import StreamUpdateResponse, StreamGetResponse, StreamStreamVideosListVideosResponse ``` Methods: @@ -5114,12 +4403,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - AudioTrackUpdateResponse, - AudioTrackListResponse, - AudioTrackDeleteResponse, - AudioTrackCopyResponse, -) +from cloudflare.types.stream import AudioTrackUpdateResponse, AudioTrackListResponse, AudioTrackDeleteResponse, AudioTrackCopyResponse ``` Methods: @@ -5182,11 +4466,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - KeyDeleteResponse, - KeyStreamSigningKeysCreateSigningKeysResponse, - KeyStreamSigningKeysListSigningKeysResponse, -) +from cloudflare.types.stream import KeyDeleteResponse, KeyStreamSigningKeysCreateSigningKeysResponse, KeyStreamSigningKeysListSigningKeysResponse ``` Methods: @@ -5200,12 +4480,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - LiveInputUpdateResponse, - LiveInputGetResponse, - LiveInputStreamLiveInputsCreateALiveInputResponse, - LiveInputStreamLiveInputsListLiveInputsResponse, -) +from cloudflare.types.stream import LiveInputUpdateResponse, LiveInputGetResponse, LiveInputStreamLiveInputsCreateALiveInputResponse, LiveInputStreamLiveInputsListLiveInputsResponse ``` Methods: @@ -5221,11 +4496,7 @@ Methods: Types: ```python -from cloudflare.types.stream.live_inputs import ( - OutputUpdateResponse, - OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, - OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, -) +from cloudflare.types.stream.live_inputs import OutputUpdateResponse, OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse ``` Methods: @@ -5240,12 +4511,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - WatermarkDeleteResponse, - WatermarkGetResponse, - WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, - WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, -) +from cloudflare.types.stream import WatermarkDeleteResponse, WatermarkGetResponse, WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, WatermarkStreamWatermarkProfileListWatermarkProfilesResponse ``` Methods: @@ -5260,11 +4526,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - WebhookDeleteResponse, - WebhookStreamWebhookCreateWebhooksResponse, - WebhookStreamWebhookViewWebhooksResponse, -) +from cloudflare.types.stream import WebhookDeleteResponse, WebhookStreamWebhookCreateWebhooksResponse, WebhookStreamWebhookViewWebhooksResponse ``` Methods: @@ -5278,11 +4540,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - CaptionUpdateResponse, - CaptionDeleteResponse, - CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, -) +from cloudflare.types.stream import CaptionUpdateResponse, CaptionDeleteResponse, CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse ``` Methods: @@ -5296,11 +4554,7 @@ Methods: Types: ```python -from cloudflare.types.stream import ( - DownloadDeleteResponse, - DownloadStreamMP4DownloadsCreateDownloadsResponse, - DownloadStreamMP4DownloadsListDownloadsResponse, -) +from cloudflare.types.stream import DownloadDeleteResponse, DownloadStreamMP4DownloadsCreateDownloadsResponse, DownloadStreamMP4DownloadsListDownloadsResponse ``` Methods: @@ -5377,12 +4631,7 @@ Methods: Types: ```python -from cloudflare.types.teamnets import ( - VirtualNetworkUpdateResponse, - VirtualNetworkDeleteResponse, - VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, - VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, -) +from cloudflare.types.teamnets import VirtualNetworkUpdateResponse, VirtualNetworkDeleteResponse, VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse ``` Methods: @@ -5397,12 +4646,7 @@ Methods: Types: ```python -from cloudflare.types import ( - TunnelDeleteResponse, - TunnelArgoTunnelCreateAnArgoTunnelResponse, - TunnelArgoTunnelListArgoTunnelsResponse, - TunnelGetResponse, -) +from cloudflare.types import TunnelDeleteResponse, TunnelArgoTunnelCreateAnArgoTunnelResponse, TunnelArgoTunnelListArgoTunnelsResponse, TunnelGetResponse ``` Methods: @@ -5429,10 +4673,7 @@ Methods: Types: ```python -from cloudflare.types import ( - GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, - GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, -) +from cloudflare.types import GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse ``` Methods: @@ -5457,9 +4698,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, -) +from cloudflare.types.gateways import AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse ``` Methods: @@ -5471,11 +4710,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, - ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, - ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, -) +from cloudflare.types.gateways import ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse ``` Methods: @@ -5489,13 +4724,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - ListUpdateResponse, - ListDeleteResponse, - ListGetResponse, - ListZeroTrustListsCreateZeroTrustListResponse, - ListZeroTrustListsListZeroTrustListsResponse, -) +from cloudflare.types.gateways import ListUpdateResponse, ListDeleteResponse, ListGetResponse, ListZeroTrustListsCreateZeroTrustListResponse, ListZeroTrustListsListZeroTrustListsResponse ``` Methods: @@ -5523,13 +4752,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - LocationUpdateResponse, - LocationDeleteResponse, - LocationGetResponse, - LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, - LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, -) +from cloudflare.types.gateways import LocationUpdateResponse, LocationDeleteResponse, LocationGetResponse, LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse ``` Methods: @@ -5545,10 +4768,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, - LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, -) +from cloudflare.types.gateways import LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse ``` Methods: @@ -5561,14 +4781,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - ProxyEndpointUpdateResponse, - ProxyEndpointListResponse, - ProxyEndpointDeleteResponse, - ProxyEndpointGetResponse, - ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, - ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, -) +from cloudflare.types.gateways import ProxyEndpointUpdateResponse, ProxyEndpointListResponse, ProxyEndpointDeleteResponse, ProxyEndpointGetResponse, ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse ``` Methods: @@ -5585,13 +4798,7 @@ Methods: Types: ```python -from cloudflare.types.gateways import ( - RuleUpdateResponse, - RuleDeleteResponse, - RuleGetResponse, - RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, - RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, -) +from cloudflare.types.gateways import RuleUpdateResponse, RuleDeleteResponse, RuleGetResponse, RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse ``` Methods: @@ -5613,9 +4820,7 @@ Methods: Types: ```python -from cloudflare.types.alerting.v3s.destinations import ( - EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, -) +from cloudflare.types.alerting.v3s.destinations import EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse ``` Methods: @@ -5627,9 +4832,7 @@ Methods: Types: ```python -from cloudflare.types.alerting.v3s.destinations import ( - PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, -) +from cloudflare.types.alerting.v3s.destinations import PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse ``` Methods: @@ -5641,13 +4844,7 @@ Methods: Types: ```python -from cloudflare.types.alerting.v3s.destinations import ( - WebhookUpdateResponse, - WebhookDeleteResponse, - WebhookGetResponse, - WebhookNotificationWebhooksCreateAWebhookResponse, - WebhookNotificationWebhooksListWebhooksResponse, -) +from cloudflare.types.alerting.v3s.destinations import WebhookUpdateResponse, WebhookDeleteResponse, WebhookGetResponse, WebhookNotificationWebhooksCreateAWebhookResponse, WebhookNotificationWebhooksListWebhooksResponse ``` Methods: @@ -5675,13 +4872,7 @@ Methods: Types: ```python -from cloudflare.types.alerting.v3s import ( - PolicyUpdateResponse, - PolicyDeleteResponse, - PolicyGetResponse, - PolicyNotificationPoliciesCreateANotificationPolicyResponse, - PolicyNotificationPoliciesListNotificationPoliciesResponse, -) +from cloudflare.types.alerting.v3s import PolicyUpdateResponse, PolicyDeleteResponse, PolicyGetResponse, PolicyNotificationPoliciesCreateANotificationPolicyResponse, PolicyNotificationPoliciesListNotificationPoliciesResponse ``` Methods: @@ -5713,11 +4904,7 @@ Methods: Types: ```python -from cloudflare.types.alerting.v3.destinations import ( - PagerdutyCreateTokenResponse, - PagerdutyDeleteAllResponse, - PagerdutyLinkResponse, -) +from cloudflare.types.alerting.v3.destinations import PagerdutyCreateTokenResponse, PagerdutyDeleteAllResponse, PagerdutyLinkResponse ``` Methods: @@ -5744,13 +4931,7 @@ Methods: Types: ```python -from cloudflare.types.devices import ( - DEXTestUpdateResponse, - DEXTestDeleteResponse, - DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, - DEXTestDeviceDEXTestDetailsResponse, - DEXTestGetResponse, -) +from cloudflare.types.devices import DEXTestUpdateResponse, DEXTestDeleteResponse, DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, DEXTestDeviceDEXTestDetailsResponse, DEXTestGetResponse ``` Methods: @@ -5766,13 +4947,7 @@ Methods: Types: ```python -from cloudflare.types.devices import ( - NetworkUpdateResponse, - NetworkDeleteResponse, - NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, - NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, - NetworkGetResponse, -) +from cloudflare.types.devices import NetworkUpdateResponse, NetworkDeleteResponse, NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, NetworkGetResponse ``` Methods: @@ -5788,15 +4963,7 @@ Methods: Types: ```python -from cloudflare.types.devices import ( - PolicyUpdateResponse, - PolicyDeleteResponse, - PolicyDevicesCreateDeviceSettingsPolicyResponse, - PolicyDevicesGetDefaultDeviceSettingsPolicyResponse, - PolicyDevicesListDeviceSettingsPoliciesResponse, - PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse, - PolicyGetResponse, -) +from cloudflare.types.devices import PolicyUpdateResponse, PolicyDeleteResponse, PolicyDevicesCreateDeviceSettingsPolicyResponse, PolicyDevicesGetDefaultDeviceSettingsPolicyResponse, PolicyDevicesListDeviceSettingsPoliciesResponse, PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse, PolicyGetResponse ``` Methods: @@ -5814,12 +4981,7 @@ Methods: Types: ```python -from cloudflare.types.devices.policies import ( - ExcludeDevicesGetSplitTunnelExcludeListResponse, - ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, - ExcludeDevicesSetSplitTunnelExcludeListResponse, - ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, -) +from cloudflare.types.devices.policies import ExcludeDevicesGetSplitTunnelExcludeListResponse, ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, ExcludeDevicesSetSplitTunnelExcludeListResponse, ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse ``` Methods: @@ -5834,12 +4996,7 @@ Methods: Types: ```python -from cloudflare.types.devices.policies import ( - FallbackDomainDevicesGetLocalDomainFallbackListResponse, - FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, - FallbackDomainDevicesSetLocalDomainFallbackListResponse, - FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, -) +from cloudflare.types.devices.policies import FallbackDomainDevicesGetLocalDomainFallbackListResponse, FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, FallbackDomainDevicesSetLocalDomainFallbackListResponse, FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse ``` Methods: @@ -5854,12 +5011,7 @@ Methods: Types: ```python -from cloudflare.types.devices.policies import ( - IncludeDevicesGetSplitTunnelIncludeListResponse, - IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, - IncludeDevicesSetSplitTunnelIncludeListResponse, - IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, -) +from cloudflare.types.devices.policies import IncludeDevicesGetSplitTunnelIncludeListResponse, IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, IncludeDevicesSetSplitTunnelIncludeListResponse, IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse ``` Methods: @@ -5874,13 +5026,7 @@ Methods: Types: ```python -from cloudflare.types.devices import ( - PostureUpdateResponse, - PostureDeleteResponse, - PostureDevicePostureRulesCreateDevicePostureRuleResponse, - PostureDevicePostureRulesListDevicePostureRulesResponse, - PostureGetResponse, -) +from cloudflare.types.devices import PostureUpdateResponse, PostureDeleteResponse, PostureDevicePostureRulesCreateDevicePostureRuleResponse, PostureDevicePostureRulesListDevicePostureRulesResponse, PostureGetResponse ``` Methods: @@ -5896,13 +5042,7 @@ Methods: Types: ```python -from cloudflare.types.devices.postures import ( - IntegrationUpdateResponse, - IntegrationDeleteResponse, - IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, - IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, - IntegrationGetResponse, -) +from cloudflare.types.devices.postures import IntegrationUpdateResponse, IntegrationDeleteResponse, IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, IntegrationGetResponse ``` Methods: @@ -5930,10 +5070,7 @@ Methods: Types: ```python -from cloudflare.types.devices import ( - SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, - SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, -) +from cloudflare.types.devices import SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse ``` Methods: @@ -6107,11 +5244,7 @@ Methods: Types: ```python -from cloudflare.types.dex import ( - TracerouteTestGetResponse, - TracerouteTestNetworkPathResponse, - TracerouteTestPercentilesResponse, -) +from cloudflare.types.dex import TracerouteTestGetResponse, TracerouteTestNetworkPathResponse, TracerouteTestPercentilesResponse ``` Methods: @@ -6127,12 +5260,7 @@ Methods: Types: ```python -from cloudflare.types.r2 import ( - BucketCreateResponse, - BucketListResponse, - BucketDeleteResponse, - BucketGetResponse, -) +from cloudflare.types.r2 import BucketCreateResponse, BucketListResponse, BucketDeleteResponse, BucketGetResponse ``` Methods: @@ -6163,13 +5291,7 @@ Methods: Types: ```python -from cloudflare.types import ( - WarpConnectorCreateResponse, - WarpConnectorUpdateResponse, - WarpConnectorListResponse, - WarpConnectorDeleteResponse, - WarpConnectorGetResponse, -) +from cloudflare.types import WarpConnectorCreateResponse, WarpConnectorUpdateResponse, WarpConnectorListResponse, WarpConnectorDeleteResponse, WarpConnectorGetResponse ``` Methods: @@ -6222,10 +5344,7 @@ Methods: Types: ```python -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( - SettingUpdateResponse, - SettingGetResponse, -) +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import SettingUpdateResponse, SettingGetResponse ``` Methods: @@ -6286,10 +5405,7 @@ Methods: Types: ```python -from cloudflare.types.zerotrust import ( - ConnectivitySettingUpdateResponse, - ConnectivitySettingGetResponse, -) +from cloudflare.types.zerotrust import ConnectivitySettingUpdateResponse, ConnectivitySettingGetResponse ``` Methods: @@ -6306,11 +5422,7 @@ Methods: Types: ```python -from cloudflare.types.addressing.prefixes import ( - BGPPrefixUpdateResponse, - BGPPrefixListResponse, - BGPPrefixGetResponse, -) +from cloudflare.types.addressing.prefixes import BGPPrefixUpdateResponse, BGPPrefixListResponse, BGPPrefixGetResponse ``` Methods: @@ -6324,12 +5436,7 @@ Methods: Types: ```python -from cloudflare.types.addressing.prefixes import ( - BindingCreateResponse, - BindingListResponse, - BindingDeleteResponse, - BindingGetResponse, -) +from cloudflare.types.addressing.prefixes import BindingCreateResponse, BindingListResponse, BindingDeleteResponse, BindingGetResponse ``` Methods: @@ -6358,14 +5465,7 @@ Methods: Types: ```python -from cloudflare.types.challenges import ( - WidgetCreateResponse, - WidgetUpdateResponse, - WidgetListResponse, - WidgetDeleteResponse, - WidgetGetResponse, - WidgetRotateSecretResponse, -) +from cloudflare.types.challenges import WidgetCreateResponse, WidgetUpdateResponse, WidgetListResponse, WidgetDeleteResponse, WidgetGetResponse, WidgetRotateSecretResponse ``` Methods: @@ -6384,13 +5484,7 @@ Methods: Types: ```python -from cloudflare.types.hyperdrive import ( - ConfigCreateResponse, - ConfigUpdateResponse, - ConfigListResponse, - ConfigDeleteResponse, - ConfigGetResponse, -) +from cloudflare.types.hyperdrive import ConfigCreateResponse, ConfigUpdateResponse, ConfigListResponse, ConfigDeleteResponse, ConfigGetResponse ``` Methods: @@ -6408,16 +5502,7 @@ Methods: Types: ```python -from cloudflare.types.intel import ( - IndicatorFeedCreateResponse, - IndicatorFeedListResponse, - IndicatorFeedDataResponse, - IndicatorFeedGetResponse, - IndicatorFeedPermissionsAddResponse, - IndicatorFeedPermissionsRemoveResponse, - IndicatorFeedPermissionsViewResponse, - IndicatorFeedSnapshotResponse, -) +from cloudflare.types.intel import IndicatorFeedCreateResponse, IndicatorFeedListResponse, IndicatorFeedDataResponse, IndicatorFeedGetResponse, IndicatorFeedPermissionsAddResponse, IndicatorFeedPermissionsRemoveResponse, IndicatorFeedPermissionsViewResponse, IndicatorFeedSnapshotResponse ``` Methods: @@ -6450,13 +5535,7 @@ Methods: Types: ```python -from cloudflare.types.rum import ( - SiteInfoCreateResponse, - SiteInfoUpdateResponse, - SiteInfoListResponse, - SiteInfoDeleteResponse, - SiteInfoGetResponse, -) +from cloudflare.types.rum import SiteInfoCreateResponse, SiteInfoUpdateResponse, SiteInfoListResponse, SiteInfoDeleteResponse, SiteInfoGetResponse ``` Methods: @@ -6472,12 +5551,7 @@ Methods: Types: ```python -from cloudflare.types.rum import ( - RuleCreateResponse, - RuleUpdateResponse, - RuleListResponse, - RuleDeleteResponse, -) +from cloudflare.types.rum import RuleCreateResponse, RuleUpdateResponse, RuleListResponse, RuleDeleteResponse ``` Methods: @@ -6494,18 +5568,7 @@ Methods: Types: ```python -from cloudflare.types.vectorize import ( - IndexCreateResponse, - IndexUpdateResponse, - IndexListResponse, - IndexDeleteResponse, - IndexDeleteByIDsResponse, - IndexGetResponse, - IndexGetByIDsResponse, - IndexInsertResponse, - IndexQueryResponse, - IndexUpsertResponse, -) +from cloudflare.types.vectorize import IndexCreateResponse, IndexUpdateResponse, IndexListResponse, IndexDeleteResponse, IndexDeleteByIDsResponse, IndexGetResponse, IndexGetByIDsResponse, IndexInsertResponse, IndexQueryResponse, IndexUpsertResponse ``` Methods: @@ -7245,16 +6308,7 @@ Methods: Types: ```python -from cloudflare.types.radar import ( - HTTPBotClassesResponse, - HTTPBrowserFamiliesResponse, - HTTPBrowsersResponse, - HTTPDeviceTypesResponse, - HTTPHTTPProtocolsResponse, - HTTPHTTPVersionsResponse, - HTTPIPVersionsResponse, - HTTPOssResponse, -) +from cloudflare.types.radar import HTTPBotClassesResponse, HTTPBrowserFamiliesResponse, HTTPBrowsersResponse, HTTPDeviceTypesResponse, HTTPHTTPProtocolsResponse, HTTPHTTPVersionsResponse, HTTPIPVersionsResponse, HTTPOssResponse ``` Methods: @@ -7427,10 +6481,7 @@ Methods: Types: ```python -from cloudflare.types import ( - OriginPostQuantumEncryptionUpdateResponse, - OriginPostQuantumEncryptionGetResponse, -) +from cloudflare.types import OriginPostQuantumEncryptionUpdateResponse, OriginPostQuantumEncryptionGetResponse ``` Methods: @@ -7443,10 +6494,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CacheRegionalTieredCachesResponse, - CacheUpdateRegionalTieredCacheResponse, -) +from cloudflare.types import CacheRegionalTieredCachesResponse, CacheUpdateRegionalTieredCacheResponse ``` Methods: @@ -7465,11 +6513,7 @@ Methods: Types: ```python -from cloudflare.types.firewall.waf.packages import ( - GroupUpdateResponse, - GroupListResponse, - GroupGetResponse, -) +from cloudflare.types.firewall.waf.packages import GroupUpdateResponse, GroupListResponse, GroupGetResponse ``` Methods: @@ -7594,17 +6638,7 @@ Methods: Types: ```python -from cloudflare.types import ( - SpeedAPIAvailabilitiesListResponse, - SpeedAPIPagesListResponse, - SpeedAPIScheduleDeleteResponse, - SpeedAPIScheduleGetResponse, - SpeedAPITestsCreateResponse, - SpeedAPITestsDeleteResponse, - SpeedAPITestsGetResponse, - SpeedAPITestsListResponse, - SpeedAPITrendsListResponse, -) +from cloudflare.types import SpeedAPIAvailabilitiesListResponse, SpeedAPIPagesListResponse, SpeedAPIScheduleDeleteResponse, SpeedAPIScheduleGetResponse, SpeedAPITestsCreateResponse, SpeedAPITestsDeleteResponse, SpeedAPITestsGetResponse, SpeedAPITestsListResponse, SpeedAPITrendsListResponse ``` Methods: @@ -7682,12 +6716,7 @@ Methods: Types: ```python -from cloudflare.types.page_shield import ( - PolicyCreateResponse, - PolicyUpdateResponse, - PolicyListResponse, - PolicyGetResponse, -) +from cloudflare.types.page_shield import PolicyCreateResponse, PolicyUpdateResponse, PolicyListResponse, PolicyGetResponse ``` Methods: @@ -7716,12 +6745,7 @@ Methods: Types: ```python -from cloudflare.types import ( - SnippetUpdateResponse, - SnippetListResponse, - SnippetDeleteResponse, - SnippetGetResponse, -) +from cloudflare.types import SnippetUpdateResponse, SnippetListResponse, SnippetDeleteResponse, SnippetGetResponse ``` Methods: @@ -7757,14 +6781,7 @@ Methods: Types: ```python -from cloudflare.types.dlp import ( - DatasetCreateResponse, - DatasetUpdateResponse, - DatasetListResponse, - DatasetGetResponse, - DatasetUploadResponse, - DatasetUploadPrepareResponse, -) +from cloudflare.types.dlp import DatasetCreateResponse, DatasetUpdateResponse, DatasetListResponse, DatasetGetResponse, DatasetUploadResponse, DatasetUploadPrepareResponse ``` Methods: @@ -7797,12 +6814,7 @@ Methods: Types: ```python -from cloudflare.types import ( - AccessTagCreateResponse, - AccessTagUpdateResponse, - AccessTagDeleteResponse, - AccessTagGetResponse, -) +from cloudflare.types import AccessTagCreateResponse, AccessTagUpdateResponse, AccessTagDeleteResponse, AccessTagGetResponse ``` Methods: @@ -7817,13 +6829,7 @@ Methods: Types: ```python -from cloudflare.types import ( - CallCreateResponse, - CallUpdateResponse, - CallListResponse, - CallDeleteResponse, - CallGetResponse, -) +from cloudflare.types import CallCreateResponse, CallUpdateResponse, CallListResponse, CallDeleteResponse, CallGetResponse ``` Methods: diff --git a/src/cloudflare/__init__.py b/src/cloudflare/__init__.py index dd54e5cd1e2..db49cb735e3 100644 --- a/src/cloudflare/__init__.py +++ b/src/cloudflare/__init__.py @@ -1,39 +1,39 @@ # File generated from our OpenAPI spec by Stainless. from . import types -from ._types import NoneType, Transport, ProxiesTypes -from ._utils import file_from_path +from ._version import __version__, __title__ from ._client import ( - Client, - Stream, Timeout, Transport, - Cloudflare, + RequestOptions, + Client, AsyncClient, + Stream, AsyncStream, - RequestOptions, + Cloudflare, AsyncCloudflare, ) -from ._models import BaseModel -from ._version import __title__, __version__ -from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse from ._exceptions import ( + CloudflareError, APIError, - ConflictError, - NotFoundError, APIStatusError, - RateLimitError, APITimeoutError, - BadRequestError, - CloudflareError, APIConnectionError, + APIResponseValidationError, + BadRequestError, AuthenticationError, - InternalServerError, PermissionDeniedError, + NotFoundError, + ConflictError, UnprocessableEntityError, - APIResponseValidationError, + RateLimitError, + InternalServerError, ) +from ._types import NoneType, Transport, ProxiesTypes +from ._utils import file_from_path +from ._models import BaseModel from ._utils._logs import setup_logging as _setup_logging +from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse __all__ = [ "types", @@ -78,7 +78,7 @@ for __name in __all__: if not __name.startswith("__"): try: - __locals[__name].__module__ = "cloudflare" + setattr(__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 0b5ece2c48e..a909c7ac4d1 100644 --- a/src/cloudflare/_base_client.py +++ b/src/cloudflare/_base_client.py @@ -61,7 +61,7 @@ RequestOptions, ModelBuilderProtocol, ) -from ._utils import is_dict, is_list, is_given, is_mapping +from ._utils import is_dict, is_given, is_mapping, is_list from ._compat import model_copy, model_dump from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type from ._response import ( @@ -70,12 +70,13 @@ AsyncAPIResponse, extract_response_type, ) +from ._legacy_response import LegacyAPIResponse from ._constants import ( DEFAULT_LIMITS, - DEFAULT_TIMEOUT, - MAX_RETRY_DELAY, DEFAULT_MAX_RETRIES, + DEFAULT_TIMEOUT, INITIAL_RETRY_DELAY, + MAX_RETRY_DELAY, RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER, ) diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index ba80409a12a..b4566ce74c2 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -2,35 +2,68 @@ from __future__ import annotations +import httpx + import os -from typing import Any, Union, Mapping -from typing_extensions import Self, override + +from ._streaming import AsyncStream as AsyncStream, Stream as Stream + +from ._exceptions import CloudflareError, APIStatusError + +from typing_extensions import override, Self + +from typing import Any + +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 import httpx -from . import resources, _exceptions +from ._version import __version__ from ._qs import Querystring +from .types import shared_params +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, - Timeout, NotGiven, + Timeout, 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, CloudflareError from ._base_client import ( + DEFAULT_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 c80d6bf15c2..4c898d7781b 100644 --- a/src/cloudflare/_exceptions.py +++ b/src/cloudflare/_exceptions.py @@ -2,10 +2,10 @@ from __future__ import annotations -from typing_extensions import Literal - import httpx +from typing_extensions import Literal + __all__ = [ "BadRequestError", "AuthenticationError", diff --git a/src/cloudflare/_resource.py b/src/cloudflare/_resource.py index 748023621f4..4da83d76f63 100644 --- a/src/cloudflare/_resource.py +++ b/src/cloudflare/_resource.py @@ -7,7 +7,7 @@ from typing import TYPE_CHECKING if TYPE_CHECKING: - from ._client import Cloudflare, AsyncCloudflare + from ._client import AsyncCloudflare, Cloudflare class SyncAPIResource: diff --git a/src/cloudflare/_response.py b/src/cloudflare/_response.py index 6ccd8185bbc..a48841de5e4 100644 --- a/src/cloudflare/_response.py +++ b/src/cloudflare/_response.py @@ -18,7 +18,7 @@ cast, overload, ) -from typing_extensions import Awaitable, ParamSpec, override, get_origin +from typing_extensions import Awaitable, ParamSpec, TypeGuard, override, get_origin import anyio import httpx @@ -26,6 +26,7 @@ from ._types import NoneType from ._utils import is_given, 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 9e637d9d056..36e34973387 100644 --- a/src/cloudflare/_streaming.py +++ b/src/cloudflare/_streaming.py @@ -5,11 +5,13 @@ import inspect from types import TracebackType from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast -from typing_extensions import Self, TypeGuard, override, get_origin +from typing_extensions import Self, override, TypeGuard, get_origin import httpx -from ._utils import extract_type_var_from_base +from ._utils import is_mapping, is_dict, extract_type_var_from_base +from ._exceptions import APIError +from ._response import APIResponse, AsyncAPIResponse if TYPE_CHECKING: from ._client import Cloudflare, AsyncCloudflare diff --git a/src/cloudflare/_types.py b/src/cloudflare/_types.py index 88a842b066c..d288e94bc33 100644 --- a/src/cloudflare/_types.py +++ b/src/cloudflare/_types.py @@ -1,6 +1,7 @@ from __future__ import annotations from os import PathLike +from abc import ABC, abstractmethod from typing import ( IO, TYPE_CHECKING, @@ -13,8 +14,10 @@ Mapping, TypeVar, Callable, + Iterator, Optional, Sequence, + AsyncIterator, ) from typing_extensions import Literal, Protocol, TypeAlias, TypedDict, override, runtime_checkable @@ -25,6 +28,7 @@ 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 cd40bcf4f47..8c2fbea09ef 100644 --- a/src/cloudflare/_wrappers.py +++ b/src/cloudflare/_wrappers.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. from typing import Generic, TypeVar - from ._models import GenericModel __all__ = ["ResultWrapper"] diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py index 65299ef13ee..1eed13974f3 100644 --- a/src/cloudflare/resources/__init__.py +++ b/src/cloudflare/resources/__init__.py @@ -1,860 +1,718 @@ # File generated from our OpenAPI spec by Stainless. -from .ai import ( - AI, - AsyncAI, - AIWithRawResponse, - AsyncAIWithRawResponse, - AIWithStreamingResponse, - AsyncAIWithStreamingResponse, -) -from .d1 import ( - D1, - AsyncD1, - D1WithRawResponse, - AsyncD1WithRawResponse, - D1WithStreamingResponse, - AsyncD1WithStreamingResponse, -) -from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, -) -from .dex import ( - DEX, - AsyncDEX, - DEXWithRawResponse, - AsyncDEXWithRawResponse, - DEXWithStreamingResponse, - AsyncDEXWithStreamingResponse, -) -from .dlp import ( - DLP, - AsyncDLP, - DLPWithRawResponse, - AsyncDLPWithRawResponse, - DLPWithStreamingResponse, - AsyncDLPWithStreamingResponse, -) -from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, -) -from .rum import ( - Rum, - AsyncRum, - RumWithRawResponse, - AsyncRumWithRawResponse, - RumWithStreamingResponse, - AsyncRumWithStreamingResponse, -) -from .acms import ( - Acms, - AsyncAcms, - AcmsWithRawResponse, - AsyncAcmsWithRawResponse, - AcmsWithStreamingResponse, - AsyncAcmsWithStreamingResponse, -) -from .argo import ( - Argo, - AsyncArgo, - ArgoWithRawResponse, - AsyncArgoWithRawResponse, - ArgoWithStreamingResponse, - AsyncArgoWithStreamingResponse, -) -from .dlps import ( - DLPs, - AsyncDLPs, - DLPsWithRawResponse, - AsyncDLPsWithRawResponse, - DLPsWithStreamingResponse, - AsyncDLPsWithStreamingResponse, -) -from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, -) -from .mnms import ( - Mnms, - AsyncMnms, - MnmsWithRawResponse, - AsyncMnmsWithRawResponse, - MnmsWithStreamingResponse, - AsyncMnmsWithStreamingResponse, -) -from .ssls import ( - SSLs, - AsyncSSLs, - SSLsWithRawResponse, - AsyncSSLsWithRawResponse, - SSLsWithStreamingResponse, - AsyncSSLsWithStreamingResponse, -) -from .cache import ( - Cache, - AsyncCache, - CacheWithRawResponse, - AsyncCacheWithRawResponse, - CacheWithStreamingResponse, - AsyncCacheWithStreamingResponse, -) -from .calls import ( - Calls, - AsyncCalls, - CallsWithRawResponse, - AsyncCallsWithRawResponse, - CallsWithStreamingResponse, - AsyncCallsWithStreamingResponse, -) -from .intel import ( - Intel, - AsyncIntel, - IntelWithRawResponse, - AsyncIntelWithRawResponse, - IntelWithStreamingResponse, - AsyncIntelWithStreamingResponse, -) -from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, -) -from .pcaps import ( - Pcaps, - AsyncPcaps, - PcapsWithRawResponse, - AsyncPcapsWithRawResponse, - PcapsWithStreamingResponse, - AsyncPcapsWithStreamingResponse, -) -from .radar import ( - Radar, - AsyncRadar, - RadarWithRawResponse, - AsyncRadarWithRawResponse, - RadarWithStreamingResponse, - AsyncRadarWithStreamingResponse, +from .accounts import Accounts, AsyncAccounts +from .accounts import ( + AccountsWithRawResponse, + AsyncAccountsWithRawResponse, + AccountsWithStreamingResponse, + AsyncAccountsWithStreamingResponse, ) -from .roles import ( - Roles, - AsyncRoles, - RolesWithRawResponse, - AsyncRolesWithRawResponse, - RolesWithStreamingResponse, - AsyncRolesWithStreamingResponse, +from .certificates import Certificates, AsyncCertificates +from .certificates import ( + CertificatesWithRawResponse, + AsyncCertificatesWithRawResponse, + CertificatesWithStreamingResponse, + AsyncCertificatesWithStreamingResponse, ) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +from .ips import IPs, AsyncIPs +from .ips import IPsWithRawResponse, AsyncIPsWithRawResponse, IPsWithStreamingResponse, AsyncIPsWithStreamingResponse +from .memberships import Memberships, AsyncMemberships +from .memberships import ( + MembershipsWithRawResponse, + AsyncMembershipsWithRawResponse, + MembershipsWithStreamingResponse, + AsyncMembershipsWithStreamingResponse, ) +from .users import Users, AsyncUsers from .users import ( - Users, - AsyncUsers, UsersWithRawResponse, AsyncUsersWithRawResponse, UsersWithStreamingResponse, AsyncUsersWithStreamingResponse, ) -from .web3s import ( - Web3s, - AsyncWeb3s, - Web3sWithRawResponse, - AsyncWeb3sWithRawResponse, - Web3sWithStreamingResponse, - AsyncWeb3sWithStreamingResponse, -) -from .zaraz import ( - Zaraz, - AsyncZaraz, - ZarazWithRawResponse, - AsyncZarazWithRawResponse, - ZarazWithStreamingResponse, - AsyncZarazWithStreamingResponse, -) +from .zones import Zones, AsyncZones from .zones import ( - Zones, - AsyncZones, ZonesWithRawResponse, AsyncZonesWithRawResponse, ZonesWithStreamingResponse, AsyncZonesWithStreamingResponse, ) +from .ai import AI, AsyncAI +from .ai import AIWithRawResponse, AsyncAIWithRawResponse, AIWithStreamingResponse, AsyncAIWithStreamingResponse +from .load_balancers import LoadBalancers, AsyncLoadBalancers +from .load_balancers import ( + LoadBalancersWithRawResponse, + AsyncLoadBalancersWithRawResponse, + LoadBalancersWithStreamingResponse, + AsyncLoadBalancersWithStreamingResponse, +) +from .access import Access, AsyncAccess from .access import ( - Access, - AsyncAccess, AccessWithRawResponse, AsyncAccessWithRawResponse, AccessWithStreamingResponse, AsyncAccessWithStreamingResponse, ) +from .dns_analytics import DNSAnalytics, AsyncDNSAnalytics +from .dns_analytics import ( + DNSAnalyticsWithRawResponse, + AsyncDNSAnalyticsWithRawResponse, + DNSAnalyticsWithStreamingResponse, + AsyncDNSAnalyticsWithStreamingResponse, +) +from .purge_caches import PurgeCaches, AsyncPurgeCaches +from .purge_caches import ( + PurgeCachesWithRawResponse, + AsyncPurgeCachesWithRawResponse, + PurgeCachesWithStreamingResponse, + AsyncPurgeCachesWithStreamingResponse, +) +from .ssls import SSLs, AsyncSSLs +from .ssls import ( + SSLsWithRawResponse, + AsyncSSLsWithRawResponse, + SSLsWithStreamingResponse, + AsyncSSLsWithStreamingResponse, +) +from .subscriptions import Subscriptions, AsyncSubscriptions +from .subscriptions import ( + SubscriptionsWithRawResponse, + AsyncSubscriptionsWithRawResponse, + SubscriptionsWithStreamingResponse, + AsyncSubscriptionsWithStreamingResponse, +) +from .acms import Acms, AsyncAcms +from .acms import ( + AcmsWithRawResponse, + AsyncAcmsWithRawResponse, + AcmsWithStreamingResponse, + AsyncAcmsWithStreamingResponse, +) +from .analytics import Analytics, AsyncAnalytics +from .analytics import ( + AnalyticsWithRawResponse, + AsyncAnalyticsWithRawResponse, + AnalyticsWithStreamingResponse, + AsyncAnalyticsWithStreamingResponse, +) +from .argo import Argo, AsyncArgo +from .argo import ( + ArgoWithRawResponse, + AsyncArgoWithRawResponse, + ArgoWithStreamingResponse, + AsyncArgoWithStreamingResponse, +) +from .available_plans import AvailablePlans, AsyncAvailablePlans +from .available_plans import ( + AvailablePlansWithRawResponse, + AsyncAvailablePlansWithRawResponse, + AvailablePlansWithStreamingResponse, + AsyncAvailablePlansWithStreamingResponse, +) +from .available_rate_plans import AvailableRatePlans, AsyncAvailableRatePlans +from .available_rate_plans import ( + AvailableRatePlansWithRawResponse, + AsyncAvailableRatePlansWithRawResponse, + AvailableRatePlansWithStreamingResponse, + AsyncAvailableRatePlansWithStreamingResponse, +) +from .caches import Caches, AsyncCaches from .caches import ( - Caches, - AsyncCaches, CachesWithRawResponse, AsyncCachesWithRawResponse, CachesWithStreamingResponse, AsyncCachesWithStreamingResponse, ) -from .emails import ( - Emails, - AsyncEmails, - EmailsWithRawResponse, - AsyncEmailsWithRawResponse, - EmailsWithStreamingResponse, - AsyncEmailsWithStreamingResponse, +from .certificate_authorities import CertificateAuthorities, AsyncCertificateAuthorities +from .certificate_authorities import ( + CertificateAuthoritiesWithRawResponse, + AsyncCertificateAuthoritiesWithRawResponse, + CertificateAuthoritiesWithStreamingResponse, + AsyncCertificateAuthoritiesWithStreamingResponse, ) -from .images import ( - Images, - AsyncImages, - ImagesWithRawResponse, - AsyncImagesWithRawResponse, - ImagesWithStreamingResponse, - AsyncImagesWithStreamingResponse, +from .client_certificates import ClientCertificates, AsyncClientCertificates +from .client_certificates import ( + ClientCertificatesWithRawResponse, + AsyncClientCertificatesWithRawResponse, + ClientCertificatesWithStreamingResponse, + AsyncClientCertificatesWithStreamingResponse, ) -from .intels import ( - Intels, - AsyncIntels, - IntelsWithRawResponse, - AsyncIntelsWithRawResponse, - IntelsWithStreamingResponse, - AsyncIntelsWithStreamingResponse, +from .custom_certificates import CustomCertificates, AsyncCustomCertificates +from .custom_certificates import ( + CustomCertificatesWithRawResponse, + AsyncCustomCertificatesWithRawResponse, + CustomCertificatesWithStreamingResponse, + AsyncCustomCertificatesWithStreamingResponse, ) -from .magics import ( - Magics, - AsyncMagics, - MagicsWithRawResponse, - AsyncMagicsWithRawResponse, - MagicsWithStreamingResponse, - AsyncMagicsWithStreamingResponse, +from .custom_hostnames import CustomHostnames, AsyncCustomHostnames +from .custom_hostnames import ( + CustomHostnamesWithRawResponse, + AsyncCustomHostnamesWithRawResponse, + CustomHostnamesWithStreamingResponse, + AsyncCustomHostnamesWithStreamingResponse, ) -from .stream import ( - Stream, - AsyncStream, - StreamWithRawResponse, - AsyncStreamWithRawResponse, - StreamWithStreamingResponse, - AsyncStreamWithStreamingResponse, +from .custom_ns import CustomNs, AsyncCustomNs +from .custom_ns import ( + CustomNsWithRawResponse, + AsyncCustomNsWithRawResponse, + CustomNsWithStreamingResponse, + AsyncCustomNsWithStreamingResponse, ) -from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, +from .dns_records import DNSRecords, AsyncDNSRecords +from .dns_records import ( + DNSRecordsWithRawResponse, + AsyncDNSRecordsWithRawResponse, + DNSRecordsWithStreamingResponse, + AsyncDNSRecordsWithStreamingResponse, ) +from .dnssecs import DNSSECs, AsyncDNSSECs from .dnssecs import ( - DNSSECs, - AsyncDNSSECs, DNSSECsWithRawResponse, AsyncDNSSECsWithRawResponse, DNSSECsWithStreamingResponse, AsyncDNSSECsWithStreamingResponse, ) +from .emails import Emails, AsyncEmails +from .emails import ( + EmailsWithRawResponse, + AsyncEmailsWithRawResponse, + EmailsWithStreamingResponse, + AsyncEmailsWithStreamingResponse, +) +from .filters import Filters, AsyncFilters from .filters import ( - Filters, - AsyncFilters, FiltersWithRawResponse, AsyncFiltersWithRawResponse, FiltersWithStreamingResponse, AsyncFiltersWithStreamingResponse, ) -from .gateway import ( - Gateway, - AsyncGateway, - GatewayWithRawResponse, - AsyncGatewayWithRawResponse, - GatewayWithStreamingResponse, - AsyncGatewayWithStreamingResponse, +from .firewalls import Firewalls, AsyncFirewalls +from .firewalls import ( + FirewallsWithRawResponse, + AsyncFirewallsWithRawResponse, + FirewallsWithStreamingResponse, + AsyncFirewallsWithStreamingResponse, ) -from .logpush import ( - Logpush, - AsyncLogpush, - LogpushWithRawResponse, - AsyncLogpushWithRawResponse, - LogpushWithStreamingResponse, - AsyncLogpushWithStreamingResponse, +from .healthchecks import Healthchecks, AsyncHealthchecks +from .healthchecks import ( + HealthchecksWithRawResponse, + AsyncHealthchecksWithRawResponse, + HealthchecksWithStreamingResponse, + AsyncHealthchecksWithStreamingResponse, ) -from .storage import ( - Storage, - AsyncStorage, - StorageWithRawResponse, - AsyncStorageWithRawResponse, - StorageWithStreamingResponse, - AsyncStorageWithStreamingResponse, -) -from .teamnet import ( - Teamnet, - AsyncTeamnet, - TeamnetWithRawResponse, - AsyncTeamnetWithRawResponse, - TeamnetWithStreamingResponse, - AsyncTeamnetWithStreamingResponse, -) -from .tunnels import ( - Tunnels, - AsyncTunnels, - TunnelsWithRawResponse, - AsyncTunnelsWithRawResponse, - TunnelsWithStreamingResponse, - AsyncTunnelsWithStreamingResponse, -) -from .workers import ( - Workers, - AsyncWorkers, - WorkersWithRawResponse, - AsyncWorkersWithRawResponse, - WorkersWithStreamingResponse, - AsyncWorkersWithStreamingResponse, +from .keyless_certificates import KeylessCertificates, AsyncKeylessCertificates +from .keyless_certificates import ( + KeylessCertificatesWithRawResponse, + AsyncKeylessCertificatesWithRawResponse, + KeylessCertificatesWithStreamingResponse, + AsyncKeylessCertificatesWithStreamingResponse, ) -from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, +from .logpush import Logpush, AsyncLogpush +from .logpush import ( + LogpushWithRawResponse, + AsyncLogpushWithRawResponse, + LogpushWithStreamingResponse, + AsyncLogpushWithStreamingResponse, ) -from .alerting import ( - Alerting, - AsyncAlerting, - AlertingWithRawResponse, - AsyncAlertingWithRawResponse, - AlertingWithStreamingResponse, - AsyncAlertingWithStreamingResponse, +from .logs import Logs, AsyncLogs +from .logs import ( + LogsWithRawResponse, + AsyncLogsWithRawResponse, + LogsWithStreamingResponse, + AsyncLogsWithStreamingResponse, ) -from .billings import ( - Billings, - AsyncBillings, - BillingsWithRawResponse, - AsyncBillingsWithRawResponse, - BillingsWithStreamingResponse, - AsyncBillingsWithStreamingResponse, +from .origin_tls_client_auth import OriginTLSClientAuth, AsyncOriginTLSClientAuth +from .origin_tls_client_auth import ( + OriginTLSClientAuthWithRawResponse, + AsyncOriginTLSClientAuthWithRawResponse, + OriginTLSClientAuthWithStreamingResponse, + AsyncOriginTLSClientAuthWithStreamingResponse, ) -from .firewall import ( - Firewall, - AsyncFirewall, - FirewallWithRawResponse, - AsyncFirewallWithRawResponse, - FirewallWithStreamingResponse, - AsyncFirewallWithStreamingResponse, +from .pagerules import Pagerules, AsyncPagerules +from .pagerules import ( + PagerulesWithRawResponse, + AsyncPagerulesWithRawResponse, + PagerulesWithStreamingResponse, + AsyncPagerulesWithStreamingResponse, ) -from .gateways import ( - Gateways, - AsyncGateways, - GatewaysWithRawResponse, - AsyncGatewaysWithRawResponse, - GatewaysWithStreamingResponse, - AsyncGatewaysWithStreamingResponse, +from .rate_limits import RateLimits, AsyncRateLimits +from .rate_limits import ( + RateLimitsWithRawResponse, + AsyncRateLimitsWithRawResponse, + RateLimitsWithStreamingResponse, + AsyncRateLimitsWithStreamingResponse, ) -from .rulesets import ( - Rulesets, - AsyncRulesets, - RulesetsWithRawResponse, - AsyncRulesetsWithRawResponse, - RulesetsWithStreamingResponse, - AsyncRulesetsWithStreamingResponse, +from .secondary_dns import SecondaryDNS, AsyncSecondaryDNS +from .secondary_dns import ( + SecondaryDNSWithRawResponse, + AsyncSecondaryDNSWithRawResponse, + SecondaryDNSWithStreamingResponse, + AsyncSecondaryDNSWithStreamingResponse, ) +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from .snippets import ( - Snippets, - AsyncSnippets, - SnippetsWithRawResponse, - AsyncSnippetsWithRawResponse, - SnippetsWithStreamingResponse, - AsyncSnippetsWithStreamingResponse, -) -from .teamnets import ( - Teamnets, - AsyncTeamnets, - TeamnetsWithRawResponse, - AsyncTeamnetsWithRawResponse, - TeamnetsWithStreamingResponse, - AsyncTeamnetsWithStreamingResponse, +from .waiting_rooms import WaitingRooms, AsyncWaitingRooms +from .waiting_rooms import ( + WaitingRoomsWithRawResponse, + AsyncWaitingRoomsWithRawResponse, + WaitingRoomsWithStreamingResponse, + AsyncWaitingRoomsWithStreamingResponse, ) -from .addresses import ( - Addresses, - AsyncAddresses, - AddressesWithRawResponse, - AsyncAddressesWithRawResponse, - AddressesWithStreamingResponse, - AsyncAddressesWithStreamingResponse, +from .web3s import Web3s, AsyncWeb3s +from .web3s import ( + Web3sWithRawResponse, + AsyncWeb3sWithRawResponse, + Web3sWithStreamingResponse, + AsyncWeb3sWithStreamingResponse, ) -from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, +from .workers import Workers, AsyncWorkers +from .workers import ( + WorkersWithRawResponse, + AsyncWorkersWithRawResponse, + WorkersWithStreamingResponse, + AsyncWorkersWithStreamingResponse, ) -from .custom_ns import ( - CustomNs, - AsyncCustomNs, - CustomNsWithRawResponse, - AsyncCustomNsWithRawResponse, - CustomNsWithStreamingResponse, - AsyncCustomNsWithStreamingResponse, +from .activation_checks import ActivationChecks, AsyncActivationChecks +from .activation_checks import ( + ActivationChecksWithRawResponse, + AsyncActivationChecksWithRawResponse, + ActivationChecksWithStreamingResponse, + AsyncActivationChecksWithStreamingResponse, ) -from .firewalls import ( - Firewalls, - AsyncFirewalls, - FirewallsWithRawResponse, - AsyncFirewallsWithRawResponse, - FirewallsWithStreamingResponse, - AsyncFirewallsWithStreamingResponse, +from .managed_headers import ManagedHeaders, AsyncManagedHeaders +from .managed_headers import ( + ManagedHeadersWithRawResponse, + AsyncManagedHeadersWithRawResponse, + ManagedHeadersWithStreamingResponse, + AsyncManagedHeadersWithStreamingResponse, ) -from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, +from .page_shields import PageShields, AsyncPageShields +from .page_shields import ( + PageShieldsWithRawResponse, + AsyncPageShieldsWithRawResponse, + PageShieldsWithStreamingResponse, + AsyncPageShieldsWithStreamingResponse, ) -from .pagerules import ( - Pagerules, - AsyncPagerules, - PagerulesWithRawResponse, - AsyncPagerulesWithRawResponse, - PagerulesWithStreamingResponse, - AsyncPagerulesWithStreamingResponse, +from .rulesets import Rulesets, AsyncRulesets +from .rulesets import ( + RulesetsWithRawResponse, + AsyncRulesetsWithRawResponse, + RulesetsWithStreamingResponse, + AsyncRulesetsWithStreamingResponse, ) -from .registrar import ( - Registrar, - AsyncRegistrar, - RegistrarWithRawResponse, - AsyncRegistrarWithRawResponse, - RegistrarWithStreamingResponse, - AsyncRegistrarWithStreamingResponse, +from .url_normalizations import URLNormalizations, AsyncURLNormalizations +from .url_normalizations import ( + URLNormalizationsWithRawResponse, + AsyncURLNormalizationsWithRawResponse, + URLNormalizationsWithStreamingResponse, + AsyncURLNormalizationsWithStreamingResponse, ) +from .spectrums import Spectrums, AsyncSpectrums from .spectrums import ( - Spectrums, - AsyncSpectrums, SpectrumsWithRawResponse, AsyncSpectrumsWithRawResponse, SpectrumsWithStreamingResponse, AsyncSpectrumsWithStreamingResponse, ) -from .speed_api import ( - SpeedAPI, - AsyncSpeedAPI, - SpeedAPIWithRawResponse, - AsyncSpeedAPIWithRawResponse, - SpeedAPIWithStreamingResponse, - AsyncSpeedAPIWithStreamingResponse, -) -from .vectorize import ( - Vectorize, - AsyncVectorize, - VectorizeWithRawResponse, - AsyncVectorizeWithRawResponse, - VectorizeWithStreamingResponse, - AsyncVectorizeWithStreamingResponse, -) -from .zerotrust import ( - Zerotrust, - AsyncZerotrust, - ZerotrustWithRawResponse, - AsyncZerotrustWithRawResponse, - ZerotrustWithStreamingResponse, - AsyncZerotrustWithStreamingResponse, -) -from .addressing import ( - Addressing, - AsyncAddressing, - AddressingWithRawResponse, - AsyncAddressingWithRawResponse, - AddressingWithStreamingResponse, - AsyncAddressingWithStreamingResponse, +from .addresses import Addresses, AsyncAddresses +from .addresses import ( + AddressesWithRawResponse, + AsyncAddressesWithRawResponse, + AddressesWithStreamingResponse, + AsyncAddressesWithStreamingResponse, ) +from .audit_logs import AuditLogs, AsyncAuditLogs from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, AuditLogsWithRawResponse, AsyncAuditLogsWithRawResponse, AuditLogsWithStreamingResponse, AsyncAuditLogsWithStreamingResponse, ) -from .challenges import ( - Challenges, - AsyncChallenges, - ChallengesWithRawResponse, - AsyncChallengesWithRawResponse, - ChallengesWithStreamingResponse, - AsyncChallengesWithStreamingResponse, -) -from .hyperdrive import ( - Hyperdrive, - AsyncHyperdrive, - HyperdriveWithRawResponse, - AsyncHyperdriveWithRawResponse, - HyperdriveWithStreamingResponse, - AsyncHyperdriveWithStreamingResponse, +from .billings import Billings, AsyncBillings +from .billings import ( + BillingsWithRawResponse, + AsyncBillingsWithRawResponse, + BillingsWithStreamingResponse, + AsyncBillingsWithStreamingResponse, ) -from .access_tags import ( - AccessTags, - AsyncAccessTags, - AccessTagsWithRawResponse, - AsyncAccessTagsWithRawResponse, - AccessTagsWithStreamingResponse, - AsyncAccessTagsWithStreamingResponse, +from .brand_protections import BrandProtections, AsyncBrandProtections +from .brand_protections import ( + BrandProtectionsWithRawResponse, + AsyncBrandProtectionsWithRawResponse, + BrandProtectionsWithStreamingResponse, + AsyncBrandProtectionsWithStreamingResponse, ) +from .cfd_tunnels import CfdTunnels, AsyncCfdTunnels from .cfd_tunnels import ( - CfdTunnels, - AsyncCfdTunnels, CfdTunnelsWithRawResponse, AsyncCfdTunnelsWithRawResponse, CfdTunnelsWithStreamingResponse, AsyncCfdTunnelsWithStreamingResponse, ) -from .dispatchers import ( - Dispatchers, - AsyncDispatchers, - DispatchersWithRawResponse, - AsyncDispatchersWithRawResponse, - DispatchersWithStreamingResponse, - AsyncDispatchersWithStreamingResponse, +from .dlps import DLPs, AsyncDLPs +from .dlps import ( + DLPsWithRawResponse, + AsyncDLPsWithRawResponse, + DLPsWithStreamingResponse, + AsyncDLPsWithStreamingResponse, ) -from .dns_records import ( - DNSRecords, - AsyncDNSRecords, - DNSRecordsWithRawResponse, - AsyncDNSRecordsWithRawResponse, - DNSRecordsWithStreamingResponse, - AsyncDNSRecordsWithStreamingResponse, +from .dns_firewalls import DNSFirewalls, AsyncDNSFirewalls +from .dns_firewalls import ( + DNSFirewallsWithRawResponse, + AsyncDNSFirewallsWithRawResponse, + DNSFirewallsWithStreamingResponse, + AsyncDNSFirewallsWithStreamingResponse, ) -from .memberships import ( - Memberships, - AsyncMemberships, - MembershipsWithRawResponse, - AsyncMembershipsWithRawResponse, - MembershipsWithStreamingResponse, - AsyncMembershipsWithStreamingResponse, +from .images import Images, AsyncImages +from .images import ( + ImagesWithRawResponse, + AsyncImagesWithRawResponse, + ImagesWithStreamingResponse, + AsyncImagesWithStreamingResponse, ) -from .page_shield import ( - PageShield, - AsyncPageShield, - PageShieldWithRawResponse, - AsyncPageShieldWithRawResponse, - PageShieldWithStreamingResponse, - AsyncPageShieldWithStreamingResponse, +from .intels import Intels, AsyncIntels +from .intels import ( + IntelsWithRawResponse, + AsyncIntelsWithRawResponse, + IntelsWithStreamingResponse, + AsyncIntelsWithStreamingResponse, ) -from .rate_limits import ( - RateLimits, - AsyncRateLimits, - RateLimitsWithRawResponse, - AsyncRateLimitsWithRawResponse, - RateLimitsWithStreamingResponse, - AsyncRateLimitsWithStreamingResponse, +from .magics import Magics, AsyncMagics +from .magics import ( + MagicsWithRawResponse, + AsyncMagicsWithRawResponse, + MagicsWithStreamingResponse, + AsyncMagicsWithStreamingResponse, ) -from .url_scanner import ( - URLScanner, - AsyncURLScanner, - URLScannerWithRawResponse, - AsyncURLScannerWithRawResponse, - URLScannerWithStreamingResponse, - AsyncURLScannerWithStreamingResponse, +from .account_members import AccountMembers, AsyncAccountMembers +from .account_members import ( + AccountMembersWithRawResponse, + AsyncAccountMembersWithRawResponse, + AccountMembersWithStreamingResponse, + AsyncAccountMembersWithStreamingResponse, ) -from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, +from .mnms import Mnms, AsyncMnms +from .mnms import ( + MnmsWithRawResponse, + AsyncMnmsWithRawResponse, + MnmsWithStreamingResponse, + AsyncMnmsWithStreamingResponse, ) -from .healthchecks import ( - Healthchecks, - AsyncHealthchecks, - HealthchecksWithRawResponse, - AsyncHealthchecksWithRawResponse, - HealthchecksWithStreamingResponse, - AsyncHealthchecksWithStreamingResponse, +from .mtls_certificates import MtlsCertificates, AsyncMtlsCertificates +from .mtls_certificates import ( + MtlsCertificatesWithRawResponse, + AsyncMtlsCertificatesWithRawResponse, + MtlsCertificatesWithStreamingResponse, + AsyncMtlsCertificatesWithStreamingResponse, ) -from .page_shields import ( - PageShields, - AsyncPageShields, - PageShieldsWithRawResponse, - AsyncPageShieldsWithRawResponse, - PageShieldsWithStreamingResponse, - AsyncPageShieldsWithStreamingResponse, +from .pages import Pages, AsyncPages +from .pages import ( + PagesWithRawResponse, + AsyncPagesWithRawResponse, + PagesWithStreamingResponse, + AsyncPagesWithStreamingResponse, ) -from .purge_caches import ( - PurgeCaches, - AsyncPurgeCaches, - PurgeCachesWithRawResponse, - AsyncPurgeCachesWithRawResponse, - PurgeCachesWithStreamingResponse, - AsyncPurgeCachesWithStreamingResponse, +from .pcaps import Pcaps, AsyncPcaps +from .pcaps import ( + PcapsWithRawResponse, + AsyncPcapsWithRawResponse, + PcapsWithStreamingResponse, + AsyncPcapsWithStreamingResponse, ) -from .dns_analytics import ( - DNSAnalytics, - AsyncDNSAnalytics, - DNSAnalyticsWithRawResponse, - AsyncDNSAnalyticsWithRawResponse, - DNSAnalyticsWithStreamingResponse, - AsyncDNSAnalyticsWithStreamingResponse, +from .registrar import Registrar, AsyncRegistrar +from .registrar import ( + RegistrarWithRawResponse, + AsyncRegistrarWithRawResponse, + RegistrarWithStreamingResponse, + AsyncRegistrarWithStreamingResponse, ) -from .dns_firewalls import ( - DNSFirewalls, - AsyncDNSFirewalls, - DNSFirewallsWithRawResponse, - AsyncDNSFirewallsWithRawResponse, - DNSFirewallsWithStreamingResponse, - AsyncDNSFirewallsWithStreamingResponse, +from .request_tracers import RequestTracers, AsyncRequestTracers +from .request_tracers import ( + RequestTracersWithRawResponse, + AsyncRequestTracersWithRawResponse, + RequestTracersWithStreamingResponse, + AsyncRequestTracersWithStreamingResponse, ) -from .font_settings import ( - FontSettings, - AsyncFontSettings, - FontSettingsWithRawResponse, - AsyncFontSettingsWithRawResponse, - FontSettingsWithStreamingResponse, - AsyncFontSettingsWithStreamingResponse, +from .roles import Roles, AsyncRoles +from .roles import ( + RolesWithRawResponse, + AsyncRolesWithRawResponse, + RolesWithStreamingResponse, + AsyncRolesWithStreamingResponse, ) -from .secondary_dns import ( - SecondaryDNS, - AsyncSecondaryDNS, - SecondaryDNSWithRawResponse, - AsyncSecondaryDNSWithRawResponse, - SecondaryDNSWithStreamingResponse, - AsyncSecondaryDNSWithStreamingResponse, +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) -from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, +from .storage import Storage, AsyncStorage +from .storage import ( + StorageWithRawResponse, + AsyncStorageWithRawResponse, + StorageWithStreamingResponse, + AsyncStorageWithStreamingResponse, +) +from .stream import Stream, AsyncStream +from .stream import ( + StreamWithRawResponse, + AsyncStreamWithRawResponse, + StreamWithStreamingResponse, + AsyncStreamWithStreamingResponse, +) +from .teamnets import Teamnets, AsyncTeamnets +from .teamnets import ( + TeamnetsWithRawResponse, + AsyncTeamnetsWithRawResponse, + TeamnetsWithStreamingResponse, + AsyncTeamnetsWithStreamingResponse, +) +from .tunnels import Tunnels, AsyncTunnels +from .tunnels import ( + TunnelsWithRawResponse, + AsyncTunnelsWithRawResponse, + TunnelsWithStreamingResponse, + AsyncTunnelsWithStreamingResponse, ) -from .waiting_rooms import ( - WaitingRooms, - AsyncWaitingRooms, - WaitingRoomsWithRawResponse, - AsyncWaitingRoomsWithRawResponse, - WaitingRoomsWithStreamingResponse, - AsyncWaitingRoomsWithStreamingResponse, +from .gateways import Gateways, AsyncGateways +from .gateways import ( + GatewaysWithRawResponse, + AsyncGatewaysWithRawResponse, + GatewaysWithStreamingResponse, + AsyncGatewaysWithStreamingResponse, ) -from .cache_reserves import ( - CacheReserves, - AsyncCacheReserves, - CacheReservesWithRawResponse, - AsyncCacheReservesWithRawResponse, - CacheReservesWithStreamingResponse, - AsyncCacheReservesWithStreamingResponse, +from .alerting import Alerting, AsyncAlerting +from .alerting import ( + AlertingWithRawResponse, + AsyncAlertingWithRawResponse, + AlertingWithStreamingResponse, + AsyncAlertingWithStreamingResponse, ) -from .dcv_delegation import ( - DcvDelegation, - AsyncDcvDelegation, - DcvDelegationWithRawResponse, - AsyncDcvDelegationWithRawResponse, - DcvDelegationWithStreamingResponse, - AsyncDcvDelegationWithStreamingResponse, +from .devices import Devices, AsyncDevices +from .devices import ( + DevicesWithRawResponse, + AsyncDevicesWithRawResponse, + DevicesWithStreamingResponse, + AsyncDevicesWithStreamingResponse, ) -from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, - LoadBalancersWithRawResponse, - AsyncLoadBalancersWithRawResponse, - LoadBalancersWithStreamingResponse, - AsyncLoadBalancersWithStreamingResponse, +from .d1 import D1, AsyncD1 +from .d1 import D1WithRawResponse, AsyncD1WithRawResponse, D1WithStreamingResponse, AsyncD1WithStreamingResponse +from .dex import DEX, AsyncDEX +from .dex import DEXWithRawResponse, AsyncDEXWithRawResponse, DEXWithStreamingResponse, AsyncDEXWithStreamingResponse +from .r2 import R2, AsyncR2 +from .r2 import R2WithRawResponse, AsyncR2WithRawResponse, R2WithStreamingResponse, AsyncR2WithStreamingResponse +from .teamnet import Teamnet, AsyncTeamnet +from .teamnet import ( + TeamnetWithRawResponse, + AsyncTeamnetWithRawResponse, + TeamnetWithStreamingResponse, + AsyncTeamnetWithStreamingResponse, ) +from .warp_connector import WarpConnector, AsyncWarpConnector from .warp_connector import ( - WarpConnector, - AsyncWarpConnector, WarpConnectorWithRawResponse, AsyncWarpConnectorWithRawResponse, WarpConnectorWithStreamingResponse, AsyncWarpConnectorWithStreamingResponse, ) +from .dispatchers import Dispatchers, AsyncDispatchers +from .dispatchers import ( + DispatchersWithRawResponse, + AsyncDispatchersWithRawResponse, + DispatchersWithStreamingResponse, + AsyncDispatchersWithStreamingResponse, +) +from .workers_for_platforms import WorkersForPlatforms, AsyncWorkersForPlatforms +from .workers_for_platforms import ( + WorkersForPlatformsWithRawResponse, + AsyncWorkersForPlatformsWithRawResponse, + WorkersForPlatformsWithStreamingResponse, + AsyncWorkersForPlatformsWithStreamingResponse, +) +from .worker_domains import WorkerDomains, AsyncWorkerDomains from .worker_domains import ( - WorkerDomains, - AsyncWorkerDomains, WorkerDomainsWithRawResponse, AsyncWorkerDomainsWithRawResponse, WorkerDomainsWithStreamingResponse, AsyncWorkerDomainsWithStreamingResponse, ) +from .worker_scripts import WorkerScripts, AsyncWorkerScripts from .worker_scripts import ( - WorkerScripts, - AsyncWorkerScripts, WorkerScriptsWithRawResponse, AsyncWorkerScriptsWithRawResponse, WorkerScriptsWithStreamingResponse, AsyncWorkerScriptsWithStreamingResponse, ) -from .account_members import ( - AccountMembers, - AsyncAccountMembers, - AccountMembersWithRawResponse, - AsyncAccountMembersWithRawResponse, - AccountMembersWithStreamingResponse, - AsyncAccountMembersWithStreamingResponse, +from .zerotrust import Zerotrust, AsyncZerotrust +from .zerotrust import ( + ZerotrustWithRawResponse, + AsyncZerotrustWithRawResponse, + ZerotrustWithStreamingResponse, + AsyncZerotrustWithStreamingResponse, ) -from .available_plans import ( - AvailablePlans, - AsyncAvailablePlans, - AvailablePlansWithRawResponse, - AsyncAvailablePlansWithRawResponse, - AvailablePlansWithStreamingResponse, - AsyncAvailablePlansWithStreamingResponse, +from .addressing import Addressing, AsyncAddressing +from .addressing import ( + AddressingWithRawResponse, + AsyncAddressingWithRawResponse, + AddressingWithStreamingResponse, + AsyncAddressingWithStreamingResponse, +) +from .challenges import Challenges, AsyncChallenges +from .challenges import ( + ChallengesWithRawResponse, + AsyncChallengesWithRawResponse, + ChallengesWithStreamingResponse, + AsyncChallengesWithStreamingResponse, +) +from .hyperdrive import Hyperdrive, AsyncHyperdrive +from .hyperdrive import ( + HyperdriveWithRawResponse, + AsyncHyperdriveWithRawResponse, + HyperdriveWithStreamingResponse, + AsyncHyperdriveWithStreamingResponse, +) +from .intel import Intel, AsyncIntel +from .intel import ( + IntelWithRawResponse, + AsyncIntelWithRawResponse, + IntelWithStreamingResponse, + AsyncIntelWithStreamingResponse, +) +from .rum import Rum, AsyncRum +from .rum import RumWithRawResponse, AsyncRumWithRawResponse, RumWithStreamingResponse, AsyncRumWithStreamingResponse +from .vectorize import Vectorize, AsyncVectorize +from .vectorize import ( + VectorizeWithRawResponse, + AsyncVectorizeWithRawResponse, + VectorizeWithStreamingResponse, + AsyncVectorizeWithStreamingResponse, +) +from .url_scanner import URLScanner, AsyncURLScanner +from .url_scanner import ( + URLScannerWithRawResponse, + AsyncURLScannerWithRawResponse, + URLScannerWithStreamingResponse, + AsyncURLScannerWithStreamingResponse, ) +from .radar import Radar, AsyncRadar +from .radar import ( + RadarWithRawResponse, + AsyncRadarWithRawResponse, + RadarWithStreamingResponse, + AsyncRadarWithStreamingResponse, +) +from .bot_managements import BotManagements, AsyncBotManagements from .bot_managements import ( - BotManagements, - AsyncBotManagements, BotManagementsWithRawResponse, AsyncBotManagementsWithRawResponse, BotManagementsWithStreamingResponse, AsyncBotManagementsWithStreamingResponse, ) -from .managed_headers import ( - ManagedHeaders, - AsyncManagedHeaders, - ManagedHeadersWithRawResponse, - AsyncManagedHeadersWithRawResponse, - ManagedHeadersWithStreamingResponse, - AsyncManagedHeadersWithStreamingResponse, -) -from .request_tracers import ( - RequestTracers, - AsyncRequestTracers, - RequestTracersWithRawResponse, - AsyncRequestTracersWithRawResponse, - RequestTracersWithStreamingResponse, - AsyncRequestTracersWithStreamingResponse, +from .cache_reserves import CacheReserves, AsyncCacheReserves +from .cache_reserves import ( + CacheReservesWithRawResponse, + AsyncCacheReservesWithRawResponse, + CacheReservesWithStreamingResponse, + AsyncCacheReservesWithStreamingResponse, ) -from .custom_hostnames import ( - CustomHostnames, - AsyncCustomHostnames, - CustomHostnamesWithRawResponse, - AsyncCustomHostnamesWithRawResponse, - CustomHostnamesWithStreamingResponse, - AsyncCustomHostnamesWithStreamingResponse, +from .origin_post_quantum_encryptions import OriginPostQuantumEncryptions, AsyncOriginPostQuantumEncryptions +from .origin_post_quantum_encryptions import ( + OriginPostQuantumEncryptionsWithRawResponse, + AsyncOriginPostQuantumEncryptionsWithRawResponse, + OriginPostQuantumEncryptionsWithStreamingResponse, + AsyncOriginPostQuantumEncryptionsWithStreamingResponse, ) -from .activation_checks import ( - ActivationChecks, - AsyncActivationChecks, - ActivationChecksWithRawResponse, - AsyncActivationChecksWithRawResponse, - ActivationChecksWithStreamingResponse, - AsyncActivationChecksWithStreamingResponse, +from .cache import Cache, AsyncCache +from .cache import ( + CacheWithRawResponse, + AsyncCacheWithRawResponse, + CacheWithStreamingResponse, + AsyncCacheWithStreamingResponse, ) -from .brand_protections import ( - BrandProtections, - AsyncBrandProtections, - BrandProtectionsWithRawResponse, - AsyncBrandProtectionsWithRawResponse, - BrandProtectionsWithStreamingResponse, - AsyncBrandProtectionsWithStreamingResponse, +from .firewall import Firewall, AsyncFirewall +from .firewall import ( + FirewallWithRawResponse, + AsyncFirewallWithRawResponse, + FirewallWithStreamingResponse, + AsyncFirewallWithStreamingResponse, ) -from .mtls_certificates import ( - MtlsCertificates, - AsyncMtlsCertificates, - MtlsCertificatesWithRawResponse, - AsyncMtlsCertificatesWithRawResponse, - MtlsCertificatesWithStreamingResponse, - AsyncMtlsCertificatesWithStreamingResponse, +from .zaraz import Zaraz, AsyncZaraz +from .zaraz import ( + ZarazWithRawResponse, + AsyncZarazWithRawResponse, + ZarazWithStreamingResponse, + AsyncZarazWithStreamingResponse, ) -from .url_normalizations import ( - URLNormalizations, - AsyncURLNormalizations, - URLNormalizationsWithRawResponse, - AsyncURLNormalizationsWithRawResponse, - URLNormalizationsWithStreamingResponse, - AsyncURLNormalizationsWithStreamingResponse, +from .speed_api import SpeedAPI, AsyncSpeedAPI +from .speed_api import ( + SpeedAPIWithRawResponse, + AsyncSpeedAPIWithRawResponse, + SpeedAPIWithStreamingResponse, + AsyncSpeedAPIWithStreamingResponse, ) -from .client_certificates import ( - ClientCertificates, - AsyncClientCertificates, - ClientCertificatesWithRawResponse, - AsyncClientCertificatesWithRawResponse, - ClientCertificatesWithStreamingResponse, - AsyncClientCertificatesWithStreamingResponse, +from .dcv_delegation import DcvDelegation, AsyncDcvDelegation +from .dcv_delegation import ( + DcvDelegationWithRawResponse, + AsyncDcvDelegationWithRawResponse, + DcvDelegationWithStreamingResponse, + AsyncDcvDelegationWithStreamingResponse, ) -from .custom_certificates import ( - CustomCertificates, - AsyncCustomCertificates, - CustomCertificatesWithRawResponse, - AsyncCustomCertificatesWithRawResponse, - CustomCertificatesWithStreamingResponse, - AsyncCustomCertificatesWithStreamingResponse, +from .hostnames import Hostnames, AsyncHostnames +from .hostnames import ( + HostnamesWithRawResponse, + AsyncHostnamesWithRawResponse, + HostnamesWithStreamingResponse, + AsyncHostnamesWithStreamingResponse, ) -from .available_rate_plans import ( - AvailableRatePlans, - AsyncAvailableRatePlans, - AvailableRatePlansWithRawResponse, - AsyncAvailableRatePlansWithRawResponse, - AvailableRatePlansWithStreamingResponse, - AsyncAvailableRatePlansWithStreamingResponse, +from .page_shield import PageShield, AsyncPageShield +from .page_shield import ( + PageShieldWithRawResponse, + AsyncPageShieldWithRawResponse, + PageShieldWithStreamingResponse, + AsyncPageShieldWithStreamingResponse, ) -from .keyless_certificates import ( - KeylessCertificates, - AsyncKeylessCertificates, - KeylessCertificatesWithRawResponse, - AsyncKeylessCertificatesWithRawResponse, - KeylessCertificatesWithStreamingResponse, - AsyncKeylessCertificatesWithStreamingResponse, +from .font_settings import FontSettings, AsyncFontSettings +from .font_settings import ( + FontSettingsWithRawResponse, + AsyncFontSettingsWithRawResponse, + FontSettingsWithStreamingResponse, + AsyncFontSettingsWithStreamingResponse, ) -from .workers_for_platforms import ( - WorkersForPlatforms, - AsyncWorkersForPlatforms, - WorkersForPlatformsWithRawResponse, - AsyncWorkersForPlatformsWithRawResponse, - WorkersForPlatformsWithStreamingResponse, - AsyncWorkersForPlatformsWithStreamingResponse, +from .snippets import Snippets, AsyncSnippets +from .snippets import ( + SnippetsWithRawResponse, + AsyncSnippetsWithRawResponse, + SnippetsWithStreamingResponse, + AsyncSnippetsWithStreamingResponse, ) -from .origin_tls_client_auth import ( - OriginTLSClientAuth, - AsyncOriginTLSClientAuth, - OriginTLSClientAuthWithRawResponse, - AsyncOriginTLSClientAuthWithRawResponse, - OriginTLSClientAuthWithStreamingResponse, - AsyncOriginTLSClientAuthWithStreamingResponse, +from .dlp import DLP, AsyncDLP +from .dlp import DLPWithRawResponse, AsyncDLPWithRawResponse, DLPWithStreamingResponse, AsyncDLPWithStreamingResponse +from .gateway import Gateway, AsyncGateway +from .gateway import ( + GatewayWithRawResponse, + AsyncGatewayWithRawResponse, + GatewayWithStreamingResponse, + AsyncGatewayWithStreamingResponse, ) -from .certificate_authorities import ( - CertificateAuthorities, - AsyncCertificateAuthorities, - CertificateAuthoritiesWithRawResponse, - AsyncCertificateAuthoritiesWithRawResponse, - CertificateAuthoritiesWithStreamingResponse, - AsyncCertificateAuthoritiesWithStreamingResponse, +from .access_tags import AccessTags, AsyncAccessTags +from .access_tags import ( + AccessTagsWithRawResponse, + AsyncAccessTagsWithRawResponse, + AccessTagsWithStreamingResponse, + AsyncAccessTagsWithStreamingResponse, ) -from .origin_post_quantum_encryptions import ( - OriginPostQuantumEncryptions, - AsyncOriginPostQuantumEncryptions, - OriginPostQuantumEncryptionsWithRawResponse, - AsyncOriginPostQuantumEncryptionsWithRawResponse, - OriginPostQuantumEncryptionsWithStreamingResponse, - AsyncOriginPostQuantumEncryptionsWithStreamingResponse, +from .calls import Calls, AsyncCalls +from .calls import ( + CallsWithRawResponse, + AsyncCallsWithRawResponse, + CallsWithStreamingResponse, + AsyncCallsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/access/__init__.py b/src/cloudflare/resources/access/__init__.py index 9f6e2bd261a..90cf2e321e5 100644 --- a/src/cloudflare/resources/access/__init__.py +++ b/src/cloudflare/resources/access/__init__.py @@ -1,116 +1,102 @@ # File generated from our OpenAPI spec by Stainless. +from .apps import Apps, AsyncApps from .apps import ( - Apps, - AsyncApps, AppsWithRawResponse, AsyncAppsWithRawResponse, AppsWithStreamingResponse, AsyncAppsWithStreamingResponse, ) +from .certificates import Certificates, AsyncCertificates +from .certificates import ( + CertificatesWithRawResponse, + AsyncCertificatesWithRawResponse, + CertificatesWithStreamingResponse, + AsyncCertificatesWithStreamingResponse, +) +from .groups import Groups, AsyncGroups +from .groups import ( + GroupsWithRawResponse, + AsyncGroupsWithRawResponse, + GroupsWithStreamingResponse, + AsyncGroupsWithStreamingResponse, +) +from .identity_providers import IdentityProviders, AsyncIdentityProviders +from .identity_providers import ( + IdentityProvidersWithRawResponse, + AsyncIdentityProvidersWithRawResponse, + IdentityProvidersWithStreamingResponse, + AsyncIdentityProvidersWithStreamingResponse, +) +from .organizations import Organizations, AsyncOrganizations +from .organizations import ( + OrganizationsWithRawResponse, + AsyncOrganizationsWithRawResponse, + OrganizationsWithStreamingResponse, + AsyncOrganizationsWithStreamingResponse, +) +from .service_tokens import ServiceTokens, AsyncServiceTokens +from .service_tokens import ( + ServiceTokensWithRawResponse, + AsyncServiceTokensWithRawResponse, + ServiceTokensWithStreamingResponse, + AsyncServiceTokensWithStreamingResponse, +) +from .bookmarks import Bookmarks, AsyncBookmarks +from .bookmarks import ( + BookmarksWithRawResponse, + AsyncBookmarksWithRawResponse, + BookmarksWithStreamingResponse, + AsyncBookmarksWithStreamingResponse, +) +from .keys import Keys, AsyncKeys from .keys import ( - Keys, - AsyncKeys, KeysWithRawResponse, AsyncKeysWithRawResponse, KeysWithStreamingResponse, AsyncKeysWithStreamingResponse, ) +from .logs import Logs, AsyncLogs from .logs import ( - Logs, - AsyncLogs, LogsWithRawResponse, AsyncLogsWithRawResponse, LogsWithStreamingResponse, AsyncLogsWithStreamingResponse, ) -from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, -) +from .seats import Seats, AsyncSeats from .seats import ( - Seats, - AsyncSeats, SeatsWithRawResponse, AsyncSeatsWithRawResponse, SeatsWithStreamingResponse, AsyncSeatsWithStreamingResponse, ) +from .users import Users, AsyncUsers from .users import ( - Users, - AsyncUsers, UsersWithRawResponse, AsyncUsersWithRawResponse, UsersWithStreamingResponse, AsyncUsersWithStreamingResponse, ) -from .access import ( - Access, - AsyncAccess, - AccessWithRawResponse, - AsyncAccessWithRawResponse, - AccessWithStreamingResponse, - AsyncAccessWithStreamingResponse, -) -from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, -) -from .bookmarks import ( - Bookmarks, - AsyncBookmarks, - BookmarksWithRawResponse, - AsyncBookmarksWithRawResponse, - BookmarksWithStreamingResponse, - AsyncBookmarksWithStreamingResponse, -) -from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, -) +from .custom_pages import CustomPages, AsyncCustomPages from .custom_pages import ( - CustomPages, - AsyncCustomPages, CustomPagesWithRawResponse, AsyncCustomPagesWithRawResponse, CustomPagesWithStreamingResponse, AsyncCustomPagesWithStreamingResponse, ) -from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, -) -from .service_tokens import ( - ServiceTokens, - AsyncServiceTokens, - ServiceTokensWithRawResponse, - AsyncServiceTokensWithRawResponse, - ServiceTokensWithStreamingResponse, - AsyncServiceTokensWithStreamingResponse, +from .tags import Tags, AsyncTags +from .tags import ( + TagsWithRawResponse, + AsyncTagsWithRawResponse, + TagsWithStreamingResponse, + AsyncTagsWithStreamingResponse, ) -from .identity_providers import ( - IdentityProviders, - AsyncIdentityProviders, - IdentityProvidersWithRawResponse, - AsyncIdentityProvidersWithRawResponse, - IdentityProvidersWithStreamingResponse, - AsyncIdentityProvidersWithStreamingResponse, +from .access import Access, AsyncAccess +from .access import ( + AccessWithRawResponse, + AsyncAccessWithRawResponse, + AccessWithStreamingResponse, + AsyncAccessWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/access/access.py b/src/cloudflare/resources/access/access.py index dde00506bfd..9b1153c6564 100644 --- a/src/cloudflare/resources/access/access.py +++ b/src/cloudflare/resources/access/access.py @@ -2,6 +2,49 @@ from __future__ import annotations +from .apps.apps import Apps, AsyncApps + +from ..._compat import cached_property + +from .certificates.certificates import Certificates, AsyncCertificates + +from .groups import Groups, AsyncGroups + +from .identity_providers import IdentityProviders, AsyncIdentityProviders + +from .organizations.organizations import Organizations, AsyncOrganizations + +from .service_tokens.service_tokens import ServiceTokens, AsyncServiceTokens + +from .bookmarks import Bookmarks, AsyncBookmarks + +from .keys.keys import Keys, AsyncKeys + +from .logs.logs import Logs, AsyncLogs + +from .seats import Seats, AsyncSeats + +from .users.users import Users, AsyncUsers + +from .custom_pages import CustomPages, AsyncCustomPages + +from .tags import Tags, AsyncTags + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .apps import ( Apps, AsyncApps, @@ -10,6 +53,54 @@ AppsWithStreamingResponse, AsyncAppsWithStreamingResponse, ) +from .certificates import ( + Certificates, + AsyncCertificates, + CertificatesWithRawResponse, + AsyncCertificatesWithRawResponse, + CertificatesWithStreamingResponse, + AsyncCertificatesWithStreamingResponse, +) +from .groups import ( + Groups, + AsyncGroups, + GroupsWithRawResponse, + AsyncGroupsWithRawResponse, + GroupsWithStreamingResponse, + AsyncGroupsWithStreamingResponse, +) +from .identity_providers import ( + IdentityProviders, + AsyncIdentityProviders, + IdentityProvidersWithRawResponse, + AsyncIdentityProvidersWithRawResponse, + IdentityProvidersWithStreamingResponse, + AsyncIdentityProvidersWithStreamingResponse, +) +from .organizations import ( + Organizations, + AsyncOrganizations, + OrganizationsWithRawResponse, + AsyncOrganizationsWithRawResponse, + OrganizationsWithStreamingResponse, + AsyncOrganizationsWithStreamingResponse, +) +from .service_tokens import ( + ServiceTokens, + AsyncServiceTokens, + ServiceTokensWithRawResponse, + AsyncServiceTokensWithRawResponse, + ServiceTokensWithStreamingResponse, + AsyncServiceTokensWithStreamingResponse, +) +from .bookmarks import ( + Bookmarks, + AsyncBookmarks, + BookmarksWithRawResponse, + AsyncBookmarksWithRawResponse, + BookmarksWithStreamingResponse, + AsyncBookmarksWithStreamingResponse, +) from .keys import ( Keys, AsyncKeys, @@ -26,14 +117,6 @@ LogsWithStreamingResponse, AsyncLogsWithStreamingResponse, ) -from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, -) from .seats import ( Seats, AsyncSeats, @@ -50,36 +133,6 @@ UsersWithStreamingResponse, AsyncUsersWithStreamingResponse, ) -from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, -) -from ..._compat import cached_property -from .apps.apps import Apps, AsyncApps -from .bookmarks import ( - Bookmarks, - AsyncBookmarks, - BookmarksWithRawResponse, - AsyncBookmarksWithRawResponse, - BookmarksWithStreamingResponse, - AsyncBookmarksWithStreamingResponse, -) -from .keys.keys import Keys, AsyncKeys -from .logs.logs import Logs, AsyncLogs -from ..._resource import SyncAPIResource, AsyncAPIResource -from .users.users import Users, AsyncUsers -from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, -) from .custom_pages import ( CustomPages, AsyncCustomPages, @@ -88,33 +141,15 @@ CustomPagesWithStreamingResponse, AsyncCustomPagesWithStreamingResponse, ) -from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, -) -from .service_tokens import ( - ServiceTokens, - AsyncServiceTokens, - ServiceTokensWithRawResponse, - AsyncServiceTokensWithRawResponse, - ServiceTokensWithStreamingResponse, - AsyncServiceTokensWithStreamingResponse, -) -from .identity_providers import ( - IdentityProviders, - AsyncIdentityProviders, - IdentityProvidersWithRawResponse, - AsyncIdentityProvidersWithRawResponse, - IdentityProvidersWithStreamingResponse, - AsyncIdentityProvidersWithStreamingResponse, +from .tags import ( + Tags, + AsyncTags, + TagsWithRawResponse, + AsyncTagsWithRawResponse, + TagsWithStreamingResponse, + AsyncTagsWithStreamingResponse, ) -from .certificates.certificates import Certificates, AsyncCertificates -from .organizations.organizations import Organizations, AsyncOrganizations -from .service_tokens.service_tokens import ServiceTokens, AsyncServiceTokens +from ..._wrappers import ResultWrapper __all__ = ["Access", "AsyncAccess"] diff --git a/src/cloudflare/resources/access/apps/__init__.py b/src/cloudflare/resources/access/apps/__init__.py index 52627ef3a36..4ae2395081e 100644 --- a/src/cloudflare/resources/access/apps/__init__.py +++ b/src/cloudflare/resources/access/apps/__init__.py @@ -1,45 +1,35 @@ # File generated from our OpenAPI spec by Stainless. -from .cas import ( - Cas, - AsyncCas, - CasWithRawResponse, - AsyncCasWithRawResponse, - CasWithStreamingResponse, - AsyncCasWithStreamingResponse, -) -from .apps import ( - Apps, - AsyncApps, - AppsWithRawResponse, - AsyncAppsWithRawResponse, - AppsWithStreamingResponse, - AsyncAppsWithStreamingResponse, -) -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, -) +from .cas import Cas, AsyncCas +from .cas import CasWithRawResponse, AsyncCasWithRawResponse, CasWithStreamingResponse, AsyncCasWithStreamingResponse +from .revoke_tokens import RevokeTokens, AsyncRevokeTokens from .revoke_tokens import ( - RevokeTokens, - AsyncRevokeTokens, RevokeTokensWithRawResponse, AsyncRevokeTokensWithRawResponse, RevokeTokensWithStreamingResponse, AsyncRevokeTokensWithStreamingResponse, ) +from .user_policy_checks import UserPolicyChecks, AsyncUserPolicyChecks from .user_policy_checks import ( - UserPolicyChecks, - AsyncUserPolicyChecks, UserPolicyChecksWithRawResponse, AsyncUserPolicyChecksWithRawResponse, UserPolicyChecksWithStreamingResponse, AsyncUserPolicyChecksWithStreamingResponse, ) +from .policies import Policies, AsyncPolicies +from .policies import ( + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, +) +from .apps import Apps, AsyncApps +from .apps import ( + AppsWithRawResponse, + AsyncAppsWithRawResponse, + AppsWithStreamingResponse, + AsyncAppsWithStreamingResponse, +) __all__ = [ "Cas", diff --git a/src/cloudflare/resources/access/apps/apps.py b/src/cloudflare/resources/access/apps/apps.py index cf78cae7e28..b435e855ceb 100644 --- a/src/cloudflare/resources/access/apps/apps.py +++ b/src/cloudflare/resources/access/apps/apps.py @@ -2,11 +2,56 @@ from __future__ import annotations -from typing import Any, List, Type, Union, Optional, cast, overload +import httpx + +from .cas import Cas, AsyncCas + +from ...._compat import cached_property + +from .revoke_tokens import RevokeTokens, AsyncRevokeTokens + +from .user_policy_checks import UserPolicyChecks, AsyncUserPolicyChecks + +from .policies import Policies, AsyncPolicies + +from typing import List, Union, Type, Optional + +from ....types.access import ( + AppCreateResponse, + AppUpdateResponse, + AppListResponse, + AppDeleteResponse, + AppGetResponse, + app_create_params, + app_update_params, +) + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.access import app_create_params +from ....types.access import app_update_params from .cas import ( Cas, AsyncCas, @@ -15,25 +60,6 @@ CasWithStreamingResponse, AsyncCasWithStreamingResponse, ) -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import required_args, 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 .revoke_tokens import ( RevokeTokens, AsyncRevokeTokens, @@ -42,18 +68,6 @@ RevokeTokensWithStreamingResponse, AsyncRevokeTokensWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.access import ( - AppGetResponse, - AppListResponse, - AppCreateResponse, - AppDeleteResponse, - AppUpdateResponse, - app_create_params, - app_update_params, -) from .user_policy_checks import ( UserPolicyChecks, AsyncUserPolicyChecks, @@ -62,6 +76,31 @@ UserPolicyChecksWithStreamingResponse, AsyncUserPolicyChecksWithStreamingResponse, ) +from .policies import ( + Policies, + AsyncPolicies, + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Apps", "AsyncApps"] diff --git a/src/cloudflare/resources/access/apps/cas.py b/src/cloudflare/resources/access/apps/cas.py index 5cf116b9449..0a53ffd5fe3 100644 --- a/src/cloudflare/resources/access/apps/cas.py +++ b/src/cloudflare/resources/access/apps/cas.py @@ -2,24 +2,49 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.apps import CaCreateResponse, CaListResponse, CaDeleteResponse, CaGetResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.apps import CaGetResponse, CaListResponse, CaCreateResponse, CaDeleteResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Cas", "AsyncCas"] diff --git a/src/cloudflare/resources/access/apps/policies.py b/src/cloudflare/resources/access/apps/policies.py index 2040f964828..b2323dd7291 100644 --- a/src/cloudflare/resources/access/apps/policies.py +++ b/src/cloudflare/resources/access/apps/policies.py @@ -2,37 +2,65 @@ 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 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.access.apps import ( - PolicyGetResponse, PolicyCreateResponse, - PolicyDeleteResponse, PolicyUpdateResponse, - PolicyAccessPoliciesListAccessPoliciesResponse, + PolicyDeleteResponse, PolicyAccessPoliciesCreateAnAccessPolicyResponse, + PolicyAccessPoliciesListAccessPoliciesResponse, + PolicyGetResponse, policy_create_params, policy_update_params, policy_access_policies_create_an_access_policy_params, ) +from typing import Type, Iterable, Optional + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.access.apps import policy_create_params +from ....types.access.apps import policy_update_params +from ....types.access.apps import policy_access_policies_create_an_access_policy_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Policies", "AsyncPolicies"] diff --git a/src/cloudflare/resources/access/apps/revoke_tokens.py b/src/cloudflare/resources/access/apps/revoke_tokens.py index b98133f8638..bcf3f04e94e 100644 --- a/src/cloudflare/resources/access/apps/revoke_tokens.py +++ b/src/cloudflare/resources/access/apps/revoke_tokens.py @@ -2,23 +2,37 @@ from __future__ import annotations -from typing import Type, Union, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type, Optional, Union + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["RevokeTokens", "AsyncRevokeTokens"] diff --git a/src/cloudflare/resources/access/apps/user_policy_checks.py b/src/cloudflare/resources/access/apps/user_policy_checks.py index 1bd13629207..7dd93e4fc49 100644 --- a/src/cloudflare/resources/access/apps/user_policy_checks.py +++ b/src/cloudflare/resources/access/apps/user_policy_checks.py @@ -2,24 +2,39 @@ from __future__ import annotations -from typing import Type, Union, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.apps import UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse + +from typing import Type, Union + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.apps import UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["UserPolicyChecks", "AsyncUserPolicyChecks"] diff --git a/src/cloudflare/resources/access/bookmarks.py b/src/cloudflare/resources/access/bookmarks.py index a59c65489c4..d7d9bfca1d6 100644 --- a/src/cloudflare/resources/access/bookmarks.py +++ b/src/cloudflare/resources/access/bookmarks.py @@ -2,29 +2,50 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.access import ( + BookmarkUpdateResponse, + BookmarkDeleteResponse, + BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, + BookmarkGetResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import ( - BookmarkGetResponse, - BookmarkDeleteResponse, - BookmarkUpdateResponse, - BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, -) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Bookmarks", "AsyncBookmarks"] diff --git a/src/cloudflare/resources/access/certificates/__init__.py b/src/cloudflare/resources/access/certificates/__init__.py index 9a4bdc82a3c..7850ef78c7c 100644 --- a/src/cloudflare/resources/access/certificates/__init__.py +++ b/src/cloudflare/resources/access/certificates/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .certificates import Certificates, AsyncCertificates from .certificates import ( - Certificates, - AsyncCertificates, CertificatesWithRawResponse, AsyncCertificatesWithRawResponse, CertificatesWithStreamingResponse, diff --git a/src/cloudflare/resources/access/certificates/certificates.py b/src/cloudflare/resources/access/certificates/certificates.py index 710687e6e68..f802ac634a2 100644 --- a/src/cloudflare/resources/access/certificates/certificates.py +++ b/src/cloudflare/resources/access/certificates/certificates.py @@ -2,41 +2,65 @@ from __future__ import annotations -from typing import List, Type, Optional, cast - import httpx -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .settings import Settings, AsyncSettings + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access import ( + CertificateUpdateResponse, + CertificateDeleteResponse, + CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, + CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, + CertificateGetResponse, +) + +from typing import Type, List, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access import ( - CertificateGetResponse, - CertificateDeleteResponse, - CertificateUpdateResponse, - CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, - CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, - certificate_update_params, - certificate_access_m_tls_authentication_add_an_m_tls_certificate_params, +from ....types import shared_params +from ....types.access import certificate_update_params +from ....types.access import certificate_access_m_tls_authentication_add_an_m_tls_certificate_params +from .settings import ( + Settings, + AsyncSettings, + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Certificates", "AsyncCertificates"] diff --git a/src/cloudflare/resources/access/certificates/settings.py b/src/cloudflare/resources/access/certificates/settings.py index e2963383af9..876e69b0c2b 100644 --- a/src/cloudflare/resources/access/certificates/settings.py +++ b/src/cloudflare/resources/access/certificates/settings.py @@ -2,25 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.certificates import SettingUpdateResponse, SettingListResponse, setting_update_params + +from typing import Type, Optional, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.certificates import SettingListResponse, SettingUpdateResponse, setting_update_params +from ....types import shared_params +from ....types.access.certificates import setting_update_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/access/custom_pages.py b/src/cloudflare/resources/access/custom_pages.py index 903ab16afbe..ed4793cd217 100644 --- a/src/cloudflare/resources/access/custom_pages.py +++ b/src/cloudflare/resources/access/custom_pages.py @@ -2,34 +2,57 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.access import ( + CustomPageCreateResponse, + CustomPageUpdateResponse, + CustomPageListResponse, + CustomPageDeleteResponse, + CustomPageGetResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import ( - CustomPageGetResponse, - CustomPageListResponse, - CustomPageCreateResponse, - CustomPageDeleteResponse, - CustomPageUpdateResponse, - custom_page_create_params, - custom_page_update_params, -) +from ...types import shared_params +from ...types.access import custom_page_create_params +from ...types.access import custom_page_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["CustomPages", "AsyncCustomPages"] diff --git a/src/cloudflare/resources/access/groups.py b/src/cloudflare/resources/access/groups.py index b990491e4fa..d5616fa3d6b 100644 --- a/src/cloudflare/resources/access/groups.py +++ b/src/cloudflare/resources/access/groups.py @@ -2,33 +2,57 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.access import ( + GroupUpdateResponse, + GroupDeleteResponse, + GroupAccessGroupsCreateAnAccessGroupResponse, + GroupAccessGroupsListAccessGroupsResponse, + GroupGetResponse, + group_update_params, + group_access_groups_create_an_access_group_params, +) + +from typing import Type, Iterable, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import ( - GroupGetResponse, - GroupDeleteResponse, - GroupUpdateResponse, - GroupAccessGroupsListAccessGroupsResponse, - GroupAccessGroupsCreateAnAccessGroupResponse, - group_update_params, - group_access_groups_create_an_access_group_params, -) +from ...types import shared_params +from ...types.access import group_update_params +from ...types.access import group_access_groups_create_an_access_group_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Groups", "AsyncGroups"] diff --git a/src/cloudflare/resources/access/identity_providers.py b/src/cloudflare/resources/access/identity_providers.py index 0d69889b8bf..e0d4005e8e8 100644 --- a/src/cloudflare/resources/access/identity_providers.py +++ b/src/cloudflare/resources/access/identity_providers.py @@ -2,34 +2,65 @@ from __future__ import annotations -from typing import Any, 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from typing_extensions import Literal + +from ...types.access import ( + IdentityProviderUpdateResponse, + IdentityProviderDeleteResponse, + IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, + IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, + IdentityProviderGetResponse, + identity_provider_update_params, + identity_provider_access_identity_providers_add_an_access_identity_provider_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import ( - IdentityProviderGetResponse, - IdentityProviderDeleteResponse, - IdentityProviderUpdateResponse, - IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, - IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, - identity_provider_update_params, - identity_provider_access_identity_providers_add_an_access_identity_provider_params, -) +from ...types import shared_params +from ...types.access import identity_provider_update_params +from ...types.access import identity_provider_access_identity_providers_add_an_access_identity_provider_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["IdentityProviders", "AsyncIdentityProviders"] diff --git a/src/cloudflare/resources/access/keys/__init__.py b/src/cloudflare/resources/access/keys/__init__.py index 3a47357c996..4aded12699b 100644 --- a/src/cloudflare/resources/access/keys/__init__.py +++ b/src/cloudflare/resources/access/keys/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, -) +from .rotates import Rotates, AsyncRotates from .rotates import ( - Rotates, - AsyncRotates, RotatesWithRawResponse, AsyncRotatesWithRawResponse, RotatesWithStreamingResponse, AsyncRotatesWithStreamingResponse, ) +from .keys import Keys, AsyncKeys +from .keys import ( + KeysWithRawResponse, + AsyncKeysWithRawResponse, + KeysWithStreamingResponse, + AsyncKeysWithStreamingResponse, +) __all__ = [ "Rotates", diff --git a/src/cloudflare/resources/access/keys/keys.py b/src/cloudflare/resources/access/keys/keys.py index 3db475b60be..12fc3686b12 100644 --- a/src/cloudflare/resources/access/keys/keys.py +++ b/src/cloudflare/resources/access/keys/keys.py @@ -2,37 +2,57 @@ from __future__ import annotations -from typing import Any, cast - import httpx -from .rotates import ( - Rotates, - AsyncRotates, - RotatesWithRawResponse, - AsyncRotatesWithRawResponse, - RotatesWithStreamingResponse, - AsyncRotatesWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .rotates import Rotates, AsyncRotates + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access import ( + KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, + KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, +) + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access import ( - KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, - KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, - key_access_key_configuration_update_the_access_key_configuration_params, +from ....types import shared_params +from ....types.access import key_access_key_configuration_update_the_access_key_configuration_params +from .rotates import ( + Rotates, + AsyncRotates, + RotatesWithRawResponse, + AsyncRotatesWithRawResponse, + RotatesWithStreamingResponse, + AsyncRotatesWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Keys", "AsyncKeys"] diff --git a/src/cloudflare/resources/access/keys/rotates.py b/src/cloudflare/resources/access/keys/rotates.py index 3813b847c59..5a2535038db 100644 --- a/src/cloudflare/resources/access/keys/rotates.py +++ b/src/cloudflare/resources/access/keys/rotates.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.keys import RotateAccessKeyConfigurationRotateAccessKeysResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.keys import RotateAccessKeyConfigurationRotateAccessKeysResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Rotates", "AsyncRotates"] diff --git a/src/cloudflare/resources/access/logs/__init__.py b/src/cloudflare/resources/access/logs/__init__.py index 0a9810baf48..ffde1adafea 100644 --- a/src/cloudflare/resources/access/logs/__init__.py +++ b/src/cloudflare/resources/access/logs/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, -) +from .access_requests import AccessRequests, AsyncAccessRequests from .access_requests import ( - AccessRequests, - AsyncAccessRequests, AccessRequestsWithRawResponse, AsyncAccessRequestsWithRawResponse, AccessRequestsWithStreamingResponse, AsyncAccessRequestsWithStreamingResponse, ) +from .logs import Logs, AsyncLogs +from .logs import ( + LogsWithRawResponse, + AsyncLogsWithRawResponse, + LogsWithStreamingResponse, + AsyncLogsWithStreamingResponse, +) __all__ = [ "AccessRequests", diff --git a/src/cloudflare/resources/access/logs/access_requests.py b/src/cloudflare/resources/access/logs/access_requests.py index 2b2fae8cf40..dc43a30791d 100644 --- a/src/cloudflare/resources/access/logs/access_requests.py +++ b/src/cloudflare/resources/access/logs/access_requests.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.logs import AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.logs import AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["AccessRequests", "AsyncAccessRequests"] diff --git a/src/cloudflare/resources/access/logs/logs.py b/src/cloudflare/resources/access/logs/logs.py index da96a195207..7f03f25b262 100644 --- a/src/cloudflare/resources/access/logs/logs.py +++ b/src/cloudflare/resources/access/logs/logs.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .access_requests import AccessRequests, AsyncAccessRequests + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .access_requests import ( AccessRequests, AsyncAccessRequests, @@ -12,6 +29,7 @@ AccessRequestsWithStreamingResponse, AsyncAccessRequestsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper __all__ = ["Logs", "AsyncLogs"] diff --git a/src/cloudflare/resources/access/organizations/__init__.py b/src/cloudflare/resources/access/organizations/__init__.py index 6a9036a4ffe..096fd52e3dc 100644 --- a/src/cloudflare/resources/access/organizations/__init__.py +++ b/src/cloudflare/resources/access/organizations/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .revoke_users import RevokeUsers, AsyncRevokeUsers from .revoke_users import ( - RevokeUsers, - AsyncRevokeUsers, RevokeUsersWithRawResponse, AsyncRevokeUsersWithRawResponse, RevokeUsersWithStreamingResponse, AsyncRevokeUsersWithStreamingResponse, ) +from .organizations import Organizations, AsyncOrganizations from .organizations import ( - Organizations, - AsyncOrganizations, OrganizationsWithRawResponse, AsyncOrganizationsWithRawResponse, OrganizationsWithStreamingResponse, diff --git a/src/cloudflare/resources/access/organizations/organizations.py b/src/cloudflare/resources/access/organizations/organizations.py index e7a4b666896..952dafc6c2c 100644 --- a/src/cloudflare/resources/access/organizations/organizations.py +++ b/src/cloudflare/resources/access/organizations/organizations.py @@ -2,21 +2,46 @@ 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 +from .revoke_users import RevokeUsers, AsyncRevokeUsers + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access import ( + OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, + OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, + OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, + organization_zero_trust_organization_create_your_zero_trust_organization_params, + organization_zero_trust_organization_update_your_zero_trust_organization_params, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.access import organization_zero_trust_organization_create_your_zero_trust_organization_params +from ....types.access import organization_zero_trust_organization_update_your_zero_trust_organization_params from .revoke_users import ( RevokeUsers, AsyncRevokeUsers, @@ -25,16 +50,13 @@ RevokeUsersWithStreamingResponse, AsyncRevokeUsersWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.access import ( - OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, - organization_zero_trust_organization_create_your_zero_trust_organization_params, - organization_zero_trust_organization_update_your_zero_trust_organization_params, -) +from ...._wrappers import ResultWrapper +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__ = ["Organizations", "AsyncOrganizations"] diff --git a/src/cloudflare/resources/access/organizations/revoke_users.py b/src/cloudflare/resources/access/organizations/revoke_users.py index 3448c1cada4..d1c5e6a7fff 100644 --- a/src/cloudflare/resources/access/organizations/revoke_users.py +++ b/src/cloudflare/resources/access/organizations/revoke_users.py @@ -2,28 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.organizations import RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.access.organizations import ( - RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse, revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["RevokeUsers", "AsyncRevokeUsers"] diff --git a/src/cloudflare/resources/access/seats.py b/src/cloudflare/resources/access/seats.py index 89a7be54999..30f0e3859cc 100644 --- a/src/cloudflare/resources/access/seats.py +++ b/src/cloudflare/resources/access/seats.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.access import SeatZeroTrustSeatsUpdateAUserSeatResponse, seat_zero_trust_seats_update_a_user_seat_params + +from typing import Type, Optional, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import SeatZeroTrustSeatsUpdateAUserSeatResponse, seat_zero_trust_seats_update_a_user_seat_params +from ...types import shared_params +from ...types.access import seat_zero_trust_seats_update_a_user_seat_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Seats", "AsyncSeats"] diff --git a/src/cloudflare/resources/access/service_tokens/__init__.py b/src/cloudflare/resources/access/service_tokens/__init__.py index bd1f0e6da65..0905aa5aab5 100644 --- a/src/cloudflare/resources/access/service_tokens/__init__.py +++ b/src/cloudflare/resources/access/service_tokens/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .rotates import ( - Rotates, - AsyncRotates, - RotatesWithRawResponse, - AsyncRotatesWithRawResponse, - RotatesWithStreamingResponse, - AsyncRotatesWithStreamingResponse, -) +from .refreshes import Refreshes, AsyncRefreshes from .refreshes import ( - Refreshes, - AsyncRefreshes, RefreshesWithRawResponse, AsyncRefreshesWithRawResponse, RefreshesWithStreamingResponse, AsyncRefreshesWithStreamingResponse, ) +from .rotates import Rotates, AsyncRotates +from .rotates import ( + RotatesWithRawResponse, + AsyncRotatesWithRawResponse, + RotatesWithStreamingResponse, + AsyncRotatesWithStreamingResponse, +) +from .service_tokens import ServiceTokens, AsyncServiceTokens from .service_tokens import ( - ServiceTokens, - AsyncServiceTokens, ServiceTokensWithRawResponse, AsyncServiceTokensWithRawResponse, ServiceTokensWithStreamingResponse, diff --git a/src/cloudflare/resources/access/service_tokens/refreshes.py b/src/cloudflare/resources/access/service_tokens/refreshes.py index e966471d673..84091ab6ffb 100644 --- a/src/cloudflare/resources/access/service_tokens/refreshes.py +++ b/src/cloudflare/resources/access/service_tokens/refreshes.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.service_tokens import RefreshAccessServiceTokensRefreshAServiceTokenResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.service_tokens import RefreshAccessServiceTokensRefreshAServiceTokenResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Refreshes", "AsyncRefreshes"] diff --git a/src/cloudflare/resources/access/service_tokens/rotates.py b/src/cloudflare/resources/access/service_tokens/rotates.py index 8dfee6cd56d..062b3fca73c 100644 --- a/src/cloudflare/resources/access/service_tokens/rotates.py +++ b/src/cloudflare/resources/access/service_tokens/rotates.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.service_tokens import RotateAccessServiceTokensRotateAServiceTokenResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.service_tokens import RotateAccessServiceTokensRotateAServiceTokenResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Rotates", "AsyncRotates"] diff --git a/src/cloudflare/resources/access/service_tokens/service_tokens.py b/src/cloudflare/resources/access/service_tokens/service_tokens.py index 9572bf7da95..ce616b63e14 100644 --- a/src/cloudflare/resources/access/service_tokens/service_tokens.py +++ b/src/cloudflare/resources/access/service_tokens/service_tokens.py @@ -2,20 +2,47 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from .rotates import ( - Rotates, - AsyncRotates, - RotatesWithRawResponse, - AsyncRotatesWithRawResponse, - RotatesWithStreamingResponse, - AsyncRotatesWithStreamingResponse, +from .refreshes import Refreshes, AsyncRefreshes + +from ...._compat import cached_property + +from .rotates import Rotates, AsyncRotates + +from ....types.access import ( + ServiceTokenUpdateResponse, + ServiceTokenDeleteResponse, + ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, + ServiceTokenAccessServiceTokensListServiceTokensResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.access import service_token_update_params +from ....types.access import service_token_access_service_tokens_create_a_service_token_params from .refreshes import ( Refreshes, AsyncRefreshes, @@ -24,26 +51,23 @@ RefreshesWithStreamingResponse, AsyncRefreshesWithStreamingResponse, ) -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 .rotates import ( + Rotates, + AsyncRotates, + RotatesWithRawResponse, + AsyncRotatesWithRawResponse, + RotatesWithStreamingResponse, + AsyncRotatesWithStreamingResponse, ) from ...._wrappers import ResultWrapper -from ...._base_client import ( - make_request_options, -) -from ....types.access import ( - ServiceTokenDeleteResponse, - ServiceTokenUpdateResponse, - ServiceTokenAccessServiceTokensListServiceTokensResponse, - ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, - service_token_update_params, - service_token_access_service_tokens_create_a_service_token_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 __all__ = ["ServiceTokens", "AsyncServiceTokens"] diff --git a/src/cloudflare/resources/access/tags.py b/src/cloudflare/resources/access/tags.py index c82209daa5d..0f068c6ec71 100644 --- a/src/cloudflare/resources/access/tags.py +++ b/src/cloudflare/resources/access/tags.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.access import TagListResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.access import TagListResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Tags", "AsyncTags"] diff --git a/src/cloudflare/resources/access/users/__init__.py b/src/cloudflare/resources/access/users/__init__.py index 93c0c9742bd..9f414e056a8 100644 --- a/src/cloudflare/resources/access/users/__init__.py +++ b/src/cloudflare/resources/access/users/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .users import ( - Users, - AsyncUsers, - UsersWithRawResponse, - AsyncUsersWithRawResponse, - UsersWithStreamingResponse, - AsyncUsersWithStreamingResponse, -) -from .failed_logins import ( - FailedLogins, - AsyncFailedLogins, - FailedLoginsWithRawResponse, - AsyncFailedLoginsWithRawResponse, - FailedLoginsWithStreamingResponse, - AsyncFailedLoginsWithStreamingResponse, -) +from .active_sessions import ActiveSessions, AsyncActiveSessions from .active_sessions import ( - ActiveSessions, - AsyncActiveSessions, ActiveSessionsWithRawResponse, AsyncActiveSessionsWithRawResponse, ActiveSessionsWithStreamingResponse, AsyncActiveSessionsWithStreamingResponse, ) +from .last_seen_identity import LastSeenIdentity, AsyncLastSeenIdentity from .last_seen_identity import ( - LastSeenIdentity, - AsyncLastSeenIdentity, LastSeenIdentityWithRawResponse, AsyncLastSeenIdentityWithRawResponse, LastSeenIdentityWithStreamingResponse, AsyncLastSeenIdentityWithStreamingResponse, ) +from .failed_logins import FailedLogins, AsyncFailedLogins +from .failed_logins import ( + FailedLoginsWithRawResponse, + AsyncFailedLoginsWithRawResponse, + FailedLoginsWithStreamingResponse, + AsyncFailedLoginsWithStreamingResponse, +) +from .users import Users, AsyncUsers +from .users import ( + UsersWithRawResponse, + AsyncUsersWithRawResponse, + UsersWithStreamingResponse, + AsyncUsersWithStreamingResponse, +) __all__ = [ "ActiveSessions", diff --git a/src/cloudflare/resources/access/users/active_sessions.py b/src/cloudflare/resources/access/users/active_sessions.py index 3336dbeeb9b..12788a5ac81 100644 --- a/src/cloudflare/resources/access/users/active_sessions.py +++ b/src/cloudflare/resources/access/users/active_sessions.py @@ -2,24 +2,41 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.users import ActiveSessionListResponse, ActiveSessionGetResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.users import ActiveSessionGetResponse, ActiveSessionListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ActiveSessions", "AsyncActiveSessions"] diff --git a/src/cloudflare/resources/access/users/failed_logins.py b/src/cloudflare/resources/access/users/failed_logins.py index fd61d88b66f..e173d21a98d 100644 --- a/src/cloudflare/resources/access/users/failed_logins.py +++ b/src/cloudflare/resources/access/users/failed_logins.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.users import FailedLoginZeroTrustUsersGetFailedLoginsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.users import FailedLoginZeroTrustUsersGetFailedLoginsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["FailedLogins", "AsyncFailedLogins"] diff --git a/src/cloudflare/resources/access/users/last_seen_identity.py b/src/cloudflare/resources/access/users/last_seen_identity.py index 36746397c12..e445bea079d 100644 --- a/src/cloudflare/resources/access/users/last_seen_identity.py +++ b/src/cloudflare/resources/access/users/last_seen_identity.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.access.users import LastSeenIdentityGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access.users import LastSeenIdentityGetResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["LastSeenIdentity", "AsyncLastSeenIdentity"] diff --git a/src/cloudflare/resources/access/users/users.py b/src/cloudflare/resources/access/users/users.py index d7fb38264c2..71d4684e5e7 100644 --- a/src/cloudflare/resources/access/users/users.py +++ b/src/cloudflare/resources/access/users/users.py @@ -2,32 +2,42 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .active_sessions import ActiveSessions, AsyncActiveSessions + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from .last_seen_identity import LastSeenIdentity, AsyncLastSeenIdentity + +from .failed_logins import FailedLogins, AsyncFailedLogins + +from ....types.access import UserListResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from .failed_logins import ( - FailedLogins, - AsyncFailedLogins, - FailedLoginsWithRawResponse, - AsyncFailedLoginsWithRawResponse, - FailedLoginsWithStreamingResponse, - AsyncFailedLoginsWithStreamingResponse, -) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.access import UserListResponse +from ....types import shared_params from .active_sessions import ( ActiveSessions, AsyncActiveSessions, @@ -44,6 +54,17 @@ LastSeenIdentityWithStreamingResponse, AsyncLastSeenIdentityWithStreamingResponse, ) +from .failed_logins import ( + FailedLogins, + AsyncFailedLogins, + FailedLoginsWithRawResponse, + AsyncFailedLoginsWithRawResponse, + FailedLoginsWithStreamingResponse, + AsyncFailedLoginsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Users", "AsyncUsers"] diff --git a/src/cloudflare/resources/access_tags.py b/src/cloudflare/resources/access_tags.py index e3a5cb7205b..016bbb43568 100644 --- a/src/cloudflare/resources/access_tags.py +++ b/src/cloudflare/resources/access_tags.py @@ -2,32 +2,47 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import ( - AccessTagGetResponse, - AccessTagCreateResponse, - AccessTagDeleteResponse, - AccessTagUpdateResponse, - access_tag_create_params, - access_tag_update_params, -) -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 ..types import AccessTagCreateResponse, AccessTagUpdateResponse, AccessTagDeleteResponse, AccessTagGetResponse + +from typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import access_tag_create_params +from ..types import access_tag_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["AccessTags", "AsyncAccessTags"] diff --git a/src/cloudflare/resources/account_members.py b/src/cloudflare/resources/account_members.py index 12d49cf439a..4fafb6522be 100644 --- a/src/cloudflare/resources/account_members.py +++ b/src/cloudflare/resources/account_members.py @@ -2,35 +2,59 @@ from __future__ import annotations -from typing import List, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - AccountMemberGetResponse, - AccountMemberListResponse, AccountMemberCreateResponse, - AccountMemberDeleteResponse, AccountMemberUpdateResponse, - account_member_list_params, - account_member_create_params, + AccountMemberListResponse, + AccountMemberDeleteResponse, + AccountMemberGetResponse, account_member_update_params, ) -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 typing import Type, List, Iterable, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import account_member_create_params +from ..types import account_member_update_params +from ..types import account_member_list_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["AccountMembers", "AsyncAccountMembers"] diff --git a/src/cloudflare/resources/accounts.py b/src/cloudflare/resources/accounts.py index 2ed5f890fd8..719a1e9b43f 100644 --- a/src/cloudflare/resources/accounts.py +++ b/src/cloudflare/resources/accounts.py @@ -2,32 +2,51 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast -from typing_extensions import Literal - import httpx -from ..types import ( - AccountGetResponse, - AccountListResponse, - AccountUpdateResponse, - account_list_params, - account_update_params, -) -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 ..types import AccountUpdateResponse, AccountListResponse, AccountGetResponse, account_update_params + +from typing import Type, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import account_update_params +from ..types import account_list_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Accounts", "AsyncAccounts"] diff --git a/src/cloudflare/resources/acms/__init__.py b/src/cloudflare/resources/acms/__init__.py index 0e926f6509c..0939c517dcd 100644 --- a/src/cloudflare/resources/acms/__init__.py +++ b/src/cloudflare/resources/acms/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .acms import ( - Acms, - AsyncAcms, - AcmsWithRawResponse, - AsyncAcmsWithRawResponse, - AcmsWithStreamingResponse, - AsyncAcmsWithStreamingResponse, -) +from .total_tls import TotalTLS, AsyncTotalTLS from .total_tls import ( - TotalTLS, - AsyncTotalTLS, TotalTLSWithRawResponse, AsyncTotalTLSWithRawResponse, TotalTLSWithStreamingResponse, AsyncTotalTLSWithStreamingResponse, ) +from .acms import Acms, AsyncAcms +from .acms import ( + AcmsWithRawResponse, + AsyncAcmsWithRawResponse, + AcmsWithStreamingResponse, + AsyncAcmsWithStreamingResponse, +) __all__ = [ "TotalTLS", diff --git a/src/cloudflare/resources/acms/acms.py b/src/cloudflare/resources/acms/acms.py index c1778a1d3b9..cf8286130e5 100644 --- a/src/cloudflare/resources/acms/acms.py +++ b/src/cloudflare/resources/acms/acms.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .total_tls import TotalTLS, AsyncTotalTLS + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .total_tls import ( TotalTLS, AsyncTotalTLS, @@ -11,7 +29,7 @@ TotalTLSWithStreamingResponse, AsyncTotalTLSWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Acms", "AsyncAcms"] diff --git a/src/cloudflare/resources/acms/total_tls.py b/src/cloudflare/resources/acms/total_tls.py index 28940463faa..92bc8257154 100644 --- a/src/cloudflare/resources/acms/total_tls.py +++ b/src/cloudflare/resources/acms/total_tls.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.acms import TotalTLSUpdateResponse, TotalTLSGetResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.acms import TotalTLSGetResponse, TotalTLSUpdateResponse, total_tls_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.acms import total_tls_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["TotalTLS", "AsyncTotalTLS"] diff --git a/src/cloudflare/resources/activation_checks.py b/src/cloudflare/resources/activation_checks.py index f720ceeb305..20e3ce8e9b0 100644 --- a/src/cloudflare/resources/activation_checks.py +++ b/src/cloudflare/resources/activation_checks.py @@ -2,24 +2,39 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import ActivationCheckPutZonesZoneIDActivationCheckResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import ActivationCheckPutZonesZoneIDActivationCheckResponse + +from typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ActivationChecks", "AsyncActivationChecks"] diff --git a/src/cloudflare/resources/addresses/__init__.py b/src/cloudflare/resources/addresses/__init__.py index 264dd4b6289..eb877bdf435 100644 --- a/src/cloudflare/resources/addresses/__init__.py +++ b/src/cloudflare/resources/addresses/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, -) -from .addresses import ( - Addresses, - AsyncAddresses, - AddressesWithRawResponse, - AsyncAddressesWithRawResponse, - AddressesWithStreamingResponse, - AsyncAddressesWithStreamingResponse, -) +from .address_maps import AddressMaps, AsyncAddressMaps from .address_maps import ( - AddressMaps, - AsyncAddressMaps, AddressMapsWithRawResponse, AsyncAddressMapsWithRawResponse, AddressMapsWithStreamingResponse, AsyncAddressMapsWithStreamingResponse, ) +from .loa_documents import LoaDocuments, AsyncLoaDocuments from .loa_documents import ( - LoaDocuments, - AsyncLoaDocuments, LoaDocumentsWithRawResponse, AsyncLoaDocumentsWithRawResponse, LoaDocumentsWithStreamingResponse, AsyncLoaDocumentsWithStreamingResponse, ) +from .prefixes import Prefixes, AsyncPrefixes +from .prefixes import ( + PrefixesWithRawResponse, + AsyncPrefixesWithRawResponse, + PrefixesWithStreamingResponse, + AsyncPrefixesWithStreamingResponse, +) +from .addresses import Addresses, AsyncAddresses +from .addresses import ( + AddressesWithRawResponse, + AsyncAddressesWithRawResponse, + AddressesWithStreamingResponse, + AsyncAddressesWithStreamingResponse, +) __all__ = [ "AddressMaps", diff --git a/src/cloudflare/resources/addresses/address_maps/__init__.py b/src/cloudflare/resources/addresses/address_maps/__init__.py index eeeb97955d0..66ee0358017 100644 --- a/src/cloudflare/resources/addresses/address_maps/__init__.py +++ b/src/cloudflare/resources/addresses/address_maps/__init__.py @@ -1,32 +1,23 @@ # File generated from our OpenAPI spec by Stainless. -from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, +from .accounts import Accounts, AsyncAccounts +from .accounts import ( + AccountsWithRawResponse, + AsyncAccountsWithRawResponse, + AccountsWithStreamingResponse, + AsyncAccountsWithStreamingResponse, ) +from .ips import IPs, AsyncIPs +from .ips import IPsWithRawResponse, AsyncIPsWithRawResponse, IPsWithStreamingResponse, AsyncIPsWithStreamingResponse +from .zones import Zones, AsyncZones from .zones import ( - Zones, - AsyncZones, ZonesWithRawResponse, AsyncZonesWithRawResponse, ZonesWithStreamingResponse, AsyncZonesWithStreamingResponse, ) -from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, -) +from .address_maps import AddressMaps, AsyncAddressMaps from .address_maps import ( - AddressMaps, - AsyncAddressMaps, AddressMapsWithRawResponse, AsyncAddressMapsWithRawResponse, AddressMapsWithStreamingResponse, diff --git a/src/cloudflare/resources/addresses/address_maps/accounts.py b/src/cloudflare/resources/addresses/address_maps/accounts.py index 4ee357c7350..bd3d9edf6c1 100644 --- a/src/cloudflare/resources/addresses/address_maps/accounts.py +++ b/src/cloudflare/resources/addresses/address_maps/accounts.py @@ -2,24 +2,45 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addresses.address_maps import AccountUpdateResponse, AccountDeleteResponse + +from typing import Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addresses.address_maps import AccountDeleteResponse, AccountUpdateResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Accounts", "AsyncAccounts"] diff --git a/src/cloudflare/resources/addresses/address_maps/address_maps.py b/src/cloudflare/resources/addresses/address_maps/address_maps.py index 2b47f80038c..d1e00da89b9 100644 --- a/src/cloudflare/resources/addresses/address_maps/address_maps.py +++ b/src/cloudflare/resources/addresses/address_maps/address_maps.py @@ -2,10 +2,58 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx +from .accounts import Accounts, AsyncAccounts + +from ...._compat import cached_property + +from .ips import IPs, AsyncIPs + +from .zones import Zones, AsyncZones + +from ....types.addresses import ( + AddressMapCreateResponse, + AddressMapUpdateResponse, + AddressMapListResponse, + AddressMapDeleteResponse, + AddressMapGetResponse, +) + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.addresses import address_map_create_params +from ....types.addresses import address_map_update_params +from .accounts import ( + Accounts, + AsyncAccounts, + AccountsWithRawResponse, + AsyncAccountsWithRawResponse, + AccountsWithStreamingResponse, + AsyncAccountsWithStreamingResponse, +) from .ips import ( IPs, AsyncIPs, @@ -22,37 +70,19 @@ ZonesWithStreamingResponse, AsyncZonesWithStreamingResponse, ) -from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, -) -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 ...._wrappers import ResultWrapper -from ...._base_client import ( - make_request_options, -) -from ....types.addresses import ( - AddressMapGetResponse, - AddressMapListResponse, - AddressMapCreateResponse, - AddressMapDeleteResponse, - AddressMapUpdateResponse, - address_map_create_params, - address_map_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 __all__ = ["AddressMaps", "AsyncAddressMaps"] diff --git a/src/cloudflare/resources/addresses/address_maps/ips.py b/src/cloudflare/resources/addresses/address_maps/ips.py index 04e8b1ad185..847dafc17d9 100644 --- a/src/cloudflare/resources/addresses/address_maps/ips.py +++ b/src/cloudflare/resources/addresses/address_maps/ips.py @@ -2,24 +2,45 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addresses.address_maps import IPUpdateResponse, IPDeleteResponse + +from typing import Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addresses.address_maps import IPDeleteResponse, IPUpdateResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["IPs", "AsyncIPs"] diff --git a/src/cloudflare/resources/addresses/address_maps/zones.py b/src/cloudflare/resources/addresses/address_maps/zones.py index 1e0816a8f28..3426a1db6d8 100644 --- a/src/cloudflare/resources/addresses/address_maps/zones.py +++ b/src/cloudflare/resources/addresses/address_maps/zones.py @@ -2,24 +2,45 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addresses.address_maps import ZoneUpdateResponse, ZoneDeleteResponse + +from typing import Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addresses.address_maps import ZoneDeleteResponse, ZoneUpdateResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Zones", "AsyncZones"] diff --git a/src/cloudflare/resources/addresses/addresses.py b/src/cloudflare/resources/addresses/addresses.py index 085bef79c20..484a3039fd1 100644 --- a/src/cloudflare/resources/addresses/addresses.py +++ b/src/cloudflare/resources/addresses/addresses.py @@ -2,16 +2,29 @@ from __future__ import annotations -from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, -) +from .address_maps.address_maps import AddressMaps, AsyncAddressMaps + from ..._compat import cached_property + +from .loa_documents.loa_documents import LoaDocuments, AsyncLoaDocuments + +from .prefixes.prefixes import Prefixes, AsyncPrefixes + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .address_maps import ( AddressMaps, AsyncAddressMaps, @@ -28,9 +41,15 @@ LoaDocumentsWithStreamingResponse, AsyncLoaDocumentsWithStreamingResponse, ) -from .prefixes.prefixes import Prefixes, AsyncPrefixes -from .address_maps.address_maps import AddressMaps, AsyncAddressMaps -from .loa_documents.loa_documents import LoaDocuments, AsyncLoaDocuments +from .prefixes import ( + Prefixes, + AsyncPrefixes, + PrefixesWithRawResponse, + AsyncPrefixesWithRawResponse, + PrefixesWithStreamingResponse, + AsyncPrefixesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Addresses", "AsyncAddresses"] diff --git a/src/cloudflare/resources/addresses/loa_documents/__init__.py b/src/cloudflare/resources/addresses/loa_documents/__init__.py index 5986f9580a8..a9ed2ed82e1 100644 --- a/src/cloudflare/resources/addresses/loa_documents/__init__.py +++ b/src/cloudflare/resources/addresses/loa_documents/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .downloads import Downloads, AsyncDownloads from .downloads import ( - Downloads, - AsyncDownloads, DownloadsWithRawResponse, AsyncDownloadsWithRawResponse, DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) +from .loa_documents import LoaDocuments, AsyncLoaDocuments from .loa_documents import ( - LoaDocuments, - AsyncLoaDocuments, LoaDocumentsWithRawResponse, AsyncLoaDocumentsWithRawResponse, LoaDocumentsWithStreamingResponse, diff --git a/src/cloudflare/resources/addresses/loa_documents/downloads.py b/src/cloudflare/resources/addresses/loa_documents/downloads.py index f201c6be6d6..e7c44c4fdcd 100644 --- a/src/cloudflare/resources/addresses/loa_documents/downloads.py +++ b/src/cloudflare/resources/addresses/loa_documents/downloads.py @@ -2,22 +2,35 @@ 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 typing import Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper __all__ = ["Downloads", "AsyncDownloads"] diff --git a/src/cloudflare/resources/addresses/loa_documents/loa_documents.py b/src/cloudflare/resources/addresses/loa_documents/loa_documents.py index bd8e2e1bffd..ece0eecc3d0 100644 --- a/src/cloudflare/resources/addresses/loa_documents/loa_documents.py +++ b/src/cloudflare/resources/addresses/loa_documents/loa_documents.py @@ -2,36 +2,50 @@ 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 -from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, -) +from .downloads import Downloads, AsyncDownloads + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addresses import LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addresses import ( - LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse, - loa_document_ip_address_management_prefixes_upload_loa_document_params, +from ....types import shared_params +from ....types.addresses import loa_document_ip_address_management_prefixes_upload_loa_document_params +from .downloads import ( + Downloads, + AsyncDownloads, + DownloadsWithRawResponse, + AsyncDownloadsWithRawResponse, + DownloadsWithStreamingResponse, + AsyncDownloadsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["LoaDocuments", "AsyncLoaDocuments"] diff --git a/src/cloudflare/resources/addresses/prefixes/__init__.py b/src/cloudflare/resources/addresses/prefixes/__init__.py index 51700297e44..7e01f346700 100644 --- a/src/cloudflare/resources/addresses/prefixes/__init__.py +++ b/src/cloudflare/resources/addresses/prefixes/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .bgps import BGPs, AsyncBGPs from .bgps import ( - BGPs, - AsyncBGPs, BGPsWithRawResponse, AsyncBGPsWithRawResponse, BGPsWithStreamingResponse, AsyncBGPsWithStreamingResponse, ) -from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, -) +from .delegations import Delegations, AsyncDelegations from .delegations import ( - Delegations, - AsyncDelegations, DelegationsWithRawResponse, AsyncDelegationsWithRawResponse, DelegationsWithStreamingResponse, AsyncDelegationsWithStreamingResponse, ) +from .prefixes import Prefixes, AsyncPrefixes +from .prefixes import ( + PrefixesWithRawResponse, + AsyncPrefixesWithRawResponse, + PrefixesWithStreamingResponse, + AsyncPrefixesWithStreamingResponse, +) __all__ = [ "BGPs", diff --git a/src/cloudflare/resources/addresses/prefixes/bgps/__init__.py b/src/cloudflare/resources/addresses/prefixes/bgps/__init__.py index 56fbf818846..2f8a995eb51 100644 --- a/src/cloudflare/resources/addresses/prefixes/bgps/__init__.py +++ b/src/cloudflare/resources/addresses/prefixes/bgps/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .bgps import ( - BGPs, - AsyncBGPs, - BGPsWithRawResponse, - AsyncBGPsWithRawResponse, - BGPsWithStreamingResponse, - AsyncBGPsWithStreamingResponse, -) +from .statuses import Statuses, AsyncStatuses from .statuses import ( - Statuses, - AsyncStatuses, StatusesWithRawResponse, AsyncStatusesWithRawResponse, StatusesWithStreamingResponse, AsyncStatusesWithStreamingResponse, ) +from .bgps import BGPs, AsyncBGPs +from .bgps import ( + BGPsWithRawResponse, + AsyncBGPsWithRawResponse, + BGPsWithStreamingResponse, + AsyncBGPsWithStreamingResponse, +) __all__ = [ "Statuses", diff --git a/src/cloudflare/resources/addresses/prefixes/bgps/bgps.py b/src/cloudflare/resources/addresses/prefixes/bgps/bgps.py index 965db014a4e..156a5d0032c 100644 --- a/src/cloudflare/resources/addresses/prefixes/bgps/bgps.py +++ b/src/cloudflare/resources/addresses/prefixes/bgps/bgps.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .statuses import Statuses, AsyncStatuses + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .statuses import ( Statuses, AsyncStatuses, @@ -10,8 +29,7 @@ StatusesWithStreamingResponse, AsyncStatusesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["BGPs", "AsyncBGPs"] diff --git a/src/cloudflare/resources/addresses/prefixes/bgps/statuses.py b/src/cloudflare/resources/addresses/prefixes/bgps/statuses.py index d5f5f1adc81..87d995ac79d 100644 --- a/src/cloudflare/resources/addresses/prefixes/bgps/statuses.py +++ b/src/cloudflare/resources/addresses/prefixes/bgps/statuses.py @@ -2,29 +2,47 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.addresses.prefixes.bgps import ( + StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, + StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, +) + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .....types.addresses.prefixes.bgps import ( - StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, - StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params, ) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Statuses", "AsyncStatuses"] diff --git a/src/cloudflare/resources/addresses/prefixes/delegations.py b/src/cloudflare/resources/addresses/prefixes/delegations.py index 6a23b31491e..142554d506e 100644 --- a/src/cloudflare/resources/addresses/prefixes/delegations.py +++ b/src/cloudflare/resources/addresses/prefixes/delegations.py @@ -2,30 +2,50 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addresses.prefixes import ( + DelegationDeleteResponse, + DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, + DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.addresses.prefixes import ( - DelegationDeleteResponse, - DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, - DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params, ) +from ...._wrappers import ResultWrapper +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__ = ["Delegations", "AsyncDelegations"] diff --git a/src/cloudflare/resources/addresses/prefixes/prefixes.py b/src/cloudflare/resources/addresses/prefixes/prefixes.py index 79d8c5576cc..067f392fc6d 100644 --- a/src/cloudflare/resources/addresses/prefixes/prefixes.py +++ b/src/cloudflare/resources/addresses/prefixes/prefixes.py @@ -2,10 +2,48 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx +from .bgps.bgps import BGPs, AsyncBGPs + +from ...._compat import cached_property + +from .delegations import Delegations, AsyncDelegations + +from ....types.addresses import ( + PrefixUpdateResponse, + PrefixDeleteResponse, + PrefixGetResponse, + PrefixIPAddressManagementPrefixesAddPrefixResponse, + PrefixIPAddressManagementPrefixesListPrefixesResponse, +) + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.addresses import prefix_update_params +from ....types.addresses import prefix_ip_address_management_prefixes_add_prefix_params from .bgps import ( BGPs, AsyncBGPs, @@ -14,10 +52,6 @@ BGPsWithStreamingResponse, AsyncBGPsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform -from .bgps.bgps import BGPs, AsyncBGPs -from ...._compat import cached_property from .delegations import ( Delegations, AsyncDelegations, @@ -26,26 +60,19 @@ DelegationsWithStreamingResponse, AsyncDelegationsWithStreamingResponse, ) -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.addresses import ( - PrefixGetResponse, - PrefixDeleteResponse, - PrefixUpdateResponse, - PrefixIPAddressManagementPrefixesAddPrefixResponse, - PrefixIPAddressManagementPrefixesListPrefixesResponse, - prefix_update_params, - prefix_ip_address_management_prefixes_add_prefix_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 __all__ = ["Prefixes", "AsyncPrefixes"] diff --git a/src/cloudflare/resources/addressing/__init__.py b/src/cloudflare/resources/addressing/__init__.py index f76667fc6dc..7d0c13ffa8c 100644 --- a/src/cloudflare/resources/addressing/__init__.py +++ b/src/cloudflare/resources/addressing/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .prefixes import Prefixes, AsyncPrefixes from .prefixes import ( - Prefixes, - AsyncPrefixes, PrefixesWithRawResponse, AsyncPrefixesWithRawResponse, PrefixesWithStreamingResponse, AsyncPrefixesWithStreamingResponse, ) +from .services import Services, AsyncServices from .services import ( - Services, - AsyncServices, ServicesWithRawResponse, AsyncServicesWithRawResponse, ServicesWithStreamingResponse, AsyncServicesWithStreamingResponse, ) +from .addressing import Addressing, AsyncAddressing from .addressing import ( - Addressing, - AsyncAddressing, AddressingWithRawResponse, AsyncAddressingWithRawResponse, AddressingWithStreamingResponse, diff --git a/src/cloudflare/resources/addressing/addressing.py b/src/cloudflare/resources/addressing/addressing.py index bcb5f5b8368..a2dd816b744 100644 --- a/src/cloudflare/resources/addressing/addressing.py +++ b/src/cloudflare/resources/addressing/addressing.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .prefixes.prefixes import Prefixes, AsyncPrefixes + +from ..._compat import cached_property + +from .services import Services, AsyncServices + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .prefixes import ( Prefixes, AsyncPrefixes, @@ -18,9 +39,7 @@ ServicesWithStreamingResponse, AsyncServicesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .prefixes.prefixes import Prefixes, AsyncPrefixes +from ..._wrappers import ResultWrapper __all__ = ["Addressing", "AsyncAddressing"] diff --git a/src/cloudflare/resources/addressing/prefixes/__init__.py b/src/cloudflare/resources/addressing/prefixes/__init__.py index ebfaa22bb3d..5595a5f365f 100644 --- a/src/cloudflare/resources/addressing/prefixes/__init__.py +++ b/src/cloudflare/resources/addressing/prefixes/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .bgp_prefixes import BGPPrefixes, AsyncBGPPrefixes +from .bgp_prefixes import ( + BGPPrefixesWithRawResponse, + AsyncBGPPrefixesWithRawResponse, + BGPPrefixesWithStreamingResponse, + AsyncBGPPrefixesWithStreamingResponse, +) +from .bindings import Bindings, AsyncBindings from .bindings import ( - Bindings, - AsyncBindings, BindingsWithRawResponse, AsyncBindingsWithRawResponse, BindingsWithStreamingResponse, AsyncBindingsWithStreamingResponse, ) +from .prefixes import Prefixes, AsyncPrefixes from .prefixes import ( - Prefixes, - AsyncPrefixes, PrefixesWithRawResponse, AsyncPrefixesWithRawResponse, PrefixesWithStreamingResponse, AsyncPrefixesWithStreamingResponse, ) -from .bgp_prefixes import ( - BGPPrefixes, - AsyncBGPPrefixes, - BGPPrefixesWithRawResponse, - AsyncBGPPrefixesWithRawResponse, - BGPPrefixesWithStreamingResponse, - AsyncBGPPrefixesWithStreamingResponse, -) __all__ = [ "BGPPrefixes", diff --git a/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py b/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py index eff5cefbe62..4c5927a581b 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py @@ -2,30 +2,49 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addressing.prefixes import ( + BGPPrefixUpdateResponse, + BGPPrefixListResponse, + BGPPrefixGetResponse, + bgp_prefix_update_params, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addressing.prefixes import ( - BGPPrefixGetResponse, - BGPPrefixListResponse, - BGPPrefixUpdateResponse, - bgp_prefix_update_params, -) +from ....types import shared_params +from ....types.addressing.prefixes import bgp_prefix_update_params +from ...._wrappers import ResultWrapper +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__ = ["BGPPrefixes", "AsyncBGPPrefixes"] diff --git a/src/cloudflare/resources/addressing/prefixes/bindings.py b/src/cloudflare/resources/addressing/prefixes/bindings.py index 5482c6c8745..831d9a35813 100644 --- a/src/cloudflare/resources/addressing/prefixes/bindings.py +++ b/src/cloudflare/resources/addressing/prefixes/bindings.py @@ -2,31 +2,53 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.addressing.prefixes import ( + BindingCreateResponse, + BindingListResponse, + BindingDeleteResponse, + BindingGetResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.addressing.prefixes import ( - BindingGetResponse, - BindingListResponse, - BindingCreateResponse, - BindingDeleteResponse, - binding_create_params, -) +from ....types import shared_params +from ....types.addressing.prefixes import binding_create_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Bindings", "AsyncBindings"] diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py index 80ed05fad5f..552332360bd 100644 --- a/src/cloudflare/resources/addressing/prefixes/prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .bindings import ( - Bindings, - AsyncBindings, - BindingsWithRawResponse, - AsyncBindingsWithRawResponse, - BindingsWithStreamingResponse, - AsyncBindingsWithStreamingResponse, -) +from .bgp_prefixes import BGPPrefixes, AsyncBGPPrefixes + from ...._compat import cached_property + +from .bindings import Bindings, AsyncBindings + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .bgp_prefixes import ( BGPPrefixes, AsyncBGPPrefixes, @@ -20,6 +31,15 @@ BGPPrefixesWithStreamingResponse, AsyncBGPPrefixesWithStreamingResponse, ) +from .bindings import ( + Bindings, + AsyncBindings, + BindingsWithRawResponse, + AsyncBindingsWithRawResponse, + BindingsWithStreamingResponse, + AsyncBindingsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Prefixes", "AsyncPrefixes"] diff --git a/src/cloudflare/resources/addressing/services.py b/src/cloudflare/resources/addressing/services.py index d4a0d1283a7..f00827454e6 100644 --- a/src/cloudflare/resources/addressing/services.py +++ b/src/cloudflare/resources/addressing/services.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.addressing import ServiceListResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.addressing import ServiceListResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Services", "AsyncServices"] diff --git a/src/cloudflare/resources/ai.py b/src/cloudflare/resources/ai.py index 2f74548c4a4..8044c4fc3b9 100644 --- a/src/cloudflare/resources/ai.py +++ b/src/cloudflare/resources/ai.py @@ -2,25 +2,38 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import ai_run_params -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 typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import ai_run_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["AI", "AsyncAI"] diff --git a/src/cloudflare/resources/alerting/__init__.py b/src/cloudflare/resources/alerting/__init__.py index b2e77c3ab23..f3e29f97434 100644 --- a/src/cloudflare/resources/alerting/__init__.py +++ b/src/cloudflare/resources/alerting/__init__.py @@ -1,24 +1,11 @@ # File generated from our OpenAPI spec by Stainless. -from .v3 import ( - V3, - AsyncV3, - V3WithRawResponse, - AsyncV3WithRawResponse, - V3WithStreamingResponse, - AsyncV3WithStreamingResponse, -) -from .v3s import ( - V3s, - AsyncV3s, - V3sWithRawResponse, - AsyncV3sWithRawResponse, - V3sWithStreamingResponse, - AsyncV3sWithStreamingResponse, -) +from .v3s import V3s, AsyncV3s +from .v3s import V3sWithRawResponse, AsyncV3sWithRawResponse, V3sWithStreamingResponse, AsyncV3sWithStreamingResponse +from .v3 import V3, AsyncV3 +from .v3 import V3WithRawResponse, AsyncV3WithRawResponse, V3WithStreamingResponse, AsyncV3WithStreamingResponse +from .alerting import Alerting, AsyncAlerting from .alerting import ( - Alerting, - AsyncAlerting, AlertingWithRawResponse, AsyncAlertingWithRawResponse, AlertingWithStreamingResponse, diff --git a/src/cloudflare/resources/alerting/alerting.py b/src/cloudflare/resources/alerting/alerting.py index 235dad326d9..cd2fbcea697 100644 --- a/src/cloudflare/resources/alerting/alerting.py +++ b/src/cloudflare/resources/alerting/alerting.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .v3 import ( - V3, - AsyncV3, - V3WithRawResponse, - AsyncV3WithRawResponse, - V3WithStreamingResponse, - AsyncV3WithStreamingResponse, +from .v3s.v3s import V3s, AsyncV3s + +from ..._compat import cached_property + +from .v3.v3 import V3, AsyncV3 + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from .v3s import ( V3s, AsyncV3s, @@ -18,10 +31,15 @@ V3sWithStreamingResponse, AsyncV3sWithStreamingResponse, ) -from .v3.v3 import V3, AsyncV3 -from .v3s.v3s import V3s, AsyncV3s -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from .v3 import ( + V3, + AsyncV3, + V3WithRawResponse, + AsyncV3WithRawResponse, + V3WithStreamingResponse, + AsyncV3WithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Alerting", "AsyncAlerting"] diff --git a/src/cloudflare/resources/alerting/v3/__init__.py b/src/cloudflare/resources/alerting/v3/__init__.py index d47de53d551..e428ea7f8c1 100644 --- a/src/cloudflare/resources/alerting/v3/__init__.py +++ b/src/cloudflare/resources/alerting/v3/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .v3 import ( - V3, - AsyncV3, - V3WithRawResponse, - AsyncV3WithRawResponse, - V3WithStreamingResponse, - AsyncV3WithStreamingResponse, +from .available_alerts import AvailableAlerts, AsyncAvailableAlerts +from .available_alerts import ( + AvailableAlertsWithRawResponse, + AsyncAvailableAlertsWithRawResponse, + AvailableAlertsWithStreamingResponse, + AsyncAvailableAlertsWithStreamingResponse, ) +from .destinations import Destinations, AsyncDestinations from .destinations import ( - Destinations, - AsyncDestinations, DestinationsWithRawResponse, AsyncDestinationsWithRawResponse, DestinationsWithStreamingResponse, AsyncDestinationsWithStreamingResponse, ) -from .available_alerts import ( - AvailableAlerts, - AsyncAvailableAlerts, - AvailableAlertsWithRawResponse, - AsyncAvailableAlertsWithRawResponse, - AvailableAlertsWithStreamingResponse, - AsyncAvailableAlertsWithStreamingResponse, -) +from .v3 import V3, AsyncV3 +from .v3 import V3WithRawResponse, AsyncV3WithRawResponse, V3WithStreamingResponse, AsyncV3WithStreamingResponse __all__ = [ "AvailableAlerts", diff --git a/src/cloudflare/resources/alerting/v3/available_alerts.py b/src/cloudflare/resources/alerting/v3/available_alerts.py index 29b58a079b5..a01dfc2663f 100644 --- a/src/cloudflare/resources/alerting/v3/available_alerts.py +++ b/src/cloudflare/resources/alerting/v3/available_alerts.py @@ -2,24 +2,41 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.alerting.v3 import AvailableAlertListResponse + +from typing import Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.alerting.v3 import AvailableAlertListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AvailableAlerts", "AsyncAvailableAlerts"] diff --git a/src/cloudflare/resources/alerting/v3/destinations/__init__.py b/src/cloudflare/resources/alerting/v3/destinations/__init__.py index d282090227f..f3876f6e7d4 100644 --- a/src/cloudflare/resources/alerting/v3/destinations/__init__.py +++ b/src/cloudflare/resources/alerting/v3/destinations/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .pagerduty import Pagerduty, AsyncPagerduty from .pagerduty import ( - Pagerduty, - AsyncPagerduty, PagerdutyWithRawResponse, AsyncPagerdutyWithRawResponse, PagerdutyWithStreamingResponse, AsyncPagerdutyWithStreamingResponse, ) +from .destinations import Destinations, AsyncDestinations from .destinations import ( - Destinations, - AsyncDestinations, DestinationsWithRawResponse, AsyncDestinationsWithRawResponse, DestinationsWithStreamingResponse, diff --git a/src/cloudflare/resources/alerting/v3/destinations/destinations.py b/src/cloudflare/resources/alerting/v3/destinations/destinations.py index a12da08b095..10337a5ad68 100644 --- a/src/cloudflare/resources/alerting/v3/destinations/destinations.py +++ b/src/cloudflare/resources/alerting/v3/destinations/destinations.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .pagerduty import Pagerduty, AsyncPagerduty + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .pagerduty import ( Pagerduty, AsyncPagerduty, @@ -10,8 +29,7 @@ PagerdutyWithStreamingResponse, AsyncPagerdutyWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Destinations", "AsyncDestinations"] diff --git a/src/cloudflare/resources/alerting/v3/destinations/pagerduty.py b/src/cloudflare/resources/alerting/v3/destinations/pagerduty.py index a47d73081cc..3f8a70abcfa 100644 --- a/src/cloudflare/resources/alerting/v3/destinations/pagerduty.py +++ b/src/cloudflare/resources/alerting/v3/destinations/pagerduty.py @@ -2,28 +2,49 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.alerting.v3.destinations import ( + PagerdutyCreateTokenResponse, + PagerdutyDeleteAllResponse, + PagerdutyLinkResponse, +) + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.alerting.v3.destinations import ( - PagerdutyLinkResponse, - PagerdutyDeleteAllResponse, - PagerdutyCreateTokenResponse, -) +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Pagerduty", "AsyncPagerduty"] diff --git a/src/cloudflare/resources/alerting/v3/v3.py b/src/cloudflare/resources/alerting/v3/v3.py index acc0342948e..04c7d1020f3 100644 --- a/src/cloudflare/resources/alerting/v3/v3.py +++ b/src/cloudflare/resources/alerting/v3/v3.py @@ -2,16 +2,27 @@ from __future__ import annotations +from .available_alerts import AvailableAlerts, AsyncAvailableAlerts + from ...._compat import cached_property + +from .destinations.destinations import Destinations, AsyncDestinations + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource -from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .available_alerts import ( AvailableAlerts, AsyncAvailableAlerts, @@ -20,7 +31,15 @@ AvailableAlertsWithStreamingResponse, AsyncAvailableAlertsWithStreamingResponse, ) -from .destinations.destinations import Destinations, AsyncDestinations +from .destinations import ( + Destinations, + AsyncDestinations, + DestinationsWithRawResponse, + AsyncDestinationsWithRawResponse, + DestinationsWithStreamingResponse, + AsyncDestinationsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["V3", "AsyncV3"] diff --git a/src/cloudflare/resources/alerting/v3s/__init__.py b/src/cloudflare/resources/alerting/v3s/__init__.py index f04a949c065..03ae95ab8df 100644 --- a/src/cloudflare/resources/alerting/v3s/__init__.py +++ b/src/cloudflare/resources/alerting/v3s/__init__.py @@ -1,37 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .v3s import ( - V3s, - AsyncV3s, - V3sWithRawResponse, - AsyncV3sWithRawResponse, - V3sWithStreamingResponse, - AsyncV3sWithStreamingResponse, -) -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, +from .destinations import Destinations, AsyncDestinations +from .destinations import ( + DestinationsWithRawResponse, + AsyncDestinationsWithRawResponse, + DestinationsWithStreamingResponse, + AsyncDestinationsWithStreamingResponse, ) +from .histories import Histories, AsyncHistories from .histories import ( - Histories, - AsyncHistories, HistoriesWithRawResponse, AsyncHistoriesWithRawResponse, HistoriesWithStreamingResponse, AsyncHistoriesWithStreamingResponse, ) -from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, +from .policies import Policies, AsyncPolicies +from .policies import ( + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, ) +from .v3s import V3s, AsyncV3s +from .v3s import V3sWithRawResponse, AsyncV3sWithRawResponse, V3sWithStreamingResponse, AsyncV3sWithStreamingResponse __all__ = [ "Destinations", diff --git a/src/cloudflare/resources/alerting/v3s/destinations/__init__.py b/src/cloudflare/resources/alerting/v3s/destinations/__init__.py index 88ec0564226..8e12c4674cd 100644 --- a/src/cloudflare/resources/alerting/v3s/destinations/__init__.py +++ b/src/cloudflare/resources/alerting/v3s/destinations/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, -) +from .eligibles import Eligibles, AsyncEligibles from .eligibles import ( - Eligibles, - AsyncEligibles, EligiblesWithRawResponse, AsyncEligiblesWithRawResponse, EligiblesWithStreamingResponse, AsyncEligiblesWithStreamingResponse, ) +from .pagerduties import Pagerduties, AsyncPagerduties from .pagerduties import ( - Pagerduties, - AsyncPagerduties, PagerdutiesWithRawResponse, AsyncPagerdutiesWithRawResponse, PagerdutiesWithStreamingResponse, AsyncPagerdutiesWithStreamingResponse, ) +from .webhooks import Webhooks, AsyncWebhooks +from .webhooks import ( + WebhooksWithRawResponse, + AsyncWebhooksWithRawResponse, + WebhooksWithStreamingResponse, + AsyncWebhooksWithStreamingResponse, +) +from .destinations import Destinations, AsyncDestinations from .destinations import ( - Destinations, - AsyncDestinations, DestinationsWithRawResponse, AsyncDestinationsWithRawResponse, DestinationsWithStreamingResponse, diff --git a/src/cloudflare/resources/alerting/v3s/destinations/destinations.py b/src/cloudflare/resources/alerting/v3s/destinations/destinations.py index f0a1a4e9a7d..c39ad91512b 100644 --- a/src/cloudflare/resources/alerting/v3s/destinations/destinations.py +++ b/src/cloudflare/resources/alerting/v3s/destinations/destinations.py @@ -2,14 +2,29 @@ from __future__ import annotations -from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, +from .eligibles import Eligibles, AsyncEligibles + +from ....._compat import cached_property + +from .pagerduties import Pagerduties, AsyncPagerduties + +from .webhooks import Webhooks, AsyncWebhooks + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .eligibles import ( Eligibles, AsyncEligibles, @@ -18,7 +33,6 @@ EligiblesWithStreamingResponse, AsyncEligiblesWithStreamingResponse, ) -from ....._compat import cached_property from .pagerduties import ( Pagerduties, AsyncPagerduties, @@ -27,7 +41,15 @@ PagerdutiesWithStreamingResponse, AsyncPagerdutiesWithStreamingResponse, ) -from ....._resource import SyncAPIResource, AsyncAPIResource +from .webhooks import ( + Webhooks, + AsyncWebhooks, + WebhooksWithRawResponse, + AsyncWebhooksWithRawResponse, + WebhooksWithStreamingResponse, + AsyncWebhooksWithStreamingResponse, +) +from ....._wrappers import ResultWrapper __all__ = ["Destinations", "AsyncDestinations"] diff --git a/src/cloudflare/resources/alerting/v3s/destinations/eligibles.py b/src/cloudflare/resources/alerting/v3s/destinations/eligibles.py index 1d52cccdcae..c03807bf503 100644 --- a/src/cloudflare/resources/alerting/v3s/destinations/eligibles.py +++ b/src/cloudflare/resources/alerting/v3s/destinations/eligibles.py @@ -2,26 +2,43 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.alerting.v3s.destinations import ( + EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, +) + +from typing import Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.alerting.v3s.destinations import ( - EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, -) +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Eligibles", "AsyncEligibles"] diff --git a/src/cloudflare/resources/alerting/v3s/destinations/pagerduties.py b/src/cloudflare/resources/alerting/v3s/destinations/pagerduties.py index e55201581b8..c23d495b6e4 100644 --- a/src/cloudflare/resources/alerting/v3s/destinations/pagerduties.py +++ b/src/cloudflare/resources/alerting/v3s/destinations/pagerduties.py @@ -2,26 +2,41 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.alerting.v3s.destinations import ( + PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, +) + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.alerting.v3s.destinations import ( - PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, -) +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Pagerduties", "AsyncPagerduties"] diff --git a/src/cloudflare/resources/alerting/v3s/destinations/webhooks.py b/src/cloudflare/resources/alerting/v3s/destinations/webhooks.py index 0549303687f..a3384145efd 100644 --- a/src/cloudflare/resources/alerting/v3s/destinations/webhooks.py +++ b/src/cloudflare/resources/alerting/v3s/destinations/webhooks.py @@ -2,33 +2,57 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.alerting.v3s.destinations import ( + WebhookUpdateResponse, + WebhookDeleteResponse, + WebhookGetResponse, + WebhookNotificationWebhooksCreateAWebhookResponse, + WebhookNotificationWebhooksListWebhooksResponse, +) + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.alerting.v3s.destinations import ( - WebhookGetResponse, - WebhookDeleteResponse, - WebhookUpdateResponse, - WebhookNotificationWebhooksListWebhooksResponse, - WebhookNotificationWebhooksCreateAWebhookResponse, - webhook_update_params, - webhook_notification_webhooks_create_a_webhook_params, -) +from .....types import shared_params +from .....types.alerting.v3s.destinations import webhook_update_params +from .....types.alerting.v3s.destinations import webhook_notification_webhooks_create_a_webhook_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Webhooks", "AsyncWebhooks"] diff --git a/src/cloudflare/resources/alerting/v3s/histories.py b/src/cloudflare/resources/alerting/v3s/histories.py index a9fe07d27ed..28ece849dea 100644 --- a/src/cloudflare/resources/alerting/v3s/histories.py +++ b/src/cloudflare/resources/alerting/v3s/histories.py @@ -2,29 +2,42 @@ from __future__ import annotations -from typing import Type, Union, Optional, cast -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 ....types.alerting.v3s import HistoryNotificationHistoryListHistoryResponse + +from typing import Type, Optional, Union + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.alerting.v3s import ( - HistoryNotificationHistoryListHistoryResponse, - history_notification_history_list_history_params, -) +from ....types import shared_params +from ....types.alerting.v3s import history_notification_history_list_history_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Histories", "AsyncHistories"] diff --git a/src/cloudflare/resources/alerting/v3s/policies.py b/src/cloudflare/resources/alerting/v3s/policies.py index b20efaea56b..21f8b03c740 100644 --- a/src/cloudflare/resources/alerting/v3s/policies.py +++ b/src/cloudflare/resources/alerting/v3s/policies.py @@ -2,34 +2,61 @@ from __future__ import annotations -from typing import Any, Dict, 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.alerting.v3s import ( + PolicyUpdateResponse, + PolicyDeleteResponse, + PolicyGetResponse, + PolicyNotificationPoliciesCreateANotificationPolicyResponse, + PolicyNotificationPoliciesListNotificationPoliciesResponse, + policy_update_params, + policy_notification_policies_create_a_notification_policy_params, +) + +from typing import Type, Dict, Iterable, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.alerting.v3s import ( - PolicyGetResponse, - PolicyDeleteResponse, - PolicyUpdateResponse, - PolicyNotificationPoliciesListNotificationPoliciesResponse, - PolicyNotificationPoliciesCreateANotificationPolicyResponse, - policy_update_params, - policy_notification_policies_create_a_notification_policy_params, -) +from ....types import shared_params +from ....types.alerting.v3s import policy_update_params +from ....types.alerting.v3s import policy_notification_policies_create_a_notification_policy_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Policies", "AsyncPolicies"] diff --git a/src/cloudflare/resources/alerting/v3s/v3s.py b/src/cloudflare/resources/alerting/v3s/v3s.py index 762a5d8b79d..95de624d1d7 100644 --- a/src/cloudflare/resources/alerting/v3s/v3s.py +++ b/src/cloudflare/resources/alerting/v3s/v3s.py @@ -2,24 +2,29 @@ from __future__ import annotations -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, -) -from .histories import ( - Histories, - AsyncHistories, - HistoriesWithRawResponse, - AsyncHistoriesWithRawResponse, - HistoriesWithStreamingResponse, - AsyncHistoriesWithStreamingResponse, -) +from .destinations.destinations import Destinations, AsyncDestinations + from ...._compat import cached_property + +from .histories import Histories, AsyncHistories + +from .policies import Policies, AsyncPolicies + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .destinations import ( Destinations, AsyncDestinations, @@ -28,7 +33,23 @@ DestinationsWithStreamingResponse, AsyncDestinationsWithStreamingResponse, ) -from .destinations.destinations import Destinations, AsyncDestinations +from .histories import ( + Histories, + AsyncHistories, + HistoriesWithRawResponse, + AsyncHistoriesWithRawResponse, + HistoriesWithStreamingResponse, + AsyncHistoriesWithStreamingResponse, +) +from .policies import ( + Policies, + AsyncPolicies, + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["V3s", "AsyncV3s"] diff --git a/src/cloudflare/resources/analytics/__init__.py b/src/cloudflare/resources/analytics/__init__.py index a73db295e18..90ca9aee80e 100644 --- a/src/cloudflare/resources/analytics/__init__.py +++ b/src/cloudflare/resources/analytics/__init__.py @@ -1,36 +1,32 @@ # File generated from our OpenAPI spec by Stainless. +from .colo import Colo, AsyncColo from .colo import ( - Colo, - AsyncColo, ColoWithRawResponse, AsyncColoWithRawResponse, ColoWithStreamingResponse, AsyncColoWithStreamingResponse, ) -from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, +from .dashboards import Dashboards, AsyncDashboards +from .dashboards import ( + DashboardsWithRawResponse, + AsyncDashboardsWithRawResponse, + DashboardsWithStreamingResponse, + AsyncDashboardsWithStreamingResponse, ) +from .latencies import Latencies, AsyncLatencies from .latencies import ( - Latencies, - AsyncLatencies, LatenciesWithRawResponse, AsyncLatenciesWithRawResponse, LatenciesWithStreamingResponse, AsyncLatenciesWithStreamingResponse, ) -from .dashboards import ( - Dashboards, - AsyncDashboards, - DashboardsWithRawResponse, - AsyncDashboardsWithRawResponse, - DashboardsWithStreamingResponse, - AsyncDashboardsWithStreamingResponse, +from .analytics import Analytics, AsyncAnalytics +from .analytics import ( + AnalyticsWithRawResponse, + AsyncAnalyticsWithRawResponse, + AnalyticsWithStreamingResponse, + AsyncAnalyticsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/analytics/analytics.py b/src/cloudflare/resources/analytics/analytics.py index d2748d6e600..9d7552a507f 100644 --- a/src/cloudflare/resources/analytics/analytics.py +++ b/src/cloudflare/resources/analytics/analytics.py @@ -2,6 +2,29 @@ from __future__ import annotations +from .colo import Colo, AsyncColo + +from ..._compat import cached_property + +from .dashboards import Dashboards, AsyncDashboards + +from .latencies.latencies import Latencies, AsyncLatencies + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .colo import ( Colo, AsyncColo, @@ -10,15 +33,6 @@ ColoWithStreamingResponse, AsyncColoWithStreamingResponse, ) -from ..._compat import cached_property -from .latencies import ( - Latencies, - AsyncLatencies, - LatenciesWithRawResponse, - AsyncLatenciesWithRawResponse, - LatenciesWithStreamingResponse, - AsyncLatenciesWithStreamingResponse, -) from .dashboards import ( Dashboards, AsyncDashboards, @@ -27,8 +41,15 @@ DashboardsWithStreamingResponse, AsyncDashboardsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .latencies.latencies import Latencies, AsyncLatencies +from .latencies import ( + Latencies, + AsyncLatencies, + LatenciesWithRawResponse, + AsyncLatenciesWithRawResponse, + LatenciesWithStreamingResponse, + AsyncLatenciesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Analytics", "AsyncAnalytics"] diff --git a/src/cloudflare/resources/analytics/colo.py b/src/cloudflare/resources/analytics/colo.py index fb9194f64a8..81252a5b6c1 100644 --- a/src/cloudflare/resources/analytics/colo.py +++ b/src/cloudflare/resources/analytics/colo.py @@ -2,28 +2,40 @@ from __future__ import annotations -from typing import Type, Union, cast - 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 ...types.analytics import ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse + +from typing import Type, Union + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.analytics import ( - ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse, - colo_zone_analytics_deprecated_get_analytics_by_co_locations_params, -) +from ...types import shared_params +from ...types.analytics import colo_zone_analytics_deprecated_get_analytics_by_co_locations_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Colo", "AsyncColo"] diff --git a/src/cloudflare/resources/analytics/dashboards.py b/src/cloudflare/resources/analytics/dashboards.py index 694a46f533c..874afb3de78 100644 --- a/src/cloudflare/resources/analytics/dashboards.py +++ b/src/cloudflare/resources/analytics/dashboards.py @@ -2,28 +2,40 @@ from __future__ import annotations -from typing import Type, Union, cast - 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 ...types.analytics import DashboardZoneAnalyticsDeprecatedGetDashboardResponse + +from typing import Type, Union + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.analytics import ( - DashboardZoneAnalyticsDeprecatedGetDashboardResponse, - dashboard_zone_analytics_deprecated_get_dashboard_params, -) +from ...types import shared_params +from ...types.analytics import dashboard_zone_analytics_deprecated_get_dashboard_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Dashboards", "AsyncDashboards"] diff --git a/src/cloudflare/resources/analytics/latencies/__init__.py b/src/cloudflare/resources/analytics/latencies/__init__.py index 5fa0a71e6ea..00ead9b007e 100644 --- a/src/cloudflare/resources/analytics/latencies/__init__.py +++ b/src/cloudflare/resources/analytics/latencies/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .colos import Colos, AsyncColos from .colos import ( - Colos, - AsyncColos, ColosWithRawResponse, AsyncColosWithRawResponse, ColosWithStreamingResponse, AsyncColosWithStreamingResponse, ) +from .latencies import Latencies, AsyncLatencies from .latencies import ( - Latencies, - AsyncLatencies, LatenciesWithRawResponse, AsyncLatenciesWithRawResponse, LatenciesWithStreamingResponse, diff --git a/src/cloudflare/resources/analytics/latencies/colos.py b/src/cloudflare/resources/analytics/latencies/colos.py index 4abd51ca837..1c7bd140a5f 100644 --- a/src/cloudflare/resources/analytics/latencies/colos.py +++ b/src/cloudflare/resources/analytics/latencies/colos.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.analytics.latencies import ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.analytics.latencies import ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Colos", "AsyncColos"] diff --git a/src/cloudflare/resources/analytics/latencies/latencies.py b/src/cloudflare/resources/analytics/latencies/latencies.py index a027b2d3907..6c7cf9b4ada 100644 --- a/src/cloudflare/resources/analytics/latencies/latencies.py +++ b/src/cloudflare/resources/analytics/latencies/latencies.py @@ -2,36 +2,50 @@ from __future__ import annotations -from typing import Any, cast - import httpx -from .colos import ( - Colos, - AsyncColos, - ColosWithRawResponse, - AsyncColosWithRawResponse, - ColosWithStreamingResponse, - AsyncColosWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .colos import Colos, AsyncColos + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.analytics import LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.analytics import ( - LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse, - latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params, +from ....types import shared_params +from ....types.analytics import latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params +from .colos import ( + Colos, + AsyncColos, + ColosWithRawResponse, + AsyncColosWithRawResponse, + ColosWithStreamingResponse, + AsyncColosWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Latencies", "AsyncLatencies"] diff --git a/src/cloudflare/resources/argo/__init__.py b/src/cloudflare/resources/argo/__init__.py index 95705ef5169..fdba5e2e537 100644 --- a/src/cloudflare/resources/argo/__init__.py +++ b/src/cloudflare/resources/argo/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .argo import ( - Argo, - AsyncArgo, - ArgoWithRawResponse, - AsyncArgoWithRawResponse, - ArgoWithStreamingResponse, - AsyncArgoWithStreamingResponse, -) +from .smart_routing import SmartRouting, AsyncSmartRouting from .smart_routing import ( - SmartRouting, - AsyncSmartRouting, SmartRoutingWithRawResponse, AsyncSmartRoutingWithRawResponse, SmartRoutingWithStreamingResponse, AsyncSmartRoutingWithStreamingResponse, ) +from .tiered_caching import TieredCaching, AsyncTieredCaching from .tiered_caching import ( - TieredCaching, - AsyncTieredCaching, TieredCachingWithRawResponse, AsyncTieredCachingWithRawResponse, TieredCachingWithStreamingResponse, AsyncTieredCachingWithStreamingResponse, ) +from .argo import Argo, AsyncArgo +from .argo import ( + ArgoWithRawResponse, + AsyncArgoWithRawResponse, + ArgoWithStreamingResponse, + AsyncArgoWithStreamingResponse, +) __all__ = [ "SmartRouting", diff --git a/src/cloudflare/resources/argo/argo.py b/src/cloudflare/resources/argo/argo.py index 2335167f86e..dad4cb24e7f 100644 --- a/src/cloudflare/resources/argo/argo.py +++ b/src/cloudflare/resources/argo/argo.py @@ -2,8 +2,27 @@ from __future__ import annotations +from .smart_routing import SmartRouting, AsyncSmartRouting + from ..._compat import cached_property + +from .tiered_caching import TieredCaching, AsyncTieredCaching + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .smart_routing import ( SmartRouting, AsyncSmartRouting, @@ -20,6 +39,7 @@ TieredCachingWithStreamingResponse, AsyncTieredCachingWithStreamingResponse, ) +from ..._wrappers import ResultWrapper __all__ = ["Argo", "AsyncArgo"] diff --git a/src/cloudflare/resources/argo/smart_routing.py b/src/cloudflare/resources/argo/smart_routing.py index 82bb56bb24f..b0bf907acef 100644 --- a/src/cloudflare/resources/argo/smart_routing.py +++ b/src/cloudflare/resources/argo/smart_routing.py @@ -2,26 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.argo import SmartRoutingUpdateResponse, SmartRoutingGetResponse + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.argo import SmartRoutingGetResponse, SmartRoutingUpdateResponse, smart_routing_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.argo import smart_routing_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["SmartRouting", "AsyncSmartRouting"] diff --git a/src/cloudflare/resources/argo/tiered_caching.py b/src/cloudflare/resources/argo/tiered_caching.py index eaf7dd055f0..30f7df4a218 100644 --- a/src/cloudflare/resources/argo/tiered_caching.py +++ b/src/cloudflare/resources/argo/tiered_caching.py @@ -2,30 +2,49 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.argo import ( + TieredCachingTieredCachingGetTieredCachingSettingResponse, + TieredCachingTieredCachingPatchTieredCachingSettingResponse, +) + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.argo import ( - TieredCachingTieredCachingGetTieredCachingSettingResponse, - TieredCachingTieredCachingPatchTieredCachingSettingResponse, - tiered_caching_tiered_caching_patch_tiered_caching_setting_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.argo import tiered_caching_tiered_caching_patch_tiered_caching_setting_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["TieredCaching", "AsyncTieredCaching"] diff --git a/src/cloudflare/resources/audit_logs.py b/src/cloudflare/resources/audit_logs.py index 140493ada0f..447b4cbe1d6 100644 --- a/src/cloudflare/resources/audit_logs.py +++ b/src/cloudflare/resources/audit_logs.py @@ -2,29 +2,46 @@ from __future__ import annotations -from typing import Any, Union, cast -from datetime import datetime -from typing_extensions import Literal - import httpx -from ..types import ( - AuditLogAuditLogsGetAccountAuditLogsResponse, - audit_log_audit_logs_get_account_audit_logs_params, -) -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 ..types import AuditLogAuditLogsGetAccountAuditLogsResponse, audit_log_audit_logs_get_account_audit_logs_params + +from typing import Union + +from datetime import datetime + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_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 .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import audit_log_audit_logs_get_account_audit_logs_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AuditLogs", "AsyncAuditLogs"] diff --git a/src/cloudflare/resources/available_plans.py b/src/cloudflare/resources/available_plans.py index 57bad30d6b9..592f1dd7c27 100644 --- a/src/cloudflare/resources/available_plans.py +++ b/src/cloudflare/resources/available_plans.py @@ -2,24 +2,41 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from ..types import AvailablePlanGetResponse, AvailablePlanListResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import AvailablePlanListResponse, AvailablePlanGetResponse + +from typing import Type, Optional + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AvailablePlans", "AsyncAvailablePlans"] diff --git a/src/cloudflare/resources/available_rate_plans.py b/src/cloudflare/resources/available_rate_plans.py index 9b1ab808e71..071f517cdfc 100644 --- a/src/cloudflare/resources/available_rate_plans.py +++ b/src/cloudflare/resources/available_rate_plans.py @@ -2,24 +2,39 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from ..types import AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse + +from typing import Type, Optional + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["AvailableRatePlans", "AsyncAvailableRatePlans"] diff --git a/src/cloudflare/resources/billings/__init__.py b/src/cloudflare/resources/billings/__init__.py index f18a258f217..331aa9defa0 100644 --- a/src/cloudflare/resources/billings/__init__.py +++ b/src/cloudflare/resources/billings/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .billings import ( - Billings, - AsyncBillings, - BillingsWithRawResponse, - AsyncBillingsWithRawResponse, - BillingsWithStreamingResponse, - AsyncBillingsWithStreamingResponse, -) +from .profiles import Profiles, AsyncProfiles from .profiles import ( - Profiles, - AsyncProfiles, ProfilesWithRawResponse, AsyncProfilesWithRawResponse, ProfilesWithStreamingResponse, AsyncProfilesWithStreamingResponse, ) +from .billings import Billings, AsyncBillings +from .billings import ( + BillingsWithRawResponse, + AsyncBillingsWithRawResponse, + BillingsWithStreamingResponse, + AsyncBillingsWithStreamingResponse, +) __all__ = [ "Profiles", diff --git a/src/cloudflare/resources/billings/billings.py b/src/cloudflare/resources/billings/billings.py index 9915cc4b66f..7bbe590efe7 100644 --- a/src/cloudflare/resources/billings/billings.py +++ b/src/cloudflare/resources/billings/billings.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .profiles import Profiles, AsyncProfiles + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .profiles import ( Profiles, AsyncProfiles, @@ -10,8 +29,7 @@ ProfilesWithStreamingResponse, AsyncProfilesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Billings", "AsyncBillings"] diff --git a/src/cloudflare/resources/billings/profiles.py b/src/cloudflare/resources/billings/profiles.py index cb55330a1a5..87cb0f35ce4 100644 --- a/src/cloudflare/resources/billings/profiles.py +++ b/src/cloudflare/resources/billings/profiles.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.billings import ProfileAccountBillingProfileBillingProfileDetailsResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.billings import ProfileAccountBillingProfileBillingProfileDetailsResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Profiles", "AsyncProfiles"] diff --git a/src/cloudflare/resources/bot_managements.py b/src/cloudflare/resources/bot_managements.py index ceab836a5f9..ddf038e4ea2 100644 --- a/src/cloudflare/resources/bot_managements.py +++ b/src/cloudflare/resources/bot_managements.py @@ -2,26 +2,46 @@ from __future__ import annotations -from typing import Any, cast, overload -from typing_extensions import Literal - import httpx -from ..types import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params -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 ..types import BotManagementUpdateResponse, BotManagementGetResponse + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import bot_management_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["BotManagements", "AsyncBotManagements"] diff --git a/src/cloudflare/resources/brand_protections/__init__.py b/src/cloudflare/resources/brand_protections/__init__.py index bedb61df02f..02f82af22de 100644 --- a/src/cloudflare/resources/brand_protections/__init__.py +++ b/src/cloudflare/resources/brand_protections/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .submits import Submits, AsyncSubmits from .submits import ( - Submits, - AsyncSubmits, SubmitsWithRawResponse, AsyncSubmitsWithRawResponse, SubmitsWithStreamingResponse, AsyncSubmitsWithStreamingResponse, ) +from .url_infos import URLInfos, AsyncURLInfos from .url_infos import ( - URLInfos, - AsyncURLInfos, URLInfosWithRawResponse, AsyncURLInfosWithRawResponse, URLInfosWithStreamingResponse, AsyncURLInfosWithStreamingResponse, ) +from .brand_protections import BrandProtections, AsyncBrandProtections from .brand_protections import ( - BrandProtections, - AsyncBrandProtections, BrandProtectionsWithRawResponse, AsyncBrandProtectionsWithRawResponse, BrandProtectionsWithStreamingResponse, diff --git a/src/cloudflare/resources/brand_protections/brand_protections.py b/src/cloudflare/resources/brand_protections/brand_protections.py index 732534fa8d0..bdc9c0dbc6c 100644 --- a/src/cloudflare/resources/brand_protections/brand_protections.py +++ b/src/cloudflare/resources/brand_protections/brand_protections.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .submits import Submits, AsyncSubmits + +from ..._compat import cached_property + +from .url_infos import URLInfos, AsyncURLInfos + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .submits import ( Submits, AsyncSubmits, @@ -10,7 +31,6 @@ SubmitsWithStreamingResponse, AsyncSubmitsWithStreamingResponse, ) -from ..._compat import cached_property from .url_infos import ( URLInfos, AsyncURLInfos, @@ -19,7 +39,7 @@ URLInfosWithStreamingResponse, AsyncURLInfosWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["BrandProtections", "AsyncBrandProtections"] diff --git a/src/cloudflare/resources/brand_protections/submits.py b/src/cloudflare/resources/brand_protections/submits.py index c540a03aae6..71d2f9e8890 100644 --- a/src/cloudflare/resources/brand_protections/submits.py +++ b/src/cloudflare/resources/brand_protections/submits.py @@ -2,28 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.brand_protections import SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.brand_protections import ( - SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse, - submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params, -) +from ...types import shared_params +from ...types.brand_protections import submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Submits", "AsyncSubmits"] diff --git a/src/cloudflare/resources/brand_protections/url_infos.py b/src/cloudflare/resources/brand_protections/url_infos.py index 0e3cbfe5f7d..3d5669d21af 100644 --- a/src/cloudflare/resources/brand_protections/url_infos.py +++ b/src/cloudflare/resources/brand_protections/url_infos.py @@ -2,28 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.brand_protections import ( + URLInfoPhishingURLInformationGetResultsForAURLScanResponse, + url_info_phishing_url_information_get_results_for_a_url_scan_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.brand_protections import ( - URLInfoPhishingURLInformationGetResultsForAURLScanResponse, - url_info_phishing_url_information_get_results_for_a_url_scan_params, -) +from ...types import shared_params +from ...types.brand_protections import url_info_phishing_url_information_get_results_for_a_url_scan_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["URLInfos", "AsyncURLInfos"] diff --git a/src/cloudflare/resources/cache.py b/src/cloudflare/resources/cache.py index 7aa4777dea5..aea7a4c597b 100644 --- a/src/cloudflare/resources/cache.py +++ b/src/cloudflare/resources/cache.py @@ -2,30 +2,44 @@ from __future__ import annotations -from typing import Type, cast -from typing_extensions import Literal - import httpx -from ..types import ( - CacheRegionalTieredCachesResponse, - CacheUpdateRegionalTieredCacheResponse, - cache_update_regional_tiered_cache_params, -) -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 ..types import CacheRegionalTieredCachesResponse, CacheUpdateRegionalTieredCacheResponse + +from typing import Type + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import cache_update_regional_tiered_cache_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Cache", "AsyncCache"] diff --git a/src/cloudflare/resources/cache_reserves.py b/src/cloudflare/resources/cache_reserves.py index d78d1a6ebfc..5d1d2c08094 100644 --- a/src/cloudflare/resources/cache_reserves.py +++ b/src/cloudflare/resources/cache_reserves.py @@ -2,24 +2,41 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import CacheReserveClearResponse, CacheReserveCreateResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import CacheReserveCreateResponse, CacheReserveClearResponse + +from typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["CacheReserves", "AsyncCacheReserves"] diff --git a/src/cloudflare/resources/caches/__init__.py b/src/cloudflare/resources/caches/__init__.py index 216dbb1d502..3b883f7fa54 100644 --- a/src/cloudflare/resources/caches/__init__.py +++ b/src/cloudflare/resources/caches/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .caches import ( - Caches, - AsyncCaches, - CachesWithRawResponse, - AsyncCachesWithRawResponse, - CachesWithStreamingResponse, - AsyncCachesWithStreamingResponse, -) -from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, -) +from .cache_reserves import CacheReserves, AsyncCacheReserves from .cache_reserves import ( - CacheReserves, - AsyncCacheReserves, CacheReservesWithRawResponse, AsyncCacheReservesWithRawResponse, CacheReservesWithStreamingResponse, AsyncCacheReservesWithStreamingResponse, ) +from .tiered_cache_smart_topology_enables import TieredCacheSmartTopologyEnables, AsyncTieredCacheSmartTopologyEnables from .tiered_cache_smart_topology_enables import ( - TieredCacheSmartTopologyEnables, - AsyncTieredCacheSmartTopologyEnables, TieredCacheSmartTopologyEnablesWithRawResponse, AsyncTieredCacheSmartTopologyEnablesWithRawResponse, TieredCacheSmartTopologyEnablesWithStreamingResponse, AsyncTieredCacheSmartTopologyEnablesWithStreamingResponse, ) +from .variants import Variants, AsyncVariants +from .variants import ( + VariantsWithRawResponse, + AsyncVariantsWithRawResponse, + VariantsWithStreamingResponse, + AsyncVariantsWithStreamingResponse, +) +from .caches import Caches, AsyncCaches +from .caches import ( + CachesWithRawResponse, + AsyncCachesWithRawResponse, + CachesWithStreamingResponse, + AsyncCachesWithStreamingResponse, +) __all__ = [ "CacheReserves", diff --git a/src/cloudflare/resources/caches/cache_reserves.py b/src/cloudflare/resources/caches/cache_reserves.py index 3e081ac2513..8c0979f483a 100644 --- a/src/cloudflare/resources/caches/cache_reserves.py +++ b/src/cloudflare/resources/caches/cache_reserves.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.caches import CacheReserveListResponse, CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.caches import ( - CacheReserveListResponse, - CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, - cache_reserve_zone_cache_settings_change_cache_reserve_setting_params, -) +from ...types import shared_params +from ...types.caches import cache_reserve_zone_cache_settings_change_cache_reserve_setting_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["CacheReserves", "AsyncCacheReserves"] diff --git a/src/cloudflare/resources/caches/caches.py b/src/cloudflare/resources/caches/caches.py index ca0ec98a105..1aab2147289 100644 --- a/src/cloudflare/resources/caches/caches.py +++ b/src/cloudflare/resources/caches/caches.py @@ -2,16 +2,29 @@ from __future__ import annotations -from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, -) +from .cache_reserves import CacheReserves, AsyncCacheReserves + from ..._compat import cached_property + +from .tiered_cache_smart_topology_enables import TieredCacheSmartTopologyEnables, AsyncTieredCacheSmartTopologyEnables + +from .variants import Variants, AsyncVariants + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .cache_reserves import ( CacheReserves, AsyncCacheReserves, @@ -28,6 +41,15 @@ TieredCacheSmartTopologyEnablesWithStreamingResponse, AsyncTieredCacheSmartTopologyEnablesWithStreamingResponse, ) +from .variants import ( + Variants, + AsyncVariants, + VariantsWithRawResponse, + AsyncVariantsWithRawResponse, + VariantsWithStreamingResponse, + AsyncVariantsWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Caches", "AsyncCaches"] diff --git a/src/cloudflare/resources/caches/tiered_cache_smart_topology_enables.py b/src/cloudflare/resources/caches/tiered_cache_smart_topology_enables.py index 28948b72080..1f34b10d661 100644 --- a/src/cloudflare/resources/caches/tiered_cache_smart_topology_enables.py +++ b/src/cloudflare/resources/caches/tiered_cache_smart_topology_enables.py @@ -2,31 +2,56 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.caches import ( + TieredCacheSmartTopologyEnableDeleteResponse, + TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, + TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, +) + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from ...types.caches import ( - TieredCacheSmartTopologyEnableDeleteResponse, - TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, - TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params, ) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["TieredCacheSmartTopologyEnables", "AsyncTieredCacheSmartTopologyEnables"] diff --git a/src/cloudflare/resources/caches/variants.py b/src/cloudflare/resources/caches/variants.py index 51229e0641e..af6b8f4d108 100644 --- a/src/cloudflare/resources/caches/variants.py +++ b/src/cloudflare/resources/caches/variants.py @@ -2,30 +2,49 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.caches import ( + VariantListResponse, + VariantDeleteResponse, + VariantZoneCacheSettingsChangeVariantsSettingResponse, + variant_zone_cache_settings_change_variants_setting_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.caches import ( - VariantListResponse, - VariantDeleteResponse, - VariantZoneCacheSettingsChangeVariantsSettingResponse, - variant_zone_cache_settings_change_variants_setting_params, -) +from ...types import shared_params +from ...types.caches import variant_zone_cache_settings_change_variants_setting_params +from ..._wrappers import ResultWrapper +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__ = ["Variants", "AsyncVariants"] diff --git a/src/cloudflare/resources/calls.py b/src/cloudflare/resources/calls.py index 2ed7cb541e6..73a7a901e99 100644 --- a/src/cloudflare/resources/calls.py +++ b/src/cloudflare/resources/calls.py @@ -2,33 +2,49 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import ( - CallGetResponse, - CallListResponse, - CallCreateResponse, - CallDeleteResponse, - CallUpdateResponse, - call_create_params, - call_update_params, -) -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 ..types import CallCreateResponse, CallUpdateResponse, CallListResponse, CallDeleteResponse, CallGetResponse + +from typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import call_create_params +from ..types import call_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Calls", "AsyncCalls"] diff --git a/src/cloudflare/resources/certificate_authorities/__init__.py b/src/cloudflare/resources/certificate_authorities/__init__.py index 81ef7a88263..41911c25dac 100644 --- a/src/cloudflare/resources/certificate_authorities/__init__.py +++ b/src/cloudflare/resources/certificate_authorities/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .hostname_associations import HostnameAssociations, AsyncHostnameAssociations from .hostname_associations import ( - HostnameAssociations, - AsyncHostnameAssociations, HostnameAssociationsWithRawResponse, AsyncHostnameAssociationsWithRawResponse, HostnameAssociationsWithStreamingResponse, AsyncHostnameAssociationsWithStreamingResponse, ) +from .certificate_authorities import CertificateAuthorities, AsyncCertificateAuthorities from .certificate_authorities import ( - CertificateAuthorities, - AsyncCertificateAuthorities, CertificateAuthoritiesWithRawResponse, AsyncCertificateAuthoritiesWithRawResponse, CertificateAuthoritiesWithStreamingResponse, diff --git a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py index fc3879a210c..29f6e9fa20f 100644 --- a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py +++ b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .hostname_associations import HostnameAssociations, AsyncHostnameAssociations + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .hostname_associations import ( HostnameAssociations, AsyncHostnameAssociations, @@ -12,6 +29,7 @@ HostnameAssociationsWithStreamingResponse, AsyncHostnameAssociationsWithStreamingResponse, ) +from ..._wrappers import ResultWrapper __all__ = ["CertificateAuthorities", "AsyncCertificateAuthorities"] diff --git a/src/cloudflare/resources/certificate_authorities/hostname_associations.py b/src/cloudflare/resources/certificate_authorities/hostname_associations.py index c2d902038d1..1d3103b27ca 100644 --- a/src/cloudflare/resources/certificate_authorities/hostname_associations.py +++ b/src/cloudflare/resources/certificate_authorities/hostname_associations.py @@ -2,30 +2,50 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.certificate_authorities import ( + HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, + HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, +) + +from typing import Type, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from ...types.certificate_authorities import ( - HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, - HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, - hostname_association_client_certificate_for_a_zone_put_hostname_associations_params, hostname_association_client_certificate_for_a_zone_list_hostname_associations_params, ) +from ...types.certificate_authorities import ( + hostname_association_client_certificate_for_a_zone_put_hostname_associations_params, +) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["HostnameAssociations", "AsyncHostnameAssociations"] diff --git a/src/cloudflare/resources/certificates.py b/src/cloudflare/resources/certificates.py index 57ac7236f6c..ee9ffa71c48 100644 --- a/src/cloudflare/resources/certificates.py +++ b/src/cloudflare/resources/certificates.py @@ -2,32 +2,57 @@ from __future__ import annotations -from typing import Any, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - CertificateGetResponse, CertificateDeleteResponse, - CertificateOriginCaListCertificatesResponse, + CertificateGetResponse, CertificateOriginCaCreateCertificateResponse, - certificate_origin_ca_create_certificate_params, + CertificateOriginCaListCertificatesResponse, ) -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 typing import Type, Iterable, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import certificate_origin_ca_create_certificate_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Certificates", "AsyncCertificates"] diff --git a/src/cloudflare/resources/cfd_tunnels/__init__.py b/src/cloudflare/resources/cfd_tunnels/__init__.py index 67502914b4e..dd33e309812 100644 --- a/src/cloudflare/resources/cfd_tunnels/__init__.py +++ b/src/cloudflare/resources/cfd_tunnels/__init__.py @@ -1,53 +1,47 @@ # File generated from our OpenAPI spec by Stainless. +from .configurations import Configurations, AsyncConfigurations +from .configurations import ( + ConfigurationsWithRawResponse, + AsyncConfigurationsWithRawResponse, + ConfigurationsWithStreamingResponse, + AsyncConfigurationsWithStreamingResponse, +) +from .connections import Connections, AsyncConnections +from .connections import ( + ConnectionsWithRawResponse, + AsyncConnectionsWithRawResponse, + ConnectionsWithStreamingResponse, + AsyncConnectionsWithStreamingResponse, +) +from .tokens import Tokens, AsyncTokens from .tokens import ( - Tokens, - AsyncTokens, TokensWithRawResponse, AsyncTokensWithRawResponse, TokensWithStreamingResponse, AsyncTokensWithStreamingResponse, ) +from .connectors import Connectors, AsyncConnectors from .connectors import ( - Connectors, - AsyncConnectors, ConnectorsWithRawResponse, AsyncConnectorsWithRawResponse, ConnectorsWithStreamingResponse, AsyncConnectorsWithStreamingResponse, ) +from .management import Management, AsyncManagement from .management import ( - Management, - AsyncManagement, ManagementWithRawResponse, AsyncManagementWithRawResponse, ManagementWithStreamingResponse, AsyncManagementWithStreamingResponse, ) +from .cfd_tunnels import CfdTunnels, AsyncCfdTunnels from .cfd_tunnels import ( - CfdTunnels, - AsyncCfdTunnels, CfdTunnelsWithRawResponse, AsyncCfdTunnelsWithRawResponse, CfdTunnelsWithStreamingResponse, AsyncCfdTunnelsWithStreamingResponse, ) -from .connections import ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, -) -from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, -) __all__ = [ "Configurations", diff --git a/src/cloudflare/resources/cfd_tunnels/cfd_tunnels.py b/src/cloudflare/resources/cfd_tunnels/cfd_tunnels.py index c0b008f8b6d..b07e36dede2 100644 --- a/src/cloudflare/resources/cfd_tunnels/cfd_tunnels.py +++ b/src/cloudflare/resources/cfd_tunnels/cfd_tunnels.py @@ -2,12 +2,76 @@ from __future__ import annotations -from typing import Any, Type, Union, Optional, cast -from datetime import datetime +import httpx + +from .configurations import Configurations, AsyncConfigurations + +from ..._compat import cached_property + +from .connections import Connections, AsyncConnections + +from .tokens import Tokens, AsyncTokens + +from .connectors import Connectors, AsyncConnectors + +from .management import Management, AsyncManagement + +from ...types import ( + CfdTunnelUpdateResponse, + CfdTunnelDeleteResponse, + CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, + CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, + CfdTunnelGetResponse, +) + from typing_extensions import Literal -import httpx +from typing import Type, Optional, Union + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import cfd_tunnel_update_params +from ...types import cfd_tunnel_delete_params +from ...types import cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params +from ...types import cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params +from .configurations import ( + Configurations, + AsyncConfigurations, + ConfigurationsWithRawResponse, + AsyncConfigurationsWithRawResponse, + ConfigurationsWithStreamingResponse, + AsyncConfigurationsWithStreamingResponse, +) +from .connections import ( + Connections, + AsyncConnections, + ConnectionsWithRawResponse, + AsyncConnectionsWithRawResponse, + ConnectionsWithStreamingResponse, + AsyncConnectionsWithStreamingResponse, +) from .tokens import ( Tokens, AsyncTokens, @@ -16,20 +80,6 @@ TokensWithStreamingResponse, AsyncTokensWithStreamingResponse, ) -from ...types import ( - CfdTunnelGetResponse, - CfdTunnelDeleteResponse, - CfdTunnelUpdateResponse, - CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, - CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, - cfd_tunnel_delete_params, - cfd_tunnel_update_params, - cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params, - cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params, -) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform -from ..._compat import cached_property from .connectors import ( Connectors, AsyncConnectors, @@ -46,33 +96,25 @@ ManagementWithStreamingResponse, AsyncManagementWithStreamingResponse, ) -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 ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, -) -from ..._base_client import ( - make_request_options, -) -from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, -) +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["CfdTunnels", "AsyncCfdTunnels"] diff --git a/src/cloudflare/resources/cfd_tunnels/configurations.py b/src/cloudflare/resources/cfd_tunnels/configurations.py index 8686c233e4f..0ff9d337ffe 100644 --- a/src/cloudflare/resources/cfd_tunnels/configurations.py +++ b/src/cloudflare/resources/cfd_tunnels/configurations.py @@ -2,29 +2,48 @@ from __future__ import annotations -from typing import Any, cast - 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 ...types.cfd_tunnels import ( + ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, + ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, + configuration_cloudflare_tunnel_configuration_put_configuration_params, +) + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.cfd_tunnels import ( - ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, - ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, - configuration_cloudflare_tunnel_configuration_put_configuration_params, -) +from ...types import shared_params +from ...types.cfd_tunnels import configuration_cloudflare_tunnel_configuration_put_configuration_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Configurations", "AsyncConfigurations"] diff --git a/src/cloudflare/resources/cfd_tunnels/connections.py b/src/cloudflare/resources/cfd_tunnels/connections.py index f6537682b02..0fb878d5e9e 100644 --- a/src/cloudflare/resources/cfd_tunnels/connections.py +++ b/src/cloudflare/resources/cfd_tunnels/connections.py @@ -2,29 +2,47 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.cfd_tunnels import ( + ConnectionDeleteResponse, + ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.cfd_tunnels import ( - ConnectionDeleteResponse, - ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse, - connection_delete_params, -) +from ...types import shared_params +from ...types.cfd_tunnels import connection_delete_params +from ..._wrappers import ResultWrapper +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__ = ["Connections", "AsyncConnections"] diff --git a/src/cloudflare/resources/cfd_tunnels/connectors.py b/src/cloudflare/resources/cfd_tunnels/connectors.py index ff93566fa2c..11365b67311 100644 --- a/src/cloudflare/resources/cfd_tunnels/connectors.py +++ b/src/cloudflare/resources/cfd_tunnels/connectors.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.cfd_tunnels import ConnectorGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.cfd_tunnels import ConnectorGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Connectors", "AsyncConnectors"] diff --git a/src/cloudflare/resources/cfd_tunnels/management.py b/src/cloudflare/resources/cfd_tunnels/management.py index b0389c2e8e9..492f50925fc 100644 --- a/src/cloudflare/resources/cfd_tunnels/management.py +++ b/src/cloudflare/resources/cfd_tunnels/management.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.cfd_tunnels import ManagementCreateResponse + +from typing import List + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.cfd_tunnels import ManagementCreateResponse, management_create_params +from ...types import shared_params +from ...types.cfd_tunnels import management_create_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Management", "AsyncManagement"] diff --git a/src/cloudflare/resources/cfd_tunnels/tokens.py b/src/cloudflare/resources/cfd_tunnels/tokens.py index 3634eefc63f..24466d03117 100644 --- a/src/cloudflare/resources/cfd_tunnels/tokens.py +++ b/src/cloudflare/resources/cfd_tunnels/tokens.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.cfd_tunnels import TokenCloudflareTunnelGetACloudflareTunnelTokenResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.cfd_tunnels import TokenCloudflareTunnelGetACloudflareTunnelTokenResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Tokens", "AsyncTokens"] diff --git a/src/cloudflare/resources/challenges/__init__.py b/src/cloudflare/resources/challenges/__init__.py index c86e497fef3..897c5fe3aa6 100644 --- a/src/cloudflare/resources/challenges/__init__.py +++ b/src/cloudflare/resources/challenges/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .widgets import Widgets, AsyncWidgets from .widgets import ( - Widgets, - AsyncWidgets, WidgetsWithRawResponse, AsyncWidgetsWithRawResponse, WidgetsWithStreamingResponse, AsyncWidgetsWithStreamingResponse, ) +from .challenges import Challenges, AsyncChallenges from .challenges import ( - Challenges, - AsyncChallenges, ChallengesWithRawResponse, AsyncChallengesWithRawResponse, ChallengesWithStreamingResponse, diff --git a/src/cloudflare/resources/challenges/challenges.py b/src/cloudflare/resources/challenges/challenges.py index 82adca82043..a6ddd385d95 100644 --- a/src/cloudflare/resources/challenges/challenges.py +++ b/src/cloudflare/resources/challenges/challenges.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .widgets import Widgets, AsyncWidgets + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .widgets import ( Widgets, AsyncWidgets, @@ -10,8 +29,7 @@ WidgetsWithStreamingResponse, AsyncWidgetsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Challenges", "AsyncChallenges"] diff --git a/src/cloudflare/resources/challenges/widgets.py b/src/cloudflare/resources/challenges/widgets.py index 9e64cf4e792..dfc36f83925 100644 --- a/src/cloudflare/resources/challenges/widgets.py +++ b/src/cloudflare/resources/challenges/widgets.py @@ -2,37 +2,62 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.challenges import ( + WidgetCreateResponse, + WidgetUpdateResponse, + WidgetListResponse, + WidgetDeleteResponse, + WidgetGetResponse, + WidgetRotateSecretResponse, +) + +from typing import Type, Optional, List + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.challenges import ( - WidgetGetResponse, - WidgetListResponse, - WidgetCreateResponse, - WidgetDeleteResponse, - WidgetUpdateResponse, - WidgetRotateSecretResponse, - widget_list_params, - widget_create_params, - widget_update_params, - widget_rotate_secret_params, -) +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 ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Widgets", "AsyncWidgets"] diff --git a/src/cloudflare/resources/client_certificates.py b/src/cloudflare/resources/client_certificates.py index 42070d8921b..89c8ceacae5 100644 --- a/src/cloudflare/resources/client_certificates.py +++ b/src/cloudflare/resources/client_certificates.py @@ -2,34 +2,57 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - ClientCertificateGetResponse, - ClientCertificateDeleteResponse, ClientCertificateUpdateResponse, - ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, + ClientCertificateDeleteResponse, ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, - client_certificate_client_certificate_for_a_zone_list_client_certificates_params, - client_certificate_client_certificate_for_a_zone_create_client_certificate_params, + ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, + ClientCertificateGetResponse, ) -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 typing import Type, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import client_certificate_client_certificate_for_a_zone_create_client_certificate_params +from ..types import client_certificate_client_certificate_for_a_zone_list_client_certificates_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["ClientCertificates", "AsyncClientCertificates"] diff --git a/src/cloudflare/resources/custom_certificates/__init__.py b/src/cloudflare/resources/custom_certificates/__init__.py index 038059ff9b7..8582566840c 100644 --- a/src/cloudflare/resources/custom_certificates/__init__.py +++ b/src/cloudflare/resources/custom_certificates/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .prioritizes import Prioritizes, AsyncPrioritizes from .prioritizes import ( - Prioritizes, - AsyncPrioritizes, PrioritizesWithRawResponse, AsyncPrioritizesWithRawResponse, PrioritizesWithStreamingResponse, AsyncPrioritizesWithStreamingResponse, ) +from .custom_certificates import CustomCertificates, AsyncCustomCertificates from .custom_certificates import ( - CustomCertificates, - AsyncCustomCertificates, CustomCertificatesWithRawResponse, AsyncCustomCertificatesWithRawResponse, CustomCertificatesWithStreamingResponse, diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py index 08da684b64d..4ac1089b695 100644 --- a/src/cloudflare/resources/custom_certificates/custom_certificates.py +++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py @@ -2,32 +2,51 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast -from typing_extensions import Literal - import httpx +from .prioritizes import Prioritizes, AsyncPrioritizes + +from ..._compat import cached_property + from ...types import ( - CustomCertificateGetResponse, - CustomCertificateListResponse, CustomCertificateCreateResponse, - CustomCertificateDeleteResponse, CustomCertificateUpdateResponse, - custom_certificate_list_params, + CustomCertificateListResponse, + CustomCertificateDeleteResponse, + CustomCertificateGetResponse, custom_certificate_create_params, custom_certificate_update_params, ) -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 typing_extensions import Literal + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import custom_certificate_create_params +from ...types import custom_certificate_update_params +from ...types import custom_certificate_list_params from .prioritizes import ( Prioritizes, AsyncPrioritizes, @@ -36,9 +55,23 @@ PrioritizesWithStreamingResponse, AsyncPrioritizesWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, -) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["CustomCertificates", "AsyncCustomCertificates"] diff --git a/src/cloudflare/resources/custom_certificates/prioritizes.py b/src/cloudflare/resources/custom_certificates/prioritizes.py index 8f1cd43e3d9..2b3b9e5b706 100644 --- a/src/cloudflare/resources/custom_certificates/prioritizes.py +++ b/src/cloudflare/resources/custom_certificates/prioritizes.py @@ -2,28 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.custom_certificates import ( + PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse, + prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params, +) + +from typing import Type, Optional, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.custom_certificates import ( - PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse, - prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params, -) +from ...types import shared_params +from ...types.custom_certificates import prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Prioritizes", "AsyncPrioritizes"] diff --git a/src/cloudflare/resources/custom_hostnames/__init__.py b/src/cloudflare/resources/custom_hostnames/__init__.py index cc3642ca5c9..d051164ab8e 100644 --- a/src/cloudflare/resources/custom_hostnames/__init__.py +++ b/src/cloudflare/resources/custom_hostnames/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .custom_hostnames import ( - CustomHostnames, - AsyncCustomHostnames, - CustomHostnamesWithRawResponse, - AsyncCustomHostnamesWithRawResponse, - CustomHostnamesWithStreamingResponse, - AsyncCustomHostnamesWithStreamingResponse, -) +from .fallback_origins import FallbackOrigins, AsyncFallbackOrigins from .fallback_origins import ( - FallbackOrigins, - AsyncFallbackOrigins, FallbackOriginsWithRawResponse, AsyncFallbackOriginsWithRawResponse, FallbackOriginsWithStreamingResponse, AsyncFallbackOriginsWithStreamingResponse, ) +from .custom_hostnames import CustomHostnames, AsyncCustomHostnames +from .custom_hostnames import ( + CustomHostnamesWithRawResponse, + AsyncCustomHostnamesWithRawResponse, + CustomHostnamesWithStreamingResponse, + AsyncCustomHostnamesWithStreamingResponse, +) __all__ = [ "FallbackOrigins", diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py index da13898f473..3df06970d7f 100644 --- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py +++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py @@ -2,35 +2,51 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx +from .fallback_origins import FallbackOrigins, AsyncFallbackOrigins + +from ..._compat import cached_property + from ...types import ( - CustomHostnameGetResponse, - CustomHostnameDeleteResponse, CustomHostnameUpdateResponse, - CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, + CustomHostnameDeleteResponse, CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, + CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, + CustomHostnameGetResponse, custom_hostname_update_params, - custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params, custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params, ) -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 typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types import custom_hostname_update_params +from ...types import custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params +from ...types import custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params from .fallback_origins import ( FallbackOrigins, AsyncFallbackOrigins, @@ -39,6 +55,15 @@ FallbackOriginsWithStreamingResponse, AsyncFallbackOriginsWithStreamingResponse, ) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["CustomHostnames", "AsyncCustomHostnames"] diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origins.py b/src/cloudflare/resources/custom_hostnames/fallback_origins.py index bdd8df7697d..2ed6430d03e 100644 --- a/src/cloudflare/resources/custom_hostnames/fallback_origins.py +++ b/src/cloudflare/resources/custom_hostnames/fallback_origins.py @@ -2,30 +2,52 @@ from __future__ import annotations -from typing import Any, cast - 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 ...types.custom_hostnames import ( + FallbackOriginUpdateResponse, + FallbackOriginDeleteResponse, + FallbackOriginGetResponse, +) + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.custom_hostnames import ( - FallbackOriginGetResponse, - FallbackOriginDeleteResponse, - FallbackOriginUpdateResponse, - fallback_origin_update_params, -) +from ...types import shared_params +from ...types.custom_hostnames import fallback_origin_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["FallbackOrigins", "AsyncFallbackOrigins"] diff --git a/src/cloudflare/resources/custom_ns/__init__.py b/src/cloudflare/resources/custom_ns/__init__.py index 952ef77caf6..fb224c623f0 100644 --- a/src/cloudflare/resources/custom_ns/__init__.py +++ b/src/cloudflare/resources/custom_ns/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .availabilities import Availabilities, AsyncAvailabilities +from .availabilities import ( + AvailabilitiesWithRawResponse, + AsyncAvailabilitiesWithRawResponse, + AvailabilitiesWithStreamingResponse, + AsyncAvailabilitiesWithStreamingResponse, +) +from .verifies import Verifies, AsyncVerifies from .verifies import ( - Verifies, - AsyncVerifies, VerifiesWithRawResponse, AsyncVerifiesWithRawResponse, VerifiesWithStreamingResponse, AsyncVerifiesWithStreamingResponse, ) +from .custom_ns import CustomNs, AsyncCustomNs from .custom_ns import ( - CustomNs, - AsyncCustomNs, CustomNsWithRawResponse, AsyncCustomNsWithRawResponse, CustomNsWithStreamingResponse, AsyncCustomNsWithStreamingResponse, ) -from .availabilities import ( - Availabilities, - AsyncAvailabilities, - AvailabilitiesWithRawResponse, - AsyncAvailabilitiesWithRawResponse, - AvailabilitiesWithStreamingResponse, - AsyncAvailabilitiesWithStreamingResponse, -) __all__ = [ "Availabilities", diff --git a/src/cloudflare/resources/custom_ns/availabilities.py b/src/cloudflare/resources/custom_ns/availabilities.py index 4ef46c7d499..c5b74142397 100644 --- a/src/cloudflare/resources/custom_ns/availabilities.py +++ b/src/cloudflare/resources/custom_ns/availabilities.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.custom_ns import AvailabilityGetResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.custom_ns import AvailabilityGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Availabilities", "AsyncAvailabilities"] diff --git a/src/cloudflare/resources/custom_ns/custom_ns.py b/src/cloudflare/resources/custom_ns/custom_ns.py index 97ae3d30ed4..f07d9a7ace5 100644 --- a/src/cloudflare/resources/custom_ns/custom_ns.py +++ b/src/cloudflare/resources/custom_ns/custom_ns.py @@ -2,38 +2,41 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ...types import ( - CustomNListResponse, - CustomNCreateResponse, - CustomNDeleteResponse, - custom_n_create_params, -) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform -from .verifies import ( - Verifies, - AsyncVerifies, - VerifiesWithRawResponse, - AsyncVerifiesWithRawResponse, - VerifiesWithStreamingResponse, - AsyncVerifiesWithStreamingResponse, -) +from .availabilities import Availabilities, AsyncAvailabilities + from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from .verifies import Verifies, AsyncVerifies + +from ...types import CustomNCreateResponse, CustomNListResponse, CustomNDeleteResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types import custom_n_create_params from .availabilities import ( Availabilities, AsyncAvailabilities, @@ -42,6 +45,23 @@ AvailabilitiesWithStreamingResponse, AsyncAvailabilitiesWithStreamingResponse, ) +from .verifies import ( + Verifies, + AsyncVerifies, + VerifiesWithRawResponse, + AsyncVerifiesWithRawResponse, + VerifiesWithStreamingResponse, + AsyncVerifiesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["CustomNs", "AsyncCustomNs"] diff --git a/src/cloudflare/resources/custom_ns/verifies.py b/src/cloudflare/resources/custom_ns/verifies.py index 7b5bf88779f..5eacf2500cb 100644 --- a/src/cloudflare/resources/custom_ns/verifies.py +++ b/src/cloudflare/resources/custom_ns/verifies.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.custom_ns import VerifyUpdateResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.custom_ns import VerifyUpdateResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Verifies", "AsyncVerifies"] diff --git a/src/cloudflare/resources/d1/__init__.py b/src/cloudflare/resources/d1/__init__.py index 72025a67fb5..484cbbacc8c 100644 --- a/src/cloudflare/resources/d1/__init__.py +++ b/src/cloudflare/resources/d1/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .d1 import ( - D1, - AsyncD1, - D1WithRawResponse, - AsyncD1WithRawResponse, - D1WithStreamingResponse, - AsyncD1WithStreamingResponse, +from .databases import Databases, AsyncDatabases +from .databases import ( + DatabasesWithRawResponse, + AsyncDatabasesWithRawResponse, + DatabasesWithStreamingResponse, + AsyncDatabasesWithStreamingResponse, ) +from .database import Database, AsyncDatabase from .database import ( - Database, - AsyncDatabase, DatabaseWithRawResponse, AsyncDatabaseWithRawResponse, DatabaseWithStreamingResponse, AsyncDatabaseWithStreamingResponse, ) -from .databases import ( - Databases, - AsyncDatabases, - DatabasesWithRawResponse, - AsyncDatabasesWithRawResponse, - DatabasesWithStreamingResponse, - AsyncDatabasesWithStreamingResponse, -) +from .d1 import D1, AsyncD1 +from .d1 import D1WithRawResponse, AsyncD1WithRawResponse, D1WithStreamingResponse, AsyncD1WithStreamingResponse __all__ = [ "Databases", diff --git a/src/cloudflare/resources/d1/d1.py b/src/cloudflare/resources/d1/d1.py index 57e2eb946e8..ad23eb110c8 100644 --- a/src/cloudflare/resources/d1/d1.py +++ b/src/cloudflare/resources/d1/d1.py @@ -2,15 +2,27 @@ from __future__ import annotations -from .database import ( - Database, - AsyncDatabase, - DatabaseWithRawResponse, - AsyncDatabaseWithRawResponse, - DatabaseWithStreamingResponse, - AsyncDatabaseWithStreamingResponse, -) +from .databases import Databases, AsyncDatabases + from ..._compat import cached_property + +from .database import Database, AsyncDatabase + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .databases import ( Databases, AsyncDatabases, @@ -19,7 +31,15 @@ DatabasesWithStreamingResponse, AsyncDatabasesWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from .database import ( + Database, + AsyncDatabase, + DatabaseWithRawResponse, + AsyncDatabaseWithRawResponse, + DatabaseWithStreamingResponse, + AsyncDatabaseWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["D1", "AsyncD1"] diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py index 3dc1f5947b2..ac263835d55 100644 --- a/src/cloudflare/resources/d1/database.py +++ b/src/cloudflare/resources/d1/database.py @@ -2,25 +2,46 @@ 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 from ..._compat import cached_property -from ...types.d1 import DatabaseGetResponse, DatabaseQueryResponse, DatabaseDeleteResponse, database_query_params -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.d1 import DatabaseDeleteResponse, DatabaseGetResponse, DatabaseQueryResponse + +from typing import Optional, Type, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.d1 import database_query_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Database", "AsyncDatabase"] diff --git a/src/cloudflare/resources/d1/databases.py b/src/cloudflare/resources/d1/databases.py index 82badf3e3e7..969d970dcb5 100644 --- a/src/cloudflare/resources/d1/databases.py +++ b/src/cloudflare/resources/d1/databases.py @@ -2,25 +2,43 @@ 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 from ..._compat import cached_property -from ...types.d1 import DatabaseListResponse, DatabaseCreateResponse, database_list_params, database_create_params -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.d1 import DatabaseCreateResponse, DatabaseListResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.d1 import database_create_params +from ...types.d1 import database_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Databases", "AsyncDatabases"] diff --git a/src/cloudflare/resources/dcv_delegation/__init__.py b/src/cloudflare/resources/dcv_delegation/__init__.py index 2e1fc7f6472..be13edd0fc8 100644 --- a/src/cloudflare/resources/dcv_delegation/__init__.py +++ b/src/cloudflare/resources/dcv_delegation/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .uuid import Uuid, AsyncUuid from .uuid import ( - Uuid, - AsyncUuid, UuidWithRawResponse, AsyncUuidWithRawResponse, UuidWithStreamingResponse, AsyncUuidWithStreamingResponse, ) +from .dcv_delegation import DcvDelegation, AsyncDcvDelegation from .dcv_delegation import ( - DcvDelegation, - AsyncDcvDelegation, DcvDelegationWithRawResponse, AsyncDcvDelegationWithRawResponse, DcvDelegationWithStreamingResponse, diff --git a/src/cloudflare/resources/dcv_delegation/dcv_delegation.py b/src/cloudflare/resources/dcv_delegation/dcv_delegation.py index 8549470e45d..39d3b138655 100644 --- a/src/cloudflare/resources/dcv_delegation/dcv_delegation.py +++ b/src/cloudflare/resources/dcv_delegation/dcv_delegation.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .uuid import Uuid, AsyncUuid + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .uuid import ( Uuid, AsyncUuid, @@ -10,8 +29,7 @@ UuidWithStreamingResponse, AsyncUuidWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["DcvDelegation", "AsyncDcvDelegation"] diff --git a/src/cloudflare/resources/dcv_delegation/uuid.py b/src/cloudflare/resources/dcv_delegation/uuid.py index 6c54e687914..ae12ebc24a6 100644 --- a/src/cloudflare/resources/dcv_delegation/uuid.py +++ b/src/cloudflare/resources/dcv_delegation/uuid.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.dcv_delegation import UuidGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.dcv_delegation import UuidGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Uuid", "AsyncUuid"] diff --git a/src/cloudflare/resources/devices/__init__.py b/src/cloudflare/resources/devices/__init__.py index e53afe371b7..15dd82efcdc 100644 --- a/src/cloudflare/resources/devices/__init__.py +++ b/src/cloudflare/resources/devices/__init__.py @@ -1,77 +1,68 @@ # File generated from our OpenAPI spec by Stainless. -from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, -) -from .revokes import ( - Revokes, - AsyncRevokes, - RevokesWithRawResponse, - AsyncRevokesWithRawResponse, - RevokesWithStreamingResponse, - AsyncRevokesWithStreamingResponse, +from .dex_tests import DEXTests, AsyncDEXTests +from .dex_tests import ( + DEXTestsWithRawResponse, + AsyncDEXTestsWithRawResponse, + DEXTestsWithStreamingResponse, + AsyncDEXTestsWithStreamingResponse, ) +from .networks import Networks, AsyncNetworks from .networks import ( - Networks, - AsyncNetworks, NetworksWithRawResponse, AsyncNetworksWithRawResponse, NetworksWithStreamingResponse, AsyncNetworksWithStreamingResponse, ) +from .policies import Policies, AsyncPolicies from .policies import ( - Policies, - AsyncPolicies, PoliciesWithRawResponse, AsyncPoliciesWithRawResponse, PoliciesWithStreamingResponse, AsyncPoliciesWithStreamingResponse, ) +from .postures import Postures, AsyncPostures from .postures import ( - Postures, - AsyncPostures, PosturesWithRawResponse, AsyncPosturesWithRawResponse, PosturesWithStreamingResponse, AsyncPosturesWithStreamingResponse, ) +from .revokes import Revokes, AsyncRevokes +from .revokes import ( + RevokesWithRawResponse, + AsyncRevokesWithRawResponse, + RevokesWithStreamingResponse, + AsyncRevokesWithStreamingResponse, +) +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from .dex_tests import ( - DEXTests, - AsyncDEXTests, - DEXTestsWithRawResponse, - AsyncDEXTestsWithRawResponse, - DEXTestsWithStreamingResponse, - AsyncDEXTestsWithStreamingResponse, -) +from .unrevokes import Unrevokes, AsyncUnrevokes from .unrevokes import ( - Unrevokes, - AsyncUnrevokes, UnrevokesWithRawResponse, AsyncUnrevokesWithRawResponse, UnrevokesWithStreamingResponse, AsyncUnrevokesWithStreamingResponse, ) +from .override_codes import OverrideCodes, AsyncOverrideCodes from .override_codes import ( - OverrideCodes, - AsyncOverrideCodes, OverrideCodesWithRawResponse, AsyncOverrideCodesWithRawResponse, OverrideCodesWithStreamingResponse, AsyncOverrideCodesWithStreamingResponse, ) +from .devices import Devices, AsyncDevices +from .devices import ( + DevicesWithRawResponse, + AsyncDevicesWithRawResponse, + DevicesWithStreamingResponse, + AsyncDevicesWithStreamingResponse, +) __all__ = [ "DEXTests", diff --git a/src/cloudflare/resources/devices/devices.py b/src/cloudflare/resources/devices/devices.py index 87ee896df0a..1eb4d428368 100644 --- a/src/cloudflare/resources/devices/devices.py +++ b/src/cloudflare/resources/devices/devices.py @@ -2,20 +2,60 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ...types import DeviceGetResponse, DeviceDevicesListDevicesResponse -from .revokes import ( - Revokes, - AsyncRevokes, - RevokesWithRawResponse, - AsyncRevokesWithRawResponse, - RevokesWithStreamingResponse, - AsyncRevokesWithStreamingResponse, +from .dex_tests import DEXTests, AsyncDEXTests + +from ..._compat import cached_property + +from .networks import Networks, AsyncNetworks + +from .policies.policies import Policies, AsyncPolicies + +from .postures.postures import Postures, AsyncPostures + +from .revokes import Revokes, AsyncRevokes + +from .settings import Settings, AsyncSettings + +from .unrevokes import Unrevokes, AsyncUnrevokes + +from .override_codes import OverrideCodes, AsyncOverrideCodes + +from ...types import DeviceDevicesListDevicesResponse, DeviceGetResponse + +from typing import Type, 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from .dex_tests import ( + DEXTests, + AsyncDEXTests, + DEXTestsWithRawResponse, + AsyncDEXTestsWithRawResponse, + DEXTestsWithStreamingResponse, + AsyncDEXTestsWithStreamingResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .networks import ( Networks, AsyncNetworks, @@ -40,6 +80,14 @@ PosturesWithStreamingResponse, AsyncPosturesWithStreamingResponse, ) +from .revokes import ( + Revokes, + AsyncRevokes, + RevokesWithRawResponse, + AsyncRevokesWithRawResponse, + RevokesWithStreamingResponse, + AsyncRevokesWithStreamingResponse, +) from .settings import ( Settings, AsyncSettings, @@ -48,15 +96,6 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from ..._compat import cached_property -from .dex_tests import ( - DEXTests, - AsyncDEXTests, - DEXTestsWithRawResponse, - AsyncDEXTestsWithRawResponse, - DEXTestsWithStreamingResponse, - AsyncDEXTestsWithStreamingResponse, -) from .unrevokes import ( Unrevokes, AsyncUnrevokes, @@ -65,17 +104,6 @@ UnrevokesWithStreamingResponse, AsyncUnrevokesWithStreamingResponse, ) -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 .override_codes import ( OverrideCodes, AsyncOverrideCodes, @@ -84,8 +112,13 @@ OverrideCodesWithStreamingResponse, AsyncOverrideCodesWithStreamingResponse, ) -from .policies.policies import Policies, AsyncPolicies -from .postures.postures import Postures, AsyncPostures +from ..._wrappers import ResultWrapper +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__ = ["Devices", "AsyncDevices"] diff --git a/src/cloudflare/resources/devices/dex_tests.py b/src/cloudflare/resources/devices/dex_tests.py index bf4e95c6954..55c84b0b7ff 100644 --- a/src/cloudflare/resources/devices/dex_tests.py +++ b/src/cloudflare/resources/devices/dex_tests.py @@ -2,33 +2,57 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import ( + DEXTestUpdateResponse, + DEXTestDeleteResponse, + DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, + DEXTestDeviceDEXTestDetailsResponse, + DEXTestGetResponse, + dex_test_update_params, + dex_test_device_dex_test_create_device_dex_test_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import ( - DEXTestGetResponse, - DEXTestDeleteResponse, - DEXTestUpdateResponse, - DEXTestDeviceDEXTestDetailsResponse, - DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, - dex_test_update_params, - dex_test_device_dex_test_create_device_dex_test_params, -) +from ...types import shared_params +from ...types.devices import dex_test_update_params +from ...types.devices import dex_test_device_dex_test_create_device_dex_test_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["DEXTests", "AsyncDEXTests"] diff --git a/src/cloudflare/resources/devices/networks.py b/src/cloudflare/resources/devices/networks.py index d8d4a44f312..d3b6baec12f 100644 --- a/src/cloudflare/resources/devices/networks.py +++ b/src/cloudflare/resources/devices/networks.py @@ -2,34 +2,59 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import ( + NetworkUpdateResponse, + NetworkDeleteResponse, + NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, + NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, + NetworkGetResponse, + network_update_params, + network_device_managed_networks_create_device_managed_network_params, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import ( - NetworkGetResponse, - NetworkDeleteResponse, - NetworkUpdateResponse, - NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, - NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, - network_update_params, - network_device_managed_networks_create_device_managed_network_params, -) +from ...types import shared_params +from ...types.devices import network_update_params +from ...types.devices import network_device_managed_networks_create_device_managed_network_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Networks", "AsyncNetworks"] diff --git a/src/cloudflare/resources/devices/override_codes.py b/src/cloudflare/resources/devices/override_codes.py index 14194dcc8ba..49699899d43 100644 --- a/src/cloudflare/resources/devices/override_codes.py +++ b/src/cloudflare/resources/devices/override_codes.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["OverrideCodes", "AsyncOverrideCodes"] diff --git a/src/cloudflare/resources/devices/policies/__init__.py b/src/cloudflare/resources/devices/policies/__init__.py index b91c4c6c2ea..a3d62afef89 100644 --- a/src/cloudflare/resources/devices/policies/__init__.py +++ b/src/cloudflare/resources/devices/policies/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. +from .excludes import Excludes, AsyncExcludes from .excludes import ( - Excludes, - AsyncExcludes, ExcludesWithRawResponse, AsyncExcludesWithRawResponse, ExcludesWithStreamingResponse, AsyncExcludesWithStreamingResponse, ) +from .fallback_domains import FallbackDomains, AsyncFallbackDomains +from .fallback_domains import ( + FallbackDomainsWithRawResponse, + AsyncFallbackDomainsWithRawResponse, + FallbackDomainsWithStreamingResponse, + AsyncFallbackDomainsWithStreamingResponse, +) +from .includes import Includes, AsyncIncludes from .includes import ( - Includes, - AsyncIncludes, IncludesWithRawResponse, AsyncIncludesWithRawResponse, IncludesWithStreamingResponse, AsyncIncludesWithStreamingResponse, ) +from .policies import Policies, AsyncPolicies from .policies import ( - Policies, - AsyncPolicies, PoliciesWithRawResponse, AsyncPoliciesWithRawResponse, PoliciesWithStreamingResponse, AsyncPoliciesWithStreamingResponse, ) -from .fallback_domains import ( - FallbackDomains, - AsyncFallbackDomains, - FallbackDomainsWithRawResponse, - AsyncFallbackDomainsWithRawResponse, - FallbackDomainsWithStreamingResponse, - AsyncFallbackDomainsWithStreamingResponse, -) __all__ = [ "Excludes", diff --git a/src/cloudflare/resources/devices/policies/excludes.py b/src/cloudflare/resources/devices/policies/excludes.py index 6c60e6ee7f4..db015c51e2c 100644 --- a/src/cloudflare/resources/devices/policies/excludes.py +++ b/src/cloudflare/resources/devices/policies/excludes.py @@ -2,32 +2,54 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.devices.policies import ( + ExcludeDevicesGetSplitTunnelExcludeListResponse, + ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, + ExcludeDevicesSetSplitTunnelExcludeListResponse, + ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, + exclude_devices_set_split_tunnel_exclude_list_params, + exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params, +) + +from typing import Type, Optional, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.devices.policies import ( - ExcludeDevicesGetSplitTunnelExcludeListResponse, - ExcludeDevicesSetSplitTunnelExcludeListResponse, - ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, - ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, - exclude_devices_set_split_tunnel_exclude_list_params, - exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params, -) +from ....types import shared_params +from ....types.devices.policies import exclude_devices_set_split_tunnel_exclude_list_params +from ....types.devices.policies import exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Excludes", "AsyncExcludes"] diff --git a/src/cloudflare/resources/devices/policies/fallback_domains.py b/src/cloudflare/resources/devices/policies/fallback_domains.py index af3c48dee41..71168aee0b0 100644 --- a/src/cloudflare/resources/devices/policies/fallback_domains.py +++ b/src/cloudflare/resources/devices/policies/fallback_domains.py @@ -2,32 +2,56 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.devices.policies import ( + FallbackDomainDevicesGetLocalDomainFallbackListResponse, + FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, + FallbackDomainDevicesSetLocalDomainFallbackListResponse, + FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, + fallback_domain_devices_set_local_domain_fallback_list_params, + fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params, +) + +from typing import Type, Optional, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.devices.policies import fallback_domain_devices_set_local_domain_fallback_list_params from ....types.devices.policies import ( - FallbackDomainDevicesGetLocalDomainFallbackListResponse, - FallbackDomainDevicesSetLocalDomainFallbackListResponse, - FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, - FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, - fallback_domain_devices_set_local_domain_fallback_list_params, fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["FallbackDomains", "AsyncFallbackDomains"] diff --git a/src/cloudflare/resources/devices/policies/includes.py b/src/cloudflare/resources/devices/policies/includes.py index 6173aa00337..43cef6bf632 100644 --- a/src/cloudflare/resources/devices/policies/includes.py +++ b/src/cloudflare/resources/devices/policies/includes.py @@ -2,32 +2,54 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.devices.policies import ( + IncludeDevicesGetSplitTunnelIncludeListResponse, + IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, + IncludeDevicesSetSplitTunnelIncludeListResponse, + IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, + include_devices_set_split_tunnel_include_list_params, + include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params, +) + +from typing import Type, Optional, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.devices.policies import ( - IncludeDevicesGetSplitTunnelIncludeListResponse, - IncludeDevicesSetSplitTunnelIncludeListResponse, - IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, - IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, - include_devices_set_split_tunnel_include_list_params, - include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params, -) +from ....types import shared_params +from ....types.devices.policies import include_devices_set_split_tunnel_include_list_params +from ....types.devices.policies import include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Includes", "AsyncIncludes"] diff --git a/src/cloudflare/resources/devices/policies/policies.py b/src/cloudflare/resources/devices/policies/policies.py index d142352d583..2485e88727b 100644 --- a/src/cloudflare/resources/devices/policies/policies.py +++ b/src/cloudflare/resources/devices/policies/policies.py @@ -2,52 +2,64 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from .excludes import ( - Excludes, - AsyncExcludes, - ExcludesWithRawResponse, - AsyncExcludesWithRawResponse, - ExcludesWithStreamingResponse, - AsyncExcludesWithStreamingResponse, -) -from .includes import ( - Includes, - AsyncIncludes, - IncludesWithRawResponse, - AsyncIncludesWithRawResponse, - IncludesWithStreamingResponse, - AsyncIncludesWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .excludes import Excludes, AsyncExcludes + 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 .fallback_domains import FallbackDomains, AsyncFallbackDomains + +from .includes import Includes, AsyncIncludes + from ....types.devices import ( - PolicyGetResponse, - PolicyDeleteResponse, PolicyUpdateResponse, + PolicyDeleteResponse, PolicyDevicesCreateDeviceSettingsPolicyResponse, - PolicyDevicesListDeviceSettingsPoliciesResponse, PolicyDevicesGetDefaultDeviceSettingsPolicyResponse, + PolicyDevicesListDeviceSettingsPoliciesResponse, PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse, + PolicyGetResponse, policy_update_params, policy_devices_create_device_settings_policy_params, policy_devices_update_default_device_settings_policy_params, ) + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.devices import policy_update_params +from ....types.devices import policy_devices_create_device_settings_policy_params +from ....types.devices import policy_devices_update_default_device_settings_policy_params +from .excludes import ( + Excludes, + AsyncExcludes, + ExcludesWithRawResponse, + AsyncExcludesWithRawResponse, + ExcludesWithStreamingResponse, + AsyncExcludesWithStreamingResponse, +) from .fallback_domains import ( FallbackDomains, AsyncFallbackDomains, @@ -56,6 +68,29 @@ FallbackDomainsWithStreamingResponse, AsyncFallbackDomainsWithStreamingResponse, ) +from .includes import ( + Includes, + AsyncIncludes, + IncludesWithRawResponse, + AsyncIncludesWithRawResponse, + IncludesWithStreamingResponse, + AsyncIncludesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Policies", "AsyncPolicies"] diff --git a/src/cloudflare/resources/devices/postures/__init__.py b/src/cloudflare/resources/devices/postures/__init__.py index e1666ebe9b9..d6d5187e2c5 100644 --- a/src/cloudflare/resources/devices/postures/__init__.py +++ b/src/cloudflare/resources/devices/postures/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .postures import ( - Postures, - AsyncPostures, - PosturesWithRawResponse, - AsyncPosturesWithRawResponse, - PosturesWithStreamingResponse, - AsyncPosturesWithStreamingResponse, -) +from .integrations import Integrations, AsyncIntegrations from .integrations import ( - Integrations, - AsyncIntegrations, IntegrationsWithRawResponse, AsyncIntegrationsWithRawResponse, IntegrationsWithStreamingResponse, AsyncIntegrationsWithStreamingResponse, ) +from .postures import Postures, AsyncPostures +from .postures import ( + PosturesWithRawResponse, + AsyncPosturesWithRawResponse, + PosturesWithStreamingResponse, + AsyncPosturesWithStreamingResponse, +) __all__ = [ "Integrations", diff --git a/src/cloudflare/resources/devices/postures/integrations.py b/src/cloudflare/resources/devices/postures/integrations.py index d536ce10669..134afbf105d 100644 --- a/src/cloudflare/resources/devices/postures/integrations.py +++ b/src/cloudflare/resources/devices/postures/integrations.py @@ -2,34 +2,61 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.devices.postures import ( + IntegrationUpdateResponse, + IntegrationDeleteResponse, + IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, + IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, + IntegrationGetResponse, + integration_update_params, + integration_device_posture_integrations_create_device_posture_integration_params, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.devices.postures import ( - IntegrationGetResponse, - IntegrationDeleteResponse, - IntegrationUpdateResponse, - IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, - IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, - integration_update_params, - integration_device_posture_integrations_create_device_posture_integration_params, -) +from ....types import shared_params +from ....types.devices.postures import integration_update_params +from ....types.devices.postures import integration_device_posture_integrations_create_device_posture_integration_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Integrations", "AsyncIntegrations"] diff --git a/src/cloudflare/resources/devices/postures/postures.py b/src/cloudflare/resources/devices/postures/postures.py index 88d352cd8cc..1aedff4f299 100644 --- a/src/cloudflare/resources/devices/postures/postures.py +++ b/src/cloudflare/resources/devices/postures/postures.py @@ -2,22 +2,50 @@ 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 +from .integrations import Integrations, AsyncIntegrations + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.devices import ( + PostureUpdateResponse, + PostureDeleteResponse, + PostureDevicePostureRulesCreateDevicePostureRuleResponse, + PostureDevicePostureRulesListDevicePostureRulesResponse, + PostureGetResponse, + posture_update_params, + posture_device_posture_rules_create_device_posture_rule_params, +) + +from typing import Type, Optional, Iterable + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.devices import posture_update_params +from ....types.devices import posture_device_posture_rules_create_device_posture_rule_params from .integrations import ( Integrations, AsyncIntegrations, @@ -26,18 +54,17 @@ IntegrationsWithStreamingResponse, AsyncIntegrationsWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.devices import ( - PostureGetResponse, - PostureDeleteResponse, - PostureUpdateResponse, - PostureDevicePostureRulesListDevicePostureRulesResponse, - PostureDevicePostureRulesCreateDevicePostureRuleResponse, - posture_update_params, - posture_device_posture_rules_create_device_posture_rule_params, -) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Postures", "AsyncPostures"] diff --git a/src/cloudflare/resources/devices/revokes.py b/src/cloudflare/resources/devices/revokes.py index 48eda9a10fd..1c704585940 100644 --- a/src/cloudflare/resources/devices/revokes.py +++ b/src/cloudflare/resources/devices/revokes.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import RevokeDevicesRevokeDevicesResponse + +from typing import Optional, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import RevokeDevicesRevokeDevicesResponse, revoke_devices_revoke_devices_params +from ...types import shared_params +from ...types.devices import revoke_devices_revoke_devices_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Revokes", "AsyncRevokes"] diff --git a/src/cloudflare/resources/devices/settings.py b/src/cloudflare/resources/devices/settings.py index 8ef82c2024c..e012b8b251e 100644 --- a/src/cloudflare/resources/devices/settings.py +++ b/src/cloudflare/resources/devices/settings.py @@ -2,29 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import ( + SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, + SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import ( - SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, - SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, - setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params, -) +from ...types import shared_params +from ...types.devices import setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/devices/unrevokes.py b/src/cloudflare/resources/devices/unrevokes.py index b9d5adfd264..95541bcc778 100644 --- a/src/cloudflare/resources/devices/unrevokes.py +++ b/src/cloudflare/resources/devices/unrevokes.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.devices import UnrevokeDevicesUnrevokeDevicesResponse + +from typing import Optional, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.devices import UnrevokeDevicesUnrevokeDevicesResponse, unrevoke_devices_unrevoke_devices_params +from ...types import shared_params +from ...types.devices import unrevoke_devices_unrevoke_devices_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Unrevokes", "AsyncUnrevokes"] diff --git a/src/cloudflare/resources/dex/__init__.py b/src/cloudflare/resources/dex/__init__.py index af2bc1e64f9..d849e3dae4f 100644 --- a/src/cloudflare/resources/dex/__init__.py +++ b/src/cloudflare/resources/dex/__init__.py @@ -1,61 +1,49 @@ # File generated from our OpenAPI spec by Stainless. -from .dex import ( - DEX, - AsyncDEX, - DEXWithRawResponse, - AsyncDEXWithRawResponse, - DEXWithStreamingResponse, - AsyncDEXWithStreamingResponse, -) +from .colos import Colos, AsyncColos from .colos import ( - Colos, - AsyncColos, ColosWithRawResponse, AsyncColosWithRawResponse, ColosWithStreamingResponse, AsyncColosWithStreamingResponse, ) -from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, +from .fleet_status import FleetStatus, AsyncFleetStatus +from .fleet_status import ( + FleetStatusWithRawResponse, + AsyncFleetStatusWithRawResponse, + FleetStatusWithStreamingResponse, + AsyncFleetStatusWithStreamingResponse, ) +from .http_tests import HTTPTests, AsyncHTTPTests from .http_tests import ( - HTTPTests, - AsyncHTTPTests, HTTPTestsWithRawResponse, AsyncHTTPTestsWithRawResponse, HTTPTestsWithStreamingResponse, AsyncHTTPTestsWithStreamingResponse, ) -from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, - FleetStatusWithRawResponse, - AsyncFleetStatusWithRawResponse, - FleetStatusWithStreamingResponse, - AsyncFleetStatusWithStreamingResponse, -) -from .traceroute_tests import ( - TracerouteTests, - AsyncTracerouteTests, - TracerouteTestsWithRawResponse, - AsyncTracerouteTestsWithRawResponse, - TracerouteTestsWithStreamingResponse, - AsyncTracerouteTestsWithStreamingResponse, +from .tests import Tests, AsyncTests +from .tests import ( + TestsWithRawResponse, + AsyncTestsWithRawResponse, + TestsWithStreamingResponse, + AsyncTestsWithStreamingResponse, ) +from .traceroute_test_results import TracerouteTestResults, AsyncTracerouteTestResults from .traceroute_test_results import ( - TracerouteTestResults, - AsyncTracerouteTestResults, TracerouteTestResultsWithRawResponse, AsyncTracerouteTestResultsWithRawResponse, TracerouteTestResultsWithStreamingResponse, AsyncTracerouteTestResultsWithStreamingResponse, ) +from .traceroute_tests import TracerouteTests, AsyncTracerouteTests +from .traceroute_tests import ( + TracerouteTestsWithRawResponse, + AsyncTracerouteTestsWithRawResponse, + TracerouteTestsWithStreamingResponse, + AsyncTracerouteTestsWithStreamingResponse, +) +from .dex import DEX, AsyncDEX +from .dex import DEXWithRawResponse, AsyncDEXWithRawResponse, DEXWithStreamingResponse, AsyncDEXWithStreamingResponse __all__ = [ "Colos", diff --git a/src/cloudflare/resources/dex/colos.py b/src/cloudflare/resources/dex/colos.py index ad697008833..efd4077f61c 100644 --- a/src/cloudflare/resources/dex/colos.py +++ b/src/cloudflare/resources/dex/colos.py @@ -2,26 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.dex import ColoListResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.dex import ColoListResponse, colo_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.dex import colo_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Colos", "AsyncColos"] diff --git a/src/cloudflare/resources/dex/dex.py b/src/cloudflare/resources/dex/dex.py index 0ef163f2d37..edefb4c6323 100644 --- a/src/cloudflare/resources/dex/dex.py +++ b/src/cloudflare/resources/dex/dex.py @@ -2,6 +2,35 @@ from __future__ import annotations +from .colos import Colos, AsyncColos + +from ..._compat import cached_property + +from .fleet_status.fleet_status import FleetStatus, AsyncFleetStatus + +from .http_tests.http_tests import HTTPTests, AsyncHTTPTests + +from .tests.tests import Tests, AsyncTests + +from .traceroute_test_results.traceroute_test_results import TracerouteTestResults, AsyncTracerouteTestResults + +from .traceroute_tests import TracerouteTests, AsyncTracerouteTests + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .colos import ( Colos, AsyncColos, @@ -10,15 +39,14 @@ ColosWithStreamingResponse, AsyncColosWithStreamingResponse, ) -from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, +from .fleet_status import ( + FleetStatus, + AsyncFleetStatus, + FleetStatusWithRawResponse, + AsyncFleetStatusWithRawResponse, + FleetStatusWithStreamingResponse, + AsyncFleetStatusWithStreamingResponse, ) -from ..._compat import cached_property from .http_tests import ( HTTPTests, AsyncHTTPTests, @@ -27,25 +55,14 @@ HTTPTestsWithStreamingResponse, AsyncHTTPTestsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .tests.tests import Tests, AsyncTests -from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, - FleetStatusWithRawResponse, - AsyncFleetStatusWithRawResponse, - FleetStatusWithStreamingResponse, - AsyncFleetStatusWithStreamingResponse, -) -from .traceroute_tests import ( - TracerouteTests, - AsyncTracerouteTests, - TracerouteTestsWithRawResponse, - AsyncTracerouteTestsWithRawResponse, - TracerouteTestsWithStreamingResponse, - AsyncTracerouteTestsWithStreamingResponse, +from .tests import ( + Tests, + AsyncTests, + TestsWithRawResponse, + AsyncTestsWithRawResponse, + TestsWithStreamingResponse, + AsyncTestsWithStreamingResponse, ) -from .http_tests.http_tests import HTTPTests, AsyncHTTPTests from .traceroute_test_results import ( TracerouteTestResults, AsyncTracerouteTestResults, @@ -54,8 +71,15 @@ TracerouteTestResultsWithStreamingResponse, AsyncTracerouteTestResultsWithStreamingResponse, ) -from .fleet_status.fleet_status import FleetStatus, AsyncFleetStatus -from .traceroute_test_results.traceroute_test_results import TracerouteTestResults, AsyncTracerouteTestResults +from .traceroute_tests import ( + TracerouteTests, + AsyncTracerouteTests, + TracerouteTestsWithRawResponse, + AsyncTracerouteTestsWithRawResponse, + TracerouteTestsWithStreamingResponse, + AsyncTracerouteTestsWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["DEX", "AsyncDEX"] diff --git a/src/cloudflare/resources/dex/fleet_status/__init__.py b/src/cloudflare/resources/dex/fleet_status/__init__.py index bc299ff8489..9e759952cc8 100644 --- a/src/cloudflare/resources/dex/fleet_status/__init__.py +++ b/src/cloudflare/resources/dex/fleet_status/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .live import ( - Live, - AsyncLive, - LiveWithRawResponse, - AsyncLiveWithRawResponse, - LiveWithStreamingResponse, - AsyncLiveWithStreamingResponse, -) +from .devices import Devices, AsyncDevices from .devices import ( - Devices, - AsyncDevices, DevicesWithRawResponse, AsyncDevicesWithRawResponse, DevicesWithStreamingResponse, AsyncDevicesWithStreamingResponse, ) +from .live import Live, AsyncLive +from .live import ( + LiveWithRawResponse, + AsyncLiveWithRawResponse, + LiveWithStreamingResponse, + AsyncLiveWithStreamingResponse, +) +from .over_time import OverTime, AsyncOverTime from .over_time import ( - OverTime, - AsyncOverTime, OverTimeWithRawResponse, AsyncOverTimeWithRawResponse, OverTimeWithStreamingResponse, AsyncOverTimeWithStreamingResponse, ) +from .fleet_status import FleetStatus, AsyncFleetStatus from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, FleetStatusWithRawResponse, AsyncFleetStatusWithRawResponse, FleetStatusWithStreamingResponse, diff --git a/src/cloudflare/resources/dex/fleet_status/devices.py b/src/cloudflare/resources/dex/fleet_status/devices.py index 9771cf4ddd3..c22711df4a5 100644 --- a/src/cloudflare/resources/dex/fleet_status/devices.py +++ b/src/cloudflare/resources/dex/fleet_status/devices.py @@ -2,26 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex.fleet_status import DeviceListResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dex.fleet_status import DeviceListResponse, device_list_params +from ....types import shared_params +from ....types.dex.fleet_status import device_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Devices", "AsyncDevices"] diff --git a/src/cloudflare/resources/dex/fleet_status/fleet_status.py b/src/cloudflare/resources/dex/fleet_status/fleet_status.py index 91ac902303c..da448145465 100644 --- a/src/cloudflare/resources/dex/fleet_status/fleet_status.py +++ b/src/cloudflare/resources/dex/fleet_status/fleet_status.py @@ -2,14 +2,29 @@ from __future__ import annotations -from .live import ( - Live, - AsyncLive, - LiveWithRawResponse, - AsyncLiveWithRawResponse, - LiveWithStreamingResponse, - AsyncLiveWithStreamingResponse, +from .devices import Devices, AsyncDevices + +from ...._compat import cached_property + +from .live import Live, AsyncLive + +from .over_time import OverTime, AsyncOverTime + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .devices import ( Devices, AsyncDevices, @@ -18,6 +33,14 @@ DevicesWithStreamingResponse, AsyncDevicesWithStreamingResponse, ) +from .live import ( + Live, + AsyncLive, + LiveWithRawResponse, + AsyncLiveWithRawResponse, + LiveWithStreamingResponse, + AsyncLiveWithStreamingResponse, +) from .over_time import ( OverTime, AsyncOverTime, @@ -26,8 +49,7 @@ OverTimeWithStreamingResponse, AsyncOverTimeWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["FleetStatus", "AsyncFleetStatus"] diff --git a/src/cloudflare/resources/dex/fleet_status/live.py b/src/cloudflare/resources/dex/fleet_status/live.py index 2691bf158b2..e5bf38ffa28 100644 --- a/src/cloudflare/resources/dex/fleet_status/live.py +++ b/src/cloudflare/resources/dex/fleet_status/live.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex.fleet_status import LiveListResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dex.fleet_status import LiveListResponse, live_list_params +from ....types import shared_params +from ....types.dex.fleet_status import live_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Live", "AsyncLive"] diff --git a/src/cloudflare/resources/dex/fleet_status/over_time.py b/src/cloudflare/resources/dex/fleet_status/over_time.py index 4279b58421e..fa6e97c7830 100644 --- a/src/cloudflare/resources/dex/fleet_status/over_time.py +++ b/src/cloudflare/resources/dex/fleet_status/over_time.py @@ -4,20 +4,32 @@ import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, 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, + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.dex.fleet_status import over_time_list_params +from ...._wrappers import ResultWrapper __all__ = ["OverTime", "AsyncOverTime"] diff --git a/src/cloudflare/resources/dex/http_tests/__init__.py b/src/cloudflare/resources/dex/http_tests/__init__.py index 7f33137d8f6..0a918b95f7e 100644 --- a/src/cloudflare/resources/dex/http_tests/__init__.py +++ b/src/cloudflare/resources/dex/http_tests/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .http_tests import ( - HTTPTests, - AsyncHTTPTests, - HTTPTestsWithRawResponse, - AsyncHTTPTestsWithRawResponse, - HTTPTestsWithStreamingResponse, - AsyncHTTPTestsWithStreamingResponse, -) +from .percentiles import Percentiles, AsyncPercentiles from .percentiles import ( - Percentiles, - AsyncPercentiles, PercentilesWithRawResponse, AsyncPercentilesWithRawResponse, PercentilesWithStreamingResponse, AsyncPercentilesWithStreamingResponse, ) +from .http_tests import HTTPTests, AsyncHTTPTests +from .http_tests import ( + HTTPTestsWithRawResponse, + AsyncHTTPTestsWithRawResponse, + HTTPTestsWithStreamingResponse, + AsyncHTTPTestsWithStreamingResponse, +) __all__ = [ "Percentiles", diff --git a/src/cloudflare/resources/dex/http_tests/http_tests.py b/src/cloudflare/resources/dex/http_tests/http_tests.py index 0cc0b8d69bc..156aabd4b2e 100644 --- a/src/cloudflare/resources/dex/http_tests/http_tests.py +++ b/src/cloudflare/resources/dex/http_tests/http_tests.py @@ -2,14 +2,41 @@ 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 +from .percentiles import Percentiles, AsyncPercentiles + from ...._compat import cached_property + +from ....types.dex import HTTPTestGetResponse + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.dex import http_test_get_params from .percentiles import ( Percentiles, AsyncPercentiles, @@ -18,18 +45,9 @@ PercentilesWithStreamingResponse, AsyncPercentilesWithStreamingResponse, ) -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.dex import HTTPTestGetResponse, http_test_get_params -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["HTTPTests", "AsyncHTTPTests"] diff --git a/src/cloudflare/resources/dex/http_tests/percentiles.py b/src/cloudflare/resources/dex/http_tests/percentiles.py index c96beef6132..292a9fb531c 100644 --- a/src/cloudflare/resources/dex/http_tests/percentiles.py +++ b/src/cloudflare/resources/dex/http_tests/percentiles.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex.http_tests import PercentileListResponse + +from typing import Type, List + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dex.http_tests import PercentileListResponse, percentile_list_params +from ....types import shared_params +from ....types.dex.http_tests import percentile_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Percentiles", "AsyncPercentiles"] diff --git a/src/cloudflare/resources/dex/tests/__init__.py b/src/cloudflare/resources/dex/tests/__init__.py index 7cac6ca40a0..f9fa36e7304 100644 --- a/src/cloudflare/resources/dex/tests/__init__.py +++ b/src/cloudflare/resources/dex/tests/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, -) +from .unique_devices import UniqueDevices, AsyncUniqueDevices from .unique_devices import ( - UniqueDevices, - AsyncUniqueDevices, UniqueDevicesWithRawResponse, AsyncUniqueDevicesWithRawResponse, UniqueDevicesWithStreamingResponse, AsyncUniqueDevicesWithStreamingResponse, ) +from .tests import Tests, AsyncTests +from .tests import ( + TestsWithRawResponse, + AsyncTestsWithRawResponse, + TestsWithStreamingResponse, + AsyncTestsWithStreamingResponse, +) __all__ = [ "UniqueDevices", diff --git a/src/cloudflare/resources/dex/tests/tests.py b/src/cloudflare/resources/dex/tests/tests.py index 617ef921a82..87f7aff2a89 100644 --- a/src/cloudflare/resources/dex/tests/tests.py +++ b/src/cloudflare/resources/dex/tests/tests.py @@ -2,22 +2,39 @@ 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 +from .unique_devices import UniqueDevices, AsyncUniqueDevices + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex import TestListResponse + +from typing import Type, List + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.dex import TestListResponse, test_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.dex import test_list_params from .unique_devices import ( UniqueDevices, AsyncUniqueDevices, @@ -26,9 +43,9 @@ UniqueDevicesWithStreamingResponse, AsyncUniqueDevicesWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Tests", "AsyncTests"] diff --git a/src/cloudflare/resources/dex/tests/unique_devices.py b/src/cloudflare/resources/dex/tests/unique_devices.py index 34773bd239d..93045b8765c 100644 --- a/src/cloudflare/resources/dex/tests/unique_devices.py +++ b/src/cloudflare/resources/dex/tests/unique_devices.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex.tests import UniqueDeviceListResponse + +from typing import Type, List + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dex.tests import UniqueDeviceListResponse, unique_device_list_params +from ....types import shared_params +from ....types.dex.tests import unique_device_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["UniqueDevices", "AsyncUniqueDevices"] diff --git a/src/cloudflare/resources/dex/traceroute_test_results/__init__.py b/src/cloudflare/resources/dex/traceroute_test_results/__init__.py index 0234f0e2a67..a81c0709157 100644 --- a/src/cloudflare/resources/dex/traceroute_test_results/__init__.py +++ b/src/cloudflare/resources/dex/traceroute_test_results/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .network_path import NetworkPath, AsyncNetworkPath from .network_path import ( - NetworkPath, - AsyncNetworkPath, NetworkPathWithRawResponse, AsyncNetworkPathWithRawResponse, NetworkPathWithStreamingResponse, AsyncNetworkPathWithStreamingResponse, ) +from .traceroute_test_results import TracerouteTestResults, AsyncTracerouteTestResults from .traceroute_test_results import ( - TracerouteTestResults, - AsyncTracerouteTestResults, TracerouteTestResultsWithRawResponse, AsyncTracerouteTestResultsWithRawResponse, TracerouteTestResultsWithStreamingResponse, diff --git a/src/cloudflare/resources/dex/traceroute_test_results/network_path.py b/src/cloudflare/resources/dex/traceroute_test_results/network_path.py index afac8b7bee2..aeb6d991d92 100644 --- a/src/cloudflare/resources/dex/traceroute_test_results/network_path.py +++ b/src/cloudflare/resources/dex/traceroute_test_results/network_path.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dex.traceroute_test_results import NetworkPathListResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dex.traceroute_test_results import NetworkPathListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["NetworkPath", "AsyncNetworkPath"] diff --git a/src/cloudflare/resources/dex/traceroute_test_results/traceroute_test_results.py b/src/cloudflare/resources/dex/traceroute_test_results/traceroute_test_results.py index 789ee694cb2..8b22a9824e3 100644 --- a/src/cloudflare/resources/dex/traceroute_test_results/traceroute_test_results.py +++ b/src/cloudflare/resources/dex/traceroute_test_results/traceroute_test_results.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .network_path import NetworkPath, AsyncNetworkPath + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .network_path import ( NetworkPath, AsyncNetworkPath, @@ -12,6 +29,7 @@ NetworkPathWithStreamingResponse, AsyncNetworkPathWithStreamingResponse, ) +from ...._wrappers import ResultWrapper __all__ = ["TracerouteTestResults", "AsyncTracerouteTestResults"] diff --git a/src/cloudflare/resources/dex/traceroute_tests.py b/src/cloudflare/resources/dex/traceroute_tests.py index a6a0f24b341..f585e2a76cb 100644 --- a/src/cloudflare/resources/dex/traceroute_tests.py +++ b/src/cloudflare/resources/dex/traceroute_tests.py @@ -2,33 +2,48 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.dex import TracerouteTestGetResponse, TracerouteTestNetworkPathResponse, TracerouteTestPercentilesResponse + +from typing import Type, List + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.dex import ( - TracerouteTestGetResponse, - TracerouteTestNetworkPathResponse, - TracerouteTestPercentilesResponse, - traceroute_test_get_params, - traceroute_test_percentiles_params, - traceroute_test_network_path_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.dex import traceroute_test_get_params +from ...types.dex import traceroute_test_network_path_params +from ...types.dex import traceroute_test_percentiles_params +from ..._wrappers import ResultWrapper +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__ = ["TracerouteTests", "AsyncTracerouteTests"] diff --git a/src/cloudflare/resources/dispatchers/__init__.py b/src/cloudflare/resources/dispatchers/__init__.py index e175aa57b29..dd22ceae99f 100644 --- a/src/cloudflare/resources/dispatchers/__init__.py +++ b/src/cloudflare/resources/dispatchers/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .scripts import Scripts, AsyncScripts from .scripts import ( - Scripts, - AsyncScripts, ScriptsWithRawResponse, AsyncScriptsWithRawResponse, ScriptsWithStreamingResponse, AsyncScriptsWithStreamingResponse, ) +from .dispatchers import Dispatchers, AsyncDispatchers from .dispatchers import ( - Dispatchers, - AsyncDispatchers, DispatchersWithRawResponse, AsyncDispatchersWithRawResponse, DispatchersWithStreamingResponse, diff --git a/src/cloudflare/resources/dispatchers/dispatchers.py b/src/cloudflare/resources/dispatchers/dispatchers.py index 4193ce3d12e..55997a234c4 100644 --- a/src/cloudflare/resources/dispatchers/dispatchers.py +++ b/src/cloudflare/resources/dispatchers/dispatchers.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .scripts import Scripts, AsyncScripts + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .scripts import ( Scripts, AsyncScripts, @@ -10,8 +29,7 @@ ScriptsWithStreamingResponse, AsyncScriptsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Dispatchers", "AsyncDispatchers"] diff --git a/src/cloudflare/resources/dispatchers/scripts.py b/src/cloudflare/resources/dispatchers/scripts.py index a5535565197..526a12f1759 100644 --- a/src/cloudflare/resources/dispatchers/scripts.py +++ b/src/cloudflare/resources/dispatchers/scripts.py @@ -2,25 +2,45 @@ from __future__ import annotations -from typing import List, Type, cast, overload - import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes -from ..._utils import required_args, maybe_transform from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from typing import List, Type + +from ..._types import FileTypes + +from ...types.dispatchers import ScriptUpdateResponse, ScriptGetResponse, script_update_params + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.dispatchers import ScriptGetResponse, ScriptUpdateResponse, script_delete_params, script_update_params +from ...types import shared_params +from ...types.dispatchers import script_update_params +from ...types.dispatchers import script_delete_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Scripts", "AsyncScripts"] diff --git a/src/cloudflare/resources/dlp/__init__.py b/src/cloudflare/resources/dlp/__init__.py index e4e091bb0ca..8ad3f41100a 100644 --- a/src/cloudflare/resources/dlp/__init__.py +++ b/src/cloudflare/resources/dlp/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .dlp import ( - DLP, - AsyncDLP, - DLPWithRawResponse, - AsyncDLPWithRawResponse, - DLPWithStreamingResponse, - AsyncDLPWithStreamingResponse, -) +from .datasets import Datasets, AsyncDatasets from .datasets import ( - Datasets, - AsyncDatasets, DatasetsWithRawResponse, AsyncDatasetsWithRawResponse, DatasetsWithStreamingResponse, AsyncDatasetsWithStreamingResponse, ) +from .dlp import DLP, AsyncDLP +from .dlp import DLPWithRawResponse, AsyncDLPWithRawResponse, DLPWithStreamingResponse, AsyncDLPWithStreamingResponse __all__ = [ "Datasets", diff --git a/src/cloudflare/resources/dlp/datasets.py b/src/cloudflare/resources/dlp/datasets.py index cb7c0191080..59507ef0780 100644 --- a/src/cloudflare/resources/dlp/datasets.py +++ b/src/cloudflare/resources/dlp/datasets.py @@ -2,34 +2,58 @@ 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 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.dlp import ( - DatasetGetResponse, - DatasetListResponse, DatasetCreateResponse, DatasetUpdateResponse, + DatasetListResponse, + DatasetGetResponse, DatasetUploadResponse, DatasetUploadPrepareResponse, - dataset_create_params, - dataset_update_params, ) + +from typing import Type, 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.dlp import dataset_create_params +from ...types.dlp import dataset_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Datasets", "AsyncDatasets"] diff --git a/src/cloudflare/resources/dlp/dlp.py b/src/cloudflare/resources/dlp/dlp.py index c5f0661e568..eb3715d438c 100644 --- a/src/cloudflare/resources/dlp/dlp.py +++ b/src/cloudflare/resources/dlp/dlp.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .datasets import Datasets, AsyncDatasets + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .datasets import ( Datasets, AsyncDatasets, @@ -10,8 +29,7 @@ DatasetsWithStreamingResponse, AsyncDatasetsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["DLP", "AsyncDLP"] diff --git a/src/cloudflare/resources/dlps/__init__.py b/src/cloudflare/resources/dlps/__init__.py index d5008383a85..5992bd7dcb7 100644 --- a/src/cloudflare/resources/dlps/__init__.py +++ b/src/cloudflare/resources/dlps/__init__.py @@ -1,36 +1,32 @@ # File generated from our OpenAPI spec by Stainless. -from .dlps import ( - DLPs, - AsyncDLPs, - DLPsWithRawResponse, - AsyncDLPsWithRawResponse, - DLPsWithStreamingResponse, - AsyncDLPsWithStreamingResponse, -) +from .patterns import Patterns, AsyncPatterns from .patterns import ( - Patterns, - AsyncPatterns, PatternsWithRawResponse, AsyncPatternsWithRawResponse, PatternsWithStreamingResponse, AsyncPatternsWithStreamingResponse, ) +from .payload_logs import PayloadLogs, AsyncPayloadLogs +from .payload_logs import ( + PayloadLogsWithRawResponse, + AsyncPayloadLogsWithRawResponse, + PayloadLogsWithStreamingResponse, + AsyncPayloadLogsWithStreamingResponse, +) +from .profiles import Profiles, AsyncProfiles from .profiles import ( - Profiles, - AsyncProfiles, ProfilesWithRawResponse, AsyncProfilesWithRawResponse, ProfilesWithStreamingResponse, AsyncProfilesWithStreamingResponse, ) -from .payload_logs import ( - PayloadLogs, - AsyncPayloadLogs, - PayloadLogsWithRawResponse, - AsyncPayloadLogsWithRawResponse, - PayloadLogsWithStreamingResponse, - AsyncPayloadLogsWithStreamingResponse, +from .dlps import DLPs, AsyncDLPs +from .dlps import ( + DLPsWithRawResponse, + AsyncDLPsWithRawResponse, + DLPsWithStreamingResponse, + AsyncDLPsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/dlps/dlps.py b/src/cloudflare/resources/dlps/dlps.py index 137ddd796a1..bee21e5f8be 100644 --- a/src/cloudflare/resources/dlps/dlps.py +++ b/src/cloudflare/resources/dlps/dlps.py @@ -2,6 +2,29 @@ from __future__ import annotations +from .patterns.patterns import Patterns, AsyncPatterns + +from ..._compat import cached_property + +from .payload_logs import PayloadLogs, AsyncPayloadLogs + +from .profiles.profiles import Profiles, AsyncProfiles + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .patterns import ( Patterns, AsyncPatterns, @@ -10,16 +33,6 @@ PatternsWithStreamingResponse, AsyncPatternsWithStreamingResponse, ) -from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, -) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource from .payload_logs import ( PayloadLogs, AsyncPayloadLogs, @@ -28,8 +41,15 @@ PayloadLogsWithStreamingResponse, AsyncPayloadLogsWithStreamingResponse, ) -from .patterns.patterns import Patterns, AsyncPatterns -from .profiles.profiles import Profiles, AsyncProfiles +from .profiles import ( + Profiles, + AsyncProfiles, + ProfilesWithRawResponse, + AsyncProfilesWithRawResponse, + ProfilesWithStreamingResponse, + AsyncProfilesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["DLPs", "AsyncDLPs"] diff --git a/src/cloudflare/resources/dlps/patterns/__init__.py b/src/cloudflare/resources/dlps/patterns/__init__.py index 9aca5afa961..c096d1ddfbe 100644 --- a/src/cloudflare/resources/dlps/patterns/__init__.py +++ b/src/cloudflare/resources/dlps/patterns/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .patterns import ( - Patterns, - AsyncPatterns, - PatternsWithRawResponse, - AsyncPatternsWithRawResponse, - PatternsWithStreamingResponse, - AsyncPatternsWithStreamingResponse, -) +from .validates import Validates, AsyncValidates from .validates import ( - Validates, - AsyncValidates, ValidatesWithRawResponse, AsyncValidatesWithRawResponse, ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) +from .patterns import Patterns, AsyncPatterns +from .patterns import ( + PatternsWithRawResponse, + AsyncPatternsWithRawResponse, + PatternsWithStreamingResponse, + AsyncPatternsWithStreamingResponse, +) __all__ = [ "Validates", diff --git a/src/cloudflare/resources/dlps/patterns/patterns.py b/src/cloudflare/resources/dlps/patterns/patterns.py index 20cfd3955be..115e4096930 100644 --- a/src/cloudflare/resources/dlps/patterns/patterns.py +++ b/src/cloudflare/resources/dlps/patterns/patterns.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .validates import Validates, AsyncValidates + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .validates import ( Validates, AsyncValidates, @@ -10,8 +29,7 @@ ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["Patterns", "AsyncPatterns"] diff --git a/src/cloudflare/resources/dlps/patterns/validates.py b/src/cloudflare/resources/dlps/patterns/validates.py index ae8d393b729..614c6c9c1a4 100644 --- a/src/cloudflare/resources/dlps/patterns/validates.py +++ b/src/cloudflare/resources/dlps/patterns/validates.py @@ -2,28 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dlps.patterns import ValidateDLPPatternValidationValidatePatternResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dlps.patterns import ( - ValidateDLPPatternValidationValidatePatternResponse, - validate_dlp_pattern_validation_validate_pattern_params, -) +from ....types import shared_params +from ....types.dlps.patterns import validate_dlp_pattern_validation_validate_pattern_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Validates", "AsyncValidates"] diff --git a/src/cloudflare/resources/dlps/payload_logs.py b/src/cloudflare/resources/dlps/payload_logs.py index 7bf5aadfa98..d0e5784524e 100644 --- a/src/cloudflare/resources/dlps/payload_logs.py +++ b/src/cloudflare/resources/dlps/payload_logs.py @@ -2,29 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.dlps import ( + PayloadLogDLPPayloadLogSettingsGetSettingsResponse, + PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.dlps import ( - PayloadLogDLPPayloadLogSettingsGetSettingsResponse, - PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, - payload_log_dlp_payload_log_settings_update_settings_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.dlps import payload_log_dlp_payload_log_settings_update_settings_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["PayloadLogs", "AsyncPayloadLogs"] diff --git a/src/cloudflare/resources/dlps/profiles/__init__.py b/src/cloudflare/resources/dlps/profiles/__init__.py index bdc0a791469..3660381ecba 100644 --- a/src/cloudflare/resources/dlps/profiles/__init__.py +++ b/src/cloudflare/resources/dlps/profiles/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .customs import Customs, AsyncCustoms from .customs import ( - Customs, - AsyncCustoms, CustomsWithRawResponse, AsyncCustomsWithRawResponse, CustomsWithStreamingResponse, AsyncCustomsWithStreamingResponse, ) -from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, -) +from .predefineds import Predefineds, AsyncPredefineds from .predefineds import ( - Predefineds, - AsyncPredefineds, PredefinedsWithRawResponse, AsyncPredefinedsWithRawResponse, PredefinedsWithStreamingResponse, AsyncPredefinedsWithStreamingResponse, ) +from .profiles import Profiles, AsyncProfiles +from .profiles import ( + ProfilesWithRawResponse, + AsyncProfilesWithRawResponse, + ProfilesWithStreamingResponse, + AsyncProfilesWithStreamingResponse, +) __all__ = [ "Customs", diff --git a/src/cloudflare/resources/dlps/profiles/customs.py b/src/cloudflare/resources/dlps/profiles/customs.py index ade16c288c8..3715cc65d30 100644 --- a/src/cloudflare/resources/dlps/profiles/customs.py +++ b/src/cloudflare/resources/dlps/profiles/customs.py @@ -2,32 +2,54 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dlps.profiles import ( + CustomUpdateResponse, + CustomDeleteResponse, + CustomDLPProfilesCreateCustomProfilesResponse, + CustomGetResponse, + custom_update_params, + custom_dlp_profiles_create_custom_profiles_params, +) + +from typing import Iterable, Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dlps.profiles import ( - CustomGetResponse, - CustomDeleteResponse, - CustomUpdateResponse, - CustomDLPProfilesCreateCustomProfilesResponse, - custom_update_params, - custom_dlp_profiles_create_custom_profiles_params, -) +from ....types import shared_params +from ....types.dlps.profiles import custom_update_params +from ....types.dlps.profiles import custom_dlp_profiles_create_custom_profiles_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Customs", "AsyncCustoms"] diff --git a/src/cloudflare/resources/dlps/profiles/predefineds.py b/src/cloudflare/resources/dlps/profiles/predefineds.py index 7bfa7a5d783..2dabf3ff4b0 100644 --- a/src/cloudflare/resources/dlps/profiles/predefineds.py +++ b/src/cloudflare/resources/dlps/profiles/predefineds.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dlps.profiles import PredefinedUpdateResponse, PredefinedGetResponse, predefined_update_params + +from typing import Iterable, Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dlps.profiles import PredefinedGetResponse, PredefinedUpdateResponse, predefined_update_params +from ....types import shared_params +from ....types.dlps.profiles import predefined_update_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Predefineds", "AsyncPredefineds"] diff --git a/src/cloudflare/resources/dlps/profiles/profiles.py b/src/cloudflare/resources/dlps/profiles/profiles.py index 626568dc2d5..cf0e1cffe62 100644 --- a/src/cloudflare/resources/dlps/profiles/profiles.py +++ b/src/cloudflare/resources/dlps/profiles/profiles.py @@ -2,10 +2,40 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx +from .customs import Customs, AsyncCustoms + +from ...._compat import cached_property + +from .predefineds import Predefineds, AsyncPredefineds + +from ....types.dlps import ProfileDLPProfilesListAllProfilesResponse, ProfileGetResponse + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .customs import ( Customs, AsyncCustoms, @@ -14,8 +44,6 @@ CustomsWithStreamingResponse, AsyncCustomsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._compat import cached_property from .predefineds import ( Predefineds, AsyncPredefineds, @@ -24,18 +52,13 @@ PredefinedsWithStreamingResponse, AsyncPredefinedsWithStreamingResponse, ) -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.dlps import ProfileGetResponse, ProfileDLPProfilesListAllProfilesResponse -from ...._base_client import ( - make_request_options, -) +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__ = ["Profiles", "AsyncProfiles"] diff --git a/src/cloudflare/resources/dns_analytics/__init__.py b/src/cloudflare/resources/dns_analytics/__init__.py index be8e261a009..8b882546827 100644 --- a/src/cloudflare/resources/dns_analytics/__init__.py +++ b/src/cloudflare/resources/dns_analytics/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .reports import Reports, AsyncReports from .reports import ( - Reports, - AsyncReports, ReportsWithRawResponse, AsyncReportsWithRawResponse, ReportsWithStreamingResponse, AsyncReportsWithStreamingResponse, ) +from .dns_analytics import DNSAnalytics, AsyncDNSAnalytics from .dns_analytics import ( - DNSAnalytics, - AsyncDNSAnalytics, DNSAnalyticsWithRawResponse, AsyncDNSAnalyticsWithRawResponse, DNSAnalyticsWithStreamingResponse, diff --git a/src/cloudflare/resources/dns_analytics/dns_analytics.py b/src/cloudflare/resources/dns_analytics/dns_analytics.py index e6f3ceb7ec6..2d495738de8 100644 --- a/src/cloudflare/resources/dns_analytics/dns_analytics.py +++ b/src/cloudflare/resources/dns_analytics/dns_analytics.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .reports.reports import Reports, AsyncReports + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .reports import ( Reports, AsyncReports, @@ -10,9 +29,7 @@ ReportsWithStreamingResponse, AsyncReportsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .reports.reports import Reports, AsyncReports +from ..._wrappers import ResultWrapper __all__ = ["DNSAnalytics", "AsyncDNSAnalytics"] diff --git a/src/cloudflare/resources/dns_analytics/reports/__init__.py b/src/cloudflare/resources/dns_analytics/reports/__init__.py index 8a01627e160..2ae2fde5c5c 100644 --- a/src/cloudflare/resources/dns_analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns_analytics/reports/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .bytimes import Bytimes, AsyncBytimes from .bytimes import ( - Bytimes, - AsyncBytimes, BytimesWithRawResponse, AsyncBytimesWithRawResponse, BytimesWithStreamingResponse, AsyncBytimesWithStreamingResponse, ) +from .reports import Reports, AsyncReports from .reports import ( - Reports, - AsyncReports, ReportsWithRawResponse, AsyncReportsWithRawResponse, ReportsWithStreamingResponse, diff --git a/src/cloudflare/resources/dns_analytics/reports/bytimes.py b/src/cloudflare/resources/dns_analytics/reports/bytimes.py index 1a479bef0b5..be11937b9b0 100644 --- a/src/cloudflare/resources/dns_analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns_analytics/reports/bytimes.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.dns_analytics.reports import BytimeListResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.dns_analytics.reports import BytimeListResponse, bytime_list_params +from ....types import shared_params +from ....types.dns_analytics.reports import bytime_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Bytimes", "AsyncBytimes"] diff --git a/src/cloudflare/resources/dns_analytics/reports/reports.py b/src/cloudflare/resources/dns_analytics/reports/reports.py index 7713db4c877..08ca79ee96e 100644 --- a/src/cloudflare/resources/dns_analytics/reports/reports.py +++ b/src/cloudflare/resources/dns_analytics/reports/reports.py @@ -2,11 +2,41 @@ from __future__ import annotations -from typing import Type, Union, cast +import httpx + +from .bytimes import Bytimes, AsyncBytimes + +from ...._compat import cached_property + +from ....types.dns_analytics import ReportListResponse + +from typing import Type, Union + from datetime import datetime -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.dns_analytics import report_list_params from .bytimes import ( Bytimes, AsyncBytimes, @@ -15,21 +45,9 @@ BytimesWithStreamingResponse, AsyncBytimesWithStreamingResponse, ) -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 ...._wrappers import ResultWrapper -from ...._base_client import ( - make_request_options, -) -from ....types.dns_analytics import ReportListResponse, report_list_params +from typing import cast +from typing import cast __all__ = ["Reports", "AsyncReports"] diff --git a/src/cloudflare/resources/dns_firewalls/__init__.py b/src/cloudflare/resources/dns_firewalls/__init__.py index 642f3331706..0d0589094eb 100644 --- a/src/cloudflare/resources/dns_firewalls/__init__.py +++ b/src/cloudflare/resources/dns_firewalls/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .dns_analytics import DNSAnalytics, AsyncDNSAnalytics from .dns_analytics import ( - DNSAnalytics, - AsyncDNSAnalytics, DNSAnalyticsWithRawResponse, AsyncDNSAnalyticsWithRawResponse, DNSAnalyticsWithStreamingResponse, AsyncDNSAnalyticsWithStreamingResponse, ) +from .dns_firewalls import DNSFirewalls, AsyncDNSFirewalls from .dns_firewalls import ( - DNSFirewalls, - AsyncDNSFirewalls, DNSFirewallsWithRawResponse, AsyncDNSFirewallsWithRawResponse, DNSFirewallsWithStreamingResponse, diff --git a/src/cloudflare/resources/dns_firewalls/dns_analytics/__init__.py b/src/cloudflare/resources/dns_firewalls/dns_analytics/__init__.py index be8e261a009..8b882546827 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_analytics/__init__.py +++ b/src/cloudflare/resources/dns_firewalls/dns_analytics/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .reports import Reports, AsyncReports from .reports import ( - Reports, - AsyncReports, ReportsWithRawResponse, AsyncReportsWithRawResponse, ReportsWithStreamingResponse, AsyncReportsWithStreamingResponse, ) +from .dns_analytics import DNSAnalytics, AsyncDNSAnalytics from .dns_analytics import ( - DNSAnalytics, - AsyncDNSAnalytics, DNSAnalyticsWithRawResponse, AsyncDNSAnalyticsWithRawResponse, DNSAnalyticsWithStreamingResponse, diff --git a/src/cloudflare/resources/dns_firewalls/dns_analytics/dns_analytics.py b/src/cloudflare/resources/dns_firewalls/dns_analytics/dns_analytics.py index 9a15868256d..53cd559d379 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_analytics/dns_analytics.py +++ b/src/cloudflare/resources/dns_firewalls/dns_analytics/dns_analytics.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .reports.reports import Reports, AsyncReports + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .reports import ( Reports, AsyncReports, @@ -10,9 +29,7 @@ ReportsWithStreamingResponse, AsyncReportsWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .reports.reports import Reports, AsyncReports +from ...._wrappers import ResultWrapper __all__ = ["DNSAnalytics", "AsyncDNSAnalytics"] diff --git a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/__init__.py b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/__init__.py index 8a01627e160..2ae2fde5c5c 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .bytimes import Bytimes, AsyncBytimes from .bytimes import ( - Bytimes, - AsyncBytimes, BytimesWithRawResponse, AsyncBytimesWithRawResponse, BytimesWithStreamingResponse, AsyncBytimesWithStreamingResponse, ) +from .reports import Reports, AsyncReports from .reports import ( - Reports, - AsyncReports, ReportsWithRawResponse, AsyncReportsWithRawResponse, ReportsWithStreamingResponse, diff --git a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/bytimes.py b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/bytimes.py index a4ab1b66393..a1d90e030b5 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/bytimes.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.dns_firewalls.dns_analytics.reports import BytimeListResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.dns_firewalls.dns_analytics.reports import BytimeListResponse, bytime_list_params +from .....types import shared_params +from .....types.dns_firewalls.dns_analytics.reports import bytime_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Bytimes", "AsyncBytimes"] diff --git a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/reports.py b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/reports.py index c50deaa43f5..24380856a69 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/reports.py +++ b/src/cloudflare/resources/dns_firewalls/dns_analytics/reports/reports.py @@ -2,11 +2,41 @@ from __future__ import annotations -from typing import Type, Union, cast +import httpx + +from .bytimes import Bytimes, AsyncBytimes + +from ....._compat import cached_property + +from .....types.dns_firewalls.dns_analytics import ReportListResponse + +from typing import Type, Union + from datetime import datetime -import httpx +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .....types.dns_firewalls.dns_analytics import report_list_params from .bytimes import ( Bytimes, AsyncBytimes, @@ -15,21 +45,9 @@ BytimesWithStreamingResponse, AsyncBytimesWithStreamingResponse, ) -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 ....._wrappers import ResultWrapper -from ....._base_client import ( - make_request_options, -) -from .....types.dns_firewalls.dns_analytics import ReportListResponse, report_list_params +from typing import cast +from typing import cast __all__ = ["Reports", "AsyncReports"] diff --git a/src/cloudflare/resources/dns_firewalls/dns_firewalls.py b/src/cloudflare/resources/dns_firewalls/dns_firewalls.py index bc31b787ba9..3c0c7a7f337 100644 --- a/src/cloudflare/resources/dns_firewalls/dns_firewalls.py +++ b/src/cloudflare/resources/dns_firewalls/dns_firewalls.py @@ -2,31 +2,49 @@ from __future__ import annotations -from typing import List, Type, Union, Optional, cast - import httpx +from .dns_analytics.dns_analytics import DNSAnalytics, AsyncDNSAnalytics + +from ..._compat import cached_property + from ...types import ( - DNSFirewallGetResponse, - DNSFirewallListResponse, DNSFirewallCreateResponse, - DNSFirewallDeleteResponse, DNSFirewallUpdateResponse, - dns_firewall_list_params, + DNSFirewallListResponse, + DNSFirewallDeleteResponse, + DNSFirewallGetResponse, dns_firewall_create_params, dns_firewall_update_params, ) -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 typing import Type, List, Union, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import dns_firewall_create_params +from ...types import dns_firewall_update_params +from ...types import dns_firewall_list_params from .dns_analytics import ( DNSAnalytics, AsyncDNSAnalytics, @@ -35,10 +53,17 @@ DNSAnalyticsWithStreamingResponse, AsyncDNSAnalyticsWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, -) -from .dns_analytics.dns_analytics import DNSAnalytics, AsyncDNSAnalytics +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["DNSFirewalls", "AsyncDNSFirewalls"] diff --git a/src/cloudflare/resources/dns_records.py b/src/cloudflare/resources/dns_records.py index a00f582fa22..4fe49c5d7df 100644 --- a/src/cloudflare/resources/dns_records.py +++ b/src/cloudflare/resources/dns_records.py @@ -2,38 +2,75 @@ from __future__ import annotations -from typing import Any, List, Type, Union, Optional, cast, overload +import httpx + +from .._compat import cached_property + from typing_extensions import Literal -import httpx +from typing import List, Union, Type, Optional from ..types import ( - DNSRecordGetResponse, - DNSRecordListResponse, - DNSRecordScanResponse, DNSRecordCreateResponse, + DNSRecordUpdateResponse, + DNSRecordListResponse, DNSRecordDeleteResponse, + DNSRecordExportResponse, + DNSRecordGetResponse, DNSRecordImportResponse, - DNSRecordUpdateResponse, - dns_record_list_params, + DNSRecordScanResponse, dns_record_create_params, - dns_record_import_params, dns_record_update_params, + dns_record_list_params, ) -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from .._utils import required_args, 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, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import dns_record_create_params +from ..types import dns_record_update_params +from ..types import dns_record_list_params +from ..types import dns_record_import_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["DNSRecords", "AsyncDNSRecords"] diff --git a/src/cloudflare/resources/dnssecs.py b/src/cloudflare/resources/dnssecs.py index ec760c3afe1..8529eb7e14c 100644 --- a/src/cloudflare/resources/dnssecs.py +++ b/src/cloudflare/resources/dnssecs.py @@ -2,26 +2,44 @@ from __future__ import annotations -from typing import Type, cast -from typing_extensions import Literal - import httpx -from ..types import DNSSECGetResponse, DNSSECUpdateResponse, dnssec_update_params -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 ..types import DNSSECUpdateResponse, DNSSECGetResponse + +from typing import Type + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import dnssec_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["DNSSECs", "AsyncDNSSECs"] diff --git a/src/cloudflare/resources/emails/__init__.py b/src/cloudflare/resources/emails/__init__.py index d0e25e81910..285af519f9a 100644 --- a/src/cloudflare/resources/emails/__init__.py +++ b/src/cloudflare/resources/emails/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .emails import ( - Emails, - AsyncEmails, - EmailsWithRawResponse, - AsyncEmailsWithRawResponse, - EmailsWithStreamingResponse, - AsyncEmailsWithStreamingResponse, -) +from .routings import Routings, AsyncRoutings from .routings import ( - Routings, - AsyncRoutings, RoutingsWithRawResponse, AsyncRoutingsWithRawResponse, RoutingsWithStreamingResponse, AsyncRoutingsWithStreamingResponse, ) +from .emails import Emails, AsyncEmails +from .emails import ( + EmailsWithRawResponse, + AsyncEmailsWithRawResponse, + EmailsWithStreamingResponse, + AsyncEmailsWithStreamingResponse, +) __all__ = [ "Routings", diff --git a/src/cloudflare/resources/emails/emails.py b/src/cloudflare/resources/emails/emails.py index 189913177a1..f54a6c58eca 100644 --- a/src/cloudflare/resources/emails/emails.py +++ b/src/cloudflare/resources/emails/emails.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .routings.routings import Routings, AsyncRoutings + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .routings import ( Routings, AsyncRoutings, @@ -10,9 +29,7 @@ RoutingsWithStreamingResponse, AsyncRoutingsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .routings.routings import Routings, AsyncRoutings +from ..._wrappers import ResultWrapper __all__ = ["Emails", "AsyncEmails"] diff --git a/src/cloudflare/resources/emails/routings/__init__.py b/src/cloudflare/resources/emails/routings/__init__.py index 4af6504246c..061ef38d284 100644 --- a/src/cloudflare/resources/emails/routings/__init__.py +++ b/src/cloudflare/resources/emails/routings/__init__.py @@ -1,53 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, -) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +from .disables import Disables, AsyncDisables +from .disables import ( + DisablesWithRawResponse, + AsyncDisablesWithRawResponse, + DisablesWithStreamingResponse, + AsyncDisablesWithStreamingResponse, ) +from .dns import DNS, AsyncDNS +from .dns import DNSWithRawResponse, AsyncDNSWithRawResponse, DNSWithStreamingResponse, AsyncDNSWithStreamingResponse +from .enables import Enables, AsyncEnables from .enables import ( - Enables, - AsyncEnables, EnablesWithRawResponse, AsyncEnablesWithRawResponse, EnablesWithStreamingResponse, AsyncEnablesWithStreamingResponse, ) -from .disables import ( - Disables, - AsyncDisables, - DisablesWithRawResponse, - AsyncDisablesWithRawResponse, - DisablesWithStreamingResponse, - AsyncDisablesWithStreamingResponse, -) -from .routings import ( - Routings, - AsyncRoutings, - RoutingsWithRawResponse, - AsyncRoutingsWithRawResponse, - RoutingsWithStreamingResponse, - AsyncRoutingsWithStreamingResponse, +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) +from .addresses import Addresses, AsyncAddresses from .addresses import ( - Addresses, - AsyncAddresses, AddressesWithRawResponse, AsyncAddressesWithRawResponse, AddressesWithStreamingResponse, AsyncAddressesWithStreamingResponse, ) +from .routings import Routings, AsyncRoutings +from .routings import ( + RoutingsWithRawResponse, + AsyncRoutingsWithRawResponse, + RoutingsWithStreamingResponse, + AsyncRoutingsWithStreamingResponse, +) __all__ = [ "Disables", diff --git a/src/cloudflare/resources/emails/routings/addresses.py b/src/cloudflare/resources/emails/routings/addresses.py index f19b92113d6..fd2e54e3d49 100644 --- a/src/cloudflare/resources/emails/routings/addresses.py +++ b/src/cloudflare/resources/emails/routings/addresses.py @@ -2,33 +2,54 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.emails.routings import ( + AddressDeleteResponse, + AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, + AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, + AddressGetResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.emails.routings import ( - AddressGetResponse, - AddressDeleteResponse, - AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, - AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, - address_email_routing_destination_addresses_list_destination_addresses_params, - address_email_routing_destination_addresses_create_a_destination_address_params, -) +from ....types import shared_params +from ....types.emails.routings import address_email_routing_destination_addresses_create_a_destination_address_params +from ....types.emails.routings import address_email_routing_destination_addresses_list_destination_addresses_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Addresses", "AsyncAddresses"] diff --git a/src/cloudflare/resources/emails/routings/disables.py b/src/cloudflare/resources/emails/routings/disables.py index 8a5c28b30ce..b8aa5826634 100644 --- a/src/cloudflare/resources/emails/routings/disables.py +++ b/src/cloudflare/resources/emails/routings/disables.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.emails.routings import DisableEmailRoutingSettingsDisableEmailRoutingResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.emails.routings import DisableEmailRoutingSettingsDisableEmailRoutingResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Disables", "AsyncDisables"] diff --git a/src/cloudflare/resources/emails/routings/dns.py b/src/cloudflare/resources/emails/routings/dns.py index b49c24765ae..c93cb710e62 100644 --- a/src/cloudflare/resources/emails/routings/dns.py +++ b/src/cloudflare/resources/emails/routings/dns.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.emails.routings import DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.emails.routings import DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DNS", "AsyncDNS"] diff --git a/src/cloudflare/resources/emails/routings/enables.py b/src/cloudflare/resources/emails/routings/enables.py index 2c030f8be3c..d5425b03328 100644 --- a/src/cloudflare/resources/emails/routings/enables.py +++ b/src/cloudflare/resources/emails/routings/enables.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.emails.routings import EnableEmailRoutingSettingsEnableEmailRoutingResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.emails.routings import EnableEmailRoutingSettingsEnableEmailRoutingResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Enables", "AsyncEnables"] diff --git a/src/cloudflare/resources/emails/routings/routings.py b/src/cloudflare/resources/emails/routings/routings.py index 826ecea6d89..f41d5573557 100644 --- a/src/cloudflare/resources/emails/routings/routings.py +++ b/src/cloudflare/resources/emails/routings/routings.py @@ -2,10 +2,54 @@ from __future__ import annotations -from typing import Type, cast - import httpx +from .disables import Disables, AsyncDisables + +from ...._compat import cached_property + +from .dns import DNS, AsyncDNS + +from .enables import Enables, AsyncEnables + +from .rules.rules import Rules, AsyncRules + +from .addresses import Addresses, AsyncAddresses + +from ....types.emails import RoutingEmailRoutingSettingsGetEmailRoutingSettingsResponse + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from .disables import ( + Disables, + AsyncDisables, + DisablesWithRawResponse, + AsyncDisablesWithRawResponse, + DisablesWithStreamingResponse, + AsyncDisablesWithStreamingResponse, +) from .dns import ( DNS, AsyncDNS, @@ -14,14 +58,6 @@ DNSWithStreamingResponse, AsyncDNSWithStreamingResponse, ) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) from .enables import ( Enables, AsyncEnables, @@ -30,15 +66,14 @@ EnablesWithStreamingResponse, AsyncEnablesWithStreamingResponse, ) -from .disables import ( - Disables, - AsyncDisables, - DisablesWithRawResponse, - AsyncDisablesWithRawResponse, - DisablesWithStreamingResponse, - AsyncDisablesWithStreamingResponse, +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .addresses import ( Addresses, AsyncAddresses, @@ -47,20 +82,9 @@ AddressesWithStreamingResponse, AsyncAddressesWithStreamingResponse, ) -from ...._compat import cached_property -from .rules.rules import Rules, AsyncRules -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.emails import RoutingEmailRoutingSettingsGetEmailRoutingSettingsResponse +from typing import cast +from typing import cast __all__ = ["Routings", "AsyncRoutings"] diff --git a/src/cloudflare/resources/emails/routings/rules/__init__.py b/src/cloudflare/resources/emails/routings/rules/__init__.py index a482475608e..5e3286b6f45 100644 --- a/src/cloudflare/resources/emails/routings/rules/__init__.py +++ b/src/cloudflare/resources/emails/routings/rules/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .catch_alls import CatchAlls, AsyncCatchAlls from .catch_alls import ( - CatchAlls, - AsyncCatchAlls, CatchAllsWithRawResponse, AsyncCatchAllsWithRawResponse, CatchAllsWithStreamingResponse, AsyncCatchAllsWithStreamingResponse, ) +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) __all__ = [ "CatchAlls", diff --git a/src/cloudflare/resources/emails/routings/rules/catch_alls.py b/src/cloudflare/resources/emails/routings/rules/catch_alls.py index 0c0e86cca28..b9db4f14d5a 100644 --- a/src/cloudflare/resources/emails/routings/rules/catch_alls.py +++ b/src/cloudflare/resources/emails/routings/rules/catch_alls.py @@ -2,30 +2,48 @@ from __future__ import annotations -from typing import Type, Iterable, cast -from typing_extensions import Literal - 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 .....types.emails.routings.rules import ( + CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, + CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, + catch_all_email_routing_routing_rules_update_catch_all_rule_params, +) + +from typing import Type, Iterable + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.emails.routings.rules import ( - CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, - CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, - catch_all_email_routing_routing_rules_update_catch_all_rule_params, -) +from .....types import shared_params +from .....types.emails.routings.rules import catch_all_email_routing_routing_rules_update_catch_all_rule_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["CatchAlls", "AsyncCatchAlls"] diff --git a/src/cloudflare/resources/emails/routings/rules/rules.py b/src/cloudflare/resources/emails/routings/rules/rules.py index 82f0f7065d0..1a0a5dba3c1 100644 --- a/src/cloudflare/resources/emails/routings/rules/rules.py +++ b/src/cloudflare/resources/emails/routings/rules/rules.py @@ -2,43 +2,70 @@ 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 -from .catch_alls import ( - CatchAlls, - AsyncCatchAlls, - CatchAllsWithRawResponse, - AsyncCatchAllsWithRawResponse, - CatchAllsWithStreamingResponse, - AsyncCatchAllsWithStreamingResponse, -) +from .catch_alls import CatchAlls, AsyncCatchAlls + from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.emails.routings import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, + RuleEmailRoutingRoutingRulesListRoutingRulesResponse, + RuleGetResponse, + rule_update_params, + rule_email_routing_routing_rules_create_routing_rule_params, +) + +from typing import Type, Iterable, Optional + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.emails.routings import ( - RuleGetResponse, - RuleDeleteResponse, - RuleUpdateResponse, - RuleEmailRoutingRoutingRulesListRoutingRulesResponse, - RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, - rule_update_params, - rule_email_routing_routing_rules_list_routing_rules_params, - rule_email_routing_routing_rules_create_routing_rule_params, +from .....types import shared_params +from .....types.emails.routings import rule_update_params +from .....types.emails.routings import rule_email_routing_routing_rules_create_routing_rule_params +from .....types.emails.routings import rule_email_routing_routing_rules_list_routing_rules_params +from .catch_alls import ( + CatchAlls, + AsyncCatchAlls, + CatchAllsWithRawResponse, + AsyncCatchAllsWithRawResponse, + CatchAllsWithStreamingResponse, + AsyncCatchAllsWithStreamingResponse, ) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/filters.py b/src/cloudflare/resources/filters.py index 73b03d1124c..55b0e8ae310 100644 --- a/src/cloudflare/resources/filters.py +++ b/src/cloudflare/resources/filters.py @@ -2,36 +2,60 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx +from .._compat import cached_property + from ..types import ( - FilterGetResponse, - FilterDeleteResponse, FilterUpdateResponse, - FilterFiltersListFiltersResponse, + FilterDeleteResponse, FilterFiltersCreateFiltersResponse, + FilterFiltersListFiltersResponse, FilterFiltersUpdateFiltersResponse, - filter_update_params, - filter_filters_list_filters_params, - filter_filters_create_filters_params, - filter_filters_update_filters_params, + FilterGetResponse, ) -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 typing import Type, Optional + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import filter_update_params +from ..types import filter_filters_create_filters_params +from ..types import filter_filters_list_filters_params +from ..types import filter_filters_update_filters_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Filters", "AsyncFilters"] diff --git a/src/cloudflare/resources/firewall/__init__.py b/src/cloudflare/resources/firewall/__init__.py index b65915de8d1..137bdcbf18a 100644 --- a/src/cloudflare/resources/firewall/__init__.py +++ b/src/cloudflare/resources/firewall/__init__.py @@ -1,16 +1,9 @@ # File generated from our OpenAPI spec by Stainless. -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, -) +from .waf import WAF, AsyncWAF +from .waf import WAFWithRawResponse, AsyncWAFWithRawResponse, WAFWithStreamingResponse, AsyncWAFWithStreamingResponse +from .firewall import Firewall, AsyncFirewall from .firewall import ( - Firewall, - AsyncFirewall, FirewallWithRawResponse, AsyncFirewallWithRawResponse, FirewallWithStreamingResponse, diff --git a/src/cloudflare/resources/firewall/firewall.py b/src/cloudflare/resources/firewall/firewall.py index ab4960b3ce1..f170ccc2e64 100644 --- a/src/cloudflare/resources/firewall/firewall.py +++ b/src/cloudflare/resources/firewall/firewall.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .waf.waf import WAF, AsyncWAF + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .waf import ( WAF, AsyncWAF, @@ -10,9 +29,7 @@ WAFWithStreamingResponse, AsyncWAFWithStreamingResponse, ) -from .waf.waf import WAF, AsyncWAF -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Firewall", "AsyncFirewall"] diff --git a/src/cloudflare/resources/firewall/waf/__init__.py b/src/cloudflare/resources/firewall/waf/__init__.py index 6ba3bad1afe..e638184a033 100644 --- a/src/cloudflare/resources/firewall/waf/__init__.py +++ b/src/cloudflare/resources/firewall/waf/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, -) +from .packages import Packages, AsyncPackages from .packages import ( - Packages, - AsyncPackages, PackagesWithRawResponse, AsyncPackagesWithRawResponse, PackagesWithStreamingResponse, AsyncPackagesWithStreamingResponse, ) +from .waf import WAF, AsyncWAF +from .waf import WAFWithRawResponse, AsyncWAFWithRawResponse, WAFWithStreamingResponse, AsyncWAFWithStreamingResponse __all__ = [ "Packages", diff --git a/src/cloudflare/resources/firewall/waf/packages/__init__.py b/src/cloudflare/resources/firewall/waf/packages/__init__.py index 4536c4cc5f8..7d8cec14ecb 100644 --- a/src/cloudflare/resources/firewall/waf/packages/__init__.py +++ b/src/cloudflare/resources/firewall/waf/packages/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .groups import Groups, AsyncGroups from .groups import ( - Groups, - AsyncGroups, GroupsWithRawResponse, AsyncGroupsWithRawResponse, GroupsWithStreamingResponse, AsyncGroupsWithStreamingResponse, ) +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from .packages import Packages, AsyncPackages from .packages import ( - Packages, - AsyncPackages, PackagesWithRawResponse, AsyncPackagesWithRawResponse, PackagesWithStreamingResponse, diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py index cc6758117fb..7826c398520 100644 --- a/src/cloudflare/resources/firewall/waf/packages/groups.py +++ b/src/cloudflare/resources/firewall/waf/packages/groups.py @@ -2,32 +2,51 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.firewall.waf.packages import GroupUpdateResponse, GroupListResponse, GroupGetResponse + +from typing_extensions import Literal + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.firewall.waf.packages import ( - GroupGetResponse, - GroupListResponse, - GroupUpdateResponse, - group_list_params, - group_update_params, -) +from .....types import shared_params +from .....types.firewall.waf.packages import group_update_params +from .....types.firewall.waf.packages import group_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Groups", "AsyncGroups"] diff --git a/src/cloudflare/resources/firewall/waf/packages/packages.py b/src/cloudflare/resources/firewall/waf/packages/packages.py index d0d11f96248..701f726d61b 100644 --- a/src/cloudflare/resources/firewall/waf/packages/packages.py +++ b/src/cloudflare/resources/firewall/waf/packages/packages.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +from .groups import Groups, AsyncGroups + +from ....._compat import cached_property + +from .rules import Rules, AsyncRules + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .groups import ( Groups, AsyncGroups, @@ -18,8 +31,15 @@ GroupsWithStreamingResponse, AsyncGroupsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from ....._wrappers import ResultWrapper __all__ = ["Packages", "AsyncPackages"] diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py index b419be5b8c6..9755d88fe78 100644 --- a/src/cloudflare/resources/firewall/waf/packages/rules.py +++ b/src/cloudflare/resources/firewall/waf/packages/rules.py @@ -2,26 +2,46 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.firewall.waf.packages import RuleUpdateResponse, RuleGetResponse + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.firewall.waf.packages import RuleGetResponse, RuleUpdateResponse, rule_update_params +from .....types import shared_params +from .....types.firewall.waf.packages import rule_update_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/firewall/waf/waf.py b/src/cloudflare/resources/firewall/waf/waf.py index bf36234f46e..9bd23b989e4 100644 --- a/src/cloudflare/resources/firewall/waf/waf.py +++ b/src/cloudflare/resources/firewall/waf/waf.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .packages.packages import Packages, AsyncPackages + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .packages import ( Packages, AsyncPackages, @@ -10,9 +29,7 @@ PackagesWithStreamingResponse, AsyncPackagesWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .packages.packages import Packages, AsyncPackages +from ...._wrappers import ResultWrapper __all__ = ["WAF", "AsyncWAF"] diff --git a/src/cloudflare/resources/firewalls/__init__.py b/src/cloudflare/resources/firewalls/__init__.py index 94dd1aa36e3..b3403a6fb48 100644 --- a/src/cloudflare/resources/firewalls/__init__.py +++ b/src/cloudflare/resources/firewalls/__init__.py @@ -1,53 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, +from .lockdowns import Lockdowns, AsyncLockdowns +from .lockdowns import ( + LockdownsWithRawResponse, + AsyncLockdownsWithRawResponse, + LockdownsWithStreamingResponse, + AsyncLockdownsWithStreamingResponse, ) +from .rules import Rules, AsyncRules from .rules import ( - Rules, - AsyncRules, RulesWithRawResponse, AsyncRulesWithRawResponse, RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) +from .access_rules import AccessRules, AsyncAccessRules +from .access_rules import ( + AccessRulesWithRawResponse, + AsyncAccessRulesWithRawResponse, + AccessRulesWithStreamingResponse, + AsyncAccessRulesWithStreamingResponse, +) +from .ua_rules import UaRules, AsyncUaRules from .ua_rules import ( - UaRules, - AsyncUaRules, UaRulesWithRawResponse, AsyncUaRulesWithRawResponse, UaRulesWithStreamingResponse, AsyncUaRulesWithStreamingResponse, ) +from .waf import WAF, AsyncWAF +from .waf import WAFWithRawResponse, AsyncWAFWithRawResponse, WAFWithStreamingResponse, AsyncWAFWithStreamingResponse +from .firewalls import Firewalls, AsyncFirewalls from .firewalls import ( - Firewalls, - AsyncFirewalls, FirewallsWithRawResponse, AsyncFirewallsWithRawResponse, FirewallsWithStreamingResponse, AsyncFirewallsWithStreamingResponse, ) -from .lockdowns import ( - Lockdowns, - AsyncLockdowns, - LockdownsWithRawResponse, - AsyncLockdownsWithRawResponse, - LockdownsWithStreamingResponse, - AsyncLockdownsWithStreamingResponse, -) -from .access_rules import ( - AccessRules, - AsyncAccessRules, - AccessRulesWithRawResponse, - AsyncAccessRulesWithRawResponse, - AccessRulesWithStreamingResponse, - AsyncAccessRulesWithStreamingResponse, -) __all__ = [ "Lockdowns", diff --git a/src/cloudflare/resources/firewalls/access_rules.py b/src/cloudflare/resources/firewalls/access_rules.py index e8a0f276eb0..c1dce558e34 100644 --- a/src/cloudflare/resources/firewalls/access_rules.py +++ b/src/cloudflare/resources/firewalls/access_rules.py @@ -2,35 +2,67 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.firewalls import ( + AccessRuleCreateResponse, + AccessRuleUpdateResponse, + AccessRuleListResponse, + AccessRuleDeleteResponse, + AccessRuleGetResponse, + access_rule_create_params, + access_rule_update_params, + access_rule_list_params, +) + +from typing import Optional, Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.firewalls import ( - AccessRuleGetResponse, - AccessRuleListResponse, - AccessRuleCreateResponse, - AccessRuleDeleteResponse, - AccessRuleUpdateResponse, - access_rule_list_params, - access_rule_create_params, - access_rule_update_params, -) +from ...types import shared_params +from ...types.firewalls import access_rule_create_params +from ...types.firewalls import access_rule_update_params +from ...types.firewalls import access_rule_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["AccessRules", "AsyncAccessRules"] diff --git a/src/cloudflare/resources/firewalls/firewalls.py b/src/cloudflare/resources/firewalls/firewalls.py index 5c7d4095b10..bac1d2844e3 100644 --- a/src/cloudflare/resources/firewalls/firewalls.py +++ b/src/cloudflare/resources/firewalls/firewalls.py @@ -2,32 +2,33 @@ from __future__ import annotations -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, -) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .lockdowns import Lockdowns, AsyncLockdowns + +from ..._compat import cached_property + +from .rules import Rules, AsyncRules + +from .access_rules import AccessRules, AsyncAccessRules + +from .ua_rules import UaRules, AsyncUaRules + from .waf.waf import WAF, AsyncWAF -from .ua_rules import ( - UaRules, - AsyncUaRules, - UaRulesWithRawResponse, - AsyncUaRulesWithRawResponse, - UaRulesWithStreamingResponse, - AsyncUaRulesWithStreamingResponse, + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) -from ..._compat import cached_property +from ...types import shared_params from .lockdowns import ( Lockdowns, AsyncLockdowns, @@ -36,7 +37,14 @@ LockdownsWithStreamingResponse, AsyncLockdownsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) from .access_rules import ( AccessRules, AsyncAccessRules, @@ -45,6 +53,23 @@ AccessRulesWithStreamingResponse, AsyncAccessRulesWithStreamingResponse, ) +from .ua_rules import ( + UaRules, + AsyncUaRules, + UaRulesWithRawResponse, + AsyncUaRulesWithRawResponse, + UaRulesWithStreamingResponse, + AsyncUaRulesWithStreamingResponse, +) +from .waf import ( + WAF, + AsyncWAF, + WAFWithRawResponse, + AsyncWAFWithRawResponse, + WAFWithStreamingResponse, + AsyncWAFWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Firewalls", "AsyncFirewalls"] diff --git a/src/cloudflare/resources/firewalls/lockdowns.py b/src/cloudflare/resources/firewalls/lockdowns.py index 3cf39b6824e..8c32d36b7a5 100644 --- a/src/cloudflare/resources/firewalls/lockdowns.py +++ b/src/cloudflare/resources/firewalls/lockdowns.py @@ -2,34 +2,56 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.firewalls import ( + LockdownUpdateResponse, + LockdownDeleteResponse, + LockdownGetResponse, + LockdownZoneLockdownCreateAZoneLockdownRuleResponse, + LockdownZoneLockdownListZoneLockdownRulesResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.firewalls import ( - LockdownGetResponse, - LockdownDeleteResponse, - LockdownUpdateResponse, - LockdownZoneLockdownListZoneLockdownRulesResponse, - LockdownZoneLockdownCreateAZoneLockdownRuleResponse, - lockdown_update_params, - lockdown_zone_lockdown_list_zone_lockdown_rules_params, - lockdown_zone_lockdown_create_a_zone_lockdown_rule_params, -) +from ...types import shared_params +from ...types.firewalls import lockdown_update_params +from ...types.firewalls import lockdown_zone_lockdown_create_a_zone_lockdown_rule_params +from ...types.firewalls import lockdown_zone_lockdown_list_zone_lockdown_rules_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Lockdowns", "AsyncLockdowns"] diff --git a/src/cloudflare/resources/firewalls/rules.py b/src/cloudflare/resources/firewalls/rules.py index 58e05caf34f..e10359d73c7 100644 --- a/src/cloudflare/resources/firewalls/rules.py +++ b/src/cloudflare/resources/firewalls/rules.py @@ -2,39 +2,65 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.firewalls import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleFirewallRulesCreateFirewallRulesResponse, + RuleFirewallRulesListFirewallRulesResponse, + RuleFirewallRulesUpdateFirewallRulesResponse, + RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, + RuleGetResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.firewalls import ( - RuleGetResponse, - RuleDeleteResponse, - RuleUpdateResponse, - RuleFirewallRulesListFirewallRulesResponse, - RuleFirewallRulesCreateFirewallRulesResponse, - RuleFirewallRulesUpdateFirewallRulesResponse, - RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, - rule_delete_params, - rule_update_params, - rule_firewall_rules_list_firewall_rules_params, - rule_firewall_rules_create_firewall_rules_params, - rule_firewall_rules_update_firewall_rules_params, - rule_firewall_rules_update_priority_of_firewall_rules_params, -) +from ...types import shared_params +from ...types.firewalls import rule_update_params +from ...types.firewalls import rule_delete_params +from ...types.firewalls import rule_firewall_rules_create_firewall_rules_params +from ...types.firewalls import rule_firewall_rules_list_firewall_rules_params +from ...types.firewalls import rule_firewall_rules_update_firewall_rules_params +from ...types.firewalls import rule_firewall_rules_update_priority_of_firewall_rules_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/firewalls/ua_rules.py b/src/cloudflare/resources/firewalls/ua_rules.py index 399cde503fb..55e067cb46c 100644 --- a/src/cloudflare/resources/firewalls/ua_rules.py +++ b/src/cloudflare/resources/firewalls/ua_rules.py @@ -2,34 +2,62 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.firewalls import ( + UaRuleUpdateResponse, + UaRuleDeleteResponse, + UaRuleGetResponse, + UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, + UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, +) + +from typing import Optional, Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.firewalls import ( - UaRuleGetResponse, - UaRuleDeleteResponse, - UaRuleUpdateResponse, - UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, - UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, - ua_rule_update_params, - ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params, - ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params, -) +from ...types import shared_params +from ...types.firewalls import ua_rule_update_params +from ...types.firewalls import ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params +from ...types.firewalls import ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["UaRules", "AsyncUaRules"] diff --git a/src/cloudflare/resources/firewalls/waf/__init__.py b/src/cloudflare/resources/firewalls/waf/__init__.py index ecdb34c81c6..db687911d1b 100644 --- a/src/cloudflare/resources/firewalls/waf/__init__.py +++ b/src/cloudflare/resources/firewalls/waf/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, +from .overrides import Overrides, AsyncOverrides +from .overrides import ( + OverridesWithRawResponse, + AsyncOverridesWithRawResponse, + OverridesWithStreamingResponse, + AsyncOverridesWithStreamingResponse, ) +from .packages import Packages, AsyncPackages from .packages import ( - Packages, - AsyncPackages, PackagesWithRawResponse, AsyncPackagesWithRawResponse, PackagesWithStreamingResponse, AsyncPackagesWithStreamingResponse, ) -from .overrides import ( - Overrides, - AsyncOverrides, - OverridesWithRawResponse, - AsyncOverridesWithRawResponse, - OverridesWithStreamingResponse, - AsyncOverridesWithStreamingResponse, -) +from .waf import WAF, AsyncWAF +from .waf import WAFWithRawResponse, AsyncWAFWithRawResponse, WAFWithStreamingResponse, AsyncWAFWithStreamingResponse __all__ = [ "Overrides", diff --git a/src/cloudflare/resources/firewalls/waf/overrides.py b/src/cloudflare/resources/firewalls/waf/overrides.py index 99a2e52ab3a..2882dfac063 100644 --- a/src/cloudflare/resources/firewalls/waf/overrides.py +++ b/src/cloudflare/resources/firewalls/waf/overrides.py @@ -2,34 +2,56 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.firewalls.waf import ( + OverrideUpdateResponse, + OverrideDeleteResponse, + OverrideGetResponse, + OverrideWAFOverridesCreateAWAFOverrideResponse, + OverrideWAFOverridesListWAFOverridesResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.firewalls.waf import ( - OverrideGetResponse, - OverrideDeleteResponse, - OverrideUpdateResponse, - OverrideWAFOverridesListWAFOverridesResponse, - OverrideWAFOverridesCreateAWAFOverrideResponse, - override_update_params, - override_waf_overrides_list_waf_overrides_params, - override_waf_overrides_create_a_waf_override_params, -) +from ....types import shared_params +from ....types.firewalls.waf import override_update_params +from ....types.firewalls.waf import override_waf_overrides_create_a_waf_override_params +from ....types.firewalls.waf import override_waf_overrides_list_waf_overrides_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Overrides", "AsyncOverrides"] diff --git a/src/cloudflare/resources/firewalls/waf/packages/__init__.py b/src/cloudflare/resources/firewalls/waf/packages/__init__.py index 4536c4cc5f8..7d8cec14ecb 100644 --- a/src/cloudflare/resources/firewalls/waf/packages/__init__.py +++ b/src/cloudflare/resources/firewalls/waf/packages/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .groups import Groups, AsyncGroups from .groups import ( - Groups, - AsyncGroups, GroupsWithRawResponse, AsyncGroupsWithRawResponse, GroupsWithStreamingResponse, AsyncGroupsWithStreamingResponse, ) +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from .packages import Packages, AsyncPackages from .packages import ( - Packages, - AsyncPackages, PackagesWithRawResponse, AsyncPackagesWithRawResponse, PackagesWithStreamingResponse, diff --git a/src/cloudflare/resources/firewalls/waf/packages/groups.py b/src/cloudflare/resources/firewalls/waf/packages/groups.py index 1ec70c7150a..6c74e06e6d2 100644 --- a/src/cloudflare/resources/firewalls/waf/packages/groups.py +++ b/src/cloudflare/resources/firewalls/waf/packages/groups.py @@ -2,32 +2,55 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.firewalls.waf.packages import ( + GroupUpdateResponse, + GroupGetResponse, + GroupWAFRuleGroupsListWAFRuleGroupsResponse, +) + +from typing_extensions import Literal + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.firewalls.waf.packages import ( - GroupGetResponse, - GroupUpdateResponse, - GroupWAFRuleGroupsListWAFRuleGroupsResponse, - group_update_params, - group_waf_rule_groups_list_waf_rule_groups_params, -) +from .....types import shared_params +from .....types.firewalls.waf.packages import group_update_params +from .....types.firewalls.waf.packages import group_waf_rule_groups_list_waf_rule_groups_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Groups", "AsyncGroups"] diff --git a/src/cloudflare/resources/firewalls/waf/packages/packages.py b/src/cloudflare/resources/firewalls/waf/packages/packages.py index 48042cd103b..4253f4fa9dd 100644 --- a/src/cloudflare/resources/firewalls/waf/packages/packages.py +++ b/src/cloudflare/resources/firewalls/waf/packages/packages.py @@ -2,19 +2,41 @@ from __future__ import annotations -from typing import Any, cast +import httpx + +from .groups import Groups, AsyncGroups + +from ....._compat import cached_property + +from .rules import Rules, AsyncRules + +from .....types.firewalls.waf import PackageListResponse, PackageGetResponse + from typing_extensions import Literal -import httpx +from ....._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, +) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params +from .....types.firewalls.waf import package_list_params from .groups import ( Groups, AsyncGroups, @@ -23,20 +45,23 @@ GroupsWithStreamingResponse, AsyncGroupsWithStreamingResponse, ) -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 ....._base_client import ( - make_request_options, +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) -from .....types.firewalls.waf import PackageGetResponse, PackageListResponse, package_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Packages", "AsyncPackages"] diff --git a/src/cloudflare/resources/firewalls/waf/packages/rules.py b/src/cloudflare/resources/firewalls/waf/packages/rules.py index bb2244cedc2..2e23f89d194 100644 --- a/src/cloudflare/resources/firewalls/waf/packages/rules.py +++ b/src/cloudflare/resources/firewalls/waf/packages/rules.py @@ -2,32 +2,51 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.firewalls.waf.packages import RuleUpdateResponse, RuleGetResponse, RuleWAFRulesListWAFRulesResponse + +from typing_extensions import Literal + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.firewalls.waf.packages import ( - RuleGetResponse, - RuleUpdateResponse, - RuleWAFRulesListWAFRulesResponse, - rule_update_params, - rule_waf_rules_list_waf_rules_params, -) +from .....types import shared_params +from .....types.firewalls.waf.packages import rule_update_params +from .....types.firewalls.waf.packages import rule_waf_rules_list_waf_rules_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/firewalls/waf/waf.py b/src/cloudflare/resources/firewalls/waf/waf.py index 265c5c95dab..bac70e29fad 100644 --- a/src/cloudflare/resources/firewalls/waf/waf.py +++ b/src/cloudflare/resources/firewalls/waf/waf.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .packages import ( - Packages, - AsyncPackages, - PackagesWithRawResponse, - AsyncPackagesWithRawResponse, - PackagesWithStreamingResponse, - AsyncPackagesWithStreamingResponse, +from .overrides import Overrides, AsyncOverrides + +from ...._compat import cached_property + +from .packages.packages import Packages, AsyncPackages + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .overrides import ( Overrides, AsyncOverrides, @@ -18,9 +31,15 @@ OverridesWithStreamingResponse, AsyncOverridesWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .packages.packages import Packages, AsyncPackages +from .packages import ( + Packages, + AsyncPackages, + PackagesWithRawResponse, + AsyncPackagesWithRawResponse, + PackagesWithStreamingResponse, + AsyncPackagesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["WAF", "AsyncWAF"] diff --git a/src/cloudflare/resources/font_settings.py b/src/cloudflare/resources/font_settings.py index d8539476faa..5977800ae4e 100644 --- a/src/cloudflare/resources/font_settings.py +++ b/src/cloudflare/resources/font_settings.py @@ -2,26 +2,44 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx -from ..types import FontSettingGetResponse, FontSettingUpdateResponse, font_setting_update_params -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 ..types import FontSettingUpdateResponse, FontSettingGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import font_setting_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["FontSettings", "AsyncFontSettings"] diff --git a/src/cloudflare/resources/gateway/__init__.py b/src/cloudflare/resources/gateway/__init__.py index 97e127c19d8..e8c5afa9965 100644 --- a/src/cloudflare/resources/gateway/__init__.py +++ b/src/cloudflare/resources/gateway/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .gateway import ( - Gateway, - AsyncGateway, - GatewayWithRawResponse, - AsyncGatewayWithRawResponse, - GatewayWithStreamingResponse, - AsyncGatewayWithStreamingResponse, -) +from .audit_ssh_settings import AuditSSHSettings, AsyncAuditSSHSettings from .audit_ssh_settings import ( - AuditSSHSettings, - AsyncAuditSSHSettings, AuditSSHSettingsWithRawResponse, AsyncAuditSSHSettingsWithRawResponse, AuditSSHSettingsWithStreamingResponse, AsyncAuditSSHSettingsWithStreamingResponse, ) +from .gateway import Gateway, AsyncGateway +from .gateway import ( + GatewayWithRawResponse, + AsyncGatewayWithRawResponse, + GatewayWithStreamingResponse, + AsyncGatewayWithStreamingResponse, +) __all__ = [ "AuditSSHSettings", diff --git a/src/cloudflare/resources/gateway/audit_ssh_settings.py b/src/cloudflare/resources/gateway/audit_ssh_settings.py index ee6f86dd199..1f9fc057b9a 100644 --- a/src/cloudflare/resources/gateway/audit_ssh_settings.py +++ b/src/cloudflare/resources/gateway/audit_ssh_settings.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateway import AuditSSHSettingUpdateResponse, AuditSSHSettingGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateway import AuditSSHSettingGetResponse, AuditSSHSettingUpdateResponse, audit_ssh_setting_update_params +from ...types import shared_params +from ...types.gateway import audit_ssh_setting_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AuditSSHSettings", "AsyncAuditSSHSettings"] diff --git a/src/cloudflare/resources/gateway/gateway.py b/src/cloudflare/resources/gateway/gateway.py index 503888ea1aa..d31b0c1bf23 100644 --- a/src/cloudflare/resources/gateway/gateway.py +++ b/src/cloudflare/resources/gateway/gateway.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .audit_ssh_settings import AuditSSHSettings, AsyncAuditSSHSettings + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .audit_ssh_settings import ( AuditSSHSettings, AsyncAuditSSHSettings, @@ -12,6 +29,7 @@ AuditSSHSettingsWithStreamingResponse, AsyncAuditSSHSettingsWithStreamingResponse, ) +from ..._wrappers import ResultWrapper __all__ = ["Gateway", "AsyncGateway"] diff --git a/src/cloudflare/resources/gateways/__init__.py b/src/cloudflare/resources/gateways/__init__.py index 7ca45795f07..2f119efe322 100644 --- a/src/cloudflare/resources/gateways/__init__.py +++ b/src/cloudflare/resources/gateways/__init__.py @@ -1,77 +1,68 @@ # File generated from our OpenAPI spec by Stainless. -from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, -) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) -from .gateways import ( - Gateways, - AsyncGateways, - GatewaysWithRawResponse, - AsyncGatewaysWithRawResponse, - GatewaysWithStreamingResponse, - AsyncGatewaysWithStreamingResponse, -) -from .loggings import ( - Loggings, - AsyncLoggings, - LoggingsWithRawResponse, - AsyncLoggingsWithRawResponse, - LoggingsWithStreamingResponse, - AsyncLoggingsWithStreamingResponse, +from .categories import Categories, AsyncCategories +from .categories import ( + CategoriesWithRawResponse, + AsyncCategoriesWithRawResponse, + CategoriesWithStreamingResponse, + AsyncCategoriesWithStreamingResponse, ) +from .app_types import AppTypes, AsyncAppTypes from .app_types import ( - AppTypes, - AsyncAppTypes, AppTypesWithRawResponse, AsyncAppTypesWithRawResponse, AppTypesWithStreamingResponse, AsyncAppTypesWithStreamingResponse, ) +from .configurations import Configurations, AsyncConfigurations +from .configurations import ( + ConfigurationsWithRawResponse, + AsyncConfigurationsWithRawResponse, + ConfigurationsWithStreamingResponse, + AsyncConfigurationsWithStreamingResponse, +) +from .lists import Lists, AsyncLists +from .lists import ( + ListsWithRawResponse, + AsyncListsWithRawResponse, + ListsWithStreamingResponse, + AsyncListsWithStreamingResponse, +) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -from .categories import ( - Categories, - AsyncCategories, - CategoriesWithRawResponse, - AsyncCategoriesWithRawResponse, - CategoriesWithStreamingResponse, - AsyncCategoriesWithStreamingResponse, -) -from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, +from .loggings import Loggings, AsyncLoggings +from .loggings import ( + LoggingsWithRawResponse, + AsyncLoggingsWithRawResponse, + LoggingsWithStreamingResponse, + AsyncLoggingsWithStreamingResponse, ) +from .proxy_endpoints import ProxyEndpoints, AsyncProxyEndpoints from .proxy_endpoints import ( - ProxyEndpoints, - AsyncProxyEndpoints, ProxyEndpointsWithRawResponse, AsyncProxyEndpointsWithRawResponse, ProxyEndpointsWithStreamingResponse, AsyncProxyEndpointsWithStreamingResponse, ) +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from .gateways import Gateways, AsyncGateways +from .gateways import ( + GatewaysWithRawResponse, + AsyncGatewaysWithRawResponse, + GatewaysWithStreamingResponse, + AsyncGatewaysWithStreamingResponse, +) __all__ = [ "Categories", diff --git a/src/cloudflare/resources/gateways/app_types.py b/src/cloudflare/resources/gateways/app_types.py index dda669fe9b8..b8adc92ccc7 100644 --- a/src/cloudflare/resources/gateways/app_types.py +++ b/src/cloudflare/resources/gateways/app_types.py @@ -2,26 +2,41 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, -) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["AppTypes", "AsyncAppTypes"] diff --git a/src/cloudflare/resources/gateways/categories.py b/src/cloudflare/resources/gateways/categories.py index 9e4d54c9d09..36a7bc90a7e 100644 --- a/src/cloudflare/resources/gateways/categories.py +++ b/src/cloudflare/resources/gateways/categories.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import CategoryZeroTrustGatewayCategoriesListCategoriesResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import CategoryZeroTrustGatewayCategoriesListCategoriesResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Categories", "AsyncCategories"] diff --git a/src/cloudflare/resources/gateways/configurations.py b/src/cloudflare/resources/gateways/configurations.py index fccdc19e93f..4dc0467c6fd 100644 --- a/src/cloudflare/resources/gateways/configurations.py +++ b/src/cloudflare/resources/gateways/configurations.py @@ -2,31 +2,51 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, + ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, + ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, + configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params, + configuration_zero_trust_accounts_update_zero_trust_account_configuration_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, - ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, - ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, - configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params, - configuration_zero_trust_accounts_update_zero_trust_account_configuration_params, -) +from ...types import shared_params +from ...types.gateways import configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params +from ...types.gateways import configuration_zero_trust_accounts_update_zero_trust_account_configuration_params +from ..._wrappers import ResultWrapper +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__ = ["Configurations", "AsyncConfigurations"] diff --git a/src/cloudflare/resources/gateways/gateways.py b/src/cloudflare/resources/gateways/gateways.py index 4956ff45658..c49888a4fd6 100644 --- a/src/cloudflare/resources/gateways/gateways.py +++ b/src/cloudflare/resources/gateways/gateways.py @@ -2,56 +2,55 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, -) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .categories import Categories, AsyncCategories + +from ..._compat import cached_property + +from .app_types import AppTypes, AsyncAppTypes + +from .configurations import Configurations, AsyncConfigurations + +from .lists.lists import Lists, AsyncLists + +from .locations import Locations, AsyncLocations + +from .loggings import Loggings, AsyncLoggings + +from .proxy_endpoints import ProxyEndpoints, AsyncProxyEndpoints + +from .rules import Rules, AsyncRules + from ...types import ( GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from .loggings import ( - Loggings, - AsyncLoggings, - LoggingsWithRawResponse, - AsyncLoggingsWithRawResponse, - LoggingsWithStreamingResponse, - AsyncLoggingsWithStreamingResponse, -) -from ..._compat import cached_property -from .app_types import ( - AppTypes, - AsyncAppTypes, - AppTypesWithRawResponse, - AsyncAppTypesWithRawResponse, - AppTypesWithStreamingResponse, - AsyncAppTypesWithStreamingResponse, + +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, ) -from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from .categories import ( Categories, AsyncCategories, @@ -60,17 +59,13 @@ CategoriesWithStreamingResponse, AsyncCategoriesWithStreamingResponse, ) -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 .lists.lists import Lists, AsyncLists -from ..._base_client import ( - make_request_options, +from .app_types import ( + AppTypes, + AsyncAppTypes, + AppTypesWithRawResponse, + AsyncAppTypesWithRawResponse, + AppTypesWithStreamingResponse, + AsyncAppTypesWithStreamingResponse, ) from .configurations import ( Configurations, @@ -80,6 +75,30 @@ ConfigurationsWithStreamingResponse, AsyncConfigurationsWithStreamingResponse, ) +from .lists import ( + Lists, + AsyncLists, + ListsWithRawResponse, + AsyncListsWithRawResponse, + ListsWithStreamingResponse, + AsyncListsWithStreamingResponse, +) +from .locations import ( + Locations, + AsyncLocations, + LocationsWithRawResponse, + AsyncLocationsWithRawResponse, + LocationsWithStreamingResponse, + AsyncLocationsWithStreamingResponse, +) +from .loggings import ( + Loggings, + AsyncLoggings, + LoggingsWithRawResponse, + AsyncLoggingsWithRawResponse, + LoggingsWithStreamingResponse, + AsyncLoggingsWithStreamingResponse, +) from .proxy_endpoints import ( ProxyEndpoints, AsyncProxyEndpoints, @@ -88,6 +107,19 @@ ProxyEndpointsWithStreamingResponse, AsyncProxyEndpointsWithStreamingResponse, ) +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Gateways", "AsyncGateways"] diff --git a/src/cloudflare/resources/gateways/lists/__init__.py b/src/cloudflare/resources/gateways/lists/__init__.py index 814ff11e462..c60eebb05c6 100644 --- a/src/cloudflare/resources/gateways/lists/__init__.py +++ b/src/cloudflare/resources/gateways/lists/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .items import Items, AsyncItems from .items import ( - Items, - AsyncItems, ItemsWithRawResponse, AsyncItemsWithRawResponse, ItemsWithStreamingResponse, AsyncItemsWithStreamingResponse, ) +from .lists import Lists, AsyncLists from .lists import ( - Lists, - AsyncLists, ListsWithRawResponse, AsyncListsWithRawResponse, ListsWithStreamingResponse, diff --git a/src/cloudflare/resources/gateways/lists/items.py b/src/cloudflare/resources/gateways/lists/items.py index 026c733b19e..f9564e97257 100644 --- a/src/cloudflare/resources/gateways/lists/items.py +++ b/src/cloudflare/resources/gateways/lists/items.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.gateways.lists import ItemZeroTrustListsZeroTrustListItemsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.gateways.lists import ItemZeroTrustListsZeroTrustListItemsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Items", "AsyncItems"] diff --git a/src/cloudflare/resources/gateways/lists/lists.py b/src/cloudflare/resources/gateways/lists/lists.py index 8fce2b6430f..468bb661c4b 100644 --- a/src/cloudflare/resources/gateways/lists/lists.py +++ b/src/cloudflare/resources/gateways/lists/lists.py @@ -2,42 +2,70 @@ from __future__ import annotations -from typing import Any, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx -from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .items import Items, AsyncItems + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.gateways import ( + ListUpdateResponse, + ListDeleteResponse, + ListGetResponse, + ListZeroTrustListsCreateZeroTrustListResponse, + ListZeroTrustListsListZeroTrustListsResponse, + list_zero_trust_lists_create_zero_trust_list_params, +) + +from typing import Type, Iterable, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.gateways import ( - ListGetResponse, - ListDeleteResponse, - ListUpdateResponse, - ListZeroTrustListsListZeroTrustListsResponse, - ListZeroTrustListsCreateZeroTrustListResponse, - list_update_params, - list_zero_trust_lists_create_zero_trust_list_params, +from ....types import shared_params +from ....types.gateways import list_update_params +from ....types.gateways import list_zero_trust_lists_create_zero_trust_list_params +from .items import ( + Items, + AsyncItems, + ItemsWithRawResponse, + AsyncItemsWithRawResponse, + ItemsWithStreamingResponse, + AsyncItemsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Lists", "AsyncLists"] diff --git a/src/cloudflare/resources/gateways/locations.py b/src/cloudflare/resources/gateways/locations.py index 65f99068c34..7ed8b98bb34 100644 --- a/src/cloudflare/resources/gateways/locations.py +++ b/src/cloudflare/resources/gateways/locations.py @@ -2,33 +2,59 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + LocationUpdateResponse, + LocationDeleteResponse, + LocationGetResponse, + LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, + LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, + location_update_params, + location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params, +) + +from typing import Type, Iterable, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - LocationGetResponse, - LocationDeleteResponse, - LocationUpdateResponse, - LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, - LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, - location_update_params, - location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params, -) +from ...types import shared_params +from ...types.gateways import location_update_params +from ...types.gateways import location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/gateways/loggings.py b/src/cloudflare/resources/gateways/loggings.py index c6f1feecd5f..4336e134d50 100644 --- a/src/cloudflare/resources/gateways/loggings.py +++ b/src/cloudflare/resources/gateways/loggings.py @@ -2,29 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, + LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, + logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, - LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, - logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params, -) +from ...types import shared_params +from ...types.gateways import logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Loggings", "AsyncLoggings"] diff --git a/src/cloudflare/resources/gateways/proxy_endpoints.py b/src/cloudflare/resources/gateways/proxy_endpoints.py index 47bf18ffa84..cb3f8de125c 100644 --- a/src/cloudflare/resources/gateways/proxy_endpoints.py +++ b/src/cloudflare/resources/gateways/proxy_endpoints.py @@ -2,34 +2,60 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + ProxyEndpointUpdateResponse, + ProxyEndpointListResponse, + ProxyEndpointDeleteResponse, + ProxyEndpointGetResponse, + ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, + ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, +) + +from typing import Type, List, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - ProxyEndpointGetResponse, - ProxyEndpointListResponse, - ProxyEndpointDeleteResponse, - ProxyEndpointUpdateResponse, - ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, - ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, - proxy_endpoint_update_params, - proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params, -) +from ...types import shared_params +from ...types.gateways import proxy_endpoint_update_params +from ...types.gateways import proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["ProxyEndpoints", "AsyncProxyEndpoints"] diff --git a/src/cloudflare/resources/gateways/rules.py b/src/cloudflare/resources/gateways/rules.py index 2337650f9e9..4dbbb9e6b5f 100644 --- a/src/cloudflare/resources/gateways/rules.py +++ b/src/cloudflare/resources/gateways/rules.py @@ -2,34 +2,61 @@ from __future__ import annotations -from typing import Any, 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.gateways import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleGetResponse, + RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, + RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, + rule_update_params, + rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params, +) + +from typing import Type, List, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.gateways import ( - RuleGetResponse, - RuleDeleteResponse, - RuleUpdateResponse, - RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, - RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, - rule_update_params, - rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params, -) +from ...types import shared_params +from ...types.gateways import rule_update_params +from ...types.gateways import rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/healthchecks/__init__.py b/src/cloudflare/resources/healthchecks/__init__.py index 1948b52d449..3c004d79664 100644 --- a/src/cloudflare/resources/healthchecks/__init__.py +++ b/src/cloudflare/resources/healthchecks/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .healthchecks import Healthchecks, AsyncHealthchecks from .healthchecks import ( - Healthchecks, - AsyncHealthchecks, HealthchecksWithRawResponse, AsyncHealthchecksWithRawResponse, HealthchecksWithStreamingResponse, diff --git a/src/cloudflare/resources/healthchecks/healthchecks.py b/src/cloudflare/resources/healthchecks/healthchecks.py index c330770fd60..825c5f11ed7 100644 --- a/src/cloudflare/resources/healthchecks/healthchecks.py +++ b/src/cloudflare/resources/healthchecks/healthchecks.py @@ -2,22 +2,50 @@ from __future__ import annotations -from typing import List, Type, Optional, cast -from typing_extensions import Literal - import httpx +from .previews import Previews, AsyncPreviews + +from ..._compat import cached_property + from ...types import ( - HealthcheckGetResponse, - HealthcheckDeleteResponse, HealthcheckUpdateResponse, - HealthcheckHealthChecksListHealthChecksResponse, + HealthcheckDeleteResponse, + HealthcheckGetResponse, HealthcheckHealthChecksCreateHealthCheckResponse, + HealthcheckHealthChecksListHealthChecksResponse, healthcheck_update_params, healthcheck_health_checks_create_health_check_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform + +from typing import Type, Optional, 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import healthcheck_update_params +from ...types import healthcheck_health_checks_create_health_check_params from .previews import ( Previews, AsyncPreviews, @@ -26,18 +54,17 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -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 typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Healthchecks", "AsyncHealthchecks"] diff --git a/src/cloudflare/resources/healthchecks/previews.py b/src/cloudflare/resources/healthchecks/previews.py index cbd97960548..58f4b45a8df 100644 --- a/src/cloudflare/resources/healthchecks/previews.py +++ b/src/cloudflare/resources/healthchecks/previews.py @@ -2,31 +2,51 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.healthchecks import ( + PreviewDeleteResponse, + PreviewGetResponse, + PreviewHealthChecksCreatePreviewHealthCheckResponse, + preview_health_checks_create_preview_health_check_params, +) + +from typing import Type, Optional, List + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.healthchecks import ( - PreviewGetResponse, - PreviewDeleteResponse, - PreviewHealthChecksCreatePreviewHealthCheckResponse, - preview_health_checks_create_preview_health_check_params, -) +from ...types import shared_params +from ...types.healthchecks import preview_health_checks_create_preview_health_check_params +from ..._wrappers import ResultWrapper +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__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/hostnames/__init__.py b/src/cloudflare/resources/hostnames/__init__.py index e9d0ceaab7d..26019728a22 100644 --- a/src/cloudflare/resources/hostnames/__init__.py +++ b/src/cloudflare/resources/hostnames/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .hostnames import Hostnames, AsyncHostnames from .hostnames import ( - Hostnames, - AsyncHostnames, HostnamesWithRawResponse, AsyncHostnamesWithRawResponse, HostnamesWithStreamingResponse, diff --git a/src/cloudflare/resources/hostnames/hostnames.py b/src/cloudflare/resources/hostnames/hostnames.py index 98a34ccee52..99d9ff6f426 100644 --- a/src/cloudflare/resources/hostnames/hostnames.py +++ b/src/cloudflare/resources/hostnames/hostnames.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .settings.settings import Settings, AsyncSettings + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .settings import ( Settings, AsyncSettings, @@ -10,9 +29,7 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .settings.settings import Settings, AsyncSettings +from ..._wrappers import ResultWrapper __all__ = ["Hostnames", "AsyncHostnames"] diff --git a/src/cloudflare/resources/hostnames/settings/__init__.py b/src/cloudflare/resources/hostnames/settings/__init__.py index eef5726d8cc..1b39ca6a931 100644 --- a/src/cloudflare/resources/hostnames/settings/__init__.py +++ b/src/cloudflare/resources/hostnames/settings/__init__.py @@ -1,16 +1,9 @@ # File generated from our OpenAPI spec by Stainless. -from .tls import ( - TLS, - AsyncTLS, - TLSWithRawResponse, - AsyncTLSWithRawResponse, - TLSWithStreamingResponse, - AsyncTLSWithStreamingResponse, -) +from .tls import TLS, AsyncTLS +from .tls import TLSWithRawResponse, AsyncTLSWithRawResponse, TLSWithStreamingResponse, AsyncTLSWithStreamingResponse +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, diff --git a/src/cloudflare/resources/hostnames/settings/settings.py b/src/cloudflare/resources/hostnames/settings/settings.py index 70f08fe4e38..aa41860a09d 100644 --- a/src/cloudflare/resources/hostnames/settings/settings.py +++ b/src/cloudflare/resources/hostnames/settings/settings.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .tls import TLS, AsyncTLS + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .tls import ( TLS, AsyncTLS, @@ -10,8 +29,7 @@ TLSWithStreamingResponse, AsyncTLSWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/hostnames/settings/tls.py b/src/cloudflare/resources/hostnames/settings/tls.py index 9ec500fc312..e73224e6528 100644 --- a/src/cloudflare/resources/hostnames/settings/tls.py +++ b/src/cloudflare/resources/hostnames/settings/tls.py @@ -2,26 +2,46 @@ from __future__ import annotations -from typing import List, Type, Union, Optional, cast -from typing_extensions import Literal - 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 ....types.hostnames.settings import TLSUpdateResponse, TLSDeleteResponse, TLSGetResponse + +from typing import Type, Union, List, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.hostnames.settings import TLSGetResponse, TLSDeleteResponse, TLSUpdateResponse, tls_update_params +from ....types import shared_params +from ....types.hostnames.settings import tls_update_params +from ...._wrappers import ResultWrapper +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__ = ["TLS", "AsyncTLS"] diff --git a/src/cloudflare/resources/hyperdrive/__init__.py b/src/cloudflare/resources/hyperdrive/__init__.py index cc6e707cf13..cdb1ebca048 100644 --- a/src/cloudflare/resources/hyperdrive/__init__.py +++ b/src/cloudflare/resources/hyperdrive/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .configs import Configs, AsyncConfigs from .configs import ( - Configs, - AsyncConfigs, ConfigsWithRawResponse, AsyncConfigsWithRawResponse, ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) +from .hyperdrive import Hyperdrive, AsyncHyperdrive from .hyperdrive import ( - Hyperdrive, - AsyncHyperdrive, HyperdriveWithRawResponse, AsyncHyperdriveWithRawResponse, HyperdriveWithStreamingResponse, diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py index 43391e2e9f0..bbda6086579 100644 --- a/src/cloudflare/resources/hyperdrive/configs.py +++ b/src/cloudflare/resources/hyperdrive/configs.py @@ -2,33 +2,59 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.hyperdrive import ( + ConfigCreateResponse, + ConfigUpdateResponse, + ConfigListResponse, + ConfigDeleteResponse, + ConfigGetResponse, + config_create_params, + config_update_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.hyperdrive import ( - ConfigGetResponse, - ConfigListResponse, - ConfigCreateResponse, - ConfigDeleteResponse, - ConfigUpdateResponse, - config_create_params, - config_update_params, -) +from ...types import shared_params +from ...types.hyperdrive import config_create_params +from ...types.hyperdrive import config_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Configs", "AsyncConfigs"] diff --git a/src/cloudflare/resources/hyperdrive/hyperdrive.py b/src/cloudflare/resources/hyperdrive/hyperdrive.py index c8850f175af..25d055c7091 100644 --- a/src/cloudflare/resources/hyperdrive/hyperdrive.py +++ b/src/cloudflare/resources/hyperdrive/hyperdrive.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .configs import Configs, AsyncConfigs + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .configs import ( Configs, AsyncConfigs, @@ -10,8 +29,7 @@ ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Hyperdrive", "AsyncHyperdrive"] diff --git a/src/cloudflare/resources/images/__init__.py b/src/cloudflare/resources/images/__init__.py index 370afc7db49..e91e09dbdc0 100644 --- a/src/cloudflare/resources/images/__init__.py +++ b/src/cloudflare/resources/images/__init__.py @@ -1,24 +1,11 @@ # File generated from our OpenAPI spec by Stainless. -from .v1s import ( - V1s, - AsyncV1s, - V1sWithRawResponse, - AsyncV1sWithRawResponse, - V1sWithStreamingResponse, - AsyncV1sWithStreamingResponse, -) -from .v2s import ( - V2s, - AsyncV2s, - V2sWithRawResponse, - AsyncV2sWithRawResponse, - V2sWithStreamingResponse, - AsyncV2sWithStreamingResponse, -) +from .v1s import V1s, AsyncV1s +from .v1s import V1sWithRawResponse, AsyncV1sWithRawResponse, V1sWithStreamingResponse, AsyncV1sWithStreamingResponse +from .v2s import V2s, AsyncV2s +from .v2s import V2sWithRawResponse, AsyncV2sWithRawResponse, V2sWithStreamingResponse, AsyncV2sWithStreamingResponse +from .images import Images, AsyncImages from .images import ( - Images, - AsyncImages, ImagesWithRawResponse, AsyncImagesWithRawResponse, ImagesWithStreamingResponse, diff --git a/src/cloudflare/resources/images/images.py b/src/cloudflare/resources/images/images.py index 2f94eaf34f3..9cc08549811 100644 --- a/src/cloudflare/resources/images/images.py +++ b/src/cloudflare/resources/images/images.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .v1s.v1s import V1s, AsyncV1s + +from ..._compat import cached_property + +from .v2s.v2s import V2s, AsyncV2s + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .v1s import ( V1s, AsyncV1s, @@ -18,10 +39,7 @@ V2sWithStreamingResponse, AsyncV2sWithStreamingResponse, ) -from .v1s.v1s import V1s, AsyncV1s -from .v2s.v2s import V2s, AsyncV2s -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Images", "AsyncImages"] diff --git a/src/cloudflare/resources/images/v1s/__init__.py b/src/cloudflare/resources/images/v1s/__init__.py index b4cc97da75e..2e0e0c4e403 100644 --- a/src/cloudflare/resources/images/v1s/__init__.py +++ b/src/cloudflare/resources/images/v1s/__init__.py @@ -1,45 +1,35 @@ # File generated from our OpenAPI spec by Stainless. -from .v1s import ( - V1s, - AsyncV1s, - V1sWithRawResponse, - AsyncV1sWithRawResponse, - V1sWithStreamingResponse, - AsyncV1sWithStreamingResponse, -) +from .keys import Keys, AsyncKeys from .keys import ( - Keys, - AsyncKeys, KeysWithRawResponse, AsyncKeysWithRawResponse, KeysWithStreamingResponse, AsyncKeysWithStreamingResponse, ) -from .blobs import ( - Blobs, - AsyncBlobs, - BlobsWithRawResponse, - AsyncBlobsWithRawResponse, - BlobsWithStreamingResponse, - AsyncBlobsWithStreamingResponse, -) +from .stats import Stats, AsyncStats from .stats import ( - Stats, - AsyncStats, StatsWithRawResponse, AsyncStatsWithRawResponse, StatsWithStreamingResponse, AsyncStatsWithStreamingResponse, ) +from .variants import Variants, AsyncVariants from .variants import ( - Variants, - AsyncVariants, VariantsWithRawResponse, AsyncVariantsWithRawResponse, VariantsWithStreamingResponse, AsyncVariantsWithStreamingResponse, ) +from .blobs import Blobs, AsyncBlobs +from .blobs import ( + BlobsWithRawResponse, + AsyncBlobsWithRawResponse, + BlobsWithStreamingResponse, + AsyncBlobsWithStreamingResponse, +) +from .v1s import V1s, AsyncV1s +from .v1s import V1sWithRawResponse, AsyncV1sWithRawResponse, V1sWithStreamingResponse, AsyncV1sWithStreamingResponse __all__ = [ "Keys", diff --git a/src/cloudflare/resources/images/v1s/blobs.py b/src/cloudflare/resources/images/v1s/blobs.py index f3e99803d1b..f25432ac6ed 100644 --- a/src/cloudflare/resources/images/v1s/blobs.py +++ b/src/cloudflare/resources/images/v1s/blobs.py @@ -4,22 +4,35 @@ 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, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, async_to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + StreamedBinaryAPIResponse, async_to_custom_streamed_response_wrapper, + AsyncStreamedBinaryAPIResponse, ) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper __all__ = ["Blobs", "AsyncBlobs"] diff --git a/src/cloudflare/resources/images/v1s/keys.py b/src/cloudflare/resources/images/v1s/keys.py index a5468462b3c..0f46e70c0e8 100644 --- a/src/cloudflare/resources/images/v1s/keys.py +++ b/src/cloudflare/resources/images/v1s/keys.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.images.v1s import KeyCloudflareImagesKeysListSigningKeysResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.images.v1s import KeyCloudflareImagesKeysListSigningKeysResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Keys", "AsyncKeys"] diff --git a/src/cloudflare/resources/images/v1s/stats.py b/src/cloudflare/resources/images/v1s/stats.py index 479a1a43a40..850def79779 100644 --- a/src/cloudflare/resources/images/v1s/stats.py +++ b/src/cloudflare/resources/images/v1s/stats.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.images.v1s import StatCloudflareImagesImagesUsageStatisticsResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.images.v1s import StatCloudflareImagesImagesUsageStatisticsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Stats", "AsyncStats"] diff --git a/src/cloudflare/resources/images/v1s/v1s.py b/src/cloudflare/resources/images/v1s/v1s.py index 17cc4f3baef..7ee46aaf299 100644 --- a/src/cloudflare/resources/images/v1s/v1s.py +++ b/src/cloudflare/resources/images/v1s/v1s.py @@ -2,10 +2,53 @@ from __future__ import annotations -from typing import Any, Type, cast, overload - import httpx +from .keys import Keys, AsyncKeys + +from ...._compat import cached_property + +from .stats import Stats, AsyncStats + +from .variants import Variants, AsyncVariants + +from .blobs import Blobs, AsyncBlobs + +from ....types.images import ( + V1UpdateResponse, + V1DeleteResponse, + V1CloudflareImagesListImagesResponse, + V1CloudflareImagesUploadAnImageViaURLResponse, + V1GetResponse, +) + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.images import v1_update_params +from ....types.images import v1_cloudflare_images_list_images_params +from ....types.images import v1_cloudflare_images_upload_an_image_via_url_params from .keys import ( Keys, AsyncKeys, @@ -14,14 +57,6 @@ KeysWithStreamingResponse, AsyncKeysWithStreamingResponse, ) -from .blobs import ( - Blobs, - AsyncBlobs, - BlobsWithRawResponse, - AsyncBlobsWithRawResponse, - BlobsWithStreamingResponse, - AsyncBlobsWithStreamingResponse, -) from .stats import ( Stats, AsyncStats, @@ -38,30 +73,27 @@ VariantsWithStreamingResponse, AsyncVariantsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import required_args, 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 .blobs import ( + Blobs, + AsyncBlobs, + BlobsWithRawResponse, + AsyncBlobsWithRawResponse, + BlobsWithStreamingResponse, + AsyncBlobsWithStreamingResponse, ) from ...._wrappers import ResultWrapper -from ...._base_client import ( - make_request_options, -) -from ....types.images import ( - V1GetResponse, - V1DeleteResponse, - V1UpdateResponse, - V1CloudflareImagesListImagesResponse, - V1CloudflareImagesUploadAnImageViaURLResponse, - v1_update_params, - v1_cloudflare_images_list_images_params, - v1_cloudflare_images_upload_an_image_via_url_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 __all__ = ["V1s", "AsyncV1s"] diff --git a/src/cloudflare/resources/images/v1s/variants.py b/src/cloudflare/resources/images/v1s/variants.py index c8796fe27bd..a061d7ed37d 100644 --- a/src/cloudflare/resources/images/v1s/variants.py +++ b/src/cloudflare/resources/images/v1s/variants.py @@ -2,33 +2,59 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.images.v1s import ( + VariantUpdateResponse, + VariantDeleteResponse, + VariantCloudflareImagesVariantsCreateAVariantResponse, + VariantCloudflareImagesVariantsListVariantsResponse, + VariantGetResponse, + variant_update_params, + variant_cloudflare_images_variants_create_a_variant_params, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.images.v1s import ( - VariantGetResponse, - VariantDeleteResponse, - VariantUpdateResponse, - VariantCloudflareImagesVariantsListVariantsResponse, - VariantCloudflareImagesVariantsCreateAVariantResponse, - variant_update_params, - variant_cloudflare_images_variants_create_a_variant_params, -) +from ....types import shared_params +from ....types.images.v1s import variant_update_params +from ....types.images.v1s import variant_cloudflare_images_variants_create_a_variant_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Variants", "AsyncVariants"] diff --git a/src/cloudflare/resources/images/v2s/__init__.py b/src/cloudflare/resources/images/v2s/__init__.py index c159fa3296d..b949262f75b 100644 --- a/src/cloudflare/resources/images/v2s/__init__.py +++ b/src/cloudflare/resources/images/v2s/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .v2s import ( - V2s, - AsyncV2s, - V2sWithRawResponse, - AsyncV2sWithRawResponse, - V2sWithStreamingResponse, - AsyncV2sWithStreamingResponse, -) +from .direct_uploads import DirectUploads, AsyncDirectUploads from .direct_uploads import ( - DirectUploads, - AsyncDirectUploads, DirectUploadsWithRawResponse, AsyncDirectUploadsWithRawResponse, DirectUploadsWithStreamingResponse, AsyncDirectUploadsWithStreamingResponse, ) +from .v2s import V2s, AsyncV2s +from .v2s import V2sWithRawResponse, AsyncV2sWithRawResponse, V2sWithStreamingResponse, AsyncV2sWithStreamingResponse __all__ = [ "DirectUploads", diff --git a/src/cloudflare/resources/images/v2s/direct_uploads.py b/src/cloudflare/resources/images/v2s/direct_uploads.py index 57758cadb6f..e7efb3a47c7 100644 --- a/src/cloudflare/resources/images/v2s/direct_uploads.py +++ b/src/cloudflare/resources/images/v2s/direct_uploads.py @@ -2,29 +2,42 @@ from __future__ import annotations -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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.images.v2s import DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response + +from typing import Type, Union + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.images.v2s import ( - DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response, - direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params, -) +from ....types import shared_params +from ....types.images.v2s import direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DirectUploads", "AsyncDirectUploads"] diff --git a/src/cloudflare/resources/images/v2s/v2s.py b/src/cloudflare/resources/images/v2s/v2s.py index dff434f2ea5..f3d69e89622 100644 --- a/src/cloudflare/resources/images/v2s/v2s.py +++ b/src/cloudflare/resources/images/v2s/v2s.py @@ -2,22 +2,41 @@ 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 +from .direct_uploads import DirectUploads, AsyncDirectUploads + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.images import V2ListResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.images import v2_list_params from .direct_uploads import ( DirectUploads, AsyncDirectUploads, @@ -26,10 +45,9 @@ DirectUploadsWithStreamingResponse, AsyncDirectUploadsWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.images import V2ListResponse, v2_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["V2s", "AsyncV2s"] diff --git a/src/cloudflare/resources/intel/__init__.py b/src/cloudflare/resources/intel/__init__.py index 5b5d0ff5e1a..76bfaefc0c4 100644 --- a/src/cloudflare/resources/intel/__init__.py +++ b/src/cloudflare/resources/intel/__init__.py @@ -1,28 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from .intel import ( - Intel, - AsyncIntel, - IntelWithRawResponse, - AsyncIntelWithRawResponse, - IntelWithStreamingResponse, - AsyncIntelWithStreamingResponse, +from .indicator_feeds import IndicatorFeeds, AsyncIndicatorFeeds +from .indicator_feeds import ( + IndicatorFeedsWithRawResponse, + AsyncIndicatorFeedsWithRawResponse, + IndicatorFeedsWithStreamingResponse, + AsyncIndicatorFeedsWithStreamingResponse, ) +from .sinkholes import Sinkholes, AsyncSinkholes from .sinkholes import ( - Sinkholes, - AsyncSinkholes, SinkholesWithRawResponse, AsyncSinkholesWithRawResponse, SinkholesWithStreamingResponse, AsyncSinkholesWithStreamingResponse, ) -from .indicator_feeds import ( - IndicatorFeeds, - AsyncIndicatorFeeds, - IndicatorFeedsWithRawResponse, - AsyncIndicatorFeedsWithRawResponse, - IndicatorFeedsWithStreamingResponse, - AsyncIndicatorFeedsWithStreamingResponse, +from .intel import Intel, AsyncIntel +from .intel import ( + IntelWithRawResponse, + AsyncIntelWithRawResponse, + IntelWithStreamingResponse, + AsyncIntelWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/intel/indicator_feeds.py b/src/cloudflare/resources/intel/indicator_feeds.py index ba2aca9bb2c..9b64955e5b5 100644 --- a/src/cloudflare/resources/intel/indicator_feeds.py +++ b/src/cloudflare/resources/intel/indicator_feeds.py @@ -2,37 +2,64 @@ 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 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 ( - IndicatorFeedGetResponse, - IndicatorFeedListResponse, IndicatorFeedCreateResponse, - IndicatorFeedSnapshotResponse, + IndicatorFeedListResponse, + IndicatorFeedDataResponse, + IndicatorFeedGetResponse, IndicatorFeedPermissionsAddResponse, - IndicatorFeedPermissionsViewResponse, IndicatorFeedPermissionsRemoveResponse, - indicator_feed_create_params, - indicator_feed_snapshot_params, - indicator_feed_permissions_add_params, - indicator_feed_permissions_remove_params, + IndicatorFeedPermissionsViewResponse, + IndicatorFeedSnapshotResponse, +) + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.intel import indicator_feed_create_params +from ...types.intel import indicator_feed_permissions_add_params +from ...types.intel import indicator_feed_permissions_remove_params +from ...types.intel import indicator_feed_snapshot_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["IndicatorFeeds", "AsyncIndicatorFeeds"] diff --git a/src/cloudflare/resources/intel/intel.py b/src/cloudflare/resources/intel/intel.py index bc530ff5049..26cf0f94053 100644 --- a/src/cloudflare/resources/intel/intel.py +++ b/src/cloudflare/resources/intel/intel.py @@ -2,16 +2,27 @@ from __future__ import annotations +from .indicator_feeds import IndicatorFeeds, AsyncIndicatorFeeds + from ..._compat import cached_property -from .sinkholes import ( - Sinkholes, - AsyncSinkholes, - SinkholesWithRawResponse, - AsyncSinkholesWithRawResponse, - SinkholesWithStreamingResponse, - AsyncSinkholesWithStreamingResponse, -) + +from .sinkholes import Sinkholes, AsyncSinkholes + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .indicator_feeds import ( IndicatorFeeds, AsyncIndicatorFeeds, @@ -20,6 +31,15 @@ IndicatorFeedsWithStreamingResponse, AsyncIndicatorFeedsWithStreamingResponse, ) +from .sinkholes import ( + Sinkholes, + AsyncSinkholes, + SinkholesWithRawResponse, + AsyncSinkholesWithRawResponse, + SinkholesWithStreamingResponse, + AsyncSinkholesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Intel", "AsyncIntel"] diff --git a/src/cloudflare/resources/intel/sinkholes.py b/src/cloudflare/resources/intel/sinkholes.py index 249145e830c..aa87e02144e 100644 --- a/src/cloudflare/resources/intel/sinkholes.py +++ b/src/cloudflare/resources/intel/sinkholes.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intel import SinkholeListResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.intel import SinkholeListResponse + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Sinkholes", "AsyncSinkholes"] diff --git a/src/cloudflare/resources/intels/__init__.py b/src/cloudflare/resources/intels/__init__.py index 692912d84e4..7464c090427 100644 --- a/src/cloudflare/resources/intels/__init__.py +++ b/src/cloudflare/resources/intels/__init__.py @@ -1,77 +1,53 @@ # File generated from our OpenAPI spec by Stainless. -from .asn import ( - Asn, - AsyncAsn, - AsnWithRawResponse, - AsyncAsnWithRawResponse, - AsnWithStreamingResponse, - AsyncAsnWithStreamingResponse, -) -from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, -) -from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, -) -from .whois import ( - Whois, - AsyncWhois, - WhoisWithRawResponse, - AsyncWhoisWithRawResponse, - WhoisWithStreamingResponse, - AsyncWhoisWithStreamingResponse, -) -from .intels import ( - Intels, - AsyncIntels, - IntelsWithRawResponse, - AsyncIntelsWithRawResponse, - IntelsWithStreamingResponse, - AsyncIntelsWithStreamingResponse, -) +from .asn import Asn, AsyncAsn +from .asn import AsnWithRawResponse, AsyncAsnWithRawResponse, AsnWithStreamingResponse, AsyncAsnWithStreamingResponse +from .dns import DNS, AsyncDNS +from .dns import DNSWithRawResponse, AsyncDNSWithRawResponse, DNSWithStreamingResponse, AsyncDNSWithStreamingResponse +from .domains import Domains, AsyncDomains from .domains import ( - Domains, - AsyncDomains, DomainsWithRawResponse, AsyncDomainsWithRawResponse, DomainsWithStreamingResponse, AsyncDomainsWithStreamingResponse, ) -from .ip_lists import ( - IPLists, - AsyncIPLists, - IPListsWithRawResponse, - AsyncIPListsWithRawResponse, - IPListsWithStreamingResponse, - AsyncIPListsWithStreamingResponse, -) +from .domain_histories import DomainHistories, AsyncDomainHistories from .domain_histories import ( - DomainHistories, - AsyncDomainHistories, DomainHistoriesWithRawResponse, AsyncDomainHistoriesWithRawResponse, DomainHistoriesWithStreamingResponse, AsyncDomainHistoriesWithStreamingResponse, ) +from .ips import IPs, AsyncIPs +from .ips import IPsWithRawResponse, AsyncIPsWithRawResponse, IPsWithStreamingResponse, AsyncIPsWithStreamingResponse +from .ip_lists import IPLists, AsyncIPLists +from .ip_lists import ( + IPListsWithRawResponse, + AsyncIPListsWithRawResponse, + IPListsWithStreamingResponse, + AsyncIPListsWithStreamingResponse, +) +from .miscategorizations import Miscategorizations, AsyncMiscategorizations from .miscategorizations import ( - Miscategorizations, - AsyncMiscategorizations, MiscategorizationsWithRawResponse, AsyncMiscategorizationsWithRawResponse, MiscategorizationsWithStreamingResponse, AsyncMiscategorizationsWithStreamingResponse, ) +from .whois import Whois, AsyncWhois +from .whois import ( + WhoisWithRawResponse, + AsyncWhoisWithRawResponse, + WhoisWithStreamingResponse, + AsyncWhoisWithStreamingResponse, +) +from .intels import Intels, AsyncIntels +from .intels import ( + IntelsWithRawResponse, + AsyncIntelsWithRawResponse, + IntelsWithStreamingResponse, + AsyncIntelsWithStreamingResponse, +) __all__ = [ "Asn", diff --git a/src/cloudflare/resources/intels/asn/__init__.py b/src/cloudflare/resources/intels/asn/__init__.py index 2b971ffd481..04af967ef16 100644 --- a/src/cloudflare/resources/intels/asn/__init__.py +++ b/src/cloudflare/resources/intels/asn/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .asn import ( - Asn, - AsyncAsn, - AsnWithRawResponse, - AsyncAsnWithRawResponse, - AsnWithStreamingResponse, - AsyncAsnWithStreamingResponse, -) +from .subnets import Subnets, AsyncSubnets from .subnets import ( - Subnets, - AsyncSubnets, SubnetsWithRawResponse, AsyncSubnetsWithRawResponse, SubnetsWithStreamingResponse, AsyncSubnetsWithStreamingResponse, ) +from .asn import Asn, AsyncAsn +from .asn import AsnWithRawResponse, AsyncAsnWithRawResponse, AsnWithStreamingResponse, AsyncAsnWithStreamingResponse __all__ = [ "Subnets", diff --git a/src/cloudflare/resources/intels/asn/asn.py b/src/cloudflare/resources/intels/asn/asn.py index 49662a7bec8..50c208e866d 100644 --- a/src/cloudflare/resources/intels/asn/asn.py +++ b/src/cloudflare/resources/intels/asn/asn.py @@ -2,32 +2,49 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .subnets import ( - Subnets, - AsyncSubnets, - SubnetsWithRawResponse, - AsyncSubnetsWithRawResponse, - SubnetsWithStreamingResponse, - AsyncSubnetsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .subnets import Subnets, AsyncSubnets + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.intels import AsnGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.intels import AsnGetResponse +from ....types import shared_params +from .subnets import ( + Subnets, + AsyncSubnets, + SubnetsWithRawResponse, + AsyncSubnetsWithRawResponse, + SubnetsWithStreamingResponse, + AsyncSubnetsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Asn", "AsyncAsn"] diff --git a/src/cloudflare/resources/intels/asn/subnets.py b/src/cloudflare/resources/intels/asn/subnets.py index c7febe90baa..7c270e3af7f 100644 --- a/src/cloudflare/resources/intels/asn/subnets.py +++ b/src/cloudflare/resources/intels/asn/subnets.py @@ -4,19 +4,33 @@ import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.intels.asn import SubnetListResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.intels.asn import SubnetListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper __all__ = ["Subnets", "AsyncSubnets"] diff --git a/src/cloudflare/resources/intels/dns.py b/src/cloudflare/resources/intels/dns.py index 2616b09d965..a2e0b415c17 100644 --- a/src/cloudflare/resources/intels/dns.py +++ b/src/cloudflare/resources/intels/dns.py @@ -2,28 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import ( + DNSPassiveDNSByIPGetPassiveDNSByIPResponse, + dns_passive_dns_by_ip_get_passive_dns_by_ip_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import ( - DNSPassiveDNSByIPGetPassiveDNSByIPResponse, - dns_passive_dns_by_ip_get_passive_dns_by_ip_params, -) +from ...types import shared_params +from ...types.intels import dns_passive_dns_by_ip_get_passive_dns_by_ip_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DNS", "AsyncDNS"] diff --git a/src/cloudflare/resources/intels/domain_histories.py b/src/cloudflare/resources/intels/domain_histories.py index 6ef5df7fd9f..de892f16ffe 100644 --- a/src/cloudflare/resources/intels/domain_histories.py +++ b/src/cloudflare/resources/intels/domain_histories.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import DomainHistoryListResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import DomainHistoryListResponse, domain_history_list_params +from ...types import shared_params +from ...types.intels import domain_history_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DomainHistories", "AsyncDomainHistories"] diff --git a/src/cloudflare/resources/intels/domains/__init__.py b/src/cloudflare/resources/intels/domains/__init__.py index 255c6c636f7..23a3fe31c7e 100644 --- a/src/cloudflare/resources/intels/domains/__init__.py +++ b/src/cloudflare/resources/intels/domains/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .bulks import Bulks, AsyncBulks from .bulks import ( - Bulks, - AsyncBulks, BulksWithRawResponse, AsyncBulksWithRawResponse, BulksWithStreamingResponse, AsyncBulksWithStreamingResponse, ) +from .domains import Domains, AsyncDomains from .domains import ( - Domains, - AsyncDomains, DomainsWithRawResponse, AsyncDomainsWithRawResponse, DomainsWithStreamingResponse, diff --git a/src/cloudflare/resources/intels/domains/bulks.py b/src/cloudflare/resources/intels/domains/bulks.py index 73cf26ed8e8..4a6d728e122 100644 --- a/src/cloudflare/resources/intels/domains/bulks.py +++ b/src/cloudflare/resources/intels/domains/bulks.py @@ -2,28 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.intels.domains import BulkDomainIntelligenceGetMultipleDomainDetailsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.intels.domains import ( - BulkDomainIntelligenceGetMultipleDomainDetailsResponse, - bulk_domain_intelligence_get_multiple_domain_details_params, -) +from ....types import shared_params +from ....types.intels.domains import bulk_domain_intelligence_get_multiple_domain_details_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Bulks", "AsyncBulks"] diff --git a/src/cloudflare/resources/intels/domains/domains.py b/src/cloudflare/resources/intels/domains/domains.py index d42fad8e572..b4a4dca6e41 100644 --- a/src/cloudflare/resources/intels/domains/domains.py +++ b/src/cloudflare/resources/intels/domains/domains.py @@ -2,36 +2,50 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .bulks import ( - Bulks, - AsyncBulks, - BulksWithRawResponse, - AsyncBulksWithRawResponse, - BulksWithStreamingResponse, - AsyncBulksWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .bulks import Bulks, AsyncBulks + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.intels import DomainDomainIntelligenceGetDomainDetailsResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.intels import ( - DomainDomainIntelligenceGetDomainDetailsResponse, - domain_domain_intelligence_get_domain_details_params, +from ....types import shared_params +from ....types.intels import domain_domain_intelligence_get_domain_details_params +from .bulks import ( + Bulks, + AsyncBulks, + BulksWithRawResponse, + AsyncBulksWithRawResponse, + BulksWithStreamingResponse, + AsyncBulksWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Domains", "AsyncDomains"] diff --git a/src/cloudflare/resources/intels/intels.py b/src/cloudflare/resources/intels/intels.py index a05eb2ab1dd..7fc205721fc 100644 --- a/src/cloudflare/resources/intels/intels.py +++ b/src/cloudflare/resources/intels/intels.py @@ -2,6 +2,39 @@ from __future__ import annotations +from .asn.asn import Asn, AsyncAsn + +from ..._compat import cached_property + +from .dns import DNS, AsyncDNS + +from .domains.domains import Domains, AsyncDomains + +from .domain_histories import DomainHistories, AsyncDomainHistories + +from .ips import IPs, AsyncIPs + +from .ip_lists import IPLists, AsyncIPLists + +from .miscategorizations import Miscategorizations, AsyncMiscategorizations + +from .whois import Whois, AsyncWhois + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .asn import ( Asn, AsyncAsn, @@ -18,23 +51,6 @@ DNSWithStreamingResponse, AsyncDNSWithStreamingResponse, ) -from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, -) -from .whois import ( - Whois, - AsyncWhois, - WhoisWithRawResponse, - AsyncWhoisWithRawResponse, - WhoisWithStreamingResponse, - AsyncWhoisWithStreamingResponse, -) -from .asn.asn import Asn, AsyncAsn from .domains import ( Domains, AsyncDomains, @@ -43,17 +59,6 @@ DomainsWithStreamingResponse, AsyncDomainsWithStreamingResponse, ) -from .ip_lists import ( - IPLists, - AsyncIPLists, - IPListsWithRawResponse, - AsyncIPListsWithRawResponse, - IPListsWithStreamingResponse, - AsyncIPListsWithStreamingResponse, -) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .domains.domains import Domains, AsyncDomains from .domain_histories import ( DomainHistories, AsyncDomainHistories, @@ -62,6 +67,22 @@ DomainHistoriesWithStreamingResponse, AsyncDomainHistoriesWithStreamingResponse, ) +from .ips import ( + IPs, + AsyncIPs, + IPsWithRawResponse, + AsyncIPsWithRawResponse, + IPsWithStreamingResponse, + AsyncIPsWithStreamingResponse, +) +from .ip_lists import ( + IPLists, + AsyncIPLists, + IPListsWithRawResponse, + AsyncIPListsWithRawResponse, + IPListsWithStreamingResponse, + AsyncIPListsWithStreamingResponse, +) from .miscategorizations import ( Miscategorizations, AsyncMiscategorizations, @@ -70,6 +91,15 @@ MiscategorizationsWithStreamingResponse, AsyncMiscategorizationsWithStreamingResponse, ) +from .whois import ( + Whois, + AsyncWhois, + WhoisWithRawResponse, + AsyncWhoisWithRawResponse, + WhoisWithStreamingResponse, + AsyncWhoisWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Intels", "AsyncIntels"] diff --git a/src/cloudflare/resources/intels/ip_lists.py b/src/cloudflare/resources/intels/ip_lists.py index aec0d686cbf..075b5d2bf00 100644 --- a/src/cloudflare/resources/intels/ip_lists.py +++ b/src/cloudflare/resources/intels/ip_lists.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import IPListIPListGetIPListsResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import IPListIPListGetIPListsResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["IPLists", "AsyncIPLists"] diff --git a/src/cloudflare/resources/intels/ips.py b/src/cloudflare/resources/intels/ips.py index cdaf256a44b..c7322b2293b 100644 --- a/src/cloudflare/resources/intels/ips.py +++ b/src/cloudflare/resources/intels/ips.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import IPIPIntelligenceGetIPOverviewResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import IPIPIntelligenceGetIPOverviewResponse, ip_ip_intelligence_get_ip_overview_params +from ...types import shared_params +from ...types.intels import ip_ip_intelligence_get_ip_overview_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["IPs", "AsyncIPs"] diff --git a/src/cloudflare/resources/intels/miscategorizations.py b/src/cloudflare/resources/intels/miscategorizations.py index 740b84481ee..4e14a39a809 100644 --- a/src/cloudflare/resources/intels/miscategorizations.py +++ b/src/cloudflare/resources/intels/miscategorizations.py @@ -2,29 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import MiscategorizationMiscategorizationCreateMiscategorizationResponse + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import ( - MiscategorizationMiscategorizationCreateMiscategorizationResponse, - miscategorization_miscategorization_create_miscategorization_params, -) +from ...types import shared_params +from ...types.intels import miscategorization_miscategorization_create_miscategorization_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Miscategorizations", "AsyncMiscategorizations"] diff --git a/src/cloudflare/resources/intels/whois.py b/src/cloudflare/resources/intels/whois.py index 795f6519a85..81d93bf5c4b 100644 --- a/src/cloudflare/resources/intels/whois.py +++ b/src/cloudflare/resources/intels/whois.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.intels import WhoisWhoisRecordGetWhoisRecordResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.intels import WhoisWhoisRecordGetWhoisRecordResponse, whois_whois_record_get_whois_record_params +from ...types import shared_params +from ...types.intels import whois_whois_record_get_whois_record_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Whois", "AsyncWhois"] diff --git a/src/cloudflare/resources/ips.py b/src/cloudflare/resources/ips.py index 6e1620edad1..8d3120aa4dc 100644 --- a/src/cloudflare/resources/ips.py +++ b/src/cloudflare/resources/ips.py @@ -2,25 +2,40 @@ from __future__ import annotations -from typing import Any, cast - import httpx -from ..types import IPListResponse, ip_list_params -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 ..types import IPListResponse + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import ip_list_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["IPs", "AsyncIPs"] diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py index 9d80b990592..dc7c1cc2b21 100644 --- a/src/cloudflare/resources/keyless_certificates.py +++ b/src/cloudflare/resources/keyless_certificates.py @@ -2,34 +2,59 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - KeylessCertificateGetResponse, - KeylessCertificateListResponse, KeylessCertificateCreateResponse, - KeylessCertificateDeleteResponse, KeylessCertificateUpdateResponse, + KeylessCertificateListResponse, + KeylessCertificateDeleteResponse, + KeylessCertificateGetResponse, keyless_certificate_create_params, keyless_certificate_update_params, ) -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 typing import Type, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import keyless_certificate_create_params +from ..types import keyless_certificate_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["KeylessCertificates", "AsyncKeylessCertificates"] diff --git a/src/cloudflare/resources/load_balancers/__init__.py b/src/cloudflare/resources/load_balancers/__init__.py index 4c3c6f9897a..28f03683f3a 100644 --- a/src/cloudflare/resources/load_balancers/__init__.py +++ b/src/cloudflare/resources/load_balancers/__init__.py @@ -1,48 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, -) -from .regions import ( - Regions, - AsyncRegions, - RegionsWithRawResponse, - AsyncRegionsWithRawResponse, - RegionsWithStreamingResponse, - AsyncRegionsWithStreamingResponse, -) +from .monitors import Monitors, AsyncMonitors from .monitors import ( - Monitors, - AsyncMonitors, MonitorsWithRawResponse, AsyncMonitorsWithRawResponse, MonitorsWithStreamingResponse, AsyncMonitorsWithStreamingResponse, ) +from .pools import Pools, AsyncPools +from .pools import ( + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .regions import Regions, AsyncRegions +from .regions import ( + RegionsWithRawResponse, + AsyncRegionsWithRawResponse, + RegionsWithStreamingResponse, + AsyncRegionsWithStreamingResponse, +) +from .searches import Searches, AsyncSearches from .searches import ( - Searches, - AsyncSearches, SearchesWithRawResponse, AsyncSearchesWithRawResponse, SearchesWithStreamingResponse, AsyncSearchesWithStreamingResponse, ) +from .load_balancers import LoadBalancers, AsyncLoadBalancers from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, LoadBalancersWithRawResponse, AsyncLoadBalancersWithRawResponse, LoadBalancersWithStreamingResponse, diff --git a/src/cloudflare/resources/load_balancers/load_balancers.py b/src/cloudflare/resources/load_balancers/load_balancers.py index ac305324026..94f0cb4d889 100644 --- a/src/cloudflare/resources/load_balancers/load_balancers.py +++ b/src/cloudflare/resources/load_balancers/load_balancers.py @@ -2,38 +2,58 @@ from __future__ import annotations -from typing import List, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, -) +from .monitors.monitors import Monitors, AsyncMonitors + +from ..._compat import cached_property + +from .pools.pools import Pools, AsyncPools + +from .previews import Previews, AsyncPreviews + +from .regions import Regions, AsyncRegions + +from .searches import Searches, AsyncSearches + from ...types import ( - LoadBalancerGetResponse, - LoadBalancerListResponse, LoadBalancerCreateResponse, - LoadBalancerDeleteResponse, LoadBalancerUpdateResponse, + LoadBalancerListResponse, + LoadBalancerDeleteResponse, + LoadBalancerGetResponse, load_balancer_create_params, load_balancer_update_params, ) -from .regions import ( - Regions, - AsyncRegions, - RegionsWithRawResponse, - AsyncRegionsWithRawResponse, - RegionsWithStreamingResponse, - AsyncRegionsWithStreamingResponse, + +from typing import Type, List, Iterable, Optional + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform +from ...types import shared_params +from ...types import load_balancer_create_params +from ...types import load_balancer_update_params from .monitors import ( Monitors, AsyncMonitors, @@ -42,6 +62,14 @@ MonitorsWithStreamingResponse, AsyncMonitorsWithStreamingResponse, ) +from .pools import ( + Pools, + AsyncPools, + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) from .previews import ( Previews, AsyncPreviews, @@ -50,6 +78,14 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .regions import ( + Regions, + AsyncRegions, + RegionsWithRawResponse, + AsyncRegionsWithRawResponse, + RegionsWithStreamingResponse, + AsyncRegionsWithStreamingResponse, +) from .searches import ( Searches, AsyncSearches, @@ -58,20 +94,17 @@ SearchesWithStreamingResponse, AsyncSearchesWithStreamingResponse, ) -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 Pools, AsyncPools -from ..._base_client import ( - make_request_options, -) -from .monitors.monitors import Monitors, AsyncMonitors +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["LoadBalancers", "AsyncLoadBalancers"] diff --git a/src/cloudflare/resources/load_balancers/monitors/__init__.py b/src/cloudflare/resources/load_balancers/monitors/__init__.py index a4b52a649ad..17335d3d691 100644 --- a/src/cloudflare/resources/load_balancers/monitors/__init__.py +++ b/src/cloudflare/resources/load_balancers/monitors/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .monitors import ( - Monitors, - AsyncMonitors, - MonitorsWithRawResponse, - AsyncMonitorsWithRawResponse, - MonitorsWithStreamingResponse, - AsyncMonitorsWithStreamingResponse, -) +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .references import References, AsyncReferences from .references import ( - References, - AsyncReferences, ReferencesWithRawResponse, AsyncReferencesWithRawResponse, ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) +from .monitors import Monitors, AsyncMonitors +from .monitors import ( + MonitorsWithRawResponse, + AsyncMonitorsWithRawResponse, + MonitorsWithStreamingResponse, + AsyncMonitorsWithStreamingResponse, +) __all__ = [ "Previews", diff --git a/src/cloudflare/resources/load_balancers/monitors/monitors.py b/src/cloudflare/resources/load_balancers/monitors/monitors.py index 5852be8ae51..d49c8fc1399 100644 --- a/src/cloudflare/resources/load_balancers/monitors/monitors.py +++ b/src/cloudflare/resources/load_balancers/monitors/monitors.py @@ -2,11 +2,50 @@ from __future__ import annotations -from typing import Type, Optional, cast +import httpx + +from .previews import Previews, AsyncPreviews + +from ...._compat import cached_property + +from .references import References, AsyncReferences + +from ....types.load_balancers import ( + MonitorCreateResponse, + MonitorUpdateResponse, + MonitorListResponse, + MonitorDeleteResponse, + MonitorGetResponse, +) + +from typing import Type, Optional + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.load_balancers import monitor_create_params +from ....types.load_balancers import monitor_update_params from .previews import ( Previews, AsyncPreviews, @@ -15,9 +54,6 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform -from ...._compat import cached_property from .references import ( References, AsyncReferences, @@ -26,26 +62,17 @@ ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) -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.load_balancers import ( - MonitorGetResponse, - MonitorListResponse, - MonitorCreateResponse, - MonitorDeleteResponse, - MonitorUpdateResponse, - monitor_create_params, - monitor_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 __all__ = ["Monitors", "AsyncMonitors"] diff --git a/src/cloudflare/resources/load_balancers/monitors/previews.py b/src/cloudflare/resources/load_balancers/monitors/previews.py index bdbfe9467c0..eb87d593c1b 100644 --- a/src/cloudflare/resources/load_balancers/monitors/previews.py +++ b/src/cloudflare/resources/load_balancers/monitors/previews.py @@ -2,29 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.load_balancers.monitors import PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.load_balancers.monitors import ( - PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse, - preview_account_load_balancer_monitors_preview_monitor_params, -) +from ....types import shared_params +from ....types.load_balancers.monitors import preview_account_load_balancer_monitors_preview_monitor_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/load_balancers/monitors/references.py b/src/cloudflare/resources/load_balancers/monitors/references.py index dc86c89b03e..73222802e00 100644 --- a/src/cloudflare/resources/load_balancers/monitors/references.py +++ b/src/cloudflare/resources/load_balancers/monitors/references.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.load_balancers.monitors import ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.load_balancers.monitors import ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["References", "AsyncReferences"] diff --git a/src/cloudflare/resources/load_balancers/pools/__init__.py b/src/cloudflare/resources/load_balancers/pools/__init__.py index feca8991733..12b9b71d89e 100644 --- a/src/cloudflare/resources/load_balancers/pools/__init__.py +++ b/src/cloudflare/resources/load_balancers/pools/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, -) +from .health import Health, AsyncHealth from .health import ( - Health, - AsyncHealth, HealthWithRawResponse, AsyncHealthWithRawResponse, HealthWithStreamingResponse, AsyncHealthWithStreamingResponse, ) +from .references import References, AsyncReferences from .references import ( - References, - AsyncReferences, ReferencesWithRawResponse, AsyncReferencesWithRawResponse, ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) +from .pools import Pools, AsyncPools +from .pools import ( + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) __all__ = [ "Health", diff --git a/src/cloudflare/resources/load_balancers/pools/health.py b/src/cloudflare/resources/load_balancers/pools/health.py index 1a9536e70e3..ae23c66221d 100644 --- a/src/cloudflare/resources/load_balancers/pools/health.py +++ b/src/cloudflare/resources/load_balancers/pools/health.py @@ -2,26 +2,46 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.load_balancers.pools import HealthGetResponse, HealthPreviewResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.load_balancers.pools import HealthGetResponse, HealthPreviewResponse, health_preview_params +from ....types import shared_params +from ....types.load_balancers.pools import health_preview_params +from ...._wrappers import ResultWrapper +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__ = ["Health", "AsyncHealth"] diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py index 5ab08cb2279..2d15fc95c69 100644 --- a/src/cloudflare/resources/load_balancers/pools/pools.py +++ b/src/cloudflare/resources/load_balancers/pools/pools.py @@ -2,11 +2,53 @@ from __future__ import annotations -from typing import List, Type, Iterable, Optional, cast +import httpx + +from .health import Health, AsyncHealth + +from ...._compat import cached_property + +from .references import References, AsyncReferences + +from ....types.load_balancers import ( + PoolCreateResponse, + PoolUpdateResponse, + PoolListResponse, + PoolDeleteResponse, + PoolGetResponse, + pool_create_params, + pool_update_params, +) + +from typing import Type, Iterable, Optional, List + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +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 .health import ( Health, AsyncHealth, @@ -15,9 +57,6 @@ HealthWithStreamingResponse, AsyncHealthWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform -from ...._compat import cached_property from .references import ( References, AsyncReferences, @@ -26,27 +65,17 @@ ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) -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.load_balancers import ( - PoolGetResponse, - PoolListResponse, - PoolCreateResponse, - PoolDeleteResponse, - PoolUpdateResponse, - pool_list_params, - pool_create_params, - pool_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 __all__ = ["Pools", "AsyncPools"] diff --git a/src/cloudflare/resources/load_balancers/pools/references.py b/src/cloudflare/resources/load_balancers/pools/references.py index d7efc7238c3..415cbb7ab53 100644 --- a/src/cloudflare/resources/load_balancers/pools/references.py +++ b/src/cloudflare/resources/load_balancers/pools/references.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.load_balancers.pools import ReferenceListResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.load_balancers.pools import ReferenceListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["References", "AsyncReferences"] diff --git a/src/cloudflare/resources/load_balancers/previews.py b/src/cloudflare/resources/load_balancers/previews.py index 8f6ff171452..e82b8e5aa9e 100644 --- a/src/cloudflare/resources/load_balancers/previews.py +++ b/src/cloudflare/resources/load_balancers/previews.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.load_balancers import PreviewGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.load_balancers import PreviewGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/load_balancers/regions.py b/src/cloudflare/resources/load_balancers/regions.py index abb5ea45ccc..fe619bef801 100644 --- a/src/cloudflare/resources/load_balancers/regions.py +++ b/src/cloudflare/resources/load_balancers/regions.py @@ -2,30 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.load_balancers import RegionGetResponse, RegionLoadBalancerRegionsListRegionsResponse + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.load_balancers import ( - RegionGetResponse, - RegionLoadBalancerRegionsListRegionsResponse, - region_load_balancer_regions_list_regions_params, -) +from ...types import shared_params +from ...types.load_balancers import region_load_balancer_regions_list_regions_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Regions", "AsyncRegions"] diff --git a/src/cloudflare/resources/load_balancers/searches.py b/src/cloudflare/resources/load_balancers/searches.py index b16a19b48de..9827c98353d 100644 --- a/src/cloudflare/resources/load_balancers/searches.py +++ b/src/cloudflare/resources/load_balancers/searches.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.load_balancers import SearchListResponse, search_list_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.load_balancers import SearchListResponse, search_list_params +from ...types import shared_params +from ...types.load_balancers import search_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Searches", "AsyncSearches"] diff --git a/src/cloudflare/resources/logpush/__init__.py b/src/cloudflare/resources/logpush/__init__.py index f0b4418f823..01c88ced5d5 100644 --- a/src/cloudflare/resources/logpush/__init__.py +++ b/src/cloudflare/resources/logpush/__init__.py @@ -1,52 +1,46 @@ # File generated from our OpenAPI spec by Stainless. -from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, +from .datasets import Datasets, AsyncDatasets +from .datasets import ( + DatasetsWithRawResponse, + AsyncDatasetsWithRawResponse, + DatasetsWithStreamingResponse, + AsyncDatasetsWithStreamingResponse, ) +from .edges import Edges, AsyncEdges from .edges import ( - Edges, - AsyncEdges, EdgesWithRawResponse, AsyncEdgesWithRawResponse, EdgesWithStreamingResponse, AsyncEdgesWithStreamingResponse, ) -from .logpush import ( - Logpush, - AsyncLogpush, - LogpushWithRawResponse, - AsyncLogpushWithRawResponse, - LogpushWithStreamingResponse, - AsyncLogpushWithStreamingResponse, +from .jobs import Jobs, AsyncJobs +from .jobs import ( + JobsWithRawResponse, + AsyncJobsWithRawResponse, + JobsWithStreamingResponse, + AsyncJobsWithStreamingResponse, ) -from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, +from .ownerships import Ownerships, AsyncOwnerships +from .ownerships import ( + OwnershipsWithRawResponse, + AsyncOwnershipsWithRawResponse, + OwnershipsWithStreamingResponse, + AsyncOwnershipsWithStreamingResponse, ) +from .validates import Validates, AsyncValidates from .validates import ( - Validates, - AsyncValidates, ValidatesWithRawResponse, AsyncValidatesWithRawResponse, ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) -from .ownerships import ( - Ownerships, - AsyncOwnerships, - OwnershipsWithRawResponse, - AsyncOwnershipsWithRawResponse, - OwnershipsWithStreamingResponse, - AsyncOwnershipsWithStreamingResponse, +from .logpush import Logpush, AsyncLogpush +from .logpush import ( + LogpushWithRawResponse, + AsyncLogpushWithRawResponse, + LogpushWithStreamingResponse, + AsyncLogpushWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/logpush/datasets/__init__.py b/src/cloudflare/resources/logpush/datasets/__init__.py index 80f924f0182..1e9572edac6 100644 --- a/src/cloudflare/resources/logpush/datasets/__init__.py +++ b/src/cloudflare/resources/logpush/datasets/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, -) +from .fields import Fields, AsyncFields from .fields import ( - Fields, - AsyncFields, FieldsWithRawResponse, AsyncFieldsWithRawResponse, FieldsWithStreamingResponse, AsyncFieldsWithStreamingResponse, ) +from .jobs import Jobs, AsyncJobs +from .jobs import ( + JobsWithRawResponse, + AsyncJobsWithRawResponse, + JobsWithStreamingResponse, + AsyncJobsWithStreamingResponse, +) +from .datasets import Datasets, AsyncDatasets from .datasets import ( - Datasets, - AsyncDatasets, DatasetsWithRawResponse, AsyncDatasetsWithRawResponse, DatasetsWithStreamingResponse, diff --git a/src/cloudflare/resources/logpush/datasets/datasets.py b/src/cloudflare/resources/logpush/datasets/datasets.py index 59e165bf9c8..7cce55a9a18 100644 --- a/src/cloudflare/resources/logpush/datasets/datasets.py +++ b/src/cloudflare/resources/logpush/datasets/datasets.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, +from .fields import Fields, AsyncFields + +from ...._compat import cached_property + +from .jobs import Jobs, AsyncJobs + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .fields import ( Fields, AsyncFields, @@ -18,8 +31,15 @@ FieldsWithStreamingResponse, AsyncFieldsWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from .jobs import ( + Jobs, + AsyncJobs, + JobsWithRawResponse, + AsyncJobsWithRawResponse, + JobsWithStreamingResponse, + AsyncJobsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Datasets", "AsyncDatasets"] diff --git a/src/cloudflare/resources/logpush/datasets/fields.py b/src/cloudflare/resources/logpush/datasets/fields.py index 59a3e8f961c..91d9d7d6d1d 100644 --- a/src/cloudflare/resources/logpush/datasets/fields.py +++ b/src/cloudflare/resources/logpush/datasets/fields.py @@ -2,23 +2,37 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Fields", "AsyncFields"] diff --git a/src/cloudflare/resources/logpush/datasets/jobs.py b/src/cloudflare/resources/logpush/datasets/jobs.py index 65996735931..2b593a07a3f 100644 --- a/src/cloudflare/resources/logpush/datasets/jobs.py +++ b/src/cloudflare/resources/logpush/datasets/jobs.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logpush.datasets import JobListResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.logpush.datasets import JobListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Jobs", "AsyncJobs"] diff --git a/src/cloudflare/resources/logpush/edges.py b/src/cloudflare/resources/logpush/edges.py index 0437389e80a..867b3b42683 100644 --- a/src/cloudflare/resources/logpush/edges.py +++ b/src/cloudflare/resources/logpush/edges.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.logpush import EdgeUpdateResponse, EdgeGetResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.logpush import EdgeGetResponse, EdgeUpdateResponse, edge_update_params +from ...types import shared_params +from ...types.logpush import edge_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Edges", "AsyncEdges"] diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py index 25fff5c2a65..fd8df2b8ac8 100644 --- a/src/cloudflare/resources/logpush/jobs.py +++ b/src/cloudflare/resources/logpush/jobs.py @@ -2,34 +2,61 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.logpush import ( + JobCreateResponse, + JobUpdateResponse, + JobListResponse, + JobDeleteResponse, + JobGetResponse, + job_create_params, + job_update_params, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.logpush import ( - JobGetResponse, - JobListResponse, - JobCreateResponse, - JobDeleteResponse, - JobUpdateResponse, - job_create_params, - job_update_params, -) +from ...types import shared_params +from ...types.logpush import job_create_params +from ...types.logpush import job_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Jobs", "AsyncJobs"] diff --git a/src/cloudflare/resources/logpush/logpush.py b/src/cloudflare/resources/logpush/logpush.py index bf93da3f463..a7c62bd0243 100644 --- a/src/cloudflare/resources/logpush/logpush.py +++ b/src/cloudflare/resources/logpush/logpush.py @@ -2,22 +2,33 @@ from __future__ import annotations -from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, -) -from .edges import ( - Edges, - AsyncEdges, - EdgesWithRawResponse, - AsyncEdgesWithRawResponse, - EdgesWithStreamingResponse, - AsyncEdgesWithStreamingResponse, +from .datasets.datasets import Datasets, AsyncDatasets + +from ..._compat import cached_property + +from .edges import Edges, AsyncEdges + +from .jobs import Jobs, AsyncJobs + +from .ownerships.ownerships import Ownerships, AsyncOwnerships + +from .validates.validates import Validates, AsyncValidates + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from .datasets import ( Datasets, AsyncDatasets, @@ -26,14 +37,21 @@ DatasetsWithStreamingResponse, AsyncDatasetsWithStreamingResponse, ) -from ..._compat import cached_property -from .validates import ( - Validates, - AsyncValidates, - ValidatesWithRawResponse, - AsyncValidatesWithRawResponse, - ValidatesWithStreamingResponse, - AsyncValidatesWithStreamingResponse, +from .edges import ( + Edges, + AsyncEdges, + EdgesWithRawResponse, + AsyncEdgesWithRawResponse, + EdgesWithStreamingResponse, + AsyncEdgesWithStreamingResponse, +) +from .jobs import ( + Jobs, + AsyncJobs, + JobsWithRawResponse, + AsyncJobsWithRawResponse, + JobsWithStreamingResponse, + AsyncJobsWithStreamingResponse, ) from .ownerships import ( Ownerships, @@ -43,10 +61,15 @@ OwnershipsWithStreamingResponse, AsyncOwnershipsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .datasets.datasets import Datasets, AsyncDatasets -from .validates.validates import Validates, AsyncValidates -from .ownerships.ownerships import Ownerships, AsyncOwnerships +from .validates import ( + Validates, + AsyncValidates, + ValidatesWithRawResponse, + AsyncValidatesWithRawResponse, + ValidatesWithStreamingResponse, + AsyncValidatesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Logpush", "AsyncLogpush"] diff --git a/src/cloudflare/resources/logpush/ownerships/__init__.py b/src/cloudflare/resources/logpush/ownerships/__init__.py index 59ad3da5406..478d45aad00 100644 --- a/src/cloudflare/resources/logpush/ownerships/__init__.py +++ b/src/cloudflare/resources/logpush/ownerships/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .validates import Validates, AsyncValidates from .validates import ( - Validates, - AsyncValidates, ValidatesWithRawResponse, AsyncValidatesWithRawResponse, ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) +from .ownerships import Ownerships, AsyncOwnerships from .ownerships import ( - Ownerships, - AsyncOwnerships, OwnershipsWithRawResponse, AsyncOwnershipsWithRawResponse, OwnershipsWithStreamingResponse, diff --git a/src/cloudflare/resources/logpush/ownerships/ownerships.py b/src/cloudflare/resources/logpush/ownerships/ownerships.py index e8edf51e0ea..837c9fdc853 100644 --- a/src/cloudflare/resources/logpush/ownerships/ownerships.py +++ b/src/cloudflare/resources/logpush/ownerships/ownerships.py @@ -2,36 +2,50 @@ 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 -from .validates import ( - Validates, - AsyncValidates, - ValidatesWithRawResponse, - AsyncValidatesWithRawResponse, - ValidatesWithStreamingResponse, - AsyncValidatesWithStreamingResponse, -) +from .validates import Validates, AsyncValidates + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logpush import OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.logpush import ( - OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse, - ownership_post_accounts_account_identifier_logpush_ownership_params, +from ....types import shared_params +from ....types.logpush import ownership_post_accounts_account_identifier_logpush_ownership_params +from .validates import ( + Validates, + AsyncValidates, + ValidatesWithRawResponse, + AsyncValidatesWithRawResponse, + ValidatesWithStreamingResponse, + AsyncValidatesWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Ownerships", "AsyncOwnerships"] diff --git a/src/cloudflare/resources/logpush/ownerships/validates.py b/src/cloudflare/resources/logpush/ownerships/validates.py index 56c68054a01..fa5297960b8 100644 --- a/src/cloudflare/resources/logpush/ownerships/validates.py +++ b/src/cloudflare/resources/logpush/ownerships/validates.py @@ -2,28 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logpush.ownerships import ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.logpush.ownerships import ( - ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse, - validate_post_accounts_account_identifier_logpush_ownership_validate_params, -) +from ....types import shared_params +from ....types.logpush.ownerships import validate_post_accounts_account_identifier_logpush_ownership_validate_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Validates", "AsyncValidates"] diff --git a/src/cloudflare/resources/logpush/validates/__init__.py b/src/cloudflare/resources/logpush/validates/__init__.py index fc70e5c0983..36c864031d5 100644 --- a/src/cloudflare/resources/logpush/validates/__init__.py +++ b/src/cloudflare/resources/logpush/validates/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .destinations import Destinations, AsyncDestinations +from .destinations import ( + DestinationsWithRawResponse, + AsyncDestinationsWithRawResponse, + DestinationsWithStreamingResponse, + AsyncDestinationsWithStreamingResponse, +) +from .origins import Origins, AsyncOrigins from .origins import ( - Origins, - AsyncOrigins, OriginsWithRawResponse, AsyncOriginsWithRawResponse, OriginsWithStreamingResponse, AsyncOriginsWithStreamingResponse, ) +from .validates import Validates, AsyncValidates from .validates import ( - Validates, - AsyncValidates, ValidatesWithRawResponse, AsyncValidatesWithRawResponse, ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) -from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, -) __all__ = [ "Destinations", diff --git a/src/cloudflare/resources/logpush/validates/destinations/__init__.py b/src/cloudflare/resources/logpush/validates/destinations/__init__.py index f406b10c708..bf0741aa81e 100644 --- a/src/cloudflare/resources/logpush/validates/destinations/__init__.py +++ b/src/cloudflare/resources/logpush/validates/destinations/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .exists import Exists, AsyncExists from .exists import ( - Exists, - AsyncExists, ExistsWithRawResponse, AsyncExistsWithRawResponse, ExistsWithStreamingResponse, AsyncExistsWithStreamingResponse, ) +from .destinations import Destinations, AsyncDestinations from .destinations import ( - Destinations, - AsyncDestinations, DestinationsWithRawResponse, AsyncDestinationsWithRawResponse, DestinationsWithStreamingResponse, diff --git a/src/cloudflare/resources/logpush/validates/destinations/destinations.py b/src/cloudflare/resources/logpush/validates/destinations/destinations.py index 081e2fb286b..00e25098378 100644 --- a/src/cloudflare/resources/logpush/validates/destinations/destinations.py +++ b/src/cloudflare/resources/logpush/validates/destinations/destinations.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .exists import Exists, AsyncExists + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .exists import ( Exists, AsyncExists, @@ -10,8 +29,7 @@ ExistsWithStreamingResponse, AsyncExistsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Destinations", "AsyncDestinations"] diff --git a/src/cloudflare/resources/logpush/validates/destinations/exists.py b/src/cloudflare/resources/logpush/validates/destinations/exists.py index 1415fa5d235..ebe614ac8bc 100644 --- a/src/cloudflare/resources/logpush/validates/destinations/exists.py +++ b/src/cloudflare/resources/logpush/validates/destinations/exists.py @@ -2,28 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.logpush.validates.destinations import ( + ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, +) + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .....types.logpush.validates.destinations import ( - ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params, ) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Exists", "AsyncExists"] diff --git a/src/cloudflare/resources/logpush/validates/origins.py b/src/cloudflare/resources/logpush/validates/origins.py index 284ae7455f4..a7a0e46874c 100644 --- a/src/cloudflare/resources/logpush/validates/origins.py +++ b/src/cloudflare/resources/logpush/validates/origins.py @@ -2,28 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logpush.validates import OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.logpush.validates import ( - OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse, - origin_post_accounts_account_identifier_logpush_validate_origin_params, -) +from ....types import shared_params +from ....types.logpush.validates import origin_post_accounts_account_identifier_logpush_validate_origin_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Origins", "AsyncOrigins"] diff --git a/src/cloudflare/resources/logpush/validates/validates.py b/src/cloudflare/resources/logpush/validates/validates.py index a4f4b1b4e26..1ad6c6ba5e8 100644 --- a/src/cloudflare/resources/logpush/validates/validates.py +++ b/src/cloudflare/resources/logpush/validates/validates.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .origins import ( - Origins, - AsyncOrigins, - OriginsWithRawResponse, - AsyncOriginsWithRawResponse, - OriginsWithStreamingResponse, - AsyncOriginsWithStreamingResponse, -) +from .destinations.destinations import Destinations, AsyncDestinations + from ...._compat import cached_property + +from .origins import Origins, AsyncOrigins + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .destinations import ( Destinations, AsyncDestinations, @@ -20,7 +31,15 @@ DestinationsWithStreamingResponse, AsyncDestinationsWithStreamingResponse, ) -from .destinations.destinations import Destinations, AsyncDestinations +from .origins import ( + Origins, + AsyncOrigins, + OriginsWithRawResponse, + AsyncOriginsWithRawResponse, + OriginsWithStreamingResponse, + AsyncOriginsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Validates", "AsyncValidates"] diff --git a/src/cloudflare/resources/logs/__init__.py b/src/cloudflare/resources/logs/__init__.py index ca9dcdc3952..34d1b56faa7 100644 --- a/src/cloudflare/resources/logs/__init__.py +++ b/src/cloudflare/resources/logs/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, +from .controls import Controls, AsyncControls +from .controls import ( + ControlsWithRawResponse, + AsyncControlsWithRawResponse, + ControlsWithStreamingResponse, + AsyncControlsWithStreamingResponse, ) +from .rayids import Rayids, AsyncRayids from .rayids import ( - Rayids, - AsyncRayids, RayidsWithRawResponse, AsyncRayidsWithRawResponse, RayidsWithStreamingResponse, AsyncRayidsWithStreamingResponse, ) -from .controls import ( - Controls, - AsyncControls, - ControlsWithRawResponse, - AsyncControlsWithRawResponse, - ControlsWithStreamingResponse, - AsyncControlsWithStreamingResponse, -) +from .receiveds import Receiveds, AsyncReceiveds from .receiveds import ( - Receiveds, - AsyncReceiveds, ReceivedsWithRawResponse, AsyncReceivedsWithRawResponse, ReceivedsWithStreamingResponse, AsyncReceivedsWithStreamingResponse, ) +from .logs import Logs, AsyncLogs +from .logs import ( + LogsWithRawResponse, + AsyncLogsWithRawResponse, + LogsWithStreamingResponse, + AsyncLogsWithStreamingResponse, +) __all__ = [ "Controls", diff --git a/src/cloudflare/resources/logs/controls/__init__.py b/src/cloudflare/resources/logs/controls/__init__.py index da41f962457..38ae362a81f 100644 --- a/src/cloudflare/resources/logs/controls/__init__.py +++ b/src/cloudflare/resources/logs/controls/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, +from .retentions import Retentions, AsyncRetentions +from .retentions import ( + RetentionsWithRawResponse, + AsyncRetentionsWithRawResponse, + RetentionsWithStreamingResponse, + AsyncRetentionsWithStreamingResponse, ) +from .cmb import Cmb, AsyncCmb +from .cmb import CmbWithRawResponse, AsyncCmbWithRawResponse, CmbWithStreamingResponse, AsyncCmbWithStreamingResponse +from .controls import Controls, AsyncControls from .controls import ( - Controls, - AsyncControls, ControlsWithRawResponse, AsyncControlsWithRawResponse, ControlsWithStreamingResponse, AsyncControlsWithStreamingResponse, ) -from .retentions import ( - Retentions, - AsyncRetentions, - RetentionsWithRawResponse, - AsyncRetentionsWithRawResponse, - RetentionsWithStreamingResponse, - AsyncRetentionsWithStreamingResponse, -) __all__ = [ "Retentions", diff --git a/src/cloudflare/resources/logs/controls/cmb/__init__.py b/src/cloudflare/resources/logs/controls/cmb/__init__.py index fb1f7293642..2e384c3468d 100644 --- a/src/cloudflare/resources/logs/controls/cmb/__init__.py +++ b/src/cloudflare/resources/logs/controls/cmb/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, -) +from .configs import Configs, AsyncConfigs from .configs import ( - Configs, - AsyncConfigs, ConfigsWithRawResponse, AsyncConfigsWithRawResponse, ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) +from .cmb import Cmb, AsyncCmb +from .cmb import CmbWithRawResponse, AsyncCmbWithRawResponse, CmbWithStreamingResponse, AsyncCmbWithStreamingResponse __all__ = [ "Configs", diff --git a/src/cloudflare/resources/logs/controls/cmb/cmb.py b/src/cloudflare/resources/logs/controls/cmb/cmb.py index 49f52614483..23a20ade43a 100644 --- a/src/cloudflare/resources/logs/controls/cmb/cmb.py +++ b/src/cloudflare/resources/logs/controls/cmb/cmb.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .configs import Configs, AsyncConfigs + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .configs import ( Configs, AsyncConfigs, @@ -10,8 +29,7 @@ ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Cmb", "AsyncCmb"] diff --git a/src/cloudflare/resources/logs/controls/cmb/configs.py b/src/cloudflare/resources/logs/controls/cmb/configs.py index cc75f32a80f..1689a29cb6d 100644 --- a/src/cloudflare/resources/logs/controls/cmb/configs.py +++ b/src/cloudflare/resources/logs/controls/cmb/configs.py @@ -2,30 +2,50 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.logs.controls.cmb import ( + ConfigDeleteResponse, + ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, + ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse, +) + +from typing import Optional, Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.logs.controls.cmb import ( - ConfigDeleteResponse, - ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, - ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse, - config_put_accounts_account_identifier_logs_control_cmb_config_params, -) +from .....types import shared_params +from .....types.logs.controls.cmb import config_put_accounts_account_identifier_logs_control_cmb_config_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Configs", "AsyncConfigs"] diff --git a/src/cloudflare/resources/logs/controls/controls.py b/src/cloudflare/resources/logs/controls/controls.py index 83b07ac03a6..a771b86044e 100644 --- a/src/cloudflare/resources/logs/controls/controls.py +++ b/src/cloudflare/resources/logs/controls/controls.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, -) -from .cmb.cmb import Cmb, AsyncCmb +from .retentions.retentions import Retentions, AsyncRetentions + from ...._compat import cached_property + +from .cmb.cmb import Cmb, AsyncCmb + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .retentions import ( Retentions, AsyncRetentions, @@ -20,8 +31,15 @@ RetentionsWithStreamingResponse, AsyncRetentionsWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .retentions.retentions import Retentions, AsyncRetentions +from .cmb import ( + Cmb, + AsyncCmb, + CmbWithRawResponse, + AsyncCmbWithRawResponse, + CmbWithStreamingResponse, + AsyncCmbWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Controls", "AsyncControls"] diff --git a/src/cloudflare/resources/logs/controls/retentions/__init__.py b/src/cloudflare/resources/logs/controls/retentions/__init__.py index 76af3f37346..a0f98bb8ff4 100644 --- a/src/cloudflare/resources/logs/controls/retentions/__init__.py +++ b/src/cloudflare/resources/logs/controls/retentions/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .flags import Flags, AsyncFlags from .flags import ( - Flags, - AsyncFlags, FlagsWithRawResponse, AsyncFlagsWithRawResponse, FlagsWithStreamingResponse, AsyncFlagsWithStreamingResponse, ) +from .retentions import Retentions, AsyncRetentions from .retentions import ( - Retentions, - AsyncRetentions, RetentionsWithRawResponse, AsyncRetentionsWithRawResponse, RetentionsWithStreamingResponse, diff --git a/src/cloudflare/resources/logs/controls/retentions/flags.py b/src/cloudflare/resources/logs/controls/retentions/flags.py index f12cd84324a..cdaa6798634 100644 --- a/src/cloudflare/resources/logs/controls/retentions/flags.py +++ b/src/cloudflare/resources/logs/controls/retentions/flags.py @@ -2,29 +2,45 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.logs.controls.retentions import ( + FlagLogsReceivedGetLogRetentionFlagResponse, + FlagLogsReceivedUpdateLogRetentionFlagResponse, +) + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.logs.controls.retentions import ( - FlagLogsReceivedGetLogRetentionFlagResponse, - FlagLogsReceivedUpdateLogRetentionFlagResponse, - flag_logs_received_update_log_retention_flag_params, -) +from .....types import shared_params +from .....types.logs.controls.retentions import flag_logs_received_update_log_retention_flag_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Flags", "AsyncFlags"] diff --git a/src/cloudflare/resources/logs/controls/retentions/retentions.py b/src/cloudflare/resources/logs/controls/retentions/retentions.py index fc77f8e7e50..e85b371766a 100644 --- a/src/cloudflare/resources/logs/controls/retentions/retentions.py +++ b/src/cloudflare/resources/logs/controls/retentions/retentions.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .flags import Flags, AsyncFlags + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .flags import ( Flags, AsyncFlags, @@ -10,8 +29,7 @@ FlagsWithStreamingResponse, AsyncFlagsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Retentions", "AsyncRetentions"] diff --git a/src/cloudflare/resources/logs/logs.py b/src/cloudflare/resources/logs/logs.py index e0dbb40295c..f52599aba33 100644 --- a/src/cloudflare/resources/logs/logs.py +++ b/src/cloudflare/resources/logs/logs.py @@ -2,14 +2,29 @@ from __future__ import annotations -from .rayids import ( - Rayids, - AsyncRayids, - RayidsWithRawResponse, - AsyncRayidsWithRawResponse, - RayidsWithStreamingResponse, - AsyncRayidsWithStreamingResponse, +from .controls.controls import Controls, AsyncControls + +from ..._compat import cached_property + +from .rayids import Rayids, AsyncRayids + +from .receiveds.receiveds import Receiveds, AsyncReceiveds + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from .controls import ( Controls, AsyncControls, @@ -18,7 +33,14 @@ ControlsWithStreamingResponse, AsyncControlsWithStreamingResponse, ) -from ..._compat import cached_property +from .rayids import ( + Rayids, + AsyncRayids, + RayidsWithRawResponse, + AsyncRayidsWithRawResponse, + RayidsWithStreamingResponse, + AsyncRayidsWithStreamingResponse, +) from .receiveds import ( Receiveds, AsyncReceiveds, @@ -27,9 +49,7 @@ ReceivedsWithStreamingResponse, AsyncReceivedsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .controls.controls import Controls, AsyncControls -from .receiveds.receiveds import Receiveds, AsyncReceiveds +from ..._wrappers import ResultWrapper __all__ = ["Logs", "AsyncLogs"] diff --git a/src/cloudflare/resources/logs/rayids.py b/src/cloudflare/resources/logs/rayids.py index 267e3324515..bf8d4750bc3 100644 --- a/src/cloudflare/resources/logs/rayids.py +++ b/src/cloudflare/resources/logs/rayids.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.logs import RayidGetResponse + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...types.logs import RayidGetResponse, rayid_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.logs import rayid_get_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Rayids", "AsyncRayids"] diff --git a/src/cloudflare/resources/logs/receiveds/__init__.py b/src/cloudflare/resources/logs/receiveds/__init__.py index 0861274dc38..4aa74c2845e 100644 --- a/src/cloudflare/resources/logs/receiveds/__init__.py +++ b/src/cloudflare/resources/logs/receiveds/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .fields import Fields, AsyncFields from .fields import ( - Fields, - AsyncFields, FieldsWithRawResponse, AsyncFieldsWithRawResponse, FieldsWithStreamingResponse, AsyncFieldsWithStreamingResponse, ) +from .receiveds import Receiveds, AsyncReceiveds from .receiveds import ( - Receiveds, - AsyncReceiveds, ReceivedsWithRawResponse, AsyncReceivedsWithRawResponse, ReceivedsWithStreamingResponse, diff --git a/src/cloudflare/resources/logs/receiveds/fields.py b/src/cloudflare/resources/logs/receiveds/fields.py index 67d4740f55f..54c8d4f38a8 100644 --- a/src/cloudflare/resources/logs/receiveds/fields.py +++ b/src/cloudflare/resources/logs/receiveds/fields.py @@ -4,19 +4,33 @@ import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logs.receiveds import FieldLogsReceivedListFieldsResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.logs.receiveds import FieldLogsReceivedListFieldsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper __all__ = ["Fields", "AsyncFields"] diff --git a/src/cloudflare/resources/logs/receiveds/receiveds.py b/src/cloudflare/resources/logs/receiveds/receiveds.py index d1914ca4b8d..6a1a0a68425 100644 --- a/src/cloudflare/resources/logs/receiveds/receiveds.py +++ b/src/cloudflare/resources/logs/receiveds/receiveds.py @@ -2,33 +2,54 @@ from __future__ import annotations -from typing import Any, Union, cast -from typing_extensions import Literal - import httpx -from .fields import ( - Fields, - AsyncFields, - FieldsWithRawResponse, - AsyncFieldsWithRawResponse, - FieldsWithStreamingResponse, - AsyncFieldsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .fields import Fields, AsyncFields + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.logs import ReceivedReceivedGetLogsReceivedResponse + +from typing import Union + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....types.logs import ReceivedReceivedGetLogsReceivedResponse, received_received_get_logs_received_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.logs import received_received_get_logs_received_params +from .fields import ( + Fields, + AsyncFields, + FieldsWithRawResponse, + AsyncFieldsWithRawResponse, + FieldsWithStreamingResponse, + AsyncFieldsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Receiveds", "AsyncReceiveds"] diff --git a/src/cloudflare/resources/magics/__init__.py b/src/cloudflare/resources/magics/__init__.py index 8f07ab3d74b..267e978a71b 100644 --- a/src/cloudflare/resources/magics/__init__.py +++ b/src/cloudflare/resources/magics/__init__.py @@ -1,44 +1,39 @@ # File generated from our OpenAPI spec by Stainless. -from .magics import ( - Magics, - AsyncMagics, - MagicsWithRawResponse, - AsyncMagicsWithRawResponse, - MagicsWithStreamingResponse, - AsyncMagicsWithStreamingResponse, -) -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, +from .cf_interconnects import CfInterconnects, AsyncCfInterconnects +from .cf_interconnects import ( + CfInterconnectsWithRawResponse, + AsyncCfInterconnectsWithRawResponse, + CfInterconnectsWithStreamingResponse, + AsyncCfInterconnectsWithStreamingResponse, ) +from .gre_tunnels import GreTunnels, AsyncGreTunnels from .gre_tunnels import ( - GreTunnels, - AsyncGreTunnels, GreTunnelsWithRawResponse, AsyncGreTunnelsWithRawResponse, GreTunnelsWithStreamingResponse, AsyncGreTunnelsWithStreamingResponse, ) +from .ipsec_tunnels import IpsecTunnels, AsyncIpsecTunnels from .ipsec_tunnels import ( - IpsecTunnels, - AsyncIpsecTunnels, IpsecTunnelsWithRawResponse, AsyncIpsecTunnelsWithRawResponse, IpsecTunnelsWithStreamingResponse, AsyncIpsecTunnelsWithStreamingResponse, ) -from .cf_interconnects import ( - CfInterconnects, - AsyncCfInterconnects, - CfInterconnectsWithRawResponse, - AsyncCfInterconnectsWithRawResponse, - CfInterconnectsWithStreamingResponse, - AsyncCfInterconnectsWithStreamingResponse, +from .routes import Routes, AsyncRoutes +from .routes import ( + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, +) +from .magics import Magics, AsyncMagics +from .magics import ( + MagicsWithRawResponse, + AsyncMagicsWithRawResponse, + MagicsWithStreamingResponse, + AsyncMagicsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/magics/cf_interconnects.py b/src/cloudflare/resources/magics/cf_interconnects.py index 328f7938583..fe6f5a5f6cf 100644 --- a/src/cloudflare/resources/magics/cf_interconnects.py +++ b/src/cloudflare/resources/magics/cf_interconnects.py @@ -2,32 +2,53 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.magics import ( + CfInterconnectUpdateResponse, + CfInterconnectGetResponse, + CfInterconnectMagicInterconnectsListInterconnectsResponse, + CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, + cf_interconnect_update_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.magics import ( - CfInterconnectGetResponse, - CfInterconnectUpdateResponse, - CfInterconnectMagicInterconnectsListInterconnectsResponse, - CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, - cf_interconnect_update_params, - cf_interconnect_magic_interconnects_update_multiple_interconnects_params, -) +from ...types import shared_params +from ...types.magics import cf_interconnect_update_params +from ...types.magics import cf_interconnect_magic_interconnects_update_multiple_interconnects_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["CfInterconnects", "AsyncCfInterconnects"] diff --git a/src/cloudflare/resources/magics/gre_tunnels.py b/src/cloudflare/resources/magics/gre_tunnels.py index ee15393a7f5..23a574d82ec 100644 --- a/src/cloudflare/resources/magics/gre_tunnels.py +++ b/src/cloudflare/resources/magics/gre_tunnels.py @@ -2,35 +2,60 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.magics import ( + GreTunnelUpdateResponse, + GreTunnelDeleteResponse, + GreTunnelGetResponse, + GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, + GreTunnelMagicGreTunnelsListGreTunnelsResponse, + GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, + gre_tunnel_update_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.magics import ( - GreTunnelGetResponse, - GreTunnelDeleteResponse, - GreTunnelUpdateResponse, - GreTunnelMagicGreTunnelsListGreTunnelsResponse, - GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, - GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, - gre_tunnel_update_params, - gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params, - gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params, -) +from ...types import shared_params +from ...types.magics import gre_tunnel_update_params +from ...types.magics import gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params +from ...types.magics import gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["GreTunnels", "AsyncGreTunnels"] diff --git a/src/cloudflare/resources/magics/ipsec_tunnels/__init__.py b/src/cloudflare/resources/magics/ipsec_tunnels/__init__.py index 8e7a96af491..03b4b4d6e39 100644 --- a/src/cloudflare/resources/magics/ipsec_tunnels/__init__.py +++ b/src/cloudflare/resources/magics/ipsec_tunnels/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .ipsec_tunnels import ( - IpsecTunnels, - AsyncIpsecTunnels, - IpsecTunnelsWithRawResponse, - AsyncIpsecTunnelsWithRawResponse, - IpsecTunnelsWithStreamingResponse, - AsyncIpsecTunnelsWithStreamingResponse, -) +from .psk_generates import PskGenerates, AsyncPskGenerates from .psk_generates import ( - PskGenerates, - AsyncPskGenerates, PskGeneratesWithRawResponse, AsyncPskGeneratesWithRawResponse, PskGeneratesWithStreamingResponse, AsyncPskGeneratesWithStreamingResponse, ) +from .ipsec_tunnels import IpsecTunnels, AsyncIpsecTunnels +from .ipsec_tunnels import ( + IpsecTunnelsWithRawResponse, + AsyncIpsecTunnelsWithRawResponse, + IpsecTunnelsWithStreamingResponse, + AsyncIpsecTunnelsWithStreamingResponse, +) __all__ = [ "PskGenerates", diff --git a/src/cloudflare/resources/magics/ipsec_tunnels/ipsec_tunnels.py b/src/cloudflare/resources/magics/ipsec_tunnels/ipsec_tunnels.py index b0b228aa5f0..f5847bb54af 100644 --- a/src/cloudflare/resources/magics/ipsec_tunnels/ipsec_tunnels.py +++ b/src/cloudflare/resources/magics/ipsec_tunnels/ipsec_tunnels.py @@ -2,21 +2,48 @@ 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 +from .psk_generates import PskGenerates, AsyncPskGenerates + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.magics import ( + IpsecTunnelUpdateResponse, + IpsecTunnelDeleteResponse, + IpsecTunnelGetResponse, + IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, + IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, + IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.magics import ipsec_tunnel_update_params +from ....types.magics import ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params +from ....types.magics import ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params from .psk_generates import ( PskGenerates, AsyncPskGenerates, @@ -25,20 +52,19 @@ PskGeneratesWithStreamingResponse, AsyncPskGeneratesWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.magics import ( - IpsecTunnelGetResponse, - IpsecTunnelDeleteResponse, - IpsecTunnelUpdateResponse, - IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, - IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, - IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, - ipsec_tunnel_update_params, - ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params, - ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params, -) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["IpsecTunnels", "AsyncIpsecTunnels"] diff --git a/src/cloudflare/resources/magics/ipsec_tunnels/psk_generates.py b/src/cloudflare/resources/magics/ipsec_tunnels/psk_generates.py index d13d0077853..816ce44333f 100644 --- a/src/cloudflare/resources/magics/ipsec_tunnels/psk_generates.py +++ b/src/cloudflare/resources/magics/ipsec_tunnels/psk_generates.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.magics.ipsec_tunnels import PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.magics.ipsec_tunnels import PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["PskGenerates", "AsyncPskGenerates"] diff --git a/src/cloudflare/resources/magics/magics.py b/src/cloudflare/resources/magics/magics.py index 2804583e3f9..312416e542f 100644 --- a/src/cloudflare/resources/magics/magics.py +++ b/src/cloudflare/resources/magics/magics.py @@ -2,16 +2,39 @@ from __future__ import annotations -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, -) +from .cf_interconnects import CfInterconnects, AsyncCfInterconnects + from ..._compat import cached_property + +from .gre_tunnels import GreTunnels, AsyncGreTunnels + +from .ipsec_tunnels.ipsec_tunnels import IpsecTunnels, AsyncIpsecTunnels + +from .routes import Routes, AsyncRoutes + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from .cf_interconnects import ( + CfInterconnects, + AsyncCfInterconnects, + CfInterconnectsWithRawResponse, + AsyncCfInterconnectsWithRawResponse, + CfInterconnectsWithStreamingResponse, + AsyncCfInterconnectsWithStreamingResponse, +) from .gre_tunnels import ( GreTunnels, AsyncGreTunnels, @@ -28,15 +51,15 @@ IpsecTunnelsWithStreamingResponse, AsyncIpsecTunnelsWithStreamingResponse, ) -from .cf_interconnects import ( - CfInterconnects, - AsyncCfInterconnects, - CfInterconnectsWithRawResponse, - AsyncCfInterconnectsWithRawResponse, - CfInterconnectsWithStreamingResponse, - AsyncCfInterconnectsWithStreamingResponse, +from .routes import ( + Routes, + AsyncRoutes, + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, ) -from .ipsec_tunnels.ipsec_tunnels import IpsecTunnels, AsyncIpsecTunnels +from ..._wrappers import ResultWrapper __all__ = ["Magics", "AsyncMagics"] diff --git a/src/cloudflare/resources/magics/routes.py b/src/cloudflare/resources/magics/routes.py index f1637f02d00..f77a4c83704 100644 --- a/src/cloudflare/resources/magics/routes.py +++ b/src/cloudflare/resources/magics/routes.py @@ -2,35 +2,61 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.magics import ( + RouteUpdateResponse, + RouteDeleteResponse, + RouteGetResponse, + RouteMagicStaticRoutesCreateRoutesResponse, + RouteMagicStaticRoutesListRoutesResponse, + RouteMagicStaticRoutesUpdateManyRoutesResponse, + route_update_params, + route_magic_static_routes_update_many_routes_params, +) + +from typing import Type, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.magics import ( - RouteGetResponse, - RouteDeleteResponse, - RouteUpdateResponse, - RouteMagicStaticRoutesListRoutesResponse, - RouteMagicStaticRoutesCreateRoutesResponse, - RouteMagicStaticRoutesUpdateManyRoutesResponse, - route_update_params, - route_magic_static_routes_create_routes_params, - route_magic_static_routes_update_many_routes_params, -) +from ...types import shared_params +from ...types.magics import route_update_params +from ...types.magics import route_magic_static_routes_create_routes_params +from ...types.magics import route_magic_static_routes_update_many_routes_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Routes", "AsyncRoutes"] diff --git a/src/cloudflare/resources/managed_headers.py b/src/cloudflare/resources/managed_headers.py index e8c18946ef5..df9c6fe8e85 100644 --- a/src/cloudflare/resources/managed_headers.py +++ b/src/cloudflare/resources/managed_headers.py @@ -2,28 +2,42 @@ from __future__ import annotations -from typing import Iterable - import httpx +from .._compat import cached_property + from ..types import ( ManagedHeaderListResponse, ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, managed_header_managed_transforms_update_status_of_managed_transforms_params, ) -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 typing import Iterable + from .._response import ( to_raw_response_wrapper, - to_streamed_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 .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import managed_header_managed_transforms_update_status_of_managed_transforms_params +from .._wrappers import ResultWrapper __all__ = ["ManagedHeaders", "AsyncManagedHeaders"] diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py index 260d71a67b9..a0acb3e46ef 100644 --- a/src/cloudflare/resources/memberships.py +++ b/src/cloudflare/resources/memberships.py @@ -2,33 +2,59 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - MembershipGetResponse, + MembershipUpdateResponse, MembershipListResponse, MembershipDeleteResponse, - MembershipUpdateResponse, + MembershipGetResponse, membership_list_params, - membership_update_params, ) -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 typing_extensions import Literal + +from typing import Type, Optional + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import membership_update_params +from ..types import membership_list_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Memberships", "AsyncMemberships"] diff --git a/src/cloudflare/resources/mnms/__init__.py b/src/cloudflare/resources/mnms/__init__.py index 43d63719dd4..b09e8879c26 100644 --- a/src/cloudflare/resources/mnms/__init__.py +++ b/src/cloudflare/resources/mnms/__init__.py @@ -1,28 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from .mnms import ( - Mnms, - AsyncMnms, - MnmsWithRawResponse, - AsyncMnmsWithRawResponse, - MnmsWithStreamingResponse, - AsyncMnmsWithStreamingResponse, +from .configs import Configs, AsyncConfigs +from .configs import ( + ConfigsWithRawResponse, + AsyncConfigsWithRawResponse, + ConfigsWithStreamingResponse, + AsyncConfigsWithStreamingResponse, ) +from .rules import Rules, AsyncRules from .rules import ( - Rules, - AsyncRules, RulesWithRawResponse, AsyncRulesWithRawResponse, RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) -from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, +from .mnms import Mnms, AsyncMnms +from .mnms import ( + MnmsWithRawResponse, + AsyncMnmsWithRawResponse, + MnmsWithStreamingResponse, + AsyncMnmsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/mnms/configs/__init__.py b/src/cloudflare/resources/mnms/configs/__init__.py index a879bb5a368..1cf9cd52252 100644 --- a/src/cloudflare/resources/mnms/configs/__init__.py +++ b/src/cloudflare/resources/mnms/configs/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .fulls import Fulls, AsyncFulls from .fulls import ( - Fulls, - AsyncFulls, FullsWithRawResponse, AsyncFullsWithRawResponse, FullsWithStreamingResponse, AsyncFullsWithStreamingResponse, ) +from .configs import Configs, AsyncConfigs from .configs import ( - Configs, - AsyncConfigs, ConfigsWithRawResponse, AsyncConfigsWithRawResponse, ConfigsWithStreamingResponse, diff --git a/src/cloudflare/resources/mnms/configs/configs.py b/src/cloudflare/resources/mnms/configs/configs.py index 475f90dc21e..aa71d7d760e 100644 --- a/src/cloudflare/resources/mnms/configs/configs.py +++ b/src/cloudflare/resources/mnms/configs/configs.py @@ -2,38 +2,63 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .fulls import ( - Fulls, - AsyncFulls, - FullsWithRawResponse, - AsyncFullsWithRawResponse, - FullsWithStreamingResponse, - AsyncFullsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .fulls import Fulls, AsyncFulls + 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.mnms import ( ConfigDeleteResponse, - ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, + ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse, ) + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from .fulls import ( + Fulls, + AsyncFulls, + FullsWithRawResponse, + AsyncFullsWithRawResponse, + FullsWithStreamingResponse, + AsyncFullsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Configs", "AsyncConfigs"] diff --git a/src/cloudflare/resources/mnms/configs/fulls.py b/src/cloudflare/resources/mnms/configs/fulls.py index 351d9555693..ee969529292 100644 --- a/src/cloudflare/resources/mnms/configs/fulls.py +++ b/src/cloudflare/resources/mnms/configs/fulls.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.mnms.configs import FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.mnms.configs import FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Fulls", "AsyncFulls"] diff --git a/src/cloudflare/resources/mnms/mnms.py b/src/cloudflare/resources/mnms/mnms.py index 5b0daa4fab5..cd4c4dd017e 100644 --- a/src/cloudflare/resources/mnms/mnms.py +++ b/src/cloudflare/resources/mnms/mnms.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +from .configs.configs import Configs, AsyncConfigs + +from ..._compat import cached_property + +from .rules.rules import Rules, AsyncRules + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params from .configs import ( Configs, AsyncConfigs, @@ -18,10 +31,15 @@ ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .rules.rules import Rules, AsyncRules -from .configs.configs import Configs, AsyncConfigs +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Mnms", "AsyncMnms"] diff --git a/src/cloudflare/resources/mnms/rules/__init__.py b/src/cloudflare/resources/mnms/rules/__init__.py index d7410a73ae9..c96e1cd2e6c 100644 --- a/src/cloudflare/resources/mnms/rules/__init__.py +++ b/src/cloudflare/resources/mnms/rules/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .advertisements import Advertisements, AsyncAdvertisements from .advertisements import ( - Advertisements, - AsyncAdvertisements, AdvertisementsWithRawResponse, AsyncAdvertisementsWithRawResponse, AdvertisementsWithStreamingResponse, AsyncAdvertisementsWithStreamingResponse, ) +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) __all__ = [ "Advertisements", diff --git a/src/cloudflare/resources/mnms/rules/advertisements.py b/src/cloudflare/resources/mnms/rules/advertisements.py index a609c9ae926..a6cdb0dc124 100644 --- a/src/cloudflare/resources/mnms/rules/advertisements.py +++ b/src/cloudflare/resources/mnms/rules/advertisements.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.mnms.rules import AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.mnms.rules import AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Advertisements", "AsyncAdvertisements"] diff --git a/src/cloudflare/resources/mnms/rules/rules.py b/src/cloudflare/resources/mnms/rules/rules.py index 1793248e11e..ff522ca189f 100644 --- a/src/cloudflare/resources/mnms/rules/rules.py +++ b/src/cloudflare/resources/mnms/rules/rules.py @@ -2,28 +2,45 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .advertisements import Advertisements, AsyncAdvertisements + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.mnms import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleGetResponse, + RuleMagicNetworkMonitoringRulesCreateRulesResponse, + RuleMagicNetworkMonitoringRulesListRulesResponse, + RuleMagicNetworkMonitoringRulesUpdateRulesResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.mnms import ( - RuleGetResponse, - RuleDeleteResponse, - RuleUpdateResponse, - RuleMagicNetworkMonitoringRulesListRulesResponse, - RuleMagicNetworkMonitoringRulesCreateRulesResponse, - RuleMagicNetworkMonitoringRulesUpdateRulesResponse, + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .advertisements import ( Advertisements, AsyncAdvertisements, @@ -32,9 +49,19 @@ AdvertisementsWithStreamingResponse, AsyncAdvertisementsWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/mtls_certificates/__init__.py b/src/cloudflare/resources/mtls_certificates/__init__.py index dec27eaad9b..e89dc8b32c9 100644 --- a/src/cloudflare/resources/mtls_certificates/__init__.py +++ b/src/cloudflare/resources/mtls_certificates/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .associations import Associations, AsyncAssociations from .associations import ( - Associations, - AsyncAssociations, AssociationsWithRawResponse, AsyncAssociationsWithRawResponse, AssociationsWithStreamingResponse, AsyncAssociationsWithStreamingResponse, ) +from .mtls_certificates import MtlsCertificates, AsyncMtlsCertificates from .mtls_certificates import ( - MtlsCertificates, - AsyncMtlsCertificates, MtlsCertificatesWithRawResponse, AsyncMtlsCertificatesWithRawResponse, MtlsCertificatesWithStreamingResponse, diff --git a/src/cloudflare/resources/mtls_certificates/associations.py b/src/cloudflare/resources/mtls_certificates/associations.py index f2897f1faa6..a1147860605 100644 --- a/src/cloudflare/resources/mtls_certificates/associations.py +++ b/src/cloudflare/resources/mtls_certificates/associations.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.mtls_certificates import AssociationListResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.mtls_certificates import AssociationListResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Associations", "AsyncAssociations"] diff --git a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py index 21f61412431..dba3c363f0d 100644 --- a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py +++ b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py @@ -2,28 +2,44 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx +from .associations import Associations, AsyncAssociations + +from ..._compat import cached_property + from ...types import ( - MtlsCertificateGetResponse, + MtlsCertificateUpdateResponse, MtlsCertificateListResponse, MtlsCertificateDeleteResponse, - MtlsCertificateUpdateResponse, - mtls_certificate_update_params, + MtlsCertificateGetResponse, ) -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 typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import mtls_certificate_update_params from .associations import ( Associations, AsyncAssociations, @@ -32,9 +48,15 @@ AssociationsWithStreamingResponse, AsyncAssociationsWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, -) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["MtlsCertificates", "AsyncMtlsCertificates"] diff --git a/src/cloudflare/resources/origin_post_quantum_encryptions.py b/src/cloudflare/resources/origin_post_quantum_encryptions.py index 5b1fbf829fd..d70a564c5a0 100644 --- a/src/cloudflare/resources/origin_post_quantum_encryptions.py +++ b/src/cloudflare/resources/origin_post_quantum_encryptions.py @@ -2,30 +2,46 @@ from __future__ import annotations -from typing import Any, cast -from typing_extensions import Literal - import httpx -from ..types import ( - OriginPostQuantumEncryptionGetResponse, - OriginPostQuantumEncryptionUpdateResponse, - origin_post_quantum_encryption_update_params, -) -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from .._utils import maybe_transform from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import OriginPostQuantumEncryptionUpdateResponse, OriginPostQuantumEncryptionGetResponse + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import origin_post_quantum_encryption_update_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["OriginPostQuantumEncryptions", "AsyncOriginPostQuantumEncryptions"] diff --git a/src/cloudflare/resources/origin_tls_client_auth/__init__.py b/src/cloudflare/resources/origin_tls_client_auth/__init__.py index 241eea5174b..ffacfdf0014 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, -) +from .hostnames import Hostnames, AsyncHostnames from .hostnames import ( - Hostnames, - AsyncHostnames, HostnamesWithRawResponse, AsyncHostnamesWithRawResponse, HostnamesWithStreamingResponse, AsyncHostnamesWithStreamingResponse, ) +from .settings import Settings, AsyncSettings +from .settings import ( + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, +) +from .origin_tls_client_auth import OriginTLSClientAuth, AsyncOriginTLSClientAuth from .origin_tls_client_auth import ( - OriginTLSClientAuth, - AsyncOriginTLSClientAuth, OriginTLSClientAuthWithRawResponse, AsyncOriginTLSClientAuthWithRawResponse, OriginTLSClientAuthWithStreamingResponse, 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 e19e69fe358..1661bd6f988 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, -) +from .certificates import Certificates, AsyncCertificates from .certificates import ( - Certificates, - AsyncCertificates, CertificatesWithRawResponse, AsyncCertificatesWithRawResponse, CertificatesWithStreamingResponse, AsyncCertificatesWithStreamingResponse, ) +from .hostnames import Hostnames, AsyncHostnames +from .hostnames import ( + HostnamesWithRawResponse, + AsyncHostnamesWithRawResponse, + HostnamesWithStreamingResponse, + AsyncHostnamesWithStreamingResponse, +) __all__ = [ "Certificates", 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 46470e311aa..90975ea1130 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py @@ -2,31 +2,51 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.origin_tls_client_auth.hostnames import ( + CertificateCreateResponse, + CertificateListResponse, + CertificateDeleteResponse, + CertificateGetResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.origin_tls_client_auth.hostnames import ( - CertificateGetResponse, - CertificateListResponse, - CertificateCreateResponse, - CertificateDeleteResponse, - certificate_create_params, -) +from ....types import shared_params +from ....types.origin_tls_client_auth.hostnames import certificate_create_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Certificates", "AsyncCertificates"] 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 c6b91f6d3eb..a0747340f8c 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py @@ -2,21 +2,39 @@ 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 +from .certificates import Certificates, AsyncCertificates + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.origin_tls_client_auth import HostnameUpdateResponse, HostnameGetResponse, hostname_update_params + +from typing import Type, Optional, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.origin_tls_client_auth import hostname_update_params from .certificates import ( Certificates, AsyncCertificates, @@ -25,10 +43,11 @@ CertificatesWithStreamingResponse, AsyncCertificatesWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.origin_tls_client_auth import HostnameGetResponse, HostnameUpdateResponse, hostname_update_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Hostnames", "AsyncHostnames"] 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 33a4eb6ec3a..2538c9917ef 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,28 +2,46 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx +from .hostnames.hostnames import Hostnames, AsyncHostnames + +from ..._compat import cached_property + +from .settings import Settings, AsyncSettings + from ...types import ( - OriginTLSClientAuthGetResponse, - OriginTLSClientAuthListResponse, OriginTLSClientAuthCreateResponse, + OriginTLSClientAuthListResponse, OriginTLSClientAuthDeleteResponse, - origin_tls_client_auth_create_params, + OriginTLSClientAuthGetResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + +from typing import Type, Optional + +from ..._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, ) -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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import origin_tls_client_auth_create_params from .hostnames import ( Hostnames, AsyncHostnames, @@ -32,18 +50,29 @@ HostnamesWithStreamingResponse, AsyncHostnamesWithStreamingResponse, ) -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 .settings import ( + Settings, + AsyncSettings, + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, ) from ..._wrappers import ResultWrapper -from ..._base_client import ( - make_request_options, -) -from .hostnames.hostnames import Hostnames, AsyncHostnames +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["OriginTLSClientAuth", "AsyncOriginTLSClientAuth"] diff --git a/src/cloudflare/resources/origin_tls_client_auth/settings.py b/src/cloudflare/resources/origin_tls_client_auth/settings.py index 2efc3d7d7cc..18c57114ce4 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/settings.py +++ b/src/cloudflare/resources/origin_tls_client_auth/settings.py @@ -2,29 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.origin_tls_client_auth import ( + SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, + SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.origin_tls_client_auth import ( - SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, - SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, - setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params, -) +from ...types import shared_params +from ...types.origin_tls_client_auth import setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/page_shield/__init__.py b/src/cloudflare/resources/page_shield/__init__.py index b43afa5ac04..8ac727af808 100644 --- a/src/cloudflare/resources/page_shield/__init__.py +++ b/src/cloudflare/resources/page_shield/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, -) +from .connections import Connections, AsyncConnections from .connections import ( - Connections, - AsyncConnections, ConnectionsWithRawResponse, AsyncConnectionsWithRawResponse, ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) +from .policies import Policies, AsyncPolicies +from .policies import ( + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, +) +from .page_shield import PageShield, AsyncPageShield from .page_shield import ( - PageShield, - AsyncPageShield, PageShieldWithRawResponse, AsyncPageShieldWithRawResponse, PageShieldWithStreamingResponse, diff --git a/src/cloudflare/resources/page_shield/connections.py b/src/cloudflare/resources/page_shield/connections.py index 16f237498d3..366f8adc966 100644 --- a/src/cloudflare/resources/page_shield/connections.py +++ b/src/cloudflare/resources/page_shield/connections.py @@ -4,19 +4,33 @@ import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.page_shield import ConnectionGetResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.page_shield import ConnectionGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Connections", "AsyncConnections"] diff --git a/src/cloudflare/resources/page_shield/page_shield.py b/src/cloudflare/resources/page_shield/page_shield.py index f33d514269f..7d14e647a73 100644 --- a/src/cloudflare/resources/page_shield/page_shield.py +++ b/src/cloudflare/resources/page_shield/page_shield.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, -) +from .connections import Connections, AsyncConnections + from ..._compat import cached_property + +from .policies import Policies, AsyncPolicies + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .connections import ( Connections, AsyncConnections, @@ -20,6 +31,15 @@ ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) +from .policies import ( + Policies, + AsyncPolicies, + PoliciesWithRawResponse, + AsyncPoliciesWithRawResponse, + PoliciesWithStreamingResponse, + AsyncPoliciesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["PageShield", "AsyncPageShield"] diff --git a/src/cloudflare/resources/page_shield/policies.py b/src/cloudflare/resources/page_shield/policies.py index c57398b8194..a1229f9492c 100644 --- a/src/cloudflare/resources/page_shield/policies.py +++ b/src/cloudflare/resources/page_shield/policies.py @@ -2,33 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.page_shield import PolicyCreateResponse, PolicyUpdateResponse, PolicyListResponse, PolicyGetResponse + +from typing_extensions import Literal + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.page_shield import ( - PolicyGetResponse, - PolicyListResponse, - PolicyCreateResponse, - PolicyUpdateResponse, - policy_create_params, - policy_update_params, -) +from ...types import shared_params +from ...types.page_shield import policy_create_params +from ...types.page_shield import policy_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Policies", "AsyncPolicies"] diff --git a/src/cloudflare/resources/page_shields/__init__.py b/src/cloudflare/resources/page_shields/__init__.py index 80397f51c25..b1e3e2943e6 100644 --- a/src/cloudflare/resources/page_shields/__init__.py +++ b/src/cloudflare/resources/page_shields/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, -) +from .connections import Connections, AsyncConnections from .connections import ( - Connections, - AsyncConnections, ConnectionsWithRawResponse, AsyncConnectionsWithRawResponse, ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) +from .scripts import Scripts, AsyncScripts +from .scripts import ( + ScriptsWithRawResponse, + AsyncScriptsWithRawResponse, + ScriptsWithStreamingResponse, + AsyncScriptsWithStreamingResponse, +) +from .page_shields import PageShields, AsyncPageShields from .page_shields import ( - PageShields, - AsyncPageShields, PageShieldsWithRawResponse, AsyncPageShieldsWithRawResponse, PageShieldsWithStreamingResponse, diff --git a/src/cloudflare/resources/page_shields/connections.py b/src/cloudflare/resources/page_shields/connections.py index dc013767d3b..7b6dc686114 100644 --- a/src/cloudflare/resources/page_shields/connections.py +++ b/src/cloudflare/resources/page_shields/connections.py @@ -2,30 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.page_shields import ConnectionGetResponse, ConnectionPageShieldListPageShieldConnectionsResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.page_shields import ( - ConnectionGetResponse, - ConnectionPageShieldListPageShieldConnectionsResponse, - connection_page_shield_list_page_shield_connections_params, -) +from ...types import shared_params +from ...types.page_shields import connection_page_shield_list_page_shield_connections_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Connections", "AsyncConnections"] diff --git a/src/cloudflare/resources/page_shields/page_shields.py b/src/cloudflare/resources/page_shields/page_shields.py index 4d8d3732d03..62d173342ec 100644 --- a/src/cloudflare/resources/page_shields/page_shields.py +++ b/src/cloudflare/resources/page_shields/page_shields.py @@ -2,34 +2,41 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ...types import ( - PageShieldListResponse, - PageShieldPageShieldUpdatePageShieldSettingsResponse, - page_shield_page_shield_update_page_shield_settings_params, -) -from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, -) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform +from .connections import Connections, AsyncConnections + from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from .scripts import Scripts, AsyncScripts + +from ...types import PageShieldListResponse, PageShieldPageShieldUpdatePageShieldSettingsResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import page_shield_page_shield_update_page_shield_settings_params from .connections import ( Connections, AsyncConnections, @@ -38,9 +45,19 @@ ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, +from .scripts import ( + Scripts, + AsyncScripts, + ScriptsWithRawResponse, + AsyncScriptsWithRawResponse, + ScriptsWithStreamingResponse, + AsyncScriptsWithStreamingResponse, ) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["PageShields", "AsyncPageShields"] diff --git a/src/cloudflare/resources/page_shields/scripts.py b/src/cloudflare/resources/page_shields/scripts.py index b83f13fef62..0885418a1a9 100644 --- a/src/cloudflare/resources/page_shields/scripts.py +++ b/src/cloudflare/resources/page_shields/scripts.py @@ -2,30 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.page_shields import ScriptGetResponse, ScriptPageShieldListPageShieldScriptsResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.page_shields import ( - ScriptGetResponse, - ScriptPageShieldListPageShieldScriptsResponse, - script_page_shield_list_page_shield_scripts_params, -) +from ...types import shared_params +from ...types.page_shields import script_page_shield_list_page_shield_scripts_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Scripts", "AsyncScripts"] diff --git a/src/cloudflare/resources/pagerules/__init__.py b/src/cloudflare/resources/pagerules/__init__.py index ddf3d54a610..ddc7222ff34 100644 --- a/src/cloudflare/resources/pagerules/__init__.py +++ b/src/cloudflare/resources/pagerules/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .pagerules import Pagerules, AsyncPagerules from .pagerules import ( - Pagerules, - AsyncPagerules, PagerulesWithRawResponse, AsyncPagerulesWithRawResponse, PagerulesWithStreamingResponse, diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py index 43c0078af5b..54ec7822648 100644 --- a/src/cloudflare/resources/pagerules/pagerules.py +++ b/src/cloudflare/resources/pagerules/pagerules.py @@ -2,23 +2,51 @@ from __future__ import annotations -from typing import Any, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx +from .settings import Settings, AsyncSettings + +from ..._compat import cached_property + from ...types import ( - PageruleGetResponse, - PageruleListResponse, PageruleCreateResponse, - PageruleDeleteResponse, PageruleUpdateResponse, - pagerule_list_params, + PageruleListResponse, + PageruleDeleteResponse, + PageruleGetResponse, pagerule_create_params, pagerule_update_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform + +from typing import Iterable, Type, Optional + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import pagerule_create_params +from ...types import pagerule_update_params +from ...types import pagerule_list_params from .settings import ( Settings, AsyncSettings, @@ -27,18 +55,23 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -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 typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Pagerules", "AsyncPagerules"] diff --git a/src/cloudflare/resources/pagerules/settings.py b/src/cloudflare/resources/pagerules/settings.py index 4a828774910..551806bacdf 100644 --- a/src/cloudflare/resources/pagerules/settings.py +++ b/src/cloudflare/resources/pagerules/settings.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.pagerules import SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.pagerules import SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/pages/__init__.py b/src/cloudflare/resources/pages/__init__.py index 363dd36f707..3a4f2c6bee4 100644 --- a/src/cloudflare/resources/pages/__init__.py +++ b/src/cloudflare/resources/pages/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, -) +from .projects import Projects, AsyncProjects from .projects import ( - Projects, - AsyncProjects, ProjectsWithRawResponse, AsyncProjectsWithRawResponse, ProjectsWithStreamingResponse, AsyncProjectsWithStreamingResponse, ) +from .pages import Pages, AsyncPages +from .pages import ( + PagesWithRawResponse, + AsyncPagesWithRawResponse, + PagesWithStreamingResponse, + AsyncPagesWithStreamingResponse, +) __all__ = [ "Projects", diff --git a/src/cloudflare/resources/pages/pages.py b/src/cloudflare/resources/pages/pages.py index 034e938d624..da8d0749f2a 100644 --- a/src/cloudflare/resources/pages/pages.py +++ b/src/cloudflare/resources/pages/pages.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .projects.projects import Projects, AsyncProjects + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .projects import ( Projects, AsyncProjects, @@ -10,9 +29,7 @@ ProjectsWithStreamingResponse, AsyncProjectsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .projects.projects import Projects, AsyncProjects +from ..._wrappers import ResultWrapper __all__ = ["Pages", "AsyncPages"] diff --git a/src/cloudflare/resources/pages/projects/__init__.py b/src/cloudflare/resources/pages/projects/__init__.py index dadb1506c9a..1601495d9d6 100644 --- a/src/cloudflare/resources/pages/projects/__init__.py +++ b/src/cloudflare/resources/pages/projects/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .deployments import Deployments, AsyncDeployments +from .deployments import ( + DeploymentsWithRawResponse, + AsyncDeploymentsWithRawResponse, + DeploymentsWithStreamingResponse, + AsyncDeploymentsWithStreamingResponse, +) +from .domains import Domains, AsyncDomains from .domains import ( - Domains, - AsyncDomains, DomainsWithRawResponse, AsyncDomainsWithRawResponse, DomainsWithStreamingResponse, AsyncDomainsWithStreamingResponse, ) +from .projects import Projects, AsyncProjects from .projects import ( - Projects, - AsyncProjects, ProjectsWithRawResponse, AsyncProjectsWithRawResponse, ProjectsWithStreamingResponse, AsyncProjectsWithStreamingResponse, ) -from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, -) __all__ = [ "Deployments", diff --git a/src/cloudflare/resources/pages/projects/deployments/__init__.py b/src/cloudflare/resources/pages/projects/deployments/__init__.py index 26b5c0a860f..d34e88cd40c 100644 --- a/src/cloudflare/resources/pages/projects/deployments/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .retries import ( - Retries, - AsyncRetries, - RetriesWithRawResponse, - AsyncRetriesWithRawResponse, - RetriesWithStreamingResponse, - AsyncRetriesWithStreamingResponse, -) +from .histories import Histories, AsyncHistories from .histories import ( - Histories, - AsyncHistories, HistoriesWithRawResponse, AsyncHistoriesWithRawResponse, HistoriesWithStreamingResponse, AsyncHistoriesWithStreamingResponse, ) +from .retries import Retries, AsyncRetries +from .retries import ( + RetriesWithRawResponse, + AsyncRetriesWithRawResponse, + RetriesWithStreamingResponse, + AsyncRetriesWithStreamingResponse, +) +from .rollbacks import Rollbacks, AsyncRollbacks from .rollbacks import ( - Rollbacks, - AsyncRollbacks, RollbacksWithRawResponse, AsyncRollbacksWithRawResponse, RollbacksWithStreamingResponse, AsyncRollbacksWithStreamingResponse, ) +from .deployments import Deployments, AsyncDeployments from .deployments import ( - Deployments, - AsyncDeployments, DeploymentsWithRawResponse, AsyncDeploymentsWithRawResponse, DeploymentsWithStreamingResponse, diff --git a/src/cloudflare/resources/pages/projects/deployments/deployments.py b/src/cloudflare/resources/pages/projects/deployments/deployments.py index 87fbc553db0..a05803fb7da 100644 --- a/src/cloudflare/resources/pages/projects/deployments/deployments.py +++ b/src/cloudflare/resources/pages/projects/deployments/deployments.py @@ -2,18 +2,43 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .retries import ( - Retries, - AsyncRetries, - RetriesWithRawResponse, - AsyncRetriesWithRawResponse, - RetriesWithStreamingResponse, - AsyncRetriesWithStreamingResponse, +from .histories.histories import Histories, AsyncHistories + +from ....._compat import cached_property + +from .retries import Retries, AsyncRetries + +from .rollbacks import Rollbacks, AsyncRollbacks + +from .....types.pages.projects import DeploymentCreateResponse, DeploymentListResponse, DeploymentGetResponse + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .....types.pages.projects import deployment_create_params from .histories import ( Histories, AsyncHistories, @@ -22,6 +47,14 @@ HistoriesWithStreamingResponse, AsyncHistoriesWithStreamingResponse, ) +from .retries import ( + Retries, + AsyncRetries, + RetriesWithRawResponse, + AsyncRetriesWithRawResponse, + RetriesWithStreamingResponse, + AsyncRetriesWithStreamingResponse, +) from .rollbacks import ( Rollbacks, AsyncRollbacks, @@ -30,27 +63,13 @@ RollbacksWithStreamingResponse, AsyncRollbacksWithStreamingResponse, ) -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 ....._wrappers import ResultWrapper -from ....._base_client import ( - make_request_options, -) -from .histories.histories import Histories, AsyncHistories -from .....types.pages.projects import ( - DeploymentGetResponse, - DeploymentListResponse, - DeploymentCreateResponse, - deployment_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 __all__ = ["Deployments", "AsyncDeployments"] diff --git a/src/cloudflare/resources/pages/projects/deployments/histories/__init__.py b/src/cloudflare/resources/pages/projects/deployments/histories/__init__.py index 60c08fde6c5..114c7d93a8f 100644 --- a/src/cloudflare/resources/pages/projects/deployments/histories/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/histories/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .logs import Logs, AsyncLogs from .logs import ( - Logs, - AsyncLogs, LogsWithRawResponse, AsyncLogsWithRawResponse, LogsWithStreamingResponse, AsyncLogsWithStreamingResponse, ) +from .histories import Histories, AsyncHistories from .histories import ( - Histories, - AsyncHistories, HistoriesWithRawResponse, AsyncHistoriesWithRawResponse, HistoriesWithStreamingResponse, diff --git a/src/cloudflare/resources/pages/projects/deployments/histories/histories.py b/src/cloudflare/resources/pages/projects/deployments/histories/histories.py index 7325c01d9ca..ea62035c479 100644 --- a/src/cloudflare/resources/pages/projects/deployments/histories/histories.py +++ b/src/cloudflare/resources/pages/projects/deployments/histories/histories.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .logs import Logs, AsyncLogs + +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 ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .logs import ( Logs, AsyncLogs, @@ -10,8 +29,7 @@ LogsWithStreamingResponse, AsyncLogsWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["Histories", "AsyncHistories"] diff --git a/src/cloudflare/resources/pages/projects/deployments/histories/logs.py b/src/cloudflare/resources/pages/projects/deployments/histories/logs.py index 334a178de7a..84bef5c4081 100644 --- a/src/cloudflare/resources/pages/projects/deployments/histories/logs.py +++ b/src/cloudflare/resources/pages/projects/deployments/histories/logs.py @@ -2,24 +2,39 @@ 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 ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.pages.projects.deployments.histories import LogPagesDeploymentGetDeploymentLogsResponse + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.pages.projects.deployments.histories import LogPagesDeploymentGetDeploymentLogsResponse +from ......types import shared_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Logs", "AsyncLogs"] diff --git a/src/cloudflare/resources/pages/projects/deployments/retries.py b/src/cloudflare/resources/pages/projects/deployments/retries.py index 395c5f4594e..dac7b1ff640 100644 --- a/src/cloudflare/resources/pages/projects/deployments/retries.py +++ b/src/cloudflare/resources/pages/projects/deployments/retries.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.pages.projects.deployments import RetryPagesDeploymentRetryDeploymentResponse + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.pages.projects.deployments import RetryPagesDeploymentRetryDeploymentResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Retries", "AsyncRetries"] diff --git a/src/cloudflare/resources/pages/projects/deployments/rollbacks.py b/src/cloudflare/resources/pages/projects/deployments/rollbacks.py index dabb00badf7..9dbb3e35b15 100644 --- a/src/cloudflare/resources/pages/projects/deployments/rollbacks.py +++ b/src/cloudflare/resources/pages/projects/deployments/rollbacks.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.pages.projects.deployments import RollbackPagesDeploymentRollbackDeploymentResponse + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.pages.projects.deployments import RollbackPagesDeploymentRollbackDeploymentResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Rollbacks", "AsyncRollbacks"] diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py index f2ae36def2c..06e96652745 100644 --- a/src/cloudflare/resources/pages/projects/domains.py +++ b/src/cloudflare/resources/pages/projects/domains.py @@ -2,31 +2,57 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.pages.projects import ( + DomainUpdateResponse, + DomainGetResponse, + DomainPagesDomainsAddDomainResponse, + DomainPagesDomainsGetDomainsResponse, +) + +from typing import Optional, Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.pages.projects import ( - DomainGetResponse, - DomainUpdateResponse, - DomainPagesDomainsAddDomainResponse, - DomainPagesDomainsGetDomainsResponse, - domain_pages_domains_add_domain_params, -) +from ....types import shared_params +from ....types.pages.projects import domain_pages_domains_add_domain_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Domains", "AsyncDomains"] diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py index ade34884953..fcca2e4171f 100644 --- a/src/cloudflare/resources/pages/projects/projects.py +++ b/src/cloudflare/resources/pages/projects/projects.py @@ -2,21 +2,48 @@ from __future__ import annotations -from typing import Any, Type, cast - import httpx -from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .deployments.deployments import Deployments, AsyncDeployments + from ...._compat import cached_property + +from .domains import Domains, AsyncDomains + +from ....types.pages import ( + ProjectCreateResponse, + ProjectUpdateResponse, + ProjectListResponse, + ProjectGetResponse, + project_create_params, +) + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.pages import project_create_params +from ....types.pages import project_update_params from .deployments import ( Deployments, AsyncDeployments, @@ -25,26 +52,27 @@ DeploymentsWithStreamingResponse, AsyncDeploymentsWithStreamingResponse, ) -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 .domains import ( + Domains, + AsyncDomains, + DomainsWithRawResponse, + AsyncDomainsWithRawResponse, + DomainsWithStreamingResponse, + AsyncDomainsWithStreamingResponse, ) from ...._wrappers import ResultWrapper -from ....types.pages import ( - ProjectGetResponse, - ProjectListResponse, - ProjectCreateResponse, - ProjectUpdateResponse, - project_create_params, - project_update_params, -) -from ...._base_client import ( - make_request_options, -) -from .deployments.deployments import Deployments, AsyncDeployments +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Projects", "AsyncProjects"] diff --git a/src/cloudflare/resources/pcaps/__init__.py b/src/cloudflare/resources/pcaps/__init__.py index 27a16313f45..e4cd9537d6f 100644 --- a/src/cloudflare/resources/pcaps/__init__.py +++ b/src/cloudflare/resources/pcaps/__init__.py @@ -1,28 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from .pcaps import ( - Pcaps, - AsyncPcaps, - PcapsWithRawResponse, - AsyncPcapsWithRawResponse, - PcapsWithStreamingResponse, - AsyncPcapsWithStreamingResponse, +from .ownerships import Ownerships, AsyncOwnerships +from .ownerships import ( + OwnershipsWithRawResponse, + AsyncOwnershipsWithRawResponse, + OwnershipsWithStreamingResponse, + AsyncOwnershipsWithStreamingResponse, ) +from .downloads import Downloads, AsyncDownloads from .downloads import ( - Downloads, - AsyncDownloads, DownloadsWithRawResponse, AsyncDownloadsWithRawResponse, DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) -from .ownerships import ( - Ownerships, - AsyncOwnerships, - OwnershipsWithRawResponse, - AsyncOwnershipsWithRawResponse, - OwnershipsWithStreamingResponse, - AsyncOwnershipsWithStreamingResponse, +from .pcaps import Pcaps, AsyncPcaps +from .pcaps import ( + PcapsWithRawResponse, + AsyncPcapsWithRawResponse, + PcapsWithStreamingResponse, + AsyncPcapsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/pcaps/downloads.py b/src/cloudflare/resources/pcaps/downloads.py index 4c429f40693..5d993769a55 100644 --- a/src/cloudflare/resources/pcaps/downloads.py +++ b/src/cloudflare/resources/pcaps/downloads.py @@ -4,22 +4,35 @@ 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, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, async_to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + StreamedBinaryAPIResponse, async_to_custom_streamed_response_wrapper, + AsyncStreamedBinaryAPIResponse, ) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Downloads", "AsyncDownloads"] diff --git a/src/cloudflare/resources/pcaps/ownerships/__init__.py b/src/cloudflare/resources/pcaps/ownerships/__init__.py index 59ad3da5406..478d45aad00 100644 --- a/src/cloudflare/resources/pcaps/ownerships/__init__.py +++ b/src/cloudflare/resources/pcaps/ownerships/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .validates import Validates, AsyncValidates from .validates import ( - Validates, - AsyncValidates, ValidatesWithRawResponse, AsyncValidatesWithRawResponse, ValidatesWithStreamingResponse, AsyncValidatesWithStreamingResponse, ) +from .ownerships import Ownerships, AsyncOwnerships from .ownerships import ( - Ownerships, - AsyncOwnerships, OwnershipsWithRawResponse, AsyncOwnershipsWithRawResponse, OwnershipsWithStreamingResponse, diff --git a/src/cloudflare/resources/pcaps/ownerships/ownerships.py b/src/cloudflare/resources/pcaps/ownerships/ownerships.py index 997a729563a..752b99f5f18 100644 --- a/src/cloudflare/resources/pcaps/ownerships/ownerships.py +++ b/src/cloudflare/resources/pcaps/ownerships/ownerships.py @@ -2,37 +2,55 @@ 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 -from .validates import ( - Validates, - AsyncValidates, - ValidatesWithRawResponse, - AsyncValidatesWithRawResponse, - ValidatesWithStreamingResponse, - AsyncValidatesWithStreamingResponse, -) +from .validates import Validates, AsyncValidates + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.pcaps import ( + OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, + OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.pcaps import ( - OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, - OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, - ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.pcaps import ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params +from .validates import ( + Validates, + AsyncValidates, + ValidatesWithRawResponse, + AsyncValidatesWithRawResponse, + ValidatesWithStreamingResponse, + AsyncValidatesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Ownerships", "AsyncOwnerships"] diff --git a/src/cloudflare/resources/pcaps/ownerships/validates.py b/src/cloudflare/resources/pcaps/ownerships/validates.py index 081044707ad..a1272ec6e58 100644 --- a/src/cloudflare/resources/pcaps/ownerships/validates.py +++ b/src/cloudflare/resources/pcaps/ownerships/validates.py @@ -2,28 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.pcaps.ownerships import ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.pcaps.ownerships import ( - ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse, - validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params, -) +from ....types import shared_params +from ....types.pcaps.ownerships import validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Validates", "AsyncValidates"] diff --git a/src/cloudflare/resources/pcaps/pcaps.py b/src/cloudflare/resources/pcaps/pcaps.py index 06e24835c06..c6b9ab41fc9 100644 --- a/src/cloudflare/resources/pcaps/pcaps.py +++ b/src/cloudflare/resources/pcaps/pcaps.py @@ -2,28 +2,48 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast, overload -from typing_extensions import Literal - import httpx +from .ownerships.ownerships import Ownerships, AsyncOwnerships + +from ..._compat import cached_property + +from .downloads import Downloads, AsyncDownloads + from ...types import ( PcapGetResponse, PcapMagicPcapCollectionCreatePcapRequestResponse, PcapMagicPcapCollectionListPacketCaptureRequestsResponse, pcap_magic_pcap_collection_create_pcap_request_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import required_args, maybe_transform -from ..._compat import cached_property -from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, + +from typing_extensions import Literal + +from typing import Type, 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import pcap_magic_pcap_collection_create_pcap_request_params from .ownerships import ( Ownerships, AsyncOwnerships, @@ -32,18 +52,25 @@ OwnershipsWithStreamingResponse, AsyncOwnershipsWithStreamingResponse, ) -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 .downloads import ( + Downloads, + AsyncDownloads, + DownloadsWithRawResponse, + AsyncDownloadsWithRawResponse, + DownloadsWithStreamingResponse, + AsyncDownloadsWithStreamingResponse, ) from ..._wrappers import ResultWrapper -from ..._base_client import ( - make_request_options, -) -from .ownerships.ownerships import Ownerships, AsyncOwnerships +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Pcaps", "AsyncPcaps"] @@ -123,7 +150,7 @@ def magic_pcap_collection_create_pcap_request( system: Literal["magic-transit"], time_limit: float, type: Literal["simple", "full"], - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestSimpleFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestSimpleFilterV1 | 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. @@ -170,7 +197,7 @@ def magic_pcap_collection_create_pcap_request( time_limit: float, type: Literal["simple", "full"], byte_limit: float | NotGiven = NOT_GIVEN, - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestFullFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestFullFilterV1 | NotGiven = NOT_GIVEN, packet_limit: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -228,7 +255,7 @@ def magic_pcap_collection_create_pcap_request( system: Literal["magic-transit"], time_limit: float, type: Literal["simple", "full"], - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestSimpleFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestSimpleFilterV1 | NotGiven = NOT_GIVEN, colo_name: str | NotGiven = NOT_GIVEN, destination_conf: str | NotGiven = NOT_GIVEN, @@ -390,7 +417,7 @@ async def magic_pcap_collection_create_pcap_request( system: Literal["magic-transit"], time_limit: float, type: Literal["simple", "full"], - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestSimpleFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestSimpleFilterV1 | 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. @@ -437,7 +464,7 @@ async def magic_pcap_collection_create_pcap_request( time_limit: float, type: Literal["simple", "full"], byte_limit: float | NotGiven = NOT_GIVEN, - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestFullFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestFullFilterV1 | NotGiven = NOT_GIVEN, packet_limit: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -495,7 +522,7 @@ async def magic_pcap_collection_create_pcap_request( system: Literal["magic-transit"], time_limit: float, type: Literal["simple", "full"], - filter_v1: pcap_magic_pcap_collection_create_pcap_request_params._803RfBvJPcapsRequestSimpleFilterV1 + filter_v1: pcap_magic_pcap_collection_create_pcap_request_params.FZsXwDu1PcapsRequestSimpleFilterV1 | NotGiven = NOT_GIVEN, colo_name: str | NotGiven = NOT_GIVEN, destination_conf: str | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/purge_caches.py b/src/cloudflare/resources/purge_caches.py index 52ecc491139..a4942dceb9e 100644 --- a/src/cloudflare/resources/purge_caches.py +++ b/src/cloudflare/resources/purge_caches.py @@ -2,29 +2,31 @@ from __future__ import annotations -from typing import List, Type, Optional, cast, overload - import httpx -from ..types import PurgeCachZonePurgeResponse, purge_cach_zone_purge_params -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from .._utils import maybe_transform from .._compat import cached_property + +from typing import List, Optional, Type + +from ..types import PurgeCachZonePurgeResponse, purge_cach_zone_purge_params + +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 .._response import ( - to_raw_response_wrapper, - to_streamed_response_wrapper, - async_to_raw_response_wrapper, - async_to_streamed_response_wrapper, -) +from .._base_client import SyncAPIClient, AsyncAPIClient, _merge_mappings, AsyncPaginator, make_request_options, HttpxBinaryResponseContent +from ..types import shared_params +from ..types import purge_cach_zone_purge_params from .._wrappers import ResultWrapper -from .._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["PurgeCaches", "AsyncPurgeCaches"] - class PurgeCaches(SyncAPIResource): @cached_property def with_raw_response(self) -> PurgeCachesWithRawResponse: @@ -35,20 +37,18 @@ def with_streaming_response(self) -> PurgeCachesWithStreamingResponse: return PurgeCachesWithStreamingResponse(self) @overload - def zone_purge( - self, - identifier: str, - *, - hosts: List[str] | NotGiven = NOT_GIVEN, - prefixes: List[str] | NotGiven = NOT_GIVEN, - tags: 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + def zone_purge(self, + identifier: str, + *, + hosts: List[str] | NotGiven = NOT_GIVEN, + prefixes: List[str] | NotGiven = NOT_GIVEN, + tags: 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,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -90,20 +90,17 @@ def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - @overload - def zone_purge( - self, - identifier: str, - *, - purge_everything: bool | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[PurgeCachZonePurgeResponse]: + def zone_purge(self, + identifier: str, + *, + purge_everything: bool | NotGiven = NOT_GIVEN, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -145,20 +142,17 @@ def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - @overload - def zone_purge( - self, - identifier: str, - *, - files: List[purge_cach_zone_purge_params.CkpEqDfYFilesFile] | 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + def zone_purge(self, + identifier: str, + *, + files: List[purge_cach_zone_purge_params.7mnXeLx2FilesFile] | 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,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -200,48 +194,37 @@ def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - - def zone_purge( - self, - identifier: str, - *, - hosts: List[str] | NotGiven = NOT_GIVEN, - prefixes: List[str] | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - purge_everything: bool | NotGiven = NOT_GIVEN, - files: List[purge_cach_zone_purge_params.CkpEqDfYFilesFile] | 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + def zone_purge(self, + identifier: str, + *, + hosts: List[str] | NotGiven = NOT_GIVEN, + prefixes: List[str] | NotGiven = NOT_GIVEN, + tags: List[str] | NotGiven = NOT_GIVEN, + purge_everything: bool | NotGiven = NOT_GIVEN, + files: List[purge_cach_zone_purge_params.7mnXeLx2FilesFile] | 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,) -> Optional[PurgeCachZonePurgeResponse]: if not identifier: - raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}") + raise ValueError( + f'Expected a non-empty value for `identifier` but received {identifier!r}' + ) return self._post( f"/zones/{identifier}/purge_cache", - body=maybe_transform( - { - "hosts": hosts, - "prefixes": prefixes, - "tags": tags, - "purge_everything": purge_everything, - "files": files, - }, - purge_cach_zone_purge_params.PurgeCachZonePurgeParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - post_parser=ResultWrapper._unwrapper, - ), + body=maybe_transform({ + "hosts": hosts, + "prefixes": prefixes, + "tags": tags, + "purge_everything": purge_everything, + "files": files, + }, purge_cach_zone_purge_params.PurgeCachZonePurgeParams), + options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, post_parser=ResultWrapper._unwrapper), cast_to=cast(Type[Optional[PurgeCachZonePurgeResponse]], ResultWrapper[PurgeCachZonePurgeResponse]), ) - class AsyncPurgeCaches(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncPurgeCachesWithRawResponse: @@ -252,20 +235,18 @@ def with_streaming_response(self) -> AsyncPurgeCachesWithStreamingResponse: return AsyncPurgeCachesWithStreamingResponse(self) @overload - async def zone_purge( - self, - identifier: str, - *, - hosts: List[str] | NotGiven = NOT_GIVEN, - prefixes: List[str] | NotGiven = NOT_GIVEN, - tags: 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + async def zone_purge(self, + identifier: str, + *, + hosts: List[str] | NotGiven = NOT_GIVEN, + prefixes: List[str] | NotGiven = NOT_GIVEN, + tags: 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,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -307,20 +288,17 @@ async def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - @overload - async def zone_purge( - self, - identifier: str, - *, - purge_everything: bool | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[PurgeCachZonePurgeResponse]: + async def zone_purge(self, + identifier: str, + *, + purge_everything: bool | NotGiven = NOT_GIVEN, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -362,20 +340,17 @@ async def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - @overload - async def zone_purge( - self, - identifier: str, - *, - files: List[purge_cach_zone_purge_params.CkpEqDfYFilesFile] | 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + async def zone_purge(self, + identifier: str, + *, + files: List[purge_cach_zone_purge_params.7mnXeLx2FilesFile] | 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,) -> Optional[PurgeCachZonePurgeResponse]: """### Purge All Cached Content Removes ALL files from Cloudflare's cache. @@ -417,48 +392,37 @@ async def zone_purge( timeout: Override the client-level default timeout for this request, in seconds """ ... - - async def zone_purge( - self, - identifier: str, - *, - hosts: List[str] | NotGiven = NOT_GIVEN, - prefixes: List[str] | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - purge_everything: bool | NotGiven = NOT_GIVEN, - files: List[purge_cach_zone_purge_params.CkpEqDfYFilesFile] | 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, - ) -> Optional[PurgeCachZonePurgeResponse]: + async def zone_purge(self, + identifier: str, + *, + hosts: List[str] | NotGiven = NOT_GIVEN, + prefixes: List[str] | NotGiven = NOT_GIVEN, + tags: List[str] | NotGiven = NOT_GIVEN, + purge_everything: bool | NotGiven = NOT_GIVEN, + files: List[purge_cach_zone_purge_params.7mnXeLx2FilesFile] | 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,) -> Optional[PurgeCachZonePurgeResponse]: if not identifier: - raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}") + raise ValueError( + f'Expected a non-empty value for `identifier` but received {identifier!r}' + ) return await self._post( f"/zones/{identifier}/purge_cache", - body=maybe_transform( - { - "hosts": hosts, - "prefixes": prefixes, - "tags": tags, - "purge_everything": purge_everything, - "files": files, - }, - purge_cach_zone_purge_params.PurgeCachZonePurgeParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - post_parser=ResultWrapper._unwrapper, - ), + body=maybe_transform({ + "hosts": hosts, + "prefixes": prefixes, + "tags": tags, + "purge_everything": purge_everything, + "files": files, + }, purge_cach_zone_purge_params.PurgeCachZonePurgeParams), + options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, post_parser=ResultWrapper._unwrapper), cast_to=cast(Type[Optional[PurgeCachZonePurgeResponse]], ResultWrapper[PurgeCachZonePurgeResponse]), ) - class PurgeCachesWithRawResponse: def __init__(self, purge_caches: PurgeCaches) -> None: self._purge_caches = purge_caches @@ -467,7 +431,6 @@ def __init__(self, purge_caches: PurgeCaches) -> None: purge_caches.zone_purge, ) - class AsyncPurgeCachesWithRawResponse: def __init__(self, purge_caches: AsyncPurgeCaches) -> None: self._purge_caches = purge_caches @@ -476,7 +439,6 @@ def __init__(self, purge_caches: AsyncPurgeCaches) -> None: purge_caches.zone_purge, ) - class PurgeCachesWithStreamingResponse: def __init__(self, purge_caches: PurgeCaches) -> None: self._purge_caches = purge_caches @@ -485,11 +447,10 @@ def __init__(self, purge_caches: PurgeCaches) -> None: purge_caches.zone_purge, ) - class AsyncPurgeCachesWithStreamingResponse: def __init__(self, purge_caches: AsyncPurgeCaches) -> None: self._purge_caches = purge_caches self.zone_purge = async_to_streamed_response_wrapper( purge_caches.zone_purge, - ) + ) \ No newline at end of file diff --git a/src/cloudflare/resources/r2/__init__.py b/src/cloudflare/resources/r2/__init__.py index 5f3b9eaca02..1099280e4eb 100644 --- a/src/cloudflare/resources/r2/__init__.py +++ b/src/cloudflare/resources/r2/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, -) +from .buckets import Buckets, AsyncBuckets from .buckets import ( - Buckets, - AsyncBuckets, BucketsWithRawResponse, AsyncBucketsWithRawResponse, BucketsWithStreamingResponse, AsyncBucketsWithStreamingResponse, ) +from .r2 import R2, AsyncR2 +from .r2 import R2WithRawResponse, AsyncR2WithRawResponse, R2WithStreamingResponse, AsyncR2WithStreamingResponse __all__ = [ "Buckets", diff --git a/src/cloudflare/resources/r2/buckets.py b/src/cloudflare/resources/r2/buckets.py index 1b2cd1f309a..561d375f186 100644 --- a/src/cloudflare/resources/r2/buckets.py +++ b/src/cloudflare/resources/r2/buckets.py @@ -2,32 +2,49 @@ 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 from ..._compat import cached_property -from ...types.r2 import ( - BucketGetResponse, - BucketListResponse, - BucketCreateResponse, - bucket_list_params, - bucket_create_params, -) -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.r2 import BucketCreateResponse, BucketListResponse, BucketGetResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.r2 import bucket_create_params +from ...types.r2 import bucket_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Buckets", "AsyncBuckets"] diff --git a/src/cloudflare/resources/r2/r2.py b/src/cloudflare/resources/r2/r2.py index 01d49d4488b..cb47d65659e 100644 --- a/src/cloudflare/resources/r2/r2.py +++ b/src/cloudflare/resources/r2/r2.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .buckets import Buckets, AsyncBuckets + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .buckets import ( Buckets, AsyncBuckets, @@ -10,8 +29,7 @@ BucketsWithStreamingResponse, AsyncBucketsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["R2", "AsyncR2"] diff --git a/src/cloudflare/resources/radar/__init__.py b/src/cloudflare/resources/radar/__init__.py index 0a9fc8dd6c7..f85d78818e5 100644 --- a/src/cloudflare/resources/radar/__init__.py +++ b/src/cloudflare/resources/radar/__init__.py @@ -1,148 +1,120 @@ # File generated from our OpenAPI spec by Stainless. -from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, +from .annotations import Annotations, AsyncAnnotations +from .annotations import ( + AnnotationsWithRawResponse, + AsyncAnnotationsWithRawResponse, + AnnotationsWithStreamingResponse, + AsyncAnnotationsWithStreamingResponse, ) -from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, +from .bgp import BGP, AsyncBGP +from .bgp import BGPWithRawResponse, AsyncBGPWithRawResponse, BGPWithStreamingResponse, AsyncBGPWithStreamingResponse +from .datasets import Datasets, AsyncDatasets +from .datasets import ( + DatasetsWithRawResponse, + AsyncDatasetsWithRawResponse, + DatasetsWithStreamingResponse, + AsyncDatasetsWithStreamingResponse, ) -from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, +from .dns import DNS, AsyncDNS +from .dns import DNSWithRawResponse, AsyncDNSWithRawResponse, DNSWithStreamingResponse, AsyncDNSWithStreamingResponse +from .netflows import Netflows, AsyncNetflows +from .netflows import ( + NetflowsWithRawResponse, + AsyncNetflowsWithRawResponse, + NetflowsWithStreamingResponse, + AsyncNetflowsWithStreamingResponse, +) +from .searches import Searches, AsyncSearches +from .searches import ( + SearchesWithRawResponse, + AsyncSearchesWithRawResponse, + SearchesWithStreamingResponse, + AsyncSearchesWithStreamingResponse, ) +from .verified_bots import VerifiedBots, AsyncVerifiedBots +from .verified_bots import ( + VerifiedBotsWithRawResponse, + AsyncVerifiedBotsWithRawResponse, + VerifiedBotsWithStreamingResponse, + AsyncVerifiedBotsWithStreamingResponse, +) +from .as112 import As112, AsyncAs112 from .as112 import ( - As112, - AsyncAs112, As112WithRawResponse, AsyncAs112WithRawResponse, As112WithStreamingResponse, AsyncAs112WithStreamingResponse, ) +from .connection_tampering import ConnectionTampering, AsyncConnectionTampering +from .connection_tampering import ( + ConnectionTamperingWithRawResponse, + AsyncConnectionTamperingWithRawResponse, + ConnectionTamperingWithStreamingResponse, + AsyncConnectionTamperingWithStreamingResponse, +) +from .email import Email, AsyncEmail from .email import ( - Email, - AsyncEmail, EmailWithRawResponse, AsyncEmailWithRawResponse, EmailWithStreamingResponse, AsyncEmailWithStreamingResponse, ) -from .radar import ( - Radar, - AsyncRadar, - RadarWithRawResponse, - AsyncRadarWithRawResponse, - RadarWithStreamingResponse, - AsyncRadarWithStreamingResponse, +from .attacks import Attacks, AsyncAttacks +from .attacks import ( + AttacksWithRawResponse, + AsyncAttacksWithRawResponse, + AttacksWithStreamingResponse, + AsyncAttacksWithStreamingResponse, ) +from .emails import Emails, AsyncEmails from .emails import ( - Emails, - AsyncEmails, EmailsWithRawResponse, AsyncEmailsWithRawResponse, EmailsWithStreamingResponse, AsyncEmailsWithStreamingResponse, ) -from .attacks import ( - Attacks, - AsyncAttacks, - AttacksWithRawResponse, - AsyncAttacksWithRawResponse, - AttacksWithStreamingResponse, - AsyncAttacksWithStreamingResponse, +from .entities import Entities, AsyncEntities +from .entities import ( + EntitiesWithRawResponse, + AsyncEntitiesWithRawResponse, + EntitiesWithStreamingResponse, + AsyncEntitiesWithStreamingResponse, +) +from .http import HTTP, AsyncHTTP +from .http import ( + HTTPWithRawResponse, + AsyncHTTPWithRawResponse, + HTTPWithStreamingResponse, + AsyncHTTPWithStreamingResponse, ) +from .quality import Quality, AsyncQuality from .quality import ( - Quality, - AsyncQuality, QualityWithRawResponse, AsyncQualityWithRawResponse, QualityWithStreamingResponse, AsyncQualityWithStreamingResponse, ) +from .ranking import Ranking, AsyncRanking from .ranking import ( - Ranking, - AsyncRanking, RankingWithRawResponse, AsyncRankingWithRawResponse, RankingWithStreamingResponse, AsyncRankingWithStreamingResponse, ) -from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, -) -from .entities import ( - Entities, - AsyncEntities, - EntitiesWithRawResponse, - AsyncEntitiesWithRawResponse, - EntitiesWithStreamingResponse, - AsyncEntitiesWithStreamingResponse, -) -from .netflows import ( - Netflows, - AsyncNetflows, - NetflowsWithRawResponse, - AsyncNetflowsWithRawResponse, - NetflowsWithStreamingResponse, - AsyncNetflowsWithStreamingResponse, -) -from .searches import ( - Searches, - AsyncSearches, - SearchesWithRawResponse, - AsyncSearchesWithRawResponse, - SearchesWithStreamingResponse, - AsyncSearchesWithStreamingResponse, -) -from .annotations import ( - Annotations, - AsyncAnnotations, - AnnotationsWithRawResponse, - AsyncAnnotationsWithRawResponse, - AnnotationsWithStreamingResponse, - AsyncAnnotationsWithStreamingResponse, -) -from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, - VerifiedBotsWithRawResponse, - AsyncVerifiedBotsWithRawResponse, - VerifiedBotsWithStreamingResponse, - AsyncVerifiedBotsWithStreamingResponse, -) +from .traffic_anomalies import TrafficAnomalies, AsyncTrafficAnomalies from .traffic_anomalies import ( - TrafficAnomalies, - AsyncTrafficAnomalies, TrafficAnomaliesWithRawResponse, AsyncTrafficAnomaliesWithRawResponse, TrafficAnomaliesWithStreamingResponse, AsyncTrafficAnomaliesWithStreamingResponse, ) -from .connection_tampering import ( - ConnectionTampering, - AsyncConnectionTampering, - ConnectionTamperingWithRawResponse, - AsyncConnectionTamperingWithRawResponse, - ConnectionTamperingWithStreamingResponse, - AsyncConnectionTamperingWithStreamingResponse, +from .radar import Radar, AsyncRadar +from .radar import ( + RadarWithRawResponse, + AsyncRadarWithRawResponse, + RadarWithStreamingResponse, + AsyncRadarWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/radar/annotations/__init__.py b/src/cloudflare/resources/radar/annotations/__init__.py index 68c3ba25867..c5b084cf0d7 100644 --- a/src/cloudflare/resources/radar/annotations/__init__.py +++ b/src/cloudflare/resources/radar/annotations/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .outages import Outages, AsyncOutages from .outages import ( - Outages, - AsyncOutages, OutagesWithRawResponse, AsyncOutagesWithRawResponse, OutagesWithStreamingResponse, AsyncOutagesWithStreamingResponse, ) +from .annotations import Annotations, AsyncAnnotations from .annotations import ( - Annotations, - AsyncAnnotations, AnnotationsWithRawResponse, AsyncAnnotationsWithRawResponse, AnnotationsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/annotations/annotations.py b/src/cloudflare/resources/radar/annotations/annotations.py index 8b89cacf1ab..96986262fc9 100644 --- a/src/cloudflare/resources/radar/annotations/annotations.py +++ b/src/cloudflare/resources/radar/annotations/annotations.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .outages.outages import Outages, AsyncOutages + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .outages import ( Outages, AsyncOutages, @@ -10,9 +29,7 @@ OutagesWithStreamingResponse, AsyncOutagesWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .outages.outages import Outages, AsyncOutages +from ...._wrappers import ResultWrapper __all__ = ["Annotations", "AsyncAnnotations"] diff --git a/src/cloudflare/resources/radar/annotations/outages/__init__.py b/src/cloudflare/resources/radar/annotations/outages/__init__.py index ff0ae927030..a0daeed3d5f 100644 --- a/src/cloudflare/resources/radar/annotations/outages/__init__.py +++ b/src/cloudflare/resources/radar/annotations/outages/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .outages import ( - Outages, - AsyncOutages, - OutagesWithRawResponse, - AsyncOutagesWithRawResponse, - OutagesWithStreamingResponse, - AsyncOutagesWithStreamingResponse, -) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .outages import Outages, AsyncOutages +from .outages import ( + OutagesWithRawResponse, + AsyncOutagesWithRawResponse, + OutagesWithStreamingResponse, + AsyncOutagesWithStreamingResponse, +) __all__ = [ "Locations", diff --git a/src/cloudflare/resources/radar/annotations/outages/locations.py b/src/cloudflare/resources/radar/annotations/outages/locations.py index 1000e30c41f..8abcc9a99ba 100644 --- a/src/cloudflare/resources/radar/annotations/outages/locations.py +++ b/src/cloudflare/resources/radar/annotations/outages/locations.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.annotations.outages import LocationListResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.annotations.outages import LocationListResponse, location_list_params +from .....types import shared_params +from .....types.radar.annotations.outages import location_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/annotations/outages/outages.py b/src/cloudflare/resources/radar/annotations/outages/outages.py index 25e7689cc20..9f497d2d9f6 100644 --- a/src/cloudflare/resources/radar/annotations/outages/outages.py +++ b/src/cloudflare/resources/radar/annotations/outages/outages.py @@ -2,12 +2,43 @@ from __future__ import annotations -from typing import Type, Union, cast +import httpx + +from .locations import Locations, AsyncLocations + +from ....._compat import cached_property + +from .....types.radar.annotations import OutageListResponse + +from typing import Type, Union + from datetime import datetime + from typing_extensions import Literal -import httpx +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .....types.radar.annotations import outage_list_params from .locations import ( Locations, AsyncLocations, @@ -16,21 +47,9 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -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 ....._wrappers import ResultWrapper -from ....._base_client import ( - make_request_options, -) -from .....types.radar.annotations import OutageListResponse, outage_list_params +from typing import cast +from typing import cast __all__ = ["Outages", "AsyncOutages"] diff --git a/src/cloudflare/resources/radar/as112/__init__.py b/src/cloudflare/resources/radar/as112/__init__.py index 4a0596c2850..b4011e6a6fe 100644 --- a/src/cloudflare/resources/radar/as112/__init__.py +++ b/src/cloudflare/resources/radar/as112/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .as112 import ( - As112, - AsyncAs112, - As112WithRawResponse, - AsyncAs112WithRawResponse, - As112WithStreamingResponse, - AsyncAs112WithStreamingResponse, -) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from .as112 import As112, AsyncAs112 +from .as112 import ( + As112WithRawResponse, + AsyncAs112WithRawResponse, + As112WithStreamingResponse, + AsyncAs112WithStreamingResponse, +) __all__ = [ "TimeseriesGroups", diff --git a/src/cloudflare/resources/radar/as112/as112.py b/src/cloudflare/resources/radar/as112/as112.py index 990d6e4889b..c0c36875f19 100644 --- a/src/cloudflare/resources/radar/as112/as112.py +++ b/src/cloudflare/resources/radar/as112/as112.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -12,7 +29,7 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) -from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups +from ...._wrappers import ResultWrapper __all__ = ["As112", "AsyncAs112"] diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups/__init__.py b/src/cloudflare/resources/radar/as112/timeseries_groups/__init__.py index b16ce12d83e..cdbc91671c7 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups/__init__.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .edns import ( - Edns, - AsyncEdns, - EdnsWithRawResponse, - AsyncEdnsWithRawResponse, - EdnsWithStreamingResponse, - AsyncEdnsWithStreamingResponse, -) +from .dnssec import DNSSEC, AsyncDNSSEC from .dnssec import ( - DNSSEC, - AsyncDNSSEC, DNSSECWithRawResponse, AsyncDNSSECWithRawResponse, DNSSECWithStreamingResponse, AsyncDNSSECWithStreamingResponse, ) +from .edns import Edns, AsyncEdns +from .edns import ( + EdnsWithRawResponse, + AsyncEdnsWithRawResponse, + EdnsWithStreamingResponse, + AsyncEdnsWithStreamingResponse, +) +from .ip_version import IPVersion, AsyncIPVersion from .ip_version import ( - IPVersion, - AsyncIPVersion, IPVersionWithRawResponse, AsyncIPVersionWithRawResponse, IPVersionWithStreamingResponse, AsyncIPVersionWithStreamingResponse, ) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups/dnssec.py b/src/cloudflare/resources/radar/as112/timeseries_groups/dnssec.py index 5653c9e6876..1cca6fc229c 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups/dnssec.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups/dnssec.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.as112.timeseries_groups import DNSSECListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.as112.timeseries_groups import DNSSECListResponse, dnssec_list_params +from .....types import shared_params +from .....types.radar.as112.timeseries_groups import dnssec_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DNSSEC", "AsyncDNSSEC"] diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups/edns.py b/src/cloudflare/resources/radar/as112/timeseries_groups/edns.py index e9135b198d0..99c22580b61 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups/edns.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups/edns.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.as112.timeseries_groups import EdnListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.as112.timeseries_groups import EdnListResponse, edn_list_params +from .....types import shared_params +from .....types.radar.as112.timeseries_groups import edn_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Edns", "AsyncEdns"] diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups/ip_version.py b/src/cloudflare/resources/radar/as112/timeseries_groups/ip_version.py index 7b5557e802a..8a67088d924 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups/ip_version.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups/ip_version.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.as112.timeseries_groups import IPVersionListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.as112.timeseries_groups import IPVersionListResponse, ip_version_list_params +from .....types import shared_params +from .....types.radar.as112.timeseries_groups import ip_version_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["IPVersion", "AsyncIPVersion"] diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups/timeseries_groups.py b/src/cloudflare/resources/radar/as112/timeseries_groups/timeseries_groups.py index ff80ea66a53..5544cfb646a 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups/timeseries_groups.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups/timeseries_groups.py @@ -2,14 +2,29 @@ from __future__ import annotations -from .edns import ( - Edns, - AsyncEdns, - EdnsWithRawResponse, - AsyncEdnsWithRawResponse, - EdnsWithStreamingResponse, - AsyncEdnsWithStreamingResponse, +from .dnssec import DNSSEC, AsyncDNSSEC + +from ....._compat import cached_property + +from .edns import Edns, AsyncEdns + +from .ip_version import IPVersion, AsyncIPVersion + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .dnssec import ( DNSSEC, AsyncDNSSEC, @@ -18,6 +33,14 @@ DNSSECWithStreamingResponse, AsyncDNSSECWithStreamingResponse, ) +from .edns import ( + Edns, + AsyncEdns, + EdnsWithRawResponse, + AsyncEdnsWithRawResponse, + EdnsWithStreamingResponse, + AsyncEdnsWithStreamingResponse, +) from .ip_version import ( IPVersion, AsyncIPVersion, @@ -26,8 +49,7 @@ IPVersionWithStreamingResponse, AsyncIPVersionWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/attacks/__init__.py b/src/cloudflare/resources/radar/attacks/__init__.py index 671ed212483..744ce2425f1 100644 --- a/src/cloudflare/resources/radar/attacks/__init__.py +++ b/src/cloudflare/resources/radar/attacks/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .layer3 import Layer3, AsyncLayer3 from .layer3 import ( - Layer3, - AsyncLayer3, Layer3WithRawResponse, AsyncLayer3WithRawResponse, Layer3WithStreamingResponse, AsyncLayer3WithStreamingResponse, ) +from .attacks import Attacks, AsyncAttacks from .attacks import ( - Attacks, - AsyncAttacks, AttacksWithRawResponse, AsyncAttacksWithRawResponse, AttacksWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/attacks/attacks.py b/src/cloudflare/resources/radar/attacks/attacks.py index 279100638dc..d922fe867c2 100644 --- a/src/cloudflare/resources/radar/attacks/attacks.py +++ b/src/cloudflare/resources/radar/attacks/attacks.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .layer3.layer3 import Layer3, AsyncLayer3 + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .layer3 import ( Layer3, AsyncLayer3, @@ -10,9 +29,7 @@ Layer3WithStreamingResponse, AsyncLayer3WithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .layer3.layer3 import Layer3, AsyncLayer3 +from ...._wrappers import ResultWrapper __all__ = ["Attacks", "AsyncAttacks"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/__init__.py index 232ae6d2599..0d01500fdb2 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups +from .timeseries_groups import ( + TimeseriesGroupsWithRawResponse, + AsyncTimeseriesGroupsWithRawResponse, + TimeseriesGroupsWithStreamingResponse, + AsyncTimeseriesGroupsWithStreamingResponse, ) +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse +from .layer3 import Layer3, AsyncLayer3 from .layer3 import ( - Layer3, - AsyncLayer3, Layer3WithRawResponse, AsyncLayer3WithRawResponse, Layer3WithStreamingResponse, AsyncLayer3WithStreamingResponse, ) -from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, -) __all__ = [ "TimeseriesGroups", diff --git a/src/cloudflare/resources/radar/attacks/layer3/layer3.py b/src/cloudflare/resources/radar/attacks/layer3/layer3.py index b420507ae95..0070a9c9666 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/layer3.py +++ b/src/cloudflare/resources/radar/attacks/layer3/layer3.py @@ -2,17 +2,27 @@ from __future__ import annotations -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) -from .top.top import Top, AsyncTop +from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + from ....._compat import cached_property + +from .top.top import Top, AsyncTop + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -21,7 +31,15 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) -from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups +from .top import ( + Top, + AsyncTop, + TopWithRawResponse, + AsyncTopWithRawResponse, + TopWithStreamingResponse, + AsyncTopWithStreamingResponse, +) +from ....._wrappers import ResultWrapper __all__ = ["Layer3", "AsyncLayer3"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/__init__.py index 7351be7d539..4d24b6aa5f7 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/__init__.py @@ -1,48 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .vector import ( - Vector, - AsyncVector, - VectorWithRawResponse, - AsyncVectorWithRawResponse, - VectorWithStreamingResponse, - AsyncVectorWithStreamingResponse, -) +from .industry import Industry, AsyncIndustry from .industry import ( - Industry, - AsyncIndustry, IndustryWithRawResponse, AsyncIndustryWithRawResponse, IndustryWithStreamingResponse, AsyncIndustryWithStreamingResponse, ) +from .ip_version import IPVersion, AsyncIPVersion +from .ip_version import ( + IPVersionWithRawResponse, + AsyncIPVersionWithRawResponse, + IPVersionWithStreamingResponse, + AsyncIPVersionWithStreamingResponse, +) +from .protocol import Protocol, AsyncProtocol from .protocol import ( - Protocol, - AsyncProtocol, ProtocolWithRawResponse, AsyncProtocolWithRawResponse, ProtocolWithStreamingResponse, AsyncProtocolWithStreamingResponse, ) +from .vector import Vector, AsyncVector +from .vector import ( + VectorWithRawResponse, + AsyncVectorWithRawResponse, + VectorWithStreamingResponse, + AsyncVectorWithStreamingResponse, +) +from .vertical import Vertical, AsyncVertical from .vertical import ( - Vertical, - AsyncVertical, VerticalWithRawResponse, AsyncVerticalWithRawResponse, VerticalWithStreamingResponse, AsyncVerticalWithStreamingResponse, ) -from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, -) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/industry.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/industry.py index bfc9156f9cf..171786bdd73 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/industry.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/industry.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.timeseries_groups import IndustryListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.timeseries_groups import IndustryListResponse, industry_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.timeseries_groups import industry_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Industry", "AsyncIndustry"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/ip_version.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/ip_version.py index 2d915312118..eee8c99da9a 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/ip_version.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/ip_version.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.timeseries_groups import IPVersionListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.timeseries_groups import IPVersionListResponse, ip_version_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.timeseries_groups import ip_version_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["IPVersion", "AsyncIPVersion"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/protocol.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/protocol.py index ea85df9ec0f..d62d3542275 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/protocol.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/protocol.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.timeseries_groups import ProtocolListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.timeseries_groups import ProtocolListResponse, protocol_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.timeseries_groups import protocol_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Protocol", "AsyncProtocol"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/timeseries_groups.py index f39f4235daf..bdee9555df8 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/timeseries_groups.py @@ -2,14 +2,33 @@ from __future__ import annotations -from .vector import ( - Vector, - AsyncVector, - VectorWithRawResponse, - AsyncVectorWithRawResponse, - VectorWithStreamingResponse, - AsyncVectorWithStreamingResponse, +from .industry import Industry, AsyncIndustry + +from ......_compat import cached_property + +from .ip_version import IPVersion, AsyncIPVersion + +from .protocol import Protocol, AsyncProtocol + +from .vector import Vector, AsyncVector + +from .vertical import Vertical, AsyncVertical + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ......types import shared_params from .industry import ( Industry, AsyncIndustry, @@ -18,6 +37,14 @@ IndustryWithStreamingResponse, AsyncIndustryWithStreamingResponse, ) +from .ip_version import ( + IPVersion, + AsyncIPVersion, + IPVersionWithRawResponse, + AsyncIPVersionWithRawResponse, + IPVersionWithStreamingResponse, + AsyncIPVersionWithStreamingResponse, +) from .protocol import ( Protocol, AsyncProtocol, @@ -26,6 +53,14 @@ ProtocolWithStreamingResponse, AsyncProtocolWithStreamingResponse, ) +from .vector import ( + Vector, + AsyncVector, + VectorWithRawResponse, + AsyncVectorWithRawResponse, + VectorWithStreamingResponse, + AsyncVectorWithStreamingResponse, +) from .vertical import ( Vertical, AsyncVertical, @@ -34,16 +69,7 @@ VerticalWithStreamingResponse, AsyncVerticalWithStreamingResponse, ) -from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, -) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vector.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vector.py index 644ef1c4aa7..a7436e442f4 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vector.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vector.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.timeseries_groups import VectorListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.timeseries_groups import VectorListResponse, vector_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.timeseries_groups import vector_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Vector", "AsyncVector"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vertical.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vertical.py index 7990b09a86f..f9eadb5e77f 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vertical.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups/vertical.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.timeseries_groups import VerticalListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.timeseries_groups import VerticalListResponse, vertical_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.timeseries_groups import vertical_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Vertical", "AsyncVertical"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py index a75327173b8..f2dfac01be2 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py @@ -1,45 +1,35 @@ # File generated from our OpenAPI spec by Stainless. -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) +from .attacks import Attacks, AsyncAttacks from .attacks import ( - Attacks, - AsyncAttacks, AttacksWithRawResponse, AsyncAttacksWithRawResponse, AttacksWithStreamingResponse, AsyncAttacksWithStreamingResponse, ) +from .industry import Industry, AsyncIndustry from .industry import ( - Industry, - AsyncIndustry, IndustryWithRawResponse, AsyncIndustryWithRawResponse, IndustryWithStreamingResponse, AsyncIndustryWithStreamingResponse, ) -from .vertical import ( - Vertical, - AsyncVertical, - VerticalWithRawResponse, - AsyncVerticalWithRawResponse, - VerticalWithStreamingResponse, - AsyncVerticalWithStreamingResponse, -) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .vertical import Vertical, AsyncVertical +from .vertical import ( + VerticalWithRawResponse, + AsyncVerticalWithRawResponse, + VerticalWithStreamingResponse, + AsyncVerticalWithStreamingResponse, +) +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse __all__ = [ "Attacks", diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/attacks.py b/src/cloudflare/resources/radar/attacks/layer3/top/attacks.py index efe1a81b357..37feadc70db 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/attacks.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/attacks.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.top import AttackListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.top import AttackListResponse, attack_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.top import attack_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Attacks", "AsyncAttacks"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/industry.py b/src/cloudflare/resources/radar/attacks/layer3/top/industry.py index 1cd2073f5c5..5bd6fb7f924 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/industry.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/industry.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.top import IndustryListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.top import IndustryListResponse, industry_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.top import industry_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Industry", "AsyncIndustry"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations/__init__.py index e222479cb07..e2c6a2f0112 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .origin import Origin, AsyncOrigin from .origin import ( - Origin, - AsyncOrigin, OriginWithRawResponse, AsyncOriginWithRawResponse, OriginWithStreamingResponse, AsyncOriginWithStreamingResponse, ) +from .target import Target, AsyncTarget from .target import ( - Target, - AsyncTarget, TargetWithRawResponse, AsyncTargetWithRawResponse, TargetWithStreamingResponse, AsyncTargetWithStreamingResponse, ) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations/locations.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations/locations.py index 125d6d6257e..693962df716 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations/locations.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .origin import Origin, AsyncOrigin + +from ......._compat import cached_property + +from .target import Target, AsyncTarget + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource +from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .......types import shared_params from .origin import ( Origin, AsyncOrigin, @@ -18,8 +39,7 @@ TargetWithStreamingResponse, AsyncTargetWithStreamingResponse, ) -from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource +from ......._wrappers import ResultWrapper __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations/origin.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations/origin.py index fbe7e623b5c..bff054a2618 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations/origin.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations/origin.py @@ -2,27 +2,44 @@ 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 from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource + +from .......types.radar.attacks.layer3.top.locations import OriginListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .......types.radar.attacks.layer3.top.locations import OriginListResponse, origin_list_params +from .......types import shared_params +from .......types.radar.attacks.layer3.top.locations import origin_list_params +from ......._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Origin", "AsyncOrigin"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations/target.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations/target.py index fe9a76562b0..5e3e9e3de39 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations/target.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations/target.py @@ -2,27 +2,44 @@ 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 from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource + +from .......types.radar.attacks.layer3.top.locations import TargetListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .......types.radar.attacks.layer3.top.locations import TargetListResponse, target_list_params +from .......types import shared_params +from .......types.radar.attacks.layer3.top.locations import target_list_params +from ......._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Target", "AsyncTarget"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/top.py b/src/cloudflare/resources/radar/attacks/layer3/top/top.py index 08354a4e44e..6a72ecb3bf5 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/top.py @@ -2,6 +2,31 @@ from __future__ import annotations +from .attacks import Attacks, AsyncAttacks + +from ......_compat import cached_property + +from .industry import Industry, AsyncIndustry + +from .locations.locations import Locations, AsyncLocations + +from .vertical import Vertical, AsyncVertical + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .attacks import ( Attacks, AsyncAttacks, @@ -18,14 +43,6 @@ IndustryWithStreamingResponse, AsyncIndustryWithStreamingResponse, ) -from .vertical import ( - Vertical, - AsyncVertical, - VerticalWithRawResponse, - AsyncVerticalWithRawResponse, - VerticalWithStreamingResponse, - AsyncVerticalWithStreamingResponse, -) from .locations import ( Locations, AsyncLocations, @@ -34,9 +51,15 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource -from .locations.locations import Locations, AsyncLocations +from .vertical import ( + Vertical, + AsyncVertical, + VerticalWithRawResponse, + AsyncVerticalWithRawResponse, + VerticalWithStreamingResponse, + AsyncVerticalWithStreamingResponse, +) +from ......_wrappers import ResultWrapper __all__ = ["Top", "AsyncTop"] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/vertical.py b/src/cloudflare/resources/radar/attacks/layer3/top/vertical.py index 99b9c37b8b8..82cb4d6236e 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/vertical.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/vertical.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.attacks.layer3.top import VerticalListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.attacks.layer3.top import VerticalListResponse, vertical_list_params +from ......types import shared_params +from ......types.radar.attacks.layer3.top import vertical_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Vertical", "AsyncVertical"] diff --git a/src/cloudflare/resources/radar/bgp/__init__.py b/src/cloudflare/resources/radar/bgp/__init__.py index 94fef6355da..7c94573cd00 100644 --- a/src/cloudflare/resources/radar/bgp/__init__.py +++ b/src/cloudflare/resources/radar/bgp/__init__.py @@ -1,53 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, -) -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) +from .leaks import Leaks, AsyncLeaks from .leaks import ( - Leaks, - AsyncLeaks, LeaksWithRawResponse, AsyncLeaksWithRawResponse, LeaksWithStreamingResponse, AsyncLeaksWithStreamingResponse, ) -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, +from .timeseries import Timeseries, AsyncTimeseries +from .timeseries import ( + TimeseriesWithRawResponse, + AsyncTimeseriesWithRawResponse, + TimeseriesWithStreamingResponse, + AsyncTimeseriesWithStreamingResponse, ) +from .tops import Tops, AsyncTops +from .tops import ( + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) +from .hijacks import Hijacks, AsyncHijacks from .hijacks import ( - Hijacks, - AsyncHijacks, HijacksWithRawResponse, AsyncHijacksWithRawResponse, HijacksWithStreamingResponse, AsyncHijacksWithStreamingResponse, ) -from .timeseries import ( - Timeseries, - AsyncTimeseries, - TimeseriesWithRawResponse, - AsyncTimeseriesWithRawResponse, - TimeseriesWithStreamingResponse, - AsyncTimeseriesWithStreamingResponse, +from .routes import Routes, AsyncRoutes +from .routes import ( + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, ) +from .bgp import BGP, AsyncBGP +from .bgp import BGPWithRawResponse, AsyncBGPWithRawResponse, BGPWithStreamingResponse, AsyncBGPWithStreamingResponse __all__ = [ "Leaks", diff --git a/src/cloudflare/resources/radar/bgp/bgp.py b/src/cloudflare/resources/radar/bgp/bgp.py index d0c8ed7f142..9c7f5802bf1 100644 --- a/src/cloudflare/resources/radar/bgp/bgp.py +++ b/src/cloudflare/resources/radar/bgp/bgp.py @@ -2,14 +2,33 @@ from __future__ import annotations -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, +from .leaks.leaks import Leaks, AsyncLeaks + +from ...._compat import cached_property + +from .timeseries import Timeseries, AsyncTimeseries + +from .tops.tops import Tops, AsyncTops + +from .hijacks import Hijacks, AsyncHijacks + +from .routes import Routes, AsyncRoutes + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .leaks import ( Leaks, AsyncLeaks, @@ -18,13 +37,21 @@ LeaksWithStreamingResponse, AsyncLeaksWithStreamingResponse, ) -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, +from .timeseries import ( + Timeseries, + AsyncTimeseries, + TimeseriesWithRawResponse, + AsyncTimeseriesWithRawResponse, + TimeseriesWithStreamingResponse, + AsyncTimeseriesWithStreamingResponse, +) +from .tops import ( + Tops, + AsyncTops, + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, ) from .hijacks import ( Hijacks, @@ -34,18 +61,15 @@ HijacksWithStreamingResponse, AsyncHijacksWithStreamingResponse, ) -from .tops.tops import Tops, AsyncTops -from ...._compat import cached_property -from .timeseries import ( - Timeseries, - AsyncTimeseries, - TimeseriesWithRawResponse, - AsyncTimeseriesWithRawResponse, - TimeseriesWithStreamingResponse, - AsyncTimeseriesWithStreamingResponse, +from .routes import ( + Routes, + AsyncRoutes, + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, ) -from .leaks.leaks import Leaks, AsyncLeaks -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["BGP", "AsyncBGP"] diff --git a/src/cloudflare/resources/radar/bgp/hijacks.py b/src/cloudflare/resources/radar/bgp/hijacks.py index eded1e5f322..c35d8f626e8 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks.py +++ b/src/cloudflare/resources/radar/bgp/hijacks.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.bgp import HijackEventsResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.bgp import HijackEventsResponse, hijack_events_params +from ....types import shared_params +from ....types.radar.bgp import hijack_events_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Hijacks", "AsyncHijacks"] diff --git a/src/cloudflare/resources/radar/bgp/leaks/__init__.py b/src/cloudflare/resources/radar/bgp/leaks/__init__.py index a8c8cc1588a..5f15674ee6d 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/__init__.py +++ b/src/cloudflare/resources/radar/bgp/leaks/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .leaks import ( - Leaks, - AsyncLeaks, - LeaksWithRawResponse, - AsyncLeaksWithRawResponse, - LeaksWithStreamingResponse, - AsyncLeaksWithStreamingResponse, -) +from .events import Events, AsyncEvents from .events import ( - Events, - AsyncEvents, EventsWithRawResponse, AsyncEventsWithRawResponse, EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) +from .leaks import Leaks, AsyncLeaks +from .leaks import ( + LeaksWithRawResponse, + AsyncLeaksWithRawResponse, + LeaksWithStreamingResponse, + AsyncLeaksWithStreamingResponse, +) __all__ = [ "Events", diff --git a/src/cloudflare/resources/radar/bgp/leaks/events.py b/src/cloudflare/resources/radar/bgp/leaks/events.py index 35d4da6ba0c..71d4c8adb60 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/events.py +++ b/src/cloudflare/resources/radar/bgp/leaks/events.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.bgp.leaks import EventListResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.bgp.leaks import EventListResponse, event_list_params +from .....types import shared_params +from .....types.radar.bgp.leaks import event_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Events", "AsyncEvents"] diff --git a/src/cloudflare/resources/radar/bgp/leaks/leaks.py b/src/cloudflare/resources/radar/bgp/leaks/leaks.py index 01442e8face..4b520432ea2 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/leaks.py +++ b/src/cloudflare/resources/radar/bgp/leaks/leaks.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .events import Events, AsyncEvents + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .events import ( Events, AsyncEvents, @@ -10,8 +29,7 @@ EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Leaks", "AsyncLeaks"] diff --git a/src/cloudflare/resources/radar/bgp/routes.py b/src/cloudflare/resources/radar/bgp/routes.py index a81192dec9e..c3575759b1b 100644 --- a/src/cloudflare/resources/radar/bgp/routes.py +++ b/src/cloudflare/resources/radar/bgp/routes.py @@ -2,33 +2,48 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.bgp import RouteMoasResponse, RoutePfx2asResponse, RouteStatsResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.bgp import ( - RouteMoasResponse, - RouteStatsResponse, - RoutePfx2asResponse, - route_moas_params, - route_stats_params, - route_pfx2as_params, -) +from ....types import shared_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 ...._wrappers import ResultWrapper +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__ = ["Routes", "AsyncRoutes"] diff --git a/src/cloudflare/resources/radar/bgp/timeseries.py b/src/cloudflare/resources/radar/bgp/timeseries.py index 5a752922e6e..05e1962195d 100644 --- a/src/cloudflare/resources/radar/bgp/timeseries.py +++ b/src/cloudflare/resources/radar/bgp/timeseries.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.bgp import TimeseryListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.bgp import TimeseryListResponse, timesery_list_params +from ....types import shared_params +from ....types.radar.bgp import timesery_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Timeseries", "AsyncTimeseries"] diff --git a/src/cloudflare/resources/radar/bgp/tops/__init__.py b/src/cloudflare/resources/radar/bgp/tops/__init__.py index c10e9f6ec87..71db0b8e2ab 100644 --- a/src/cloudflare/resources/radar/bgp/tops/__init__.py +++ b/src/cloudflare/resources/radar/bgp/tops/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .ases import Ases, AsyncAses from .ases import ( - Ases, - AsyncAses, AsesWithRawResponse, AsyncAsesWithRawResponse, AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) +from .prefixes import Prefixes, AsyncPrefixes from .prefixes import ( - Prefixes, - AsyncPrefixes, PrefixesWithRawResponse, AsyncPrefixesWithRawResponse, PrefixesWithStreamingResponse, AsyncPrefixesWithStreamingResponse, ) +from .tops import Tops, AsyncTops +from .tops import ( + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) __all__ = [ "Ases", diff --git a/src/cloudflare/resources/radar/bgp/tops/ases.py b/src/cloudflare/resources/radar/bgp/tops/ases.py index 9bb504e84d4..f3c956b3030 100644 --- a/src/cloudflare/resources/radar/bgp/tops/ases.py +++ b/src/cloudflare/resources/radar/bgp/tops/ases.py @@ -2,27 +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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.bgp.tops import AseListResponse, AsePrefixesResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.bgp.tops import AseListResponse, AsePrefixesResponse, ase_list_params, ase_prefixes_params +from .....types import shared_params +from .....types.radar.bgp.tops import ase_list_params +from .....types.radar.bgp.tops import ase_prefixes_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Ases", "AsyncAses"] diff --git a/src/cloudflare/resources/radar/bgp/tops/prefixes.py b/src/cloudflare/resources/radar/bgp/tops/prefixes.py index 9afc08deb45..b5e9c13ba78 100644 --- a/src/cloudflare/resources/radar/bgp/tops/prefixes.py +++ b/src/cloudflare/resources/radar/bgp/tops/prefixes.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.bgp.tops import PrefixListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.bgp.tops import PrefixListResponse, prefix_list_params +from .....types import shared_params +from .....types.radar.bgp.tops import prefix_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Prefixes", "AsyncPrefixes"] diff --git a/src/cloudflare/resources/radar/bgp/tops/tops.py b/src/cloudflare/resources/radar/bgp/tops/tops.py index 410cd1e13d9..80d4bd66631 100644 --- a/src/cloudflare/resources/radar/bgp/tops/tops.py +++ b/src/cloudflare/resources/radar/bgp/tops/tops.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .ases import Ases, AsyncAses + +from ....._compat import cached_property + +from .prefixes import Prefixes, AsyncPrefixes + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .ases import ( Ases, AsyncAses, @@ -18,8 +39,7 @@ PrefixesWithStreamingResponse, AsyncPrefixesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Tops", "AsyncTops"] diff --git a/src/cloudflare/resources/radar/connection_tampering/__init__.py b/src/cloudflare/resources/radar/connection_tampering/__init__.py index 681c6a6bb44..0ad5e31d03b 100644 --- a/src/cloudflare/resources/radar/connection_tampering/__init__.py +++ b/src/cloudflare/resources/radar/connection_tampering/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from .connection_tampering import ConnectionTampering, AsyncConnectionTampering from .connection_tampering import ( - ConnectionTampering, - AsyncConnectionTampering, ConnectionTamperingWithRawResponse, AsyncConnectionTamperingWithRawResponse, ConnectionTamperingWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/connection_tampering/connection_tampering.py b/src/cloudflare/resources/radar/connection_tampering/connection_tampering.py index 85411a69ad0..3cb11c566d1 100644 --- a/src/cloudflare/resources/radar/connection_tampering/connection_tampering.py +++ b/src/cloudflare/resources/radar/connection_tampering/connection_tampering.py @@ -2,27 +2,43 @@ 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 +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar import ConnectionTamperingSummaryResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.radar import ConnectionTamperingSummaryResponse, connection_tampering_summary_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.radar import connection_tampering_summary_params from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -31,6 +47,9 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ConnectionTampering", "AsyncConnectionTampering"] diff --git a/src/cloudflare/resources/radar/connection_tampering/timeseries_groups.py b/src/cloudflare/resources/radar/connection_tampering/timeseries_groups.py index 4d7ea8ca304..927a521bc13 100644 --- a/src/cloudflare/resources/radar/connection_tampering/timeseries_groups.py +++ b/src/cloudflare/resources/radar/connection_tampering/timeseries_groups.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.connection_tampering import TimeseriesGroupListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.connection_tampering import TimeseriesGroupListResponse, timeseries_group_list_params +from ....types import shared_params +from ....types.radar.connection_tampering import timeseries_group_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/datasets/__init__.py b/src/cloudflare/resources/radar/datasets/__init__.py index 57d90e5baaa..eb6e9cf8dfb 100644 --- a/src/cloudflare/resources/radar/datasets/__init__.py +++ b/src/cloudflare/resources/radar/datasets/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, -) +from .downloads import Downloads, AsyncDownloads from .downloads import ( - Downloads, - AsyncDownloads, DownloadsWithRawResponse, AsyncDownloadsWithRawResponse, DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) +from .datasets import Datasets, AsyncDatasets +from .datasets import ( + DatasetsWithRawResponse, + AsyncDatasetsWithRawResponse, + DatasetsWithStreamingResponse, + AsyncDatasetsWithStreamingResponse, +) __all__ = [ "Downloads", diff --git a/src/cloudflare/resources/radar/datasets/datasets.py b/src/cloudflare/resources/radar/datasets/datasets.py index 0211a7b3f6c..d9b8afaf23e 100644 --- a/src/cloudflare/resources/radar/datasets/datasets.py +++ b/src/cloudflare/resources/radar/datasets/datasets.py @@ -2,13 +2,42 @@ from __future__ import annotations -from typing import Type, Optional, cast +import httpx + +from .downloads import Downloads, AsyncDownloads + +from ...._compat import cached_property + +from ....types.radar import DatasetListResponse, DatasetGetResponse + +from typing import Type, Optional + from typing_extensions import Literal -import httpx +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 +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.radar import dataset_list_params +from ....types.radar import dataset_get_params from .downloads import ( Downloads, AsyncDownloads, @@ -17,19 +46,9 @@ DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) -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 DatasetListResponse, dataset_get_params, dataset_list_params -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["Datasets", "AsyncDatasets"] diff --git a/src/cloudflare/resources/radar/datasets/downloads.py b/src/cloudflare/resources/radar/datasets/downloads.py index b3ffbb48480..4e594a453d5 100644 --- a/src/cloudflare/resources/radar/datasets/downloads.py +++ b/src/cloudflare/resources/radar/datasets/downloads.py @@ -2,29 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.datasets import DownloadRadarPostDatasetDownloadResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.datasets import ( - DownloadRadarPostDatasetDownloadResponse, - download_radar_post_dataset_download_params, -) +from ....types import shared_params +from ....types.radar.datasets import download_radar_post_dataset_download_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Downloads", "AsyncDownloads"] diff --git a/src/cloudflare/resources/radar/dns/__init__.py b/src/cloudflare/resources/radar/dns/__init__.py index 96d04c350a7..fcdd1bab6e3 100644 --- a/src/cloudflare/resources/radar/dns/__init__.py +++ b/src/cloudflare/resources/radar/dns/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, -) +from .tops import Tops, AsyncTops from .tops import ( - Tops, - AsyncTops, TopsWithRawResponse, AsyncTopsWithRawResponse, TopsWithStreamingResponse, AsyncTopsWithStreamingResponse, ) +from .dns import DNS, AsyncDNS +from .dns import DNSWithRawResponse, AsyncDNSWithRawResponse, DNSWithStreamingResponse, AsyncDNSWithStreamingResponse __all__ = [ "Tops", diff --git a/src/cloudflare/resources/radar/dns/dns.py b/src/cloudflare/resources/radar/dns/dns.py index 498377da650..f5dcaeaa682 100644 --- a/src/cloudflare/resources/radar/dns/dns.py +++ b/src/cloudflare/resources/radar/dns/dns.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .tops.tops import Tops, AsyncTops + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .tops import ( Tops, AsyncTops, @@ -10,9 +29,7 @@ TopsWithStreamingResponse, AsyncTopsWithStreamingResponse, ) -from .tops.tops import Tops, AsyncTops -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["DNS", "AsyncDNS"] diff --git a/src/cloudflare/resources/radar/dns/tops/__init__.py b/src/cloudflare/resources/radar/dns/tops/__init__.py index 69d7e236db2..56a5a425b92 100644 --- a/src/cloudflare/resources/radar/dns/tops/__init__.py +++ b/src/cloudflare/resources/radar/dns/tops/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .ases import Ases, AsyncAses from .ases import ( - Ases, - AsyncAses, AsesWithRawResponse, AsyncAsesWithRawResponse, AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .tops import Tops, AsyncTops +from .tops import ( + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) __all__ = [ "Ases", diff --git a/src/cloudflare/resources/radar/dns/tops/ases.py b/src/cloudflare/resources/radar/dns/tops/ases.py index 93694c7a9b7..4a44f232907 100644 --- a/src/cloudflare/resources/radar/dns/tops/ases.py +++ b/src/cloudflare/resources/radar/dns/tops/ases.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.dns.tops import AseListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.dns.tops import AseListResponse, ase_list_params +from .....types import shared_params +from .....types.radar.dns.tops import ase_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Ases", "AsyncAses"] diff --git a/src/cloudflare/resources/radar/dns/tops/locations.py b/src/cloudflare/resources/radar/dns/tops/locations.py index bca7471462f..871f7be4135 100644 --- a/src/cloudflare/resources/radar/dns/tops/locations.py +++ b/src/cloudflare/resources/radar/dns/tops/locations.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.dns.tops import LocationListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.dns.tops import LocationListResponse, location_list_params +from .....types import shared_params +from .....types.radar.dns.tops import location_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/dns/tops/tops.py b/src/cloudflare/resources/radar/dns/tops/tops.py index 650bfd7518e..3275a4e1540 100644 --- a/src/cloudflare/resources/radar/dns/tops/tops.py +++ b/src/cloudflare/resources/radar/dns/tops/tops.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .ases import Ases, AsyncAses + +from ....._compat import cached_property + +from .locations import Locations, AsyncLocations + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .ases import ( Ases, AsyncAses, @@ -18,8 +39,7 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Tops", "AsyncTops"] diff --git a/src/cloudflare/resources/radar/email/__init__.py b/src/cloudflare/resources/radar/email/__init__.py index d1332caa386..4995a5f8509 100644 --- a/src/cloudflare/resources/radar/email/__init__.py +++ b/src/cloudflare/resources/radar/email/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .email import ( - Email, - AsyncEmail, - EmailWithRawResponse, - AsyncEmailWithRawResponse, - EmailWithStreamingResponse, - AsyncEmailWithStreamingResponse, -) +from .security import Security, AsyncSecurity from .security import ( - Security, - AsyncSecurity, SecurityWithRawResponse, AsyncSecurityWithRawResponse, SecurityWithStreamingResponse, AsyncSecurityWithStreamingResponse, ) +from .email import Email, AsyncEmail +from .email import ( + EmailWithRawResponse, + AsyncEmailWithRawResponse, + EmailWithStreamingResponse, + AsyncEmailWithStreamingResponse, +) __all__ = [ "Security", diff --git a/src/cloudflare/resources/radar/email/email.py b/src/cloudflare/resources/radar/email/email.py index 5ca27bc8487..7302223ed9f 100644 --- a/src/cloudflare/resources/radar/email/email.py +++ b/src/cloudflare/resources/radar/email/email.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .security.security import Security, AsyncSecurity + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .security import ( Security, AsyncSecurity, @@ -10,9 +29,7 @@ SecurityWithStreamingResponse, AsyncSecurityWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .security.security import Security, AsyncSecurity +from ...._wrappers import ResultWrapper __all__ = ["Email", "AsyncEmail"] diff --git a/src/cloudflare/resources/radar/email/security/__init__.py b/src/cloudflare/resources/radar/email/security/__init__.py index fe4d5fb9382..3eb19bea7bd 100644 --- a/src/cloudflare/resources/radar/email/security/__init__.py +++ b/src/cloudflare/resources/radar/email/security/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .security import ( - Security, - AsyncSecurity, - SecurityWithRawResponse, - AsyncSecurityWithRawResponse, - SecurityWithStreamingResponse, - AsyncSecurityWithStreamingResponse, -) +from .summaries import Summaries, AsyncSummaries from .summaries import ( - Summaries, - AsyncSummaries, SummariesWithRawResponse, AsyncSummariesWithRawResponse, SummariesWithStreamingResponse, AsyncSummariesWithStreamingResponse, ) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from .security import Security, AsyncSecurity +from .security import ( + SecurityWithRawResponse, + AsyncSecurityWithRawResponse, + SecurityWithStreamingResponse, + AsyncSecurityWithStreamingResponse, +) __all__ = [ "Summaries", diff --git a/src/cloudflare/resources/radar/email/security/security.py b/src/cloudflare/resources/radar/email/security/security.py index 4798592d057..fbcbc9c1e0b 100644 --- a/src/cloudflare/resources/radar/email/security/security.py +++ b/src/cloudflare/resources/radar/email/security/security.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .summaries.summaries import Summaries, AsyncSummaries + +from ....._compat import cached_property + +from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .summaries import ( Summaries, AsyncSummaries, @@ -10,8 +31,6 @@ SummariesWithStreamingResponse, AsyncSummariesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -20,8 +39,7 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) -from .summaries.summaries import Summaries, AsyncSummaries -from .timeseries_groups.timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups +from ....._wrappers import ResultWrapper __all__ = ["Security", "AsyncSecurity"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/__init__.py b/src/cloudflare/resources/radar/email/security/summaries/__init__.py index 9b3e34c2e88..3085788184c 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/__init__.py +++ b/src/cloudflare/resources/radar/email/security/summaries/__init__.py @@ -1,69 +1,61 @@ # File generated from our OpenAPI spec by Stainless. +from .arcs import Arcs, AsyncArcs from .arcs import ( - Arcs, - AsyncArcs, ArcsWithRawResponse, AsyncArcsWithRawResponse, ArcsWithStreamingResponse, AsyncArcsWithStreamingResponse, ) -from .spfs import ( - SPFs, - AsyncSPFs, - SPFsWithRawResponse, - AsyncSPFsWithRawResponse, - SPFsWithStreamingResponse, - AsyncSPFsWithStreamingResponse, -) +from .dkims import DKIMs, AsyncDKIMs from .dkims import ( - DKIMs, - AsyncDKIMs, DKIMsWithRawResponse, AsyncDKIMsWithRawResponse, DKIMsWithStreamingResponse, AsyncDKIMsWithStreamingResponse, ) -from .spams import ( - Spams, - AsyncSpams, - SpamsWithRawResponse, - AsyncSpamsWithRawResponse, - SpamsWithStreamingResponse, - AsyncSpamsWithStreamingResponse, -) +from .dmarcs import Dmarcs, AsyncDmarcs from .dmarcs import ( - Dmarcs, - AsyncDmarcs, DmarcsWithRawResponse, AsyncDmarcsWithRawResponse, DmarcsWithStreamingResponse, AsyncDmarcsWithStreamingResponse, ) +from .malicious import Malicious, AsyncMalicious from .malicious import ( - Malicious, - AsyncMalicious, MaliciousWithRawResponse, AsyncMaliciousWithRawResponse, MaliciousWithStreamingResponse, AsyncMaliciousWithStreamingResponse, ) -from .summaries import ( - Summaries, - AsyncSummaries, - SummariesWithRawResponse, - AsyncSummariesWithRawResponse, - SummariesWithStreamingResponse, - AsyncSummariesWithStreamingResponse, +from .spams import Spams, AsyncSpams +from .spams import ( + SpamsWithRawResponse, + AsyncSpamsWithRawResponse, + SpamsWithStreamingResponse, + AsyncSpamsWithStreamingResponse, ) +from .spfs import SPFs, AsyncSPFs +from .spfs import ( + SPFsWithRawResponse, + AsyncSPFsWithRawResponse, + SPFsWithStreamingResponse, + AsyncSPFsWithStreamingResponse, +) +from .threat_categories import ThreatCategories, AsyncThreatCategories from .threat_categories import ( - ThreatCategories, - AsyncThreatCategories, ThreatCategoriesWithRawResponse, AsyncThreatCategoriesWithRawResponse, ThreatCategoriesWithStreamingResponse, AsyncThreatCategoriesWithStreamingResponse, ) +from .summaries import Summaries, AsyncSummaries +from .summaries import ( + SummariesWithRawResponse, + AsyncSummariesWithRawResponse, + SummariesWithStreamingResponse, + AsyncSummariesWithStreamingResponse, +) __all__ = [ "Arcs", diff --git a/src/cloudflare/resources/radar/email/security/summaries/arcs.py b/src/cloudflare/resources/radar/email/security/summaries/arcs.py index d8e58b4441b..0e028a05b40 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/arcs.py +++ b/src/cloudflare/resources/radar/email/security/summaries/arcs.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import ArcListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import ArcListResponse, arc_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import arc_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Arcs", "AsyncArcs"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/dkims.py b/src/cloudflare/resources/radar/email/security/summaries/dkims.py index a86472b0991..e21c986f5f7 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/dkims.py +++ b/src/cloudflare/resources/radar/email/security/summaries/dkims.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import DKIMListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import DKIMListResponse, dkim_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import dkim_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DKIMs", "AsyncDKIMs"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/dmarcs.py b/src/cloudflare/resources/radar/email/security/summaries/dmarcs.py index 7593a35fc1e..508efa62a7d 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/dmarcs.py +++ b/src/cloudflare/resources/radar/email/security/summaries/dmarcs.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import DmarcListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import DmarcListResponse, dmarc_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import dmarc_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Dmarcs", "AsyncDmarcs"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/malicious.py b/src/cloudflare/resources/radar/email/security/summaries/malicious.py index 6293185e9c1..1445b7293bf 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/malicious.py +++ b/src/cloudflare/resources/radar/email/security/summaries/malicious.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import MaliciousListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import MaliciousListResponse, malicious_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import malicious_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Malicious", "AsyncMalicious"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/spams.py b/src/cloudflare/resources/radar/email/security/summaries/spams.py index 092eb5aa1c4..89eec7dd58e 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/spams.py +++ b/src/cloudflare/resources/radar/email/security/summaries/spams.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import SpamGetResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import SpamGetResponse, spam_get_params +from ......types import shared_params +from ......types.radar.email.security.summaries import spam_get_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Spams", "AsyncSpams"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/spfs.py b/src/cloudflare/resources/radar/email/security/summaries/spfs.py index cc21bdb4cd5..2d3b0c46826 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/spfs.py +++ b/src/cloudflare/resources/radar/email/security/summaries/spfs.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import SPFListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import SPFListResponse, spf_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import spf_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["SPFs", "AsyncSPFs"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/summaries.py b/src/cloudflare/resources/radar/email/security/summaries/summaries.py index 22fbc2b6802..6f8f0e954e7 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/summaries.py +++ b/src/cloudflare/resources/radar/email/security/summaries/summaries.py @@ -2,6 +2,37 @@ from __future__ import annotations +from .arcs import Arcs, AsyncArcs + +from ......_compat import cached_property + +from .dkims import DKIMs, AsyncDKIMs + +from .dmarcs import Dmarcs, AsyncDmarcs + +from .malicious import Malicious, AsyncMalicious + +from .spams import Spams, AsyncSpams + +from .spfs import SPFs, AsyncSPFs + +from .threat_categories import ThreatCategories, AsyncThreatCategories + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .arcs import ( Arcs, AsyncArcs, @@ -10,14 +41,6 @@ ArcsWithStreamingResponse, AsyncArcsWithStreamingResponse, ) -from .spfs import ( - SPFs, - AsyncSPFs, - SPFsWithRawResponse, - AsyncSPFsWithRawResponse, - SPFsWithStreamingResponse, - AsyncSPFsWithStreamingResponse, -) from .dkims import ( DKIMs, AsyncDKIMs, @@ -26,14 +49,6 @@ DKIMsWithStreamingResponse, AsyncDKIMsWithStreamingResponse, ) -from .spams import ( - Spams, - AsyncSpams, - SpamsWithRawResponse, - AsyncSpamsWithRawResponse, - SpamsWithStreamingResponse, - AsyncSpamsWithStreamingResponse, -) from .dmarcs import ( Dmarcs, AsyncDmarcs, @@ -50,8 +65,22 @@ MaliciousWithStreamingResponse, AsyncMaliciousWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from .spams import ( + Spams, + AsyncSpams, + SpamsWithRawResponse, + AsyncSpamsWithRawResponse, + SpamsWithStreamingResponse, + AsyncSpamsWithStreamingResponse, +) +from .spfs import ( + SPFs, + AsyncSPFs, + SPFsWithRawResponse, + AsyncSPFsWithRawResponse, + SPFsWithStreamingResponse, + AsyncSPFsWithStreamingResponse, +) from .threat_categories import ( ThreatCategories, AsyncThreatCategories, @@ -60,6 +89,7 @@ ThreatCategoriesWithStreamingResponse, AsyncThreatCategoriesWithStreamingResponse, ) +from ......_wrappers import ResultWrapper __all__ = ["Summaries", "AsyncSummaries"] diff --git a/src/cloudflare/resources/radar/email/security/summaries/threat_categories.py b/src/cloudflare/resources/radar/email/security/summaries/threat_categories.py index 4e2b5a4288d..72bb454afc4 100644 --- a/src/cloudflare/resources/radar/email/security/summaries/threat_categories.py +++ b/src/cloudflare/resources/radar/email/security/summaries/threat_categories.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.summaries import ThreatCategoryListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.summaries import ThreatCategoryListResponse, threat_category_list_params +from ......types import shared_params +from ......types.radar.email.security.summaries import threat_category_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ThreatCategories", "AsyncThreatCategories"] diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups/__init__.py b/src/cloudflare/resources/radar/email/security/timeseries_groups/__init__.py index 131b7903a2f..b3072f82e0f 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups/__init__.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .arcs import Arcs, AsyncArcs from .arcs import ( - Arcs, - AsyncArcs, ArcsWithRawResponse, AsyncArcsWithRawResponse, ArcsWithStreamingResponse, AsyncArcsWithStreamingResponse, ) +from .dkims import DKIMs, AsyncDKIMs from .dkims import ( - DKIMs, - AsyncDKIMs, DKIMsWithRawResponse, AsyncDKIMsWithRawResponse, DKIMsWithStreamingResponse, AsyncDKIMsWithStreamingResponse, ) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups/arcs.py b/src/cloudflare/resources/radar/email/security/timeseries_groups/arcs.py index ef4362a97b4..b5883c0a1c0 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups/arcs.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups/arcs.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.timeseries_groups import ArcListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.timeseries_groups import ArcListResponse, arc_list_params +from ......types import shared_params +from ......types.radar.email.security.timeseries_groups import arc_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Arcs", "AsyncArcs"] diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups/dkims.py b/src/cloudflare/resources/radar/email/security/timeseries_groups/dkims.py index 707f2623f5c..d8b613b39e8 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups/dkims.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups/dkims.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.email.security.timeseries_groups import DKIMListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.email.security.timeseries_groups import DKIMListResponse, dkim_list_params +from ......types import shared_params +from ......types.radar.email.security.timeseries_groups import dkim_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DKIMs", "AsyncDKIMs"] diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups/timeseries_groups.py b/src/cloudflare/resources/radar/email/security/timeseries_groups/timeseries_groups.py index 22eca3f5348..2a02962e06e 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups/timeseries_groups.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .arcs import Arcs, AsyncArcs + +from ......_compat import cached_property + +from .dkims import DKIMs, AsyncDKIMs + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .arcs import ( Arcs, AsyncArcs, @@ -18,8 +39,7 @@ DKIMsWithStreamingResponse, AsyncDKIMsWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/emails/__init__.py b/src/cloudflare/resources/radar/emails/__init__.py index a167313246f..84f3e983440 100644 --- a/src/cloudflare/resources/radar/emails/__init__.py +++ b/src/cloudflare/resources/radar/emails/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .emails import ( - Emails, - AsyncEmails, - EmailsWithRawResponse, - AsyncEmailsWithRawResponse, - EmailsWithStreamingResponse, - AsyncEmailsWithStreamingResponse, -) +from .security import Security, AsyncSecurity from .security import ( - Security, - AsyncSecurity, SecurityWithRawResponse, AsyncSecurityWithRawResponse, SecurityWithStreamingResponse, AsyncSecurityWithStreamingResponse, ) +from .emails import Emails, AsyncEmails +from .emails import ( + EmailsWithRawResponse, + AsyncEmailsWithRawResponse, + EmailsWithStreamingResponse, + AsyncEmailsWithStreamingResponse, +) __all__ = [ "Security", diff --git a/src/cloudflare/resources/radar/emails/emails.py b/src/cloudflare/resources/radar/emails/emails.py index c4d68c3038f..87ac9f087a3 100644 --- a/src/cloudflare/resources/radar/emails/emails.py +++ b/src/cloudflare/resources/radar/emails/emails.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .security.security import Security, AsyncSecurity + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .security import ( Security, AsyncSecurity, @@ -10,9 +29,7 @@ SecurityWithStreamingResponse, AsyncSecurityWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from .security.security import Security, AsyncSecurity +from ...._wrappers import ResultWrapper __all__ = ["Emails", "AsyncEmails"] diff --git a/src/cloudflare/resources/radar/emails/security/__init__.py b/src/cloudflare/resources/radar/emails/security/__init__.py index b098cab8870..51ab17e175b 100644 --- a/src/cloudflare/resources/radar/emails/security/__init__.py +++ b/src/cloudflare/resources/radar/emails/security/__init__.py @@ -1,61 +1,44 @@ # File generated from our OpenAPI spec by Stainless. -from .spf import ( - SPF, - AsyncSPF, - SPFWithRawResponse, - AsyncSPFWithRawResponse, - SPFWithStreamingResponse, - AsyncSPFWithStreamingResponse, -) -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) -from .spam import ( - Spam, - AsyncSpam, - SpamWithRawResponse, - AsyncSpamWithRawResponse, - SpamWithStreamingResponse, - AsyncSpamWithStreamingResponse, -) +from .dmarc import Dmarc, AsyncDmarc from .dmarc import ( - Dmarc, - AsyncDmarc, DmarcWithRawResponse, AsyncDmarcWithRawResponse, DmarcWithStreamingResponse, AsyncDmarcWithStreamingResponse, ) -from .security import ( - Security, - AsyncSecurity, - SecurityWithRawResponse, - AsyncSecurityWithRawResponse, - SecurityWithStreamingResponse, - AsyncSecurityWithStreamingResponse, -) +from .malicious import Malicious, AsyncMalicious from .malicious import ( - Malicious, - AsyncMalicious, MaliciousWithRawResponse, AsyncMaliciousWithRawResponse, MaliciousWithStreamingResponse, AsyncMaliciousWithStreamingResponse, ) +from .spam import Spam, AsyncSpam +from .spam import ( + SpamWithRawResponse, + AsyncSpamWithRawResponse, + SpamWithStreamingResponse, + AsyncSpamWithStreamingResponse, +) +from .spf import SPF, AsyncSPF +from .spf import SPFWithRawResponse, AsyncSPFWithRawResponse, SPFWithStreamingResponse, AsyncSPFWithStreamingResponse +from .threat_category import ThreatCategory, AsyncThreatCategory from .threat_category import ( - ThreatCategory, - AsyncThreatCategory, ThreatCategoryWithRawResponse, AsyncThreatCategoryWithRawResponse, ThreatCategoryWithStreamingResponse, AsyncThreatCategoryWithStreamingResponse, ) +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse +from .security import Security, AsyncSecurity +from .security import ( + SecurityWithRawResponse, + AsyncSecurityWithRawResponse, + SecurityWithStreamingResponse, + AsyncSecurityWithStreamingResponse, +) __all__ = [ "Dmarc", diff --git a/src/cloudflare/resources/radar/emails/security/dmarc.py b/src/cloudflare/resources/radar/emails/security/dmarc.py index f8275d9714d..67cd4a5c297 100644 --- a/src/cloudflare/resources/radar/emails/security/dmarc.py +++ b/src/cloudflare/resources/radar/emails/security/dmarc.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.emails.security import DmarcListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.emails.security import DmarcListResponse, dmarc_list_params +from .....types import shared_params +from .....types.radar.emails.security import dmarc_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Dmarc", "AsyncDmarc"] diff --git a/src/cloudflare/resources/radar/emails/security/malicious.py b/src/cloudflare/resources/radar/emails/security/malicious.py index 150f38c5e47..bea93138f16 100644 --- a/src/cloudflare/resources/radar/emails/security/malicious.py +++ b/src/cloudflare/resources/radar/emails/security/malicious.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.emails.security import MaliciousListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.emails.security import MaliciousListResponse, malicious_list_params +from .....types import shared_params +from .....types.radar.emails.security import malicious_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Malicious", "AsyncMalicious"] diff --git a/src/cloudflare/resources/radar/emails/security/security.py b/src/cloudflare/resources/radar/emails/security/security.py index bd145b05bcd..012c4788e6d 100644 --- a/src/cloudflare/resources/radar/emails/security/security.py +++ b/src/cloudflare/resources/radar/emails/security/security.py @@ -2,30 +2,35 @@ from __future__ import annotations -from .spf import ( - SPF, - AsyncSPF, - SPFWithRawResponse, - AsyncSPFWithRawResponse, - SPFWithStreamingResponse, - AsyncSPFWithStreamingResponse, -) -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) -from .spam import ( - Spam, - AsyncSpam, - SpamWithRawResponse, - AsyncSpamWithRawResponse, - SpamWithStreamingResponse, - AsyncSpamWithStreamingResponse, +from .dmarc import Dmarc, AsyncDmarc + +from ....._compat import cached_property + +from .malicious import Malicious, AsyncMalicious + +from .spam import Spam, AsyncSpam + +from .spf import SPF, AsyncSPF + +from .threat_category import ThreatCategory, AsyncThreatCategory + +from .top.top import Top, AsyncTop + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .dmarc import ( Dmarc, AsyncDmarc, @@ -34,7 +39,6 @@ DmarcWithStreamingResponse, AsyncDmarcWithStreamingResponse, ) -from .top.top import Top, AsyncTop from .malicious import ( Malicious, AsyncMalicious, @@ -43,8 +47,22 @@ MaliciousWithStreamingResponse, AsyncMaliciousWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from .spam import ( + Spam, + AsyncSpam, + SpamWithRawResponse, + AsyncSpamWithRawResponse, + SpamWithStreamingResponse, + AsyncSpamWithStreamingResponse, +) +from .spf import ( + SPF, + AsyncSPF, + SPFWithRawResponse, + AsyncSPFWithRawResponse, + SPFWithStreamingResponse, + AsyncSPFWithStreamingResponse, +) from .threat_category import ( ThreatCategory, AsyncThreatCategory, @@ -53,6 +71,15 @@ ThreatCategoryWithStreamingResponse, AsyncThreatCategoryWithStreamingResponse, ) +from .top import ( + Top, + AsyncTop, + TopWithRawResponse, + AsyncTopWithRawResponse, + TopWithStreamingResponse, + AsyncTopWithStreamingResponse, +) +from ....._wrappers import ResultWrapper __all__ = ["Security", "AsyncSecurity"] diff --git a/src/cloudflare/resources/radar/emails/security/spam.py b/src/cloudflare/resources/radar/emails/security/spam.py index cd13296999e..9027b7b7b15 100644 --- a/src/cloudflare/resources/radar/emails/security/spam.py +++ b/src/cloudflare/resources/radar/emails/security/spam.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.emails.security import SpamListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.emails.security import SpamListResponse, spam_list_params +from .....types import shared_params +from .....types.radar.emails.security import spam_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Spam", "AsyncSpam"] diff --git a/src/cloudflare/resources/radar/emails/security/spf.py b/src/cloudflare/resources/radar/emails/security/spf.py index 14a8d0e56e1..8a15034ba8a 100644 --- a/src/cloudflare/resources/radar/emails/security/spf.py +++ b/src/cloudflare/resources/radar/emails/security/spf.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.emails.security import SPFListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.emails.security import SPFListResponse, spf_list_params +from .....types import shared_params +from .....types.radar.emails.security import spf_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["SPF", "AsyncSPF"] diff --git a/src/cloudflare/resources/radar/emails/security/threat_category.py b/src/cloudflare/resources/radar/emails/security/threat_category.py index 049a8a41385..7623c3d964f 100644 --- a/src/cloudflare/resources/radar/emails/security/threat_category.py +++ b/src/cloudflare/resources/radar/emails/security/threat_category.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.emails.security import ThreatCategoryListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.emails.security import ThreatCategoryListResponse, threat_category_list_params +from .....types import shared_params +from .....types.radar.emails.security import threat_category_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ThreatCategory", "AsyncThreatCategory"] diff --git a/src/cloudflare/resources/radar/emails/security/top/__init__.py b/src/cloudflare/resources/radar/emails/security/top/__init__.py index 0c6ce3e537a..23bac8b8caf 100644 --- a/src/cloudflare/resources/radar/emails/security/top/__init__.py +++ b/src/cloudflare/resources/radar/emails/security/top/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) +from .ases import Ases, AsyncAses from .ases import ( - Ases, - AsyncAses, AsesWithRawResponse, AsyncAsesWithRawResponse, AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse __all__ = [ "Ases", diff --git a/src/cloudflare/resources/radar/emails/security/top/ases/__init__.py b/src/cloudflare/resources/radar/emails/security/top/ases/__init__.py index 45b1958cb83..b4e0ec4e166 100644 --- a/src/cloudflare/resources/radar/emails/security/top/ases/__init__.py +++ b/src/cloudflare/resources/radar/emails/security/top/ases/__init__.py @@ -1,37 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .arc import ( - Arc, - AsyncArc, - ArcWithRawResponse, - AsyncArcWithRawResponse, - ArcWithStreamingResponse, - AsyncArcWithStreamingResponse, -) -from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, -) +from .arc import Arc, AsyncArc +from .arc import ArcWithRawResponse, AsyncArcWithRawResponse, ArcWithStreamingResponse, AsyncArcWithStreamingResponse +from .dkim import DKIM, AsyncDKIM from .dkim import ( - DKIM, - AsyncDKIM, DKIMWithRawResponse, AsyncDKIMWithRawResponse, DKIMWithStreamingResponse, AsyncDKIMWithStreamingResponse, ) +from .dmarc import Dmarc, AsyncDmarc from .dmarc import ( - Dmarc, - AsyncDmarc, DmarcWithRawResponse, AsyncDmarcWithRawResponse, DmarcWithStreamingResponse, AsyncDmarcWithStreamingResponse, ) +from .ases import Ases, AsyncAses +from .ases import ( + AsesWithRawResponse, + AsyncAsesWithRawResponse, + AsesWithStreamingResponse, + AsyncAsesWithStreamingResponse, +) __all__ = [ "Arc", diff --git a/src/cloudflare/resources/radar/emails/security/top/ases/arc.py b/src/cloudflare/resources/radar/emails/security/top/ases/arc.py index a4156cf27d2..109e9e56fba 100644 --- a/src/cloudflare/resources/radar/emails/security/top/ases/arc.py +++ b/src/cloudflare/resources/radar/emails/security/top/ases/arc.py @@ -2,27 +2,44 @@ 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 from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource + +from .......types.radar.emails.security.top.ases import ArcGetResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .......types.radar.emails.security.top.ases import ArcGetResponse, arc_get_params +from .......types import shared_params +from .......types.radar.emails.security.top.ases import arc_get_params +from ......._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Arc", "AsyncArc"] diff --git a/src/cloudflare/resources/radar/emails/security/top/ases/ases.py b/src/cloudflare/resources/radar/emails/security/top/ases/ases.py index a5b7d997c57..6c3583da008 100644 --- a/src/cloudflare/resources/radar/emails/security/top/ases/ases.py +++ b/src/cloudflare/resources/radar/emails/security/top/ases/ases.py @@ -2,12 +2,47 @@ from __future__ import annotations -from typing import List, Type, Union, cast -from datetime import datetime +import httpx + +from .arc import Arc, AsyncArc + +from ......._compat import cached_property + +from .dkim import DKIM, AsyncDKIM + +from .dmarc import Dmarc, AsyncDmarc + +from .......types.radar.emails.security.top import AseListResponse + +from typing import Type, List, Union + from typing_extensions import Literal -import httpx +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 ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .......types import shared_params +from .......types.radar.emails.security.top import ase_list_params from .arc import ( Arc, AsyncArc, @@ -32,21 +67,9 @@ DmarcWithStreamingResponse, AsyncDmarcWithStreamingResponse, ) -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 ......._wrappers import ResultWrapper -from ......._base_client import ( - make_request_options, -) -from .......types.radar.emails.security.top import AseListResponse, ase_list_params +from typing import cast +from typing import cast __all__ = ["Ases", "AsyncAses"] diff --git a/src/cloudflare/resources/radar/emails/security/top/ases/dkim.py b/src/cloudflare/resources/radar/emails/security/top/ases/dkim.py index 38fbf36df5c..d495f7d5395 100644 --- a/src/cloudflare/resources/radar/emails/security/top/ases/dkim.py +++ b/src/cloudflare/resources/radar/emails/security/top/ases/dkim.py @@ -2,27 +2,44 @@ 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 from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource + +from .......types.radar.emails.security.top.ases import DKIMGetResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .......types.radar.emails.security.top.ases import DKIMGetResponse, dkim_get_params +from .......types import shared_params +from .......types.radar.emails.security.top.ases import dkim_get_params +from ......._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DKIM", "AsyncDKIM"] diff --git a/src/cloudflare/resources/radar/emails/security/top/ases/dmarc.py b/src/cloudflare/resources/radar/emails/security/top/ases/dmarc.py index a82116693c5..63782faec0c 100644 --- a/src/cloudflare/resources/radar/emails/security/top/ases/dmarc.py +++ b/src/cloudflare/resources/radar/emails/security/top/ases/dmarc.py @@ -2,27 +2,44 @@ 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 from ......._compat import cached_property -from ......._resource import SyncAPIResource, AsyncAPIResource + +from .......types.radar.emails.security.top.ases import DmarcGetResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ......._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......._resource import SyncAPIResource, AsyncAPIResource from ......._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .......types.radar.emails.security.top.ases import DmarcGetResponse, dmarc_get_params +from .......types import shared_params +from .......types.radar.emails.security.top.ases import dmarc_get_params +from ......._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Dmarc", "AsyncDmarc"] diff --git a/src/cloudflare/resources/radar/emails/security/top/top.py b/src/cloudflare/resources/radar/emails/security/top/top.py index 15af280da06..61aa703d9a2 100644 --- a/src/cloudflare/resources/radar/emails/security/top/top.py +++ b/src/cloudflare/resources/radar/emails/security/top/top.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .ases.ases import Ases, AsyncAses + +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 ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .ases import ( Ases, AsyncAses, @@ -10,9 +29,7 @@ AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) -from .ases.ases import Ases, AsyncAses -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["Top", "AsyncTop"] diff --git a/src/cloudflare/resources/radar/entities/__init__.py b/src/cloudflare/resources/radar/entities/__init__.py index 1a3f83a3a3f..a3781b31597 100644 --- a/src/cloudflare/resources/radar/entities/__init__.py +++ b/src/cloudflare/resources/radar/entities/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .asns import Asns, AsyncAsns from .asns import ( - Asns, - AsyncAsns, AsnsWithRawResponse, AsyncAsnsWithRawResponse, AsnsWithStreamingResponse, AsyncAsnsWithStreamingResponse, ) +from .entities import Entities, AsyncEntities from .entities import ( - Entities, - AsyncEntities, EntitiesWithRawResponse, AsyncEntitiesWithRawResponse, EntitiesWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/entities/asns.py b/src/cloudflare/resources/radar/entities/asns.py index 9ab13d052eb..aea5ae6021d 100644 --- a/src/cloudflare/resources/radar/entities/asns.py +++ b/src/cloudflare/resources/radar/entities/asns.py @@ -2,26 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.entities import AsnRelResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.entities import AsnRelResponse, asn_rel_params +from ....types import shared_params +from ....types.radar.entities import asn_rel_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Asns", "AsyncAsns"] diff --git a/src/cloudflare/resources/radar/entities/entities.py b/src/cloudflare/resources/radar/entities/entities.py index 81c2b4c81b8..36ebcde162d 100644 --- a/src/cloudflare/resources/radar/entities/entities.py +++ b/src/cloudflare/resources/radar/entities/entities.py @@ -2,11 +2,41 @@ from __future__ import annotations -from typing import Type, cast +import httpx + +from .asns import Asns, AsyncAsns + +from ...._compat import cached_property + +from ....types.radar import EntityIPsResponse + +from typing import Type + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.radar import entity_ips_params from .asns import ( Asns, AsyncAsns, @@ -15,21 +45,9 @@ AsnsWithStreamingResponse, AsyncAsnsWithStreamingResponse, ) -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 ...._wrappers import ResultWrapper -from ....types.radar import EntityIPsResponse, entity_ips_params -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["Entities", "AsyncEntities"] diff --git a/src/cloudflare/resources/radar/http/__init__.py b/src/cloudflare/resources/radar/http/__init__.py index 42d9e10abb9..38006f6a05b 100644 --- a/src/cloudflare/resources/radar/http/__init__.py +++ b/src/cloudflare/resources/radar/http/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, -) +from .tls_version import TLSVersion, AsyncTLSVersion from .tls_version import ( - TLSVersion, - AsyncTLSVersion, TLSVersionWithRawResponse, AsyncTLSVersionWithRawResponse, TLSVersionWithStreamingResponse, AsyncTLSVersionWithStreamingResponse, ) +from .http import HTTP, AsyncHTTP +from .http import ( + HTTPWithRawResponse, + AsyncHTTPWithRawResponse, + HTTPWithStreamingResponse, + AsyncHTTPWithStreamingResponse, +) __all__ = [ "TLSVersion", diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py index 8efa78300cd..1bb3d83e91d 100644 --- a/src/cloudflare/resources/radar/http/http.py +++ b/src/cloudflare/resources/radar/http/http.py @@ -2,52 +2,84 @@ 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 +from .tls_version import TLSVersion, AsyncTLSVersion + from ...._compat import cached_property -from .tls_version import ( - TLSVersion, - AsyncTLSVersion, - TLSVersionWithRawResponse, - AsyncTLSVersionWithRawResponse, - TLSVersionWithStreamingResponse, - AsyncTLSVersionWithStreamingResponse, + +from ....types.radar import ( + HTTPBotClassesResponse, + HTTPBrowserFamiliesResponse, + HTTPBrowsersResponse, + HTTPDeviceTypesResponse, + HTTPHTTPProtocolsResponse, + HTTPHTTPVersionsResponse, + HTTPIPVersionsResponse, + HTTPOssResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.radar import ( - HTTPOssResponse, - HTTPBrowsersResponse, - HTTPBotClassesResponse, - HTTPIPVersionsResponse, - HTTPDeviceTypesResponse, - HTTPHTTPVersionsResponse, - HTTPHTTPProtocolsResponse, - HTTPBrowserFamiliesResponse, - http_oss_params, - http_browsers_params, - http_bot_classes_params, - http_ip_versions_params, - http_device_types_params, - http_http_versions_params, - http_http_protocols_params, - http_browser_families_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.radar import http_bot_classes_params +from ....types.radar import http_browser_families_params +from ....types.radar import http_browsers_params +from ....types.radar import http_device_types_params +from ....types.radar import http_http_protocols_params +from ....types.radar import http_http_versions_params +from ....types.radar import http_ip_versions_params +from ....types.radar import http_oss_params +from .tls_version import ( + TLSVersion, + AsyncTLSVersion, + TLSVersionWithRawResponse, + AsyncTLSVersionWithRawResponse, + TLSVersionWithStreamingResponse, + AsyncTLSVersionWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["HTTP", "AsyncHTTP"] diff --git a/src/cloudflare/resources/radar/http/tls_version.py b/src/cloudflare/resources/radar/http/tls_version.py index ca2f93ede1f..31dd3609de4 100644 --- a/src/cloudflare/resources/radar/http/tls_version.py +++ b/src/cloudflare/resources/radar/http/tls_version.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.http import TLSVersionListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.http import TLSVersionListResponse, tls_version_list_params +from ....types import shared_params +from ....types.radar.http import tls_version_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["TLSVersion", "AsyncTLSVersion"] diff --git a/src/cloudflare/resources/radar/netflows/__init__.py b/src/cloudflare/resources/radar/netflows/__init__.py index 84621d96d27..e9e086948f7 100644 --- a/src/cloudflare/resources/radar/netflows/__init__.py +++ b/src/cloudflare/resources/radar/netflows/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .timeseries import Timeseries, AsyncTimeseries +from .timeseries import ( + TimeseriesWithRawResponse, + AsyncTimeseriesWithRawResponse, + TimeseriesWithStreamingResponse, + AsyncTimeseriesWithStreamingResponse, +) +from .tops import Tops, AsyncTops from .tops import ( - Tops, - AsyncTops, TopsWithRawResponse, AsyncTopsWithRawResponse, TopsWithStreamingResponse, AsyncTopsWithStreamingResponse, ) +from .netflows import Netflows, AsyncNetflows from .netflows import ( - Netflows, - AsyncNetflows, NetflowsWithRawResponse, AsyncNetflowsWithRawResponse, NetflowsWithStreamingResponse, AsyncNetflowsWithStreamingResponse, ) -from .timeseries import ( - Timeseries, - AsyncTimeseries, - TimeseriesWithRawResponse, - AsyncTimeseriesWithRawResponse, - TimeseriesWithStreamingResponse, - AsyncTimeseriesWithStreamingResponse, -) __all__ = [ "Timeseries", diff --git a/src/cloudflare/resources/radar/netflows/netflows.py b/src/cloudflare/resources/radar/netflows/netflows.py index 45619331ef9..042628da8c3 100644 --- a/src/cloudflare/resources/radar/netflows/netflows.py +++ b/src/cloudflare/resources/radar/netflows/netflows.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) -from .tops.tops import Tops, AsyncTops +from .timeseries import Timeseries, AsyncTimeseries + from ...._compat import cached_property + +from .tops.tops import Tops, AsyncTops + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .timeseries import ( Timeseries, AsyncTimeseries, @@ -20,7 +31,15 @@ TimeseriesWithStreamingResponse, AsyncTimeseriesWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource +from .tops import ( + Tops, + AsyncTops, + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Netflows", "AsyncNetflows"] diff --git a/src/cloudflare/resources/radar/netflows/timeseries.py b/src/cloudflare/resources/radar/netflows/timeseries.py index 0a531120af7..5f782b198c6 100644 --- a/src/cloudflare/resources/radar/netflows/timeseries.py +++ b/src/cloudflare/resources/radar/netflows/timeseries.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.netflows import TimeseryListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.netflows import TimeseryListResponse, timesery_list_params +from ....types import shared_params +from ....types.radar.netflows import timesery_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Timeseries", "AsyncTimeseries"] diff --git a/src/cloudflare/resources/radar/netflows/tops/__init__.py b/src/cloudflare/resources/radar/netflows/tops/__init__.py index 69d7e236db2..56a5a425b92 100644 --- a/src/cloudflare/resources/radar/netflows/tops/__init__.py +++ b/src/cloudflare/resources/radar/netflows/tops/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .ases import Ases, AsyncAses from .ases import ( - Ases, - AsyncAses, AsesWithRawResponse, AsyncAsesWithRawResponse, AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .tops import Tops, AsyncTops +from .tops import ( + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) __all__ = [ "Ases", diff --git a/src/cloudflare/resources/radar/netflows/tops/ases.py b/src/cloudflare/resources/radar/netflows/tops/ases.py index d4fb59d5616..bc6a04254e7 100644 --- a/src/cloudflare/resources/radar/netflows/tops/ases.py +++ b/src/cloudflare/resources/radar/netflows/tops/ases.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.netflows.tops import AseListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.netflows.tops import AseListResponse, ase_list_params +from .....types import shared_params +from .....types.radar.netflows.tops import ase_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Ases", "AsyncAses"] diff --git a/src/cloudflare/resources/radar/netflows/tops/locations.py b/src/cloudflare/resources/radar/netflows/tops/locations.py index 13660d817fe..50e07a365a3 100644 --- a/src/cloudflare/resources/radar/netflows/tops/locations.py +++ b/src/cloudflare/resources/radar/netflows/tops/locations.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.netflows.tops import LocationListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.netflows.tops import LocationListResponse, location_list_params +from .....types import shared_params +from .....types.radar.netflows.tops import location_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/netflows/tops/tops.py b/src/cloudflare/resources/radar/netflows/tops/tops.py index 650bfd7518e..3275a4e1540 100644 --- a/src/cloudflare/resources/radar/netflows/tops/tops.py +++ b/src/cloudflare/resources/radar/netflows/tops/tops.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .ases import Ases, AsyncAses + +from ....._compat import cached_property + +from .locations import Locations, AsyncLocations + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .ases import ( Ases, AsyncAses, @@ -18,8 +39,7 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Tops", "AsyncTops"] diff --git a/src/cloudflare/resources/radar/quality/__init__.py b/src/cloudflare/resources/radar/quality/__init__.py index 7a26345c352..fd7c243be4e 100644 --- a/src/cloudflare/resources/radar/quality/__init__.py +++ b/src/cloudflare/resources/radar/quality/__init__.py @@ -1,24 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from .iqi import ( - Iqi, - AsyncIqi, - IqiWithRawResponse, - AsyncIqiWithRawResponse, - IqiWithStreamingResponse, - AsyncIqiWithStreamingResponse, -) +from .iqi import Iqi, AsyncIqi +from .iqi import IqiWithRawResponse, AsyncIqiWithRawResponse, IqiWithStreamingResponse, AsyncIqiWithStreamingResponse +from .speed import Speed, AsyncSpeed from .speed import ( - Speed, - AsyncSpeed, SpeedWithRawResponse, AsyncSpeedWithRawResponse, SpeedWithStreamingResponse, AsyncSpeedWithStreamingResponse, ) +from .quality import Quality, AsyncQuality from .quality import ( - Quality, - AsyncQuality, QualityWithRawResponse, AsyncQualityWithRawResponse, QualityWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/quality/iqi/__init__.py b/src/cloudflare/resources/radar/quality/iqi/__init__.py index b2a7ac22c61..50de576d043 100644 --- a/src/cloudflare/resources/radar/quality/iqi/__init__.py +++ b/src/cloudflare/resources/radar/quality/iqi/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .iqi import ( - Iqi, - AsyncIqi, - IqiWithRawResponse, - AsyncIqiWithRawResponse, - IqiWithStreamingResponse, - AsyncIqiWithStreamingResponse, -) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from .iqi import Iqi, AsyncIqi +from .iqi import IqiWithRawResponse, AsyncIqiWithRawResponse, IqiWithStreamingResponse, AsyncIqiWithStreamingResponse __all__ = [ "TimeseriesGroups", diff --git a/src/cloudflare/resources/radar/quality/iqi/iqi.py b/src/cloudflare/resources/radar/quality/iqi/iqi.py index d5e94ae90a8..e2c0e95cd33 100644 --- a/src/cloudflare/resources/radar/quality/iqi/iqi.py +++ b/src/cloudflare/resources/radar/quality/iqi/iqi.py @@ -2,26 +2,43 @@ 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 +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.quality import IqiGetResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params +from .....types.radar.quality import iqi_get_params from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -30,7 +47,9 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) -from .....types.radar.quality import IqiGetResponse, iqi_get_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Iqi", "AsyncIqi"] diff --git a/src/cloudflare/resources/radar/quality/iqi/timeseries_groups.py b/src/cloudflare/resources/radar/quality/iqi/timeseries_groups.py index c40090b124f..91dafebb2e7 100644 --- a/src/cloudflare/resources/radar/quality/iqi/timeseries_groups.py +++ b/src/cloudflare/resources/radar/quality/iqi/timeseries_groups.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.quality.iqi import TimeseriesGroupListResponse + +from typing import Type, List, Union + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.quality.iqi import TimeseriesGroupListResponse, timeseries_group_list_params +from .....types import shared_params +from .....types.radar.quality.iqi import timeseries_group_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/quality/quality.py b/src/cloudflare/resources/radar/quality/quality.py index b7536158f9b..87d14ecc4d0 100644 --- a/src/cloudflare/resources/radar/quality/quality.py +++ b/src/cloudflare/resources/radar/quality/quality.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .iqi.iqi import Iqi, AsyncIqi + +from ...._compat import cached_property + +from .speed.speed import Speed, AsyncSpeed + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .iqi import ( Iqi, AsyncIqi, @@ -18,10 +39,7 @@ SpeedWithStreamingResponse, AsyncSpeedWithStreamingResponse, ) -from .iqi.iqi import Iqi, AsyncIqi -from ...._compat import cached_property -from .speed.speed import Speed, AsyncSpeed -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["Quality", "AsyncQuality"] diff --git a/src/cloudflare/resources/radar/quality/speed/__init__.py b/src/cloudflare/resources/radar/quality/speed/__init__.py index 20667a24df4..6895b34de0c 100644 --- a/src/cloudflare/resources/radar/quality/speed/__init__.py +++ b/src/cloudflare/resources/radar/quality/speed/__init__.py @@ -1,36 +1,27 @@ # File generated from our OpenAPI spec by Stainless. -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) -from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, +from .histogram import Histogram, AsyncHistogram +from .histogram import ( + HistogramWithRawResponse, + AsyncHistogramWithRawResponse, + HistogramWithStreamingResponse, + AsyncHistogramWithStreamingResponse, ) +from .summary import Summary, AsyncSummary from .summary import ( - Summary, - AsyncSummary, SummaryWithRawResponse, AsyncSummaryWithRawResponse, SummaryWithStreamingResponse, AsyncSummaryWithStreamingResponse, ) -from .histogram import ( - Histogram, - AsyncHistogram, - HistogramWithRawResponse, - AsyncHistogramWithRawResponse, - HistogramWithStreamingResponse, - AsyncHistogramWithStreamingResponse, +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse +from .speed import Speed, AsyncSpeed +from .speed import ( + SpeedWithRawResponse, + AsyncSpeedWithRawResponse, + SpeedWithStreamingResponse, + AsyncSpeedWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/radar/quality/speed/histogram.py b/src/cloudflare/resources/radar/quality/speed/histogram.py index f442887962c..27300080f94 100644 --- a/src/cloudflare/resources/radar/quality/speed/histogram.py +++ b/src/cloudflare/resources/radar/quality/speed/histogram.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.quality.speed import HistogramGetResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.quality.speed import HistogramGetResponse, histogram_get_params +from .....types import shared_params +from .....types.radar.quality.speed import histogram_get_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Histogram", "AsyncHistogram"] diff --git a/src/cloudflare/resources/radar/quality/speed/speed.py b/src/cloudflare/resources/radar/quality/speed/speed.py index 729cf27bbc9..6675a9e2a2b 100644 --- a/src/cloudflare/resources/radar/quality/speed/speed.py +++ b/src/cloudflare/resources/radar/quality/speed/speed.py @@ -2,13 +2,36 @@ from __future__ import annotations -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, +from .histogram import Histogram, AsyncHistogram + +from ....._compat import cached_property + +from .summary import Summary, AsyncSummary + +from .top.top import Top, AsyncTop + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .histogram import ( + Histogram, + AsyncHistogram, + HistogramWithRawResponse, + AsyncHistogramWithRawResponse, + HistogramWithStreamingResponse, + AsyncHistogramWithStreamingResponse, ) from .summary import ( Summary, @@ -18,17 +41,15 @@ SummaryWithStreamingResponse, AsyncSummaryWithStreamingResponse, ) -from .top.top import Top, AsyncTop -from .histogram import ( - Histogram, - AsyncHistogram, - HistogramWithRawResponse, - AsyncHistogramWithRawResponse, - HistogramWithStreamingResponse, - AsyncHistogramWithStreamingResponse, +from .top import ( + Top, + AsyncTop, + TopWithRawResponse, + AsyncTopWithRawResponse, + TopWithStreamingResponse, + AsyncTopWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Speed", "AsyncSpeed"] diff --git a/src/cloudflare/resources/radar/quality/speed/summary.py b/src/cloudflare/resources/radar/quality/speed/summary.py index 618adfa9adf..d453ae367e4 100644 --- a/src/cloudflare/resources/radar/quality/speed/summary.py +++ b/src/cloudflare/resources/radar/quality/speed/summary.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.quality.speed import SummaryGetResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.quality.speed import SummaryGetResponse, summary_get_params +from .....types import shared_params +from .....types.radar.quality.speed import summary_get_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Summary", "AsyncSummary"] diff --git a/src/cloudflare/resources/radar/quality/speed/top/__init__.py b/src/cloudflare/resources/radar/quality/speed/top/__init__.py index 6f641a19507..193cc12b535 100644 --- a/src/cloudflare/resources/radar/quality/speed/top/__init__.py +++ b/src/cloudflare/resources/radar/quality/speed/top/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, -) +from .ases import Ases, AsyncAses from .ases import ( - Ases, - AsyncAses, AsesWithRawResponse, AsyncAsesWithRawResponse, AsesWithStreamingResponse, AsyncAsesWithStreamingResponse, ) +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .top import Top, AsyncTop +from .top import TopWithRawResponse, AsyncTopWithRawResponse, TopWithStreamingResponse, AsyncTopWithStreamingResponse __all__ = [ "Ases", diff --git a/src/cloudflare/resources/radar/quality/speed/top/ases.py b/src/cloudflare/resources/radar/quality/speed/top/ases.py index 74eac8dabac..05994e797db 100644 --- a/src/cloudflare/resources/radar/quality/speed/top/ases.py +++ b/src/cloudflare/resources/radar/quality/speed/top/ases.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.quality.speed.top import AseListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.quality.speed.top import AseListResponse, ase_list_params +from ......types import shared_params +from ......types.radar.quality.speed.top import ase_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Ases", "AsyncAses"] diff --git a/src/cloudflare/resources/radar/quality/speed/top/locations.py b/src/cloudflare/resources/radar/quality/speed/top/locations.py index 9d51e0d7a37..bf89a840627 100644 --- a/src/cloudflare/resources/radar/quality/speed/top/locations.py +++ b/src/cloudflare/resources/radar/quality/speed/top/locations.py @@ -2,27 +2,44 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.radar.quality.speed.top import LocationListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.radar.quality.speed.top import LocationListResponse, location_list_params +from ......types import shared_params +from ......types.radar.quality.speed.top import location_list_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/quality/speed/top/top.py b/src/cloudflare/resources/radar/quality/speed/top/top.py index a1a06684338..b6578108b59 100644 --- a/src/cloudflare/resources/radar/quality/speed/top/top.py +++ b/src/cloudflare/resources/radar/quality/speed/top/top.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .ases import Ases, AsyncAses + +from ......_compat import cached_property + +from .locations import Locations, AsyncLocations + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .ases import ( Ases, AsyncAses, @@ -18,8 +39,7 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["Top", "AsyncTop"] diff --git a/src/cloudflare/resources/radar/radar.py b/src/cloudflare/resources/radar/radar.py index 8a9e1e64db7..d7362eb0f27 100644 --- a/src/cloudflare/resources/radar/radar.py +++ b/src/cloudflare/resources/radar/radar.py @@ -2,6 +2,65 @@ from __future__ import annotations +from .annotations.annotations import Annotations, AsyncAnnotations + +from ..._compat import cached_property + +from .bgp.bgp import BGP, AsyncBGP + +from .datasets.datasets import Datasets, AsyncDatasets + +from .dns.dns import DNS, AsyncDNS + +from .netflows.netflows import Netflows, AsyncNetflows + +from .searches.searches import Searches, AsyncSearches + +from .verified_bots.verified_bots import VerifiedBots, AsyncVerifiedBots + +from .as112.as112 import As112, AsyncAs112 + +from .connection_tampering.connection_tampering import ConnectionTampering, AsyncConnectionTampering + +from .email.email import Email, AsyncEmail + +from .attacks.attacks import Attacks, AsyncAttacks + +from .emails.emails import Emails, AsyncEmails + +from .entities.entities import Entities, AsyncEntities + +from .http.http import HTTP, AsyncHTTP + +from .quality.quality import Quality, AsyncQuality + +from .ranking.ranking import Ranking, AsyncRanking + +from .traffic_anomalies.traffic_anomalies import TrafficAnomalies, AsyncTrafficAnomalies + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from .annotations import ( + Annotations, + AsyncAnnotations, + AnnotationsWithRawResponse, + AsyncAnnotationsWithRawResponse, + AnnotationsWithStreamingResponse, + AsyncAnnotationsWithStreamingResponse, +) from .bgp import ( BGP, AsyncBGP, @@ -10,6 +69,14 @@ BGPWithStreamingResponse, AsyncBGPWithStreamingResponse, ) +from .datasets import ( + Datasets, + AsyncDatasets, + DatasetsWithRawResponse, + AsyncDatasetsWithRawResponse, + DatasetsWithStreamingResponse, + AsyncDatasetsWithStreamingResponse, +) from .dns import ( DNS, AsyncDNS, @@ -18,13 +85,29 @@ DNSWithStreamingResponse, AsyncDNSWithStreamingResponse, ) -from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, +from .netflows import ( + Netflows, + AsyncNetflows, + NetflowsWithRawResponse, + AsyncNetflowsWithRawResponse, + NetflowsWithStreamingResponse, + AsyncNetflowsWithStreamingResponse, +) +from .searches import ( + Searches, + AsyncSearches, + SearchesWithRawResponse, + AsyncSearchesWithRawResponse, + SearchesWithStreamingResponse, + AsyncSearchesWithStreamingResponse, +) +from .verified_bots import ( + VerifiedBots, + AsyncVerifiedBots, + VerifiedBotsWithRawResponse, + AsyncVerifiedBotsWithRawResponse, + VerifiedBotsWithStreamingResponse, + AsyncVerifiedBotsWithStreamingResponse, ) from .as112 import ( As112, @@ -34,6 +117,14 @@ As112WithStreamingResponse, AsyncAs112WithStreamingResponse, ) +from .connection_tampering import ( + ConnectionTampering, + AsyncConnectionTampering, + ConnectionTamperingWithRawResponse, + AsyncConnectionTamperingWithRawResponse, + ConnectionTamperingWithStreamingResponse, + AsyncConnectionTamperingWithStreamingResponse, +) from .email import ( Email, AsyncEmail, @@ -42,6 +133,14 @@ EmailWithStreamingResponse, AsyncEmailWithStreamingResponse, ) +from .attacks import ( + Attacks, + AsyncAttacks, + AttacksWithRawResponse, + AsyncAttacksWithRawResponse, + AttacksWithStreamingResponse, + AsyncAttacksWithStreamingResponse, +) from .emails import ( Emails, AsyncEmails, @@ -50,16 +149,22 @@ EmailsWithStreamingResponse, AsyncEmailsWithStreamingResponse, ) -from .attacks import ( - Attacks, - AsyncAttacks, - AttacksWithRawResponse, - AsyncAttacksWithRawResponse, - AttacksWithStreamingResponse, - AsyncAttacksWithStreamingResponse, +from .entities import ( + Entities, + AsyncEntities, + EntitiesWithRawResponse, + AsyncEntitiesWithRawResponse, + EntitiesWithStreamingResponse, + AsyncEntitiesWithStreamingResponse, +) +from .http import ( + HTTP, + AsyncHTTP, + HTTPWithRawResponse, + AsyncHTTPWithRawResponse, + HTTPWithStreamingResponse, + AsyncHTTPWithStreamingResponse, ) -from .bgp.bgp import BGP, AsyncBGP -from .dns.dns import DNS, AsyncDNS from .quality import ( Quality, AsyncQuality, @@ -76,67 +181,6 @@ RankingWithStreamingResponse, AsyncRankingWithStreamingResponse, ) -from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, -) -from .entities import ( - Entities, - AsyncEntities, - EntitiesWithRawResponse, - AsyncEntitiesWithRawResponse, - EntitiesWithStreamingResponse, - AsyncEntitiesWithStreamingResponse, -) -from .netflows import ( - Netflows, - AsyncNetflows, - NetflowsWithRawResponse, - AsyncNetflowsWithRawResponse, - NetflowsWithStreamingResponse, - AsyncNetflowsWithStreamingResponse, -) -from .searches import ( - Searches, - AsyncSearches, - SearchesWithRawResponse, - AsyncSearchesWithRawResponse, - SearchesWithStreamingResponse, - AsyncSearchesWithStreamingResponse, -) -from ..._compat import cached_property -from .http.http import HTTP, AsyncHTTP -from ..._resource import SyncAPIResource, AsyncAPIResource -from .annotations import ( - Annotations, - AsyncAnnotations, - AnnotationsWithRawResponse, - AsyncAnnotationsWithRawResponse, - AnnotationsWithStreamingResponse, - AsyncAnnotationsWithStreamingResponse, -) -from .as112.as112 import As112, AsyncAs112 -from .email.email import Email, AsyncEmail -from .emails.emails import Emails, AsyncEmails -from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, - VerifiedBotsWithRawResponse, - AsyncVerifiedBotsWithRawResponse, - VerifiedBotsWithStreamingResponse, - AsyncVerifiedBotsWithStreamingResponse, -) -from .attacks.attacks import Attacks, AsyncAttacks -from .quality.quality import Quality, AsyncQuality -from .ranking.ranking import Ranking, AsyncRanking -from .datasets.datasets import Datasets, AsyncDatasets -from .entities.entities import Entities, AsyncEntities -from .netflows.netflows import Netflows, AsyncNetflows -from .searches.searches import Searches, AsyncSearches from .traffic_anomalies import ( TrafficAnomalies, AsyncTrafficAnomalies, @@ -145,18 +189,7 @@ TrafficAnomaliesWithStreamingResponse, AsyncTrafficAnomaliesWithStreamingResponse, ) -from .connection_tampering import ( - ConnectionTampering, - AsyncConnectionTampering, - ConnectionTamperingWithRawResponse, - AsyncConnectionTamperingWithRawResponse, - ConnectionTamperingWithStreamingResponse, - AsyncConnectionTamperingWithStreamingResponse, -) -from .annotations.annotations import Annotations, AsyncAnnotations -from .verified_bots.verified_bots import VerifiedBots, AsyncVerifiedBots -from .traffic_anomalies.traffic_anomalies import TrafficAnomalies, AsyncTrafficAnomalies -from .connection_tampering.connection_tampering import ConnectionTampering, AsyncConnectionTampering +from ..._wrappers import ResultWrapper __all__ = ["Radar", "AsyncRadar"] diff --git a/src/cloudflare/resources/radar/ranking/__init__.py b/src/cloudflare/resources/radar/ranking/__init__.py index bc166e49140..05c4a3996c5 100644 --- a/src/cloudflare/resources/radar/ranking/__init__.py +++ b/src/cloudflare/resources/radar/ranking/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .ranking import ( - Ranking, - AsyncRanking, - RankingWithRawResponse, - AsyncRankingWithRawResponse, - RankingWithStreamingResponse, - AsyncRankingWithStreamingResponse, -) +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, TimeseriesGroupsWithRawResponse, AsyncTimeseriesGroupsWithRawResponse, TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from .ranking import Ranking, AsyncRanking +from .ranking import ( + RankingWithRawResponse, + AsyncRankingWithRawResponse, + RankingWithStreamingResponse, + AsyncRankingWithStreamingResponse, +) __all__ = [ "TimeseriesGroups", diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py index fd7dd93c2ee..5aaadd81823 100644 --- a/src/cloudflare/resources/radar/ranking/ranking.py +++ b/src/cloudflare/resources/radar/ranking/ranking.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .timeseries_groups import TimeseriesGroups, AsyncTimeseriesGroups + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .timeseries_groups import ( TimeseriesGroups, AsyncTimeseriesGroups, @@ -12,6 +29,7 @@ TimeseriesGroupsWithStreamingResponse, AsyncTimeseriesGroupsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper __all__ = ["Ranking", "AsyncRanking"] diff --git a/src/cloudflare/resources/radar/ranking/timeseries_groups.py b/src/cloudflare/resources/radar/ranking/timeseries_groups.py index f4950c9e197..5f26b76709a 100644 --- a/src/cloudflare/resources/radar/ranking/timeseries_groups.py +++ b/src/cloudflare/resources/radar/ranking/timeseries_groups.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.ranking import TimeseriesGroupListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.ranking import TimeseriesGroupListResponse, timeseries_group_list_params +from ....types import shared_params +from ....types.radar.ranking import timeseries_group_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] diff --git a/src/cloudflare/resources/radar/searches/__init__.py b/src/cloudflare/resources/radar/searches/__init__.py index 0ea4c697d7c..f83030d0db5 100644 --- a/src/cloudflare/resources/radar/searches/__init__.py +++ b/src/cloudflare/resources/radar/searches/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .globals import Globals, AsyncGlobals from .globals import ( - Globals, - AsyncGlobals, GlobalsWithRawResponse, AsyncGlobalsWithRawResponse, GlobalsWithStreamingResponse, AsyncGlobalsWithStreamingResponse, ) +from .searches import Searches, AsyncSearches from .searches import ( - Searches, - AsyncSearches, SearchesWithRawResponse, AsyncSearchesWithRawResponse, SearchesWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/searches/globals.py b/src/cloudflare/resources/radar/searches/globals.py index 6fc812abea2..46d06538d20 100644 --- a/src/cloudflare/resources/radar/searches/globals.py +++ b/src/cloudflare/resources/radar/searches/globals.py @@ -2,26 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.searches import GlobalListResponse + +from typing import Type, List + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.searches import GlobalListResponse, global_list_params +from ....types import shared_params +from ....types.radar.searches import global_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Globals", "AsyncGlobals"] diff --git a/src/cloudflare/resources/radar/searches/searches.py b/src/cloudflare/resources/radar/searches/searches.py index e90bc2b547a..940affecc9a 100644 --- a/src/cloudflare/resources/radar/searches/searches.py +++ b/src/cloudflare/resources/radar/searches/searches.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .globals import Globals, AsyncGlobals + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .globals import ( Globals, AsyncGlobals, @@ -10,8 +29,7 @@ GlobalsWithStreamingResponse, AsyncGlobalsWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["Searches", "AsyncSearches"] diff --git a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py index 00148932c6a..59c638a34dd 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .locations import Locations, AsyncLocations from .locations import ( - Locations, - AsyncLocations, LocationsWithRawResponse, AsyncLocationsWithRawResponse, LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) +from .traffic_anomalies import TrafficAnomalies, AsyncTrafficAnomalies from .traffic_anomalies import ( - TrafficAnomalies, - AsyncTrafficAnomalies, TrafficAnomaliesWithRawResponse, AsyncTrafficAnomaliesWithRawResponse, TrafficAnomaliesWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/traffic_anomalies/locations.py b/src/cloudflare/resources/radar/traffic_anomalies/locations.py index 1d2b64d78e1..5ef7bc06ce4 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/locations.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/locations.py @@ -2,27 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.radar.traffic_anomalies import LocationListResponse + +from typing import Type, Union + +from datetime import datetime + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.radar.traffic_anomalies import LocationListResponse, location_list_params +from ....types import shared_params +from ....types.radar.traffic_anomalies import location_list_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Locations", "AsyncLocations"] diff --git a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py index 75a94c384fd..d42541cde14 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py @@ -2,14 +2,43 @@ from __future__ import annotations -from typing import Type, Union, cast +import httpx + +from .locations import Locations, AsyncLocations + +from ...._compat import cached_property + +from ....types.radar import TrafficAnomalyListResponse + +from typing import Type, Union + from datetime import datetime + from typing_extensions import Literal -import httpx +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 +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.radar import traffic_anomaly_list_params from .locations import ( Locations, AsyncLocations, @@ -18,19 +47,9 @@ LocationsWithStreamingResponse, AsyncLocationsWithStreamingResponse, ) -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 TrafficAnomalyListResponse, traffic_anomaly_list_params -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["TrafficAnomalies", "AsyncTrafficAnomalies"] diff --git a/src/cloudflare/resources/radar/verified_bots/__init__.py b/src/cloudflare/resources/radar/verified_bots/__init__.py index dc87b5373f0..606d38a8e54 100644 --- a/src/cloudflare/resources/radar/verified_bots/__init__.py +++ b/src/cloudflare/resources/radar/verified_bots/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .tops import Tops, AsyncTops from .tops import ( - Tops, - AsyncTops, TopsWithRawResponse, AsyncTopsWithRawResponse, TopsWithStreamingResponse, AsyncTopsWithStreamingResponse, ) +from .verified_bots import VerifiedBots, AsyncVerifiedBots from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, VerifiedBotsWithRawResponse, AsyncVerifiedBotsWithRawResponse, VerifiedBotsWithStreamingResponse, diff --git a/src/cloudflare/resources/radar/verified_bots/tops/__init__.py b/src/cloudflare/resources/radar/verified_bots/tops/__init__.py index c0da358807e..ff53bd58165 100644 --- a/src/cloudflare/resources/radar/verified_bots/tops/__init__.py +++ b/src/cloudflare/resources/radar/verified_bots/tops/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .bots import Bots, AsyncBots from .bots import ( - Bots, - AsyncBots, BotsWithRawResponse, AsyncBotsWithRawResponse, BotsWithStreamingResponse, AsyncBotsWithStreamingResponse, ) -from .tops import ( - Tops, - AsyncTops, - TopsWithRawResponse, - AsyncTopsWithRawResponse, - TopsWithStreamingResponse, - AsyncTopsWithStreamingResponse, -) +from .categories import Categories, AsyncCategories from .categories import ( - Categories, - AsyncCategories, CategoriesWithRawResponse, AsyncCategoriesWithRawResponse, CategoriesWithStreamingResponse, AsyncCategoriesWithStreamingResponse, ) +from .tops import Tops, AsyncTops +from .tops import ( + TopsWithRawResponse, + AsyncTopsWithRawResponse, + TopsWithStreamingResponse, + AsyncTopsWithStreamingResponse, +) __all__ = [ "Bots", diff --git a/src/cloudflare/resources/radar/verified_bots/tops/bots.py b/src/cloudflare/resources/radar/verified_bots/tops/bots.py index 3b958eb403f..49cbe5901d1 100644 --- a/src/cloudflare/resources/radar/verified_bots/tops/bots.py +++ b/src/cloudflare/resources/radar/verified_bots/tops/bots.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.verified_bots.tops import BotListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.verified_bots.tops import BotListResponse, bot_list_params +from .....types import shared_params +from .....types.radar.verified_bots.tops import bot_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Bots", "AsyncBots"] diff --git a/src/cloudflare/resources/radar/verified_bots/tops/categories.py b/src/cloudflare/resources/radar/verified_bots/tops/categories.py index 70bd9963190..39fb9784286 100644 --- a/src/cloudflare/resources/radar/verified_bots/tops/categories.py +++ b/src/cloudflare/resources/radar/verified_bots/tops/categories.py @@ -2,27 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.radar.verified_bots.tops import CategoryListResponse + +from typing import Type, List, Union + +from datetime import datetime + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.radar.verified_bots.tops import CategoryListResponse, category_list_params +from .....types import shared_params +from .....types.radar.verified_bots.tops import category_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Categories", "AsyncCategories"] diff --git a/src/cloudflare/resources/radar/verified_bots/tops/tops.py b/src/cloudflare/resources/radar/verified_bots/tops/tops.py index 84f566a0934..eac21c4dcd5 100644 --- a/src/cloudflare/resources/radar/verified_bots/tops/tops.py +++ b/src/cloudflare/resources/radar/verified_bots/tops/tops.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .bots import Bots, AsyncBots + +from ....._compat import cached_property + +from .categories import Categories, AsyncCategories + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .bots import ( Bots, AsyncBots, @@ -18,8 +39,7 @@ CategoriesWithStreamingResponse, AsyncCategoriesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Tops", "AsyncTops"] diff --git a/src/cloudflare/resources/radar/verified_bots/verified_bots.py b/src/cloudflare/resources/radar/verified_bots/verified_bots.py index d7d7a43587d..d956c897b42 100644 --- a/src/cloudflare/resources/radar/verified_bots/verified_bots.py +++ b/src/cloudflare/resources/radar/verified_bots/verified_bots.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .tops.tops import Tops, AsyncTops + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .tops import ( Tops, AsyncTops, @@ -10,9 +29,7 @@ TopsWithStreamingResponse, AsyncTopsWithStreamingResponse, ) -from .tops.tops import Tops, AsyncTops -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["VerifiedBots", "AsyncVerifiedBots"] diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py index 7ddf7a927b9..b94def2e1c1 100644 --- a/src/cloudflare/resources/rate_limits.py +++ b/src/cloudflare/resources/rate_limits.py @@ -2,31 +2,49 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ..types import ( - RateLimitGetResponse, - RateLimitListResponse, - RateLimitUpdateResponse, - rate_limit_list_params, - rate_limit_update_params, -) -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 ..types import RateLimitUpdateResponse, RateLimitListResponse, RateLimitGetResponse + +from typing import Optional, Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import rate_limit_update_params +from ..types import rate_limit_list_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["RateLimits", "AsyncRateLimits"] diff --git a/src/cloudflare/resources/registrar/__init__.py b/src/cloudflare/resources/registrar/__init__.py index 6198c7ecb4c..44b771c35a0 100644 --- a/src/cloudflare/resources/registrar/__init__.py +++ b/src/cloudflare/resources/registrar/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .domains import Domains, AsyncDomains from .domains import ( - Domains, - AsyncDomains, DomainsWithRawResponse, AsyncDomainsWithRawResponse, DomainsWithStreamingResponse, AsyncDomainsWithStreamingResponse, ) +from .registrar import Registrar, AsyncRegistrar from .registrar import ( - Registrar, - AsyncRegistrar, RegistrarWithRawResponse, AsyncRegistrarWithRawResponse, RegistrarWithStreamingResponse, diff --git a/src/cloudflare/resources/registrar/domains.py b/src/cloudflare/resources/registrar/domains.py index e6ca89d6c7f..bf4a1ff0d35 100644 --- a/src/cloudflare/resources/registrar/domains.py +++ b/src/cloudflare/resources/registrar/domains.py @@ -2,25 +2,48 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.registrar import DomainUpdateResponse, DomainListResponse, DomainGetResponse + +from typing import Optional, Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.registrar import DomainGetResponse, DomainListResponse, DomainUpdateResponse, domain_update_params +from ...types import shared_params +from ...types.registrar import domain_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Domains", "AsyncDomains"] diff --git a/src/cloudflare/resources/registrar/registrar.py b/src/cloudflare/resources/registrar/registrar.py index 795d77fc637..bb21e53ae66 100644 --- a/src/cloudflare/resources/registrar/registrar.py +++ b/src/cloudflare/resources/registrar/registrar.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .domains import Domains, AsyncDomains + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .domains import ( Domains, AsyncDomains, @@ -10,8 +29,7 @@ DomainsWithStreamingResponse, AsyncDomainsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Registrar", "AsyncRegistrar"] diff --git a/src/cloudflare/resources/request_tracers/__init__.py b/src/cloudflare/resources/request_tracers/__init__.py index 5bbfc02ae74..734246535f9 100644 --- a/src/cloudflare/resources/request_tracers/__init__.py +++ b/src/cloudflare/resources/request_tracers/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .traces import Traces, AsyncTraces from .traces import ( - Traces, - AsyncTraces, TracesWithRawResponse, AsyncTracesWithRawResponse, TracesWithStreamingResponse, AsyncTracesWithStreamingResponse, ) +from .request_tracers import RequestTracers, AsyncRequestTracers from .request_tracers import ( - RequestTracers, - AsyncRequestTracers, RequestTracersWithRawResponse, AsyncRequestTracersWithRawResponse, RequestTracersWithStreamingResponse, diff --git a/src/cloudflare/resources/request_tracers/request_tracers.py b/src/cloudflare/resources/request_tracers/request_tracers.py index fb0a8002edc..73cfa6aef72 100644 --- a/src/cloudflare/resources/request_tracers/request_tracers.py +++ b/src/cloudflare/resources/request_tracers/request_tracers.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .traces import Traces, AsyncTraces + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .traces import ( Traces, AsyncTraces, @@ -10,8 +29,7 @@ TracesWithStreamingResponse, AsyncTracesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["RequestTracers", "AsyncRequestTracers"] diff --git a/src/cloudflare/resources/request_tracers/traces.py b/src/cloudflare/resources/request_tracers/traces.py index 2966e8b3632..edbd647620f 100644 --- a/src/cloudflare/resources/request_tracers/traces.py +++ b/src/cloudflare/resources/request_tracers/traces.py @@ -2,25 +2,40 @@ from __future__ import annotations -from typing import Dict, Type, cast - 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 ...types.request_tracers import TraceCreateResponse, trace_create_params + +from typing import Type, Dict + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.request_tracers import TraceCreateResponse, trace_create_params +from ...types import shared_params +from ...types.request_tracers import trace_create_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Traces", "AsyncTraces"] diff --git a/src/cloudflare/resources/roles.py b/src/cloudflare/resources/roles.py index 1f23c53ecdf..b38ce1a45da 100644 --- a/src/cloudflare/resources/roles.py +++ b/src/cloudflare/resources/roles.py @@ -2,24 +2,43 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast - import httpx -from ..types import RoleGetResponse, RoleAccountRolesListRolesResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import RoleAccountRolesListRolesResponse, RoleGetResponse + +from typing import Type, Optional + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +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__ = ["Roles", "AsyncRoles"] diff --git a/src/cloudflare/resources/rules/__init__.py b/src/cloudflare/resources/rules/__init__.py index eb5c41cb6e9..0c74dd13373 100644 --- a/src/cloudflare/resources/rules/__init__.py +++ b/src/cloudflare/resources/rules/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .lists import Lists, AsyncLists from .lists import ( - Lists, - AsyncLists, ListsWithRawResponse, AsyncListsWithRawResponse, ListsWithStreamingResponse, AsyncListsWithStreamingResponse, ) +from .rules import Rules, AsyncRules from .rules import ( - Rules, - AsyncRules, RulesWithRawResponse, AsyncRulesWithRawResponse, RulesWithStreamingResponse, diff --git a/src/cloudflare/resources/rules/lists/__init__.py b/src/cloudflare/resources/rules/lists/__init__.py index 8308526acf1..ed64a7272a2 100644 --- a/src/cloudflare/resources/rules/lists/__init__.py +++ b/src/cloudflare/resources/rules/lists/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .bulk_operations import BulkOperations, AsyncBulkOperations +from .bulk_operations import ( + BulkOperationsWithRawResponse, + AsyncBulkOperationsWithRawResponse, + BulkOperationsWithStreamingResponse, + AsyncBulkOperationsWithStreamingResponse, +) +from .items import Items, AsyncItems from .items import ( - Items, - AsyncItems, ItemsWithRawResponse, AsyncItemsWithRawResponse, ItemsWithStreamingResponse, AsyncItemsWithStreamingResponse, ) +from .lists import Lists, AsyncLists from .lists import ( - Lists, - AsyncLists, ListsWithRawResponse, AsyncListsWithRawResponse, ListsWithStreamingResponse, AsyncListsWithStreamingResponse, ) -from .bulk_operations import ( - BulkOperations, - AsyncBulkOperations, - BulkOperationsWithRawResponse, - AsyncBulkOperationsWithRawResponse, - BulkOperationsWithStreamingResponse, - AsyncBulkOperationsWithStreamingResponse, -) __all__ = [ "BulkOperations", diff --git a/src/cloudflare/resources/rules/lists/bulk_operations.py b/src/cloudflare/resources/rules/lists/bulk_operations.py index 17bc75780b3..5766fc0c23f 100644 --- a/src/cloudflare/resources/rules/lists/bulk_operations.py +++ b/src/cloudflare/resources/rules/lists/bulk_operations.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.rules.lists import BulkOperationGetResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.rules.lists import BulkOperationGetResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["BulkOperations", "AsyncBulkOperations"] diff --git a/src/cloudflare/resources/rules/lists/items.py b/src/cloudflare/resources/rules/lists/items.py index 9ec8ae6a3e9..521cab7c566 100644 --- a/src/cloudflare/resources/rules/lists/items.py +++ b/src/cloudflare/resources/rules/lists/items.py @@ -2,36 +2,63 @@ 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 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.rules.lists import ( - ItemGetResponse, ItemDeleteResponse, - ItemListsGetListItemsResponse, + ItemGetResponse, ItemListsCreateListItemsResponse, + ItemListsGetListItemsResponse, ItemListsUpdateAllListItemsResponse, item_delete_params, - item_lists_get_list_items_params, item_lists_create_list_items_params, item_lists_update_all_list_items_params, ) +from typing import Type, Optional, Iterable + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.rules.lists import item_delete_params +from ....types.rules.lists import item_lists_create_list_items_params +from ....types.rules.lists import item_lists_get_list_items_params +from ....types.rules.lists import item_lists_update_all_list_items_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Items", "AsyncItems"] diff --git a/src/cloudflare/resources/rules/lists/lists.py b/src/cloudflare/resources/rules/lists/lists.py index cb3999ef441..c909a595e6b 100644 --- a/src/cloudflare/resources/rules/lists/lists.py +++ b/src/cloudflare/resources/rules/lists/lists.py @@ -2,42 +2,50 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx -from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .bulk_operations import BulkOperations, AsyncBulkOperations + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from .items import Items, AsyncItems + +from ....types.rules import ( + ListUpdateResponse, + ListDeleteResponse, + ListGetResponse, + ListListsCreateAListResponse, + ListListsGetListsResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.rules import ( - ListGetResponse, - ListDeleteResponse, - ListUpdateResponse, - ListListsGetListsResponse, - ListListsCreateAListResponse, - list_update_params, - list_lists_create_a_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.rules import list_update_params +from ....types.rules import list_lists_create_a_list_params from .bulk_operations import ( BulkOperations, AsyncBulkOperations, @@ -46,6 +54,25 @@ BulkOperationsWithStreamingResponse, AsyncBulkOperationsWithStreamingResponse, ) +from .items import ( + Items, + AsyncItems, + ItemsWithRawResponse, + AsyncItemsWithRawResponse, + ItemsWithStreamingResponse, + AsyncItemsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Lists", "AsyncLists"] diff --git a/src/cloudflare/resources/rules/rules.py b/src/cloudflare/resources/rules/rules.py index 0b6c3d7b44f..ec48e2aa83f 100644 --- a/src/cloudflare/resources/rules/rules.py +++ b/src/cloudflare/resources/rules/rules.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .lists.lists import Lists, AsyncLists + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .lists import ( Lists, AsyncLists, @@ -10,9 +29,7 @@ ListsWithStreamingResponse, AsyncListsWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .lists.lists import Lists, AsyncLists +from ..._wrappers import ResultWrapper __all__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/rulesets/__init__.py b/src/cloudflare/resources/rulesets/__init__.py index 547937b844a..ecb60471cd2 100644 --- a/src/cloudflare/resources/rulesets/__init__.py +++ b/src/cloudflare/resources/rulesets/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .phases import Phases, AsyncPhases from .phases import ( - Phases, - AsyncPhases, PhasesWithRawResponse, AsyncPhasesWithRawResponse, PhasesWithStreamingResponse, AsyncPhasesWithStreamingResponse, ) -from .rulesets import ( - Rulesets, - AsyncRulesets, - RulesetsWithRawResponse, - AsyncRulesetsWithRawResponse, - RulesetsWithStreamingResponse, - AsyncRulesetsWithStreamingResponse, +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) +from .versions import Versions, AsyncVersions from .versions import ( - Versions, - AsyncVersions, VersionsWithRawResponse, AsyncVersionsWithRawResponse, VersionsWithStreamingResponse, AsyncVersionsWithStreamingResponse, ) +from .rulesets import Rulesets, AsyncRulesets +from .rulesets import ( + RulesetsWithRawResponse, + AsyncRulesetsWithRawResponse, + RulesetsWithStreamingResponse, + AsyncRulesetsWithStreamingResponse, +) __all__ = [ "Phases", diff --git a/src/cloudflare/resources/rulesets/phases.py b/src/cloudflare/resources/rulesets/phases.py index eb6667dbb22..9d76457fea7 100644 --- a/src/cloudflare/resources/rulesets/phases.py +++ b/src/cloudflare/resources/rulesets/phases.py @@ -2,25 +2,41 @@ 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 ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.rulesets import PhaseGetResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.rulesets import PhaseGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Phases", "AsyncPhases"] diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py index 9c2c92e9de9..60857f9d630 100644 --- a/src/cloudflare/resources/rulesets/rules.py +++ b/src/cloudflare/resources/rulesets/rules.py @@ -2,32 +2,53 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from typing_extensions import Literal + +from ...types.rulesets import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, + rule_update_params, + rule_account_rulesets_create_an_account_ruleset_rule_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.rulesets import ( - RuleDeleteResponse, - RuleUpdateResponse, - RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, - rule_update_params, - rule_account_rulesets_create_an_account_ruleset_rule_params, -) +from ...types import shared_params +from ...types.rulesets import rule_update_params +from ...types.rulesets import rule_account_rulesets_create_an_account_ruleset_rule_params +from ..._wrappers import ResultWrapper +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/rulesets/rulesets.py b/src/cloudflare/resources/rulesets/rulesets.py index dbc477d4a51..5f742a2c4e7 100644 --- a/src/cloudflare/resources/rulesets/rulesets.py +++ b/src/cloudflare/resources/rulesets/rulesets.py @@ -2,19 +2,53 @@ from __future__ import annotations -from typing import Type, Iterable, cast +import httpx + +from .phases import Phases, AsyncPhases + +from ..._compat import cached_property + +from .rules import Rules, AsyncRules + +from .versions.versions import Versions, AsyncVersions + +from ...types import ( + RulesetCreateResponse, + RulesetUpdateResponse, + RulesetListResponse, + RulesetGetResponse, + ruleset_create_params, + ruleset_update_params, +) + +from typing import Type, Iterable + from typing_extensions import Literal -import httpx +from ..._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, +) -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types import ruleset_create_params +from ...types import ruleset_update_params from .phases import ( Phases, AsyncPhases, @@ -23,16 +57,14 @@ PhasesWithStreamingResponse, AsyncPhasesWithStreamingResponse, ) -from ...types import ( - RulesetGetResponse, - RulesetListResponse, - RulesetCreateResponse, - RulesetUpdateResponse, - ruleset_create_params, - ruleset_update_params, +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven -from ..._utils import maybe_transform from .versions import ( Versions, AsyncVersions, @@ -41,19 +73,15 @@ VersionsWithStreamingResponse, AsyncVersionsWithStreamingResponse, ) -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 .versions.versions import Versions, AsyncVersions +from typing import cast +from typing import cast +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__ = ["Rulesets", "AsyncRulesets"] diff --git a/src/cloudflare/resources/rulesets/versions/__init__.py b/src/cloudflare/resources/rulesets/versions/__init__.py index 40f95473b86..503af5dc4e9 100644 --- a/src/cloudflare/resources/rulesets/versions/__init__.py +++ b/src/cloudflare/resources/rulesets/versions/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .by_tags import ByTags, AsyncByTags from .by_tags import ( - ByTags, - AsyncByTags, ByTagsWithRawResponse, AsyncByTagsWithRawResponse, ByTagsWithStreamingResponse, AsyncByTagsWithStreamingResponse, ) +from .versions import Versions, AsyncVersions from .versions import ( - Versions, - AsyncVersions, VersionsWithRawResponse, AsyncVersionsWithRawResponse, VersionsWithStreamingResponse, diff --git a/src/cloudflare/resources/rulesets/versions/by_tags.py b/src/cloudflare/resources/rulesets/versions/by_tags.py index 489ed61dcec..76ea24b7f41 100644 --- a/src/cloudflare/resources/rulesets/versions/by_tags.py +++ b/src/cloudflare/resources/rulesets/versions/by_tags.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.rulesets.versions import ByTagGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.rulesets.versions import ByTagGetResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ByTags", "AsyncByTags"] diff --git a/src/cloudflare/resources/rulesets/versions/versions.py b/src/cloudflare/resources/rulesets/versions/versions.py index 2b74c7d0be3..1f884815a98 100644 --- a/src/cloudflare/resources/rulesets/versions/versions.py +++ b/src/cloudflare/resources/rulesets/versions/versions.py @@ -2,32 +2,51 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .by_tags import ( - ByTags, - AsyncByTags, - ByTagsWithRawResponse, - AsyncByTagsWithRawResponse, - ByTagsWithStreamingResponse, - AsyncByTagsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven +from .by_tags import ByTags, AsyncByTags + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.rulesets import VersionAccountRulesetsListAnAccountRulesetSVersionsResponse, VersionGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from .by_tags import ( + ByTags, + AsyncByTags, + ByTagsWithRawResponse, + AsyncByTagsWithRawResponse, + ByTagsWithStreamingResponse, + AsyncByTagsWithStreamingResponse, ) -from ....types.rulesets import VersionGetResponse, VersionAccountRulesetsListAnAccountRulesetSVersionsResponse +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Versions", "AsyncVersions"] diff --git a/src/cloudflare/resources/rum/__init__.py b/src/cloudflare/resources/rum/__init__.py index de5fa14e2d4..fceb7d802d1 100644 --- a/src/cloudflare/resources/rum/__init__.py +++ b/src/cloudflare/resources/rum/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .rum import ( - Rum, - AsyncRum, - RumWithRawResponse, - AsyncRumWithRawResponse, - RumWithStreamingResponse, - AsyncRumWithStreamingResponse, +from .site_infos import SiteInfos, AsyncSiteInfos +from .site_infos import ( + SiteInfosWithRawResponse, + AsyncSiteInfosWithRawResponse, + SiteInfosWithStreamingResponse, + AsyncSiteInfosWithStreamingResponse, ) +from .rules import Rules, AsyncRules from .rules import ( - Rules, - AsyncRules, RulesWithRawResponse, AsyncRulesWithRawResponse, RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) -from .site_infos import ( - SiteInfos, - AsyncSiteInfos, - SiteInfosWithRawResponse, - AsyncSiteInfosWithRawResponse, - SiteInfosWithStreamingResponse, - AsyncSiteInfosWithStreamingResponse, -) +from .rum import Rum, AsyncRum +from .rum import RumWithRawResponse, AsyncRumWithRawResponse, RumWithStreamingResponse, AsyncRumWithStreamingResponse __all__ = [ "SiteInfos", diff --git a/src/cloudflare/resources/rum/rules.py b/src/cloudflare/resources/rum/rules.py index b817cd4388b..b8b33a826b9 100644 --- a/src/cloudflare/resources/rum/rules.py +++ b/src/cloudflare/resources/rum/rules.py @@ -2,32 +2,47 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.rum import RuleCreateResponse, RuleUpdateResponse, RuleListResponse, RuleDeleteResponse + +from typing import Type, Optional, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.rum import ( - RuleListResponse, - RuleCreateResponse, - RuleDeleteResponse, - RuleUpdateResponse, - 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.rum import rule_create_params +from ...types.rum import rule_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/rum/rum.py b/src/cloudflare/resources/rum/rum.py index 89dcdc5f8eb..cbb0d384af2 100644 --- a/src/cloudflare/resources/rum/rum.py +++ b/src/cloudflare/resources/rum/rum.py @@ -2,15 +2,27 @@ from __future__ import annotations -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) +from .site_infos import SiteInfos, AsyncSiteInfos + from ..._compat import cached_property + +from .rules import Rules, AsyncRules + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .site_infos import ( SiteInfos, AsyncSiteInfos, @@ -19,7 +31,15 @@ SiteInfosWithStreamingResponse, AsyncSiteInfosWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Rum", "AsyncRum"] diff --git a/src/cloudflare/resources/rum/site_infos.py b/src/cloudflare/resources/rum/site_infos.py index 3ebecd60e51..8e076f9397b 100644 --- a/src/cloudflare/resources/rum/site_infos.py +++ b/src/cloudflare/resources/rum/site_infos.py @@ -2,35 +2,58 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.rum import ( + SiteInfoCreateResponse, + SiteInfoUpdateResponse, + SiteInfoListResponse, + SiteInfoDeleteResponse, + SiteInfoGetResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.rum import ( - SiteInfoGetResponse, - SiteInfoListResponse, - SiteInfoCreateResponse, - SiteInfoDeleteResponse, - SiteInfoUpdateResponse, - site_info_list_params, - site_info_create_params, - site_info_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +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 ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["SiteInfos", "AsyncSiteInfos"] diff --git a/src/cloudflare/resources/secondary_dns/__init__.py b/src/cloudflare/resources/secondary_dns/__init__.py index 791b35d3b42..f56fd749cfb 100644 --- a/src/cloudflare/resources/secondary_dns/__init__.py +++ b/src/cloudflare/resources/secondary_dns/__init__.py @@ -1,56 +1,49 @@ # File generated from our OpenAPI spec by Stainless. +from .force_axfrs import ForceAxfrs, AsyncForceAxfrs +from .force_axfrs import ( + ForceAxfrsWithRawResponse, + AsyncForceAxfrsWithRawResponse, + ForceAxfrsWithStreamingResponse, + AsyncForceAxfrsWithStreamingResponse, +) +from .incomings import Incomings, AsyncIncomings +from .incomings import ( + IncomingsWithRawResponse, + AsyncIncomingsWithRawResponse, + IncomingsWithStreamingResponse, + AsyncIncomingsWithStreamingResponse, +) +from .outgoings import Outgoings, AsyncOutgoings +from .outgoings import ( + OutgoingsWithRawResponse, + AsyncOutgoingsWithRawResponse, + OutgoingsWithStreamingResponse, + AsyncOutgoingsWithStreamingResponse, +) +from .acls import ACLs, AsyncACLs from .acls import ( - ACLs, - AsyncACLs, ACLsWithRawResponse, AsyncACLsWithRawResponse, ACLsWithStreamingResponse, AsyncACLsWithStreamingResponse, ) +from .peers import Peers, AsyncPeers from .peers import ( - Peers, - AsyncPeers, PeersWithRawResponse, AsyncPeersWithRawResponse, PeersWithStreamingResponse, AsyncPeersWithStreamingResponse, ) +from .tsigs import Tsigs, AsyncTsigs from .tsigs import ( - Tsigs, - AsyncTsigs, TsigsWithRawResponse, AsyncTsigsWithRawResponse, TsigsWithStreamingResponse, AsyncTsigsWithStreamingResponse, ) -from .incomings import ( - Incomings, - AsyncIncomings, - IncomingsWithRawResponse, - AsyncIncomingsWithRawResponse, - IncomingsWithStreamingResponse, - AsyncIncomingsWithStreamingResponse, -) -from .outgoings import ( - Outgoings, - AsyncOutgoings, - OutgoingsWithRawResponse, - AsyncOutgoingsWithRawResponse, - OutgoingsWithStreamingResponse, - AsyncOutgoingsWithStreamingResponse, -) -from .force_axfrs import ( - ForceAxfrs, - AsyncForceAxfrs, - ForceAxfrsWithRawResponse, - AsyncForceAxfrsWithRawResponse, - ForceAxfrsWithStreamingResponse, - AsyncForceAxfrsWithStreamingResponse, -) +from .secondary_dns import SecondaryDNS, AsyncSecondaryDNS from .secondary_dns import ( - SecondaryDNS, - AsyncSecondaryDNS, SecondaryDNSWithRawResponse, AsyncSecondaryDNSWithRawResponse, SecondaryDNSWithStreamingResponse, diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py index 9bc9399f3b3..8882a172c07 100644 --- a/src/cloudflare/resources/secondary_dns/acls.py +++ b/src/cloudflare/resources/secondary_dns/acls.py @@ -2,33 +2,55 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.secondary_dns import ( + ACLUpdateResponse, + ACLDeleteResponse, + ACLGetResponse, + ACLSecondaryDNSACLCreateACLResponse, + ACLSecondaryDNSACLListACLsResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.secondary_dns import ( - ACLGetResponse, - ACLDeleteResponse, - ACLUpdateResponse, - ACLSecondaryDNSACLListACLsResponse, - ACLSecondaryDNSACLCreateACLResponse, - acl_update_params, - acl_secondary_dns_acl_create_acl_params, -) +from ...types import shared_params +from ...types.secondary_dns import acl_update_params +from ...types.secondary_dns import acl_secondary_dns_acl_create_acl_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["ACLs", "AsyncACLs"] diff --git a/src/cloudflare/resources/secondary_dns/force_axfrs.py b/src/cloudflare/resources/secondary_dns/force_axfrs.py index 024be3350c2..9b3aa1351d1 100644 --- a/src/cloudflare/resources/secondary_dns/force_axfrs.py +++ b/src/cloudflare/resources/secondary_dns/force_axfrs.py @@ -2,23 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ...types.secondary_dns import ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ForceAxfrs", "AsyncForceAxfrs"] diff --git a/src/cloudflare/resources/secondary_dns/incomings.py b/src/cloudflare/resources/secondary_dns/incomings.py index 0247e8a1cf6..0cc5652b8d5 100644 --- a/src/cloudflare/resources/secondary_dns/incomings.py +++ b/src/cloudflare/resources/secondary_dns/incomings.py @@ -2,32 +2,52 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.secondary_dns import ( + IncomingDeleteResponse, + IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, + IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, + IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, +) + +from typing import Type, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.secondary_dns import ( - IncomingDeleteResponse, - IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, - IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, - IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, - incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params, - incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params, -) +from ...types import shared_params +from ...types.secondary_dns import incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params +from ...types.secondary_dns import incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Incomings", "AsyncIncomings"] diff --git a/src/cloudflare/resources/secondary_dns/outgoings/__init__.py b/src/cloudflare/resources/secondary_dns/outgoings/__init__.py index 790759abdbb..c1ec5590284 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/__init__.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/__init__.py @@ -1,45 +1,40 @@ # File generated from our OpenAPI spec by Stainless. +from .disables import Disables, AsyncDisables +from .disables import ( + DisablesWithRawResponse, + AsyncDisablesWithRawResponse, + DisablesWithStreamingResponse, + AsyncDisablesWithStreamingResponse, +) +from .enables import Enables, AsyncEnables from .enables import ( - Enables, - AsyncEnables, EnablesWithRawResponse, AsyncEnablesWithRawResponse, EnablesWithStreamingResponse, AsyncEnablesWithStreamingResponse, ) -from .disables import ( - Disables, - AsyncDisables, - DisablesWithRawResponse, - AsyncDisablesWithRawResponse, - DisablesWithStreamingResponse, - AsyncDisablesWithStreamingResponse, +from .force_notifies import ForceNotifies, AsyncForceNotifies +from .force_notifies import ( + ForceNotifiesWithRawResponse, + AsyncForceNotifiesWithRawResponse, + ForceNotifiesWithStreamingResponse, + AsyncForceNotifiesWithStreamingResponse, ) +from .statuses import Statuses, AsyncStatuses from .statuses import ( - Statuses, - AsyncStatuses, StatusesWithRawResponse, AsyncStatusesWithRawResponse, StatusesWithStreamingResponse, AsyncStatusesWithStreamingResponse, ) +from .outgoings import Outgoings, AsyncOutgoings from .outgoings import ( - Outgoings, - AsyncOutgoings, OutgoingsWithRawResponse, AsyncOutgoingsWithRawResponse, OutgoingsWithStreamingResponse, AsyncOutgoingsWithStreamingResponse, ) -from .force_notifies import ( - ForceNotifies, - AsyncForceNotifies, - ForceNotifiesWithRawResponse, - AsyncForceNotifiesWithRawResponse, - ForceNotifiesWithStreamingResponse, - AsyncForceNotifiesWithStreamingResponse, -) __all__ = [ "Disables", diff --git a/src/cloudflare/resources/secondary_dns/outgoings/disables.py b/src/cloudflare/resources/secondary_dns/outgoings/disables.py index 3df15bce030..02561c6a2b1 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/disables.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/disables.py @@ -2,23 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ....types.secondary_dns.outgoings import DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Disables", "AsyncDisables"] diff --git a/src/cloudflare/resources/secondary_dns/outgoings/enables.py b/src/cloudflare/resources/secondary_dns/outgoings/enables.py index 7ed9093d896..9e4608f6349 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/enables.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/enables.py @@ -2,23 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ....types.secondary_dns.outgoings import EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Enables", "AsyncEnables"] diff --git a/src/cloudflare/resources/secondary_dns/outgoings/force_notifies.py b/src/cloudflare/resources/secondary_dns/outgoings/force_notifies.py index 0e00bcb3648..77f1d8e837d 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/force_notifies.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/force_notifies.py @@ -2,23 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ....types.secondary_dns.outgoings import ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ForceNotifies", "AsyncForceNotifies"] diff --git a/src/cloudflare/resources/secondary_dns/outgoings/outgoings.py b/src/cloudflare/resources/secondary_dns/outgoings/outgoings.py index 91d6a341d24..e0cf630cc78 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/outgoings.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/outgoings.py @@ -2,18 +2,51 @@ from __future__ import annotations -from typing import Type, Iterable, cast - import httpx -from .enables import ( - Enables, - AsyncEnables, - EnablesWithRawResponse, - AsyncEnablesWithRawResponse, - EnablesWithStreamingResponse, - AsyncEnablesWithStreamingResponse, +from .disables import Disables, AsyncDisables + +from ...._compat import cached_property + +from .enables import Enables, AsyncEnables + +from .force_notifies import ForceNotifies, AsyncForceNotifies + +from .statuses import Statuses, AsyncStatuses + +from ....types.secondary_dns import ( + OutgoingDeleteResponse, + OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, + OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, + OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, +) + +from typing import Type, Iterable + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.secondary_dns import outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params +from ....types.secondary_dns import outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params from .disables import ( Disables, AsyncDisables, @@ -22,25 +55,14 @@ DisablesWithStreamingResponse, AsyncDisablesWithStreamingResponse, ) -from .statuses import ( - Statuses, - AsyncStatuses, - StatusesWithRawResponse, - AsyncStatusesWithRawResponse, - StatusesWithStreamingResponse, - AsyncStatusesWithStreamingResponse, -) -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 .enables import ( + Enables, + AsyncEnables, + EnablesWithRawResponse, + AsyncEnablesWithRawResponse, + EnablesWithStreamingResponse, + AsyncEnablesWithStreamingResponse, ) -from ...._wrappers import ResultWrapper from .force_notifies import ( ForceNotifies, AsyncForceNotifies, @@ -49,17 +71,23 @@ ForceNotifiesWithStreamingResponse, AsyncForceNotifiesWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.secondary_dns import ( - OutgoingDeleteResponse, - OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, - OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, - OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, - outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params, - outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params, +from .statuses import ( + Statuses, + AsyncStatuses, + StatusesWithRawResponse, + AsyncStatusesWithRawResponse, + StatusesWithStreamingResponse, + AsyncStatusesWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Outgoings", "AsyncOutgoings"] diff --git a/src/cloudflare/resources/secondary_dns/outgoings/statuses.py b/src/cloudflare/resources/secondary_dns/outgoings/statuses.py index 1c67884d12a..992374aed37 100644 --- a/src/cloudflare/resources/secondary_dns/outgoings/statuses.py +++ b/src/cloudflare/resources/secondary_dns/outgoings/statuses.py @@ -2,23 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ....types.secondary_dns.outgoings import StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Statuses", "AsyncStatuses"] diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py index e73e4775f0c..6b8c7082c1a 100644 --- a/src/cloudflare/resources/secondary_dns/peers.py +++ b/src/cloudflare/resources/secondary_dns/peers.py @@ -2,33 +2,55 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.secondary_dns import ( + PeerUpdateResponse, + PeerDeleteResponse, + PeerGetResponse, + PeerSecondaryDNSPeerCreatePeerResponse, + PeerSecondaryDNSPeerListPeersResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.secondary_dns import ( - PeerGetResponse, - PeerDeleteResponse, - PeerUpdateResponse, - PeerSecondaryDNSPeerListPeersResponse, - PeerSecondaryDNSPeerCreatePeerResponse, - peer_update_params, - peer_secondary_dns_peer_create_peer_params, -) +from ...types import shared_params +from ...types.secondary_dns import peer_update_params +from ...types.secondary_dns import peer_secondary_dns_peer_create_peer_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Peers", "AsyncPeers"] diff --git a/src/cloudflare/resources/secondary_dns/secondary_dns.py b/src/cloudflare/resources/secondary_dns/secondary_dns.py index 2acd07e0a59..3ad5c6d260f 100644 --- a/src/cloudflare/resources/secondary_dns/secondary_dns.py +++ b/src/cloudflare/resources/secondary_dns/secondary_dns.py @@ -2,6 +2,59 @@ from __future__ import annotations +from .force_axfrs import ForceAxfrs, AsyncForceAxfrs + +from ..._compat import cached_property + +from .incomings import Incomings, AsyncIncomings + +from .outgoings.outgoings import Outgoings, AsyncOutgoings + +from .acls import ACLs, AsyncACLs + +from .peers import Peers, AsyncPeers + +from .tsigs import Tsigs, AsyncTsigs + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from .force_axfrs import ( + ForceAxfrs, + AsyncForceAxfrs, + ForceAxfrsWithRawResponse, + AsyncForceAxfrsWithRawResponse, + ForceAxfrsWithStreamingResponse, + AsyncForceAxfrsWithStreamingResponse, +) +from .incomings import ( + Incomings, + AsyncIncomings, + IncomingsWithRawResponse, + AsyncIncomingsWithRawResponse, + IncomingsWithStreamingResponse, + AsyncIncomingsWithStreamingResponse, +) +from .outgoings import ( + Outgoings, + AsyncOutgoings, + OutgoingsWithRawResponse, + AsyncOutgoingsWithRawResponse, + OutgoingsWithStreamingResponse, + AsyncOutgoingsWithStreamingResponse, +) from .acls import ( ACLs, AsyncACLs, @@ -26,33 +79,7 @@ TsigsWithStreamingResponse, AsyncTsigsWithStreamingResponse, ) -from ..._compat import cached_property -from .incomings import ( - Incomings, - AsyncIncomings, - IncomingsWithRawResponse, - AsyncIncomingsWithRawResponse, - IncomingsWithStreamingResponse, - AsyncIncomingsWithStreamingResponse, -) -from .outgoings import ( - Outgoings, - AsyncOutgoings, - OutgoingsWithRawResponse, - AsyncOutgoingsWithRawResponse, - OutgoingsWithStreamingResponse, - AsyncOutgoingsWithStreamingResponse, -) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .force_axfrs import ( - ForceAxfrs, - AsyncForceAxfrs, - ForceAxfrsWithRawResponse, - AsyncForceAxfrsWithRawResponse, - ForceAxfrsWithStreamingResponse, - AsyncForceAxfrsWithStreamingResponse, -) -from .outgoings.outgoings import Outgoings, AsyncOutgoings +from ..._wrappers import ResultWrapper __all__ = ["SecondaryDNS", "AsyncSecondaryDNS"] diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py index e8a0846b5cc..14260a2c701 100644 --- a/src/cloudflare/resources/secondary_dns/tsigs.py +++ b/src/cloudflare/resources/secondary_dns/tsigs.py @@ -2,33 +2,55 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.secondary_dns import ( + TsigUpdateResponse, + TsigDeleteResponse, + TsigGetResponse, + TsigSecondaryDNSTsigCreateTsigResponse, + TsigSecondaryDNSTsigListTsiGsResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.secondary_dns import ( - TsigGetResponse, - TsigDeleteResponse, - TsigUpdateResponse, - TsigSecondaryDNSTsigListTsiGsResponse, - TsigSecondaryDNSTsigCreateTsigResponse, - tsig_update_params, - tsig_secondary_dns_tsig_create_tsig_params, -) +from ...types import shared_params +from ...types.secondary_dns import tsig_update_params +from ...types.secondary_dns import tsig_secondary_dns_tsig_create_tsig_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Tsigs", "AsyncTsigs"] diff --git a/src/cloudflare/resources/settings/__init__.py b/src/cloudflare/resources/settings/__init__.py index b7406730bad..7baaa4ac6c4 100644 --- a/src/cloudflare/resources/settings/__init__.py +++ b/src/cloudflare/resources/settings/__init__.py @@ -1,412 +1,346 @@ # File generated from our OpenAPI spec by Stainless. -from .nel import ( - NEL, - AsyncNEL, - NELWithRawResponse, - AsyncNELWithRawResponse, - NELWithStreamingResponse, - AsyncNELWithStreamingResponse, -) -from .ssl import ( - SSL, - AsyncSSL, - SSLWithRawResponse, - AsyncSSLWithRawResponse, - SSLWithStreamingResponse, - AsyncSSLWithStreamingResponse, -) -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, +from .zero_rtt import ZeroRtt, AsyncZeroRtt +from .zero_rtt import ( + ZeroRttWithRawResponse, + AsyncZeroRttWithRawResponse, + ZeroRttWithStreamingResponse, + AsyncZeroRttWithStreamingResponse, ) -from .ipv6 import ( - IPV6, - AsyncIPV6, - IPV6WithRawResponse, - AsyncIPV6WithRawResponse, - IPV6WithStreamingResponse, - AsyncIPV6WithStreamingResponse, +from .advanced_ddos import AdvancedDDOS, AsyncAdvancedDDOS +from .advanced_ddos import ( + AdvancedDDOSWithRawResponse, + AsyncAdvancedDDOSWithRawResponse, + AdvancedDDOSWithStreamingResponse, + AsyncAdvancedDDOSWithStreamingResponse, ) -from .webp import ( - Webp, - AsyncWebp, - WebpWithRawResponse, - AsyncWebpWithRawResponse, - WebpWithStreamingResponse, - AsyncWebpWithStreamingResponse, +from .always_online import AlwaysOnline, AsyncAlwaysOnline +from .always_online import ( + AlwaysOnlineWithRawResponse, + AsyncAlwaysOnlineWithRawResponse, + AlwaysOnlineWithStreamingResponse, + AsyncAlwaysOnlineWithStreamingResponse, ) -from .http2 import ( - HTTP2, - AsyncHTTP2, - HTTP2WithRawResponse, - AsyncHTTP2WithRawResponse, - HTTP2WithStreamingResponse, - AsyncHTTP2WithStreamingResponse, +from .always_use_https import AlwaysUseHTTPS, AsyncAlwaysUseHTTPS +from .always_use_https import ( + AlwaysUseHTTPSWithRawResponse, + AsyncAlwaysUseHTTPSWithRawResponse, + AlwaysUseHTTPSWithStreamingResponse, + AsyncAlwaysUseHTTPSWithStreamingResponse, ) -from .http3 import ( - HTTP3, - AsyncHTTP3, - HTTP3WithRawResponse, - AsyncHTTP3WithRawResponse, - HTTP3WithStreamingResponse, - AsyncHTTP3WithStreamingResponse, +from .automatic_https_rewrites import AutomaticHTTPSRewrites, AsyncAutomaticHTTPSRewrites +from .automatic_https_rewrites import ( + AutomaticHTTPSRewritesWithRawResponse, + AsyncAutomaticHTTPSRewritesWithRawResponse, + AutomaticHTTPSRewritesWithStreamingResponse, + AsyncAutomaticHTTPSRewritesWithStreamingResponse, ) +from .automatic_platform_optimization import AutomaticPlatformOptimization, AsyncAutomaticPlatformOptimization +from .automatic_platform_optimization import ( + AutomaticPlatformOptimizationWithRawResponse, + AsyncAutomaticPlatformOptimizationWithRawResponse, + AutomaticPlatformOptimizationWithStreamingResponse, + AsyncAutomaticPlatformOptimizationWithStreamingResponse, +) +from .brotli import Brotli, AsyncBrotli from .brotli import ( - Brotli, - AsyncBrotli, BrotliWithRawResponse, AsyncBrotliWithRawResponse, BrotliWithStreamingResponse, AsyncBrotliWithStreamingResponse, ) -from .minify import ( - Minify, - AsyncMinify, - MinifyWithRawResponse, - AsyncMinifyWithRawResponse, - MinifyWithStreamingResponse, - AsyncMinifyWithStreamingResponse, +from .browser_cache_ttl import BrowserCacheTTL, AsyncBrowserCacheTTL +from .browser_cache_ttl import ( + BrowserCacheTTLWithRawResponse, + AsyncBrowserCacheTTLWithRawResponse, + BrowserCacheTTLWithStreamingResponse, + AsyncBrowserCacheTTLWithStreamingResponse, ) -from .mirage import ( - Mirage, - AsyncMirage, - MirageWithRawResponse, - AsyncMirageWithRawResponse, - MirageWithStreamingResponse, - AsyncMirageWithStreamingResponse, +from .browser_check import BrowserCheck, AsyncBrowserCheck +from .browser_check import ( + BrowserCheckWithRawResponse, + AsyncBrowserCheckWithRawResponse, + BrowserCheckWithStreamingResponse, + AsyncBrowserCheckWithStreamingResponse, ) -from .polish import ( - Polish, - AsyncPolish, - PolishWithRawResponse, - AsyncPolishWithRawResponse, - PolishWithStreamingResponse, - AsyncPolishWithStreamingResponse, +from .cache_level import CacheLevel, AsyncCacheLevel +from .cache_level import ( + CacheLevelWithRawResponse, + AsyncCacheLevelWithRawResponse, + CacheLevelWithStreamingResponse, + AsyncCacheLevelWithStreamingResponse, ) +from .challenge_ttl import ChallengeTTL, AsyncChallengeTTL +from .challenge_ttl import ( + ChallengeTTLWithRawResponse, + AsyncChallengeTTLWithRawResponse, + ChallengeTTLWithStreamingResponse, + AsyncChallengeTTLWithStreamingResponse, +) +from .ciphers import Ciphers, AsyncCiphers from .ciphers import ( - Ciphers, - AsyncCiphers, CiphersWithRawResponse, AsyncCiphersWithRawResponse, CiphersWithStreamingResponse, AsyncCiphersWithStreamingResponse, ) -from .tls_1_3 import ( - TLS1_3, - AsyncTLS1_3, - TLS1_3WithRawResponse, - AsyncTLS1_3WithRawResponse, - TLS1_3WithStreamingResponse, - AsyncTLS1_3WithStreamingResponse, -) -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, -) -from .zero_rtt import ( - ZeroRtt, - AsyncZeroRtt, - ZeroRttWithRawResponse, - AsyncZeroRttWithRawResponse, - ZeroRttWithStreamingResponse, - AsyncZeroRttWithStreamingResponse, -) -from .websocket import ( - Websocket, - AsyncWebsocket, - WebsocketWithRawResponse, - AsyncWebsocketWithRawResponse, - WebsocketWithStreamingResponse, - AsyncWebsocketWithStreamingResponse, +from .development_mode import DevelopmentMode, AsyncDevelopmentMode +from .development_mode import ( + DevelopmentModeWithRawResponse, + AsyncDevelopmentModeWithRawResponse, + DevelopmentModeWithStreamingResponse, + AsyncDevelopmentModeWithStreamingResponse, ) +from .early_hint import EarlyHint, AsyncEarlyHint from .early_hint import ( - EarlyHint, - AsyncEarlyHint, EarlyHintWithRawResponse, AsyncEarlyHintWithRawResponse, EarlyHintWithStreamingResponse, AsyncEarlyHintWithStreamingResponse, ) -from .cache_level import ( - CacheLevel, - AsyncCacheLevel, - CacheLevelWithRawResponse, - AsyncCacheLevelWithRawResponse, - CacheLevelWithStreamingResponse, - AsyncCacheLevelWithStreamingResponse, -) -from .pseudo_ipv4 import ( - PseudoIPV4, - AsyncPseudoIPV4, - PseudoIPV4WithRawResponse, - AsyncPseudoIPV4WithRawResponse, - PseudoIPV4WithStreamingResponse, - AsyncPseudoIPV4WithStreamingResponse, -) -from .advanced_ddos import ( - AdvancedDDOS, - AsyncAdvancedDDOS, - AdvancedDDOSWithRawResponse, - AsyncAdvancedDDOSWithRawResponse, - AdvancedDDOSWithStreamingResponse, - AsyncAdvancedDDOSWithStreamingResponse, +from .email_obfuscation import EmailObfuscation, AsyncEmailObfuscation +from .email_obfuscation import ( + EmailObfuscationWithRawResponse, + AsyncEmailObfuscationWithRawResponse, + EmailObfuscationWithStreamingResponse, + AsyncEmailObfuscationWithStreamingResponse, ) -from .always_online import ( - AlwaysOnline, - AsyncAlwaysOnline, - AlwaysOnlineWithRawResponse, - AsyncAlwaysOnlineWithRawResponse, - AlwaysOnlineWithStreamingResponse, - AsyncAlwaysOnlineWithStreamingResponse, +from .h2_prioritization import H2Prioritization, AsyncH2Prioritization +from .h2_prioritization import ( + H2PrioritizationWithRawResponse, + AsyncH2PrioritizationWithRawResponse, + H2PrioritizationWithStreamingResponse, + AsyncH2PrioritizationWithStreamingResponse, ) -from .browser_check import ( - BrowserCheck, - AsyncBrowserCheck, - BrowserCheckWithRawResponse, - AsyncBrowserCheckWithRawResponse, - BrowserCheckWithStreamingResponse, - AsyncBrowserCheckWithStreamingResponse, +from .hotlink_protection import HotlinkProtection, AsyncHotlinkProtection +from .hotlink_protection import ( + HotlinkProtectionWithRawResponse, + AsyncHotlinkProtectionWithRawResponse, + HotlinkProtectionWithStreamingResponse, + AsyncHotlinkProtectionWithStreamingResponse, ) -from .challenge_ttl import ( - ChallengeTTL, - AsyncChallengeTTL, - ChallengeTTLWithRawResponse, - AsyncChallengeTTLWithRawResponse, - ChallengeTTLWithStreamingResponse, - AsyncChallengeTTLWithStreamingResponse, +from .http2 import HTTP2, AsyncHTTP2 +from .http2 import ( + HTTP2WithRawResponse, + AsyncHTTP2WithRawResponse, + HTTP2WithStreamingResponse, + AsyncHTTP2WithStreamingResponse, ) -from .rocket_loader import ( - RocketLoader, - AsyncRocketLoader, - RocketLoaderWithRawResponse, - AsyncRocketLoaderWithRawResponse, - RocketLoaderWithStreamingResponse, - AsyncRocketLoaderWithStreamingResponse, +from .http3 import HTTP3, AsyncHTTP3 +from .http3 import ( + HTTP3WithRawResponse, + AsyncHTTP3WithRawResponse, + HTTP3WithStreamingResponse, + AsyncHTTP3WithStreamingResponse, ) +from .image_resizing import ImageResizing, AsyncImageResizing from .image_resizing import ( - ImageResizing, - AsyncImageResizing, ImageResizingWithRawResponse, AsyncImageResizingWithRawResponse, ImageResizingWithStreamingResponse, AsyncImageResizingWithStreamingResponse, ) +from .ip_geolocation import IPGeolocation, AsyncIPGeolocation from .ip_geolocation import ( - IPGeolocation, - AsyncIPGeolocation, IPGeolocationWithRawResponse, AsyncIPGeolocationWithRawResponse, IPGeolocationWithStreamingResponse, AsyncIPGeolocationWithStreamingResponse, ) -from .security_level import ( - SecurityLevel, - AsyncSecurityLevel, - SecurityLevelWithRawResponse, - AsyncSecurityLevelWithRawResponse, - SecurityLevelWithStreamingResponse, - AsyncSecurityLevelWithStreamingResponse, +from .ipv6 import IPV6, AsyncIPV6 +from .ipv6 import ( + IPV6WithRawResponse, + AsyncIPV6WithRawResponse, + IPV6WithStreamingResponse, + AsyncIPV6WithStreamingResponse, ) +from .min_tls_version import MinTLSVersion, AsyncMinTLSVersion from .min_tls_version import ( - MinTLSVersion, - AsyncMinTLSVersion, MinTLSVersionWithRawResponse, AsyncMinTLSVersionWithRawResponse, MinTLSVersionWithStreamingResponse, AsyncMinTLSVersionWithStreamingResponse, ) +from .minify import Minify, AsyncMinify +from .minify import ( + MinifyWithRawResponse, + AsyncMinifyWithRawResponse, + MinifyWithStreamingResponse, + AsyncMinifyWithStreamingResponse, +) +from .mirage import Mirage, AsyncMirage +from .mirage import ( + MirageWithRawResponse, + AsyncMirageWithRawResponse, + MirageWithStreamingResponse, + AsyncMirageWithStreamingResponse, +) +from .mobile_redirect import MobileRedirect, AsyncMobileRedirect from .mobile_redirect import ( - MobileRedirect, - AsyncMobileRedirect, MobileRedirectWithRawResponse, AsyncMobileRedirectWithRawResponse, MobileRedirectWithStreamingResponse, AsyncMobileRedirectWithStreamingResponse, ) -from .ssl_recommender import ( - SSLRecommender, - AsyncSSLRecommender, - SSLRecommenderWithRawResponse, - AsyncSSLRecommenderWithRawResponse, - SSLRecommenderWithStreamingResponse, - AsyncSSLRecommenderWithStreamingResponse, -) -from .tls_client_auth import ( - TLSClientAuth, - AsyncTLSClientAuth, - TLSClientAuthWithRawResponse, - AsyncTLSClientAuthWithRawResponse, - TLSClientAuthWithStreamingResponse, - AsyncTLSClientAuthWithStreamingResponse, -) -from .always_use_https import ( - AlwaysUseHTTPS, - AsyncAlwaysUseHTTPS, - AlwaysUseHTTPSWithRawResponse, - AsyncAlwaysUseHTTPSWithRawResponse, - AlwaysUseHTTPSWithStreamingResponse, - AsyncAlwaysUseHTTPSWithStreamingResponse, +from .nel import NEL, AsyncNEL +from .nel import NELWithRawResponse, AsyncNELWithRawResponse, NELWithStreamingResponse, AsyncNELWithStreamingResponse +from .opportunistic_encryption import OpportunisticEncryption, AsyncOpportunisticEncryption +from .opportunistic_encryption import ( + OpportunisticEncryptionWithRawResponse, + AsyncOpportunisticEncryptionWithRawResponse, + OpportunisticEncryptionWithStreamingResponse, + AsyncOpportunisticEncryptionWithStreamingResponse, ) -from .development_mode import ( - DevelopmentMode, - AsyncDevelopmentMode, - DevelopmentModeWithRawResponse, - AsyncDevelopmentModeWithRawResponse, - DevelopmentModeWithStreamingResponse, - AsyncDevelopmentModeWithStreamingResponse, +from .opportunistic_onion import OpportunisticOnion, AsyncOpportunisticOnion +from .opportunistic_onion import ( + OpportunisticOnionWithRawResponse, + AsyncOpportunisticOnionWithRawResponse, + OpportunisticOnionWithStreamingResponse, + AsyncOpportunisticOnionWithStreamingResponse, ) +from .orange_to_orange import OrangeToOrange, AsyncOrangeToOrange from .orange_to_orange import ( - OrangeToOrange, - AsyncOrangeToOrange, OrangeToOrangeWithRawResponse, AsyncOrangeToOrangeWithRawResponse, OrangeToOrangeWithStreamingResponse, AsyncOrangeToOrangeWithStreamingResponse, ) +from .origin_error_page_pass_thru import OriginErrorPagePassThru, AsyncOriginErrorPagePassThru +from .origin_error_page_pass_thru import ( + OriginErrorPagePassThruWithRawResponse, + AsyncOriginErrorPagePassThruWithRawResponse, + OriginErrorPagePassThruWithStreamingResponse, + AsyncOriginErrorPagePassThruWithStreamingResponse, +) +from .origin_max_http_version import OriginMaxHTTPVersion, AsyncOriginMaxHTTPVersion +from .origin_max_http_version import ( + OriginMaxHTTPVersionWithRawResponse, + AsyncOriginMaxHTTPVersionWithRawResponse, + OriginMaxHTTPVersionWithStreamingResponse, + AsyncOriginMaxHTTPVersionWithStreamingResponse, +) +from .polish import Polish, AsyncPolish +from .polish import ( + PolishWithRawResponse, + AsyncPolishWithRawResponse, + PolishWithStreamingResponse, + AsyncPolishWithStreamingResponse, +) +from .prefetch_preload import PrefetchPreload, AsyncPrefetchPreload from .prefetch_preload import ( - PrefetchPreload, - AsyncPrefetchPreload, PrefetchPreloadWithRawResponse, AsyncPrefetchPreloadWithRawResponse, PrefetchPreloadWithStreamingResponse, AsyncPrefetchPreloadWithStreamingResponse, ) -from .security_headers import ( - SecurityHeaders, - AsyncSecurityHeaders, - SecurityHeadersWithRawResponse, - AsyncSecurityHeadersWithRawResponse, - SecurityHeadersWithStreamingResponse, - AsyncSecurityHeadersWithStreamingResponse, -) -from .browser_cache_ttl import ( - BrowserCacheTTL, - AsyncBrowserCacheTTL, - BrowserCacheTTLWithRawResponse, - AsyncBrowserCacheTTLWithRawResponse, - BrowserCacheTTLWithStreamingResponse, - AsyncBrowserCacheTTLWithStreamingResponse, -) -from .email_obfuscation import ( - EmailObfuscation, - AsyncEmailObfuscation, - EmailObfuscationWithRawResponse, - AsyncEmailObfuscationWithRawResponse, - EmailObfuscationWithStreamingResponse, - AsyncEmailObfuscationWithStreamingResponse, -) -from .h2_prioritization import ( - H2Prioritization, - AsyncH2Prioritization, - H2PrioritizationWithRawResponse, - AsyncH2PrioritizationWithRawResponse, - H2PrioritizationWithStreamingResponse, - AsyncH2PrioritizationWithStreamingResponse, -) -from .hotlink_protection import ( - HotlinkProtection, - AsyncHotlinkProtection, - HotlinkProtectionWithRawResponse, - AsyncHotlinkProtectionWithRawResponse, - HotlinkProtectionWithStreamingResponse, - AsyncHotlinkProtectionWithStreamingResponse, -) +from .proxy_read_timeout import ProxyReadTimeout, AsyncProxyReadTimeout from .proxy_read_timeout import ( - ProxyReadTimeout, - AsyncProxyReadTimeout, ProxyReadTimeoutWithRawResponse, AsyncProxyReadTimeoutWithRawResponse, ProxyReadTimeoutWithStreamingResponse, AsyncProxyReadTimeoutWithStreamingResponse, ) +from .pseudo_ipv4 import PseudoIPV4, AsyncPseudoIPV4 +from .pseudo_ipv4 import ( + PseudoIPV4WithRawResponse, + AsyncPseudoIPV4WithRawResponse, + PseudoIPV4WithStreamingResponse, + AsyncPseudoIPV4WithStreamingResponse, +) +from .response_buffering import ResponseBuffering, AsyncResponseBuffering from .response_buffering import ( - ResponseBuffering, - AsyncResponseBuffering, ResponseBufferingWithRawResponse, AsyncResponseBufferingWithRawResponse, ResponseBufferingWithStreamingResponse, AsyncResponseBufferingWithStreamingResponse, ) -from .opportunistic_onion import ( - OpportunisticOnion, - AsyncOpportunisticOnion, - OpportunisticOnionWithRawResponse, - AsyncOpportunisticOnionWithRawResponse, - OpportunisticOnionWithStreamingResponse, - AsyncOpportunisticOnionWithStreamingResponse, +from .rocket_loader import RocketLoader, AsyncRocketLoader +from .rocket_loader import ( + RocketLoaderWithRawResponse, + AsyncRocketLoaderWithRawResponse, + RocketLoaderWithStreamingResponse, + AsyncRocketLoaderWithStreamingResponse, +) +from .security_headers import SecurityHeaders, AsyncSecurityHeaders +from .security_headers import ( + SecurityHeadersWithRawResponse, + AsyncSecurityHeadersWithRawResponse, + SecurityHeadersWithStreamingResponse, + AsyncSecurityHeadersWithStreamingResponse, +) +from .security_level import SecurityLevel, AsyncSecurityLevel +from .security_level import ( + SecurityLevelWithRawResponse, + AsyncSecurityLevelWithRawResponse, + SecurityLevelWithStreamingResponse, + AsyncSecurityLevelWithStreamingResponse, ) +from .server_side_excludes import ServerSideExcludes, AsyncServerSideExcludes from .server_side_excludes import ( - ServerSideExcludes, - AsyncServerSideExcludes, ServerSideExcludesWithRawResponse, AsyncServerSideExcludesWithRawResponse, ServerSideExcludesWithStreamingResponse, AsyncServerSideExcludesWithStreamingResponse, ) +from .sort_query_string_for_cache import SortQueryStringForCache, AsyncSortQueryStringForCache +from .sort_query_string_for_cache import ( + SortQueryStringForCacheWithRawResponse, + AsyncSortQueryStringForCacheWithRawResponse, + SortQueryStringForCacheWithStreamingResponse, + AsyncSortQueryStringForCacheWithStreamingResponse, +) +from .ssl import SSL, AsyncSSL +from .ssl import SSLWithRawResponse, AsyncSSLWithRawResponse, SSLWithStreamingResponse, AsyncSSLWithStreamingResponse +from .ssl_recommender import SSLRecommender, AsyncSSLRecommender +from .ssl_recommender import ( + SSLRecommenderWithRawResponse, + AsyncSSLRecommenderWithRawResponse, + SSLRecommenderWithStreamingResponse, + AsyncSSLRecommenderWithStreamingResponse, +) +from .tls_1_3 import TLS1_3, AsyncTLS1_3 +from .tls_1_3 import ( + TLS1_3WithRawResponse, + AsyncTLS1_3WithRawResponse, + TLS1_3WithStreamingResponse, + AsyncTLS1_3WithStreamingResponse, +) +from .tls_client_auth import TLSClientAuth, AsyncTLSClientAuth +from .tls_client_auth import ( + TLSClientAuthWithRawResponse, + AsyncTLSClientAuthWithRawResponse, + TLSClientAuthWithStreamingResponse, + AsyncTLSClientAuthWithStreamingResponse, +) +from .true_client_ip_header import TrueClientIPHeader, AsyncTrueClientIPHeader from .true_client_ip_header import ( - TrueClientIPHeader, - AsyncTrueClientIPHeader, TrueClientIPHeaderWithRawResponse, AsyncTrueClientIPHeaderWithRawResponse, TrueClientIPHeaderWithStreamingResponse, AsyncTrueClientIPHeaderWithStreamingResponse, ) -from .origin_max_http_version import ( - OriginMaxHTTPVersion, - AsyncOriginMaxHTTPVersion, - OriginMaxHTTPVersionWithRawResponse, - AsyncOriginMaxHTTPVersionWithRawResponse, - OriginMaxHTTPVersionWithStreamingResponse, - AsyncOriginMaxHTTPVersionWithStreamingResponse, -) -from .automatic_https_rewrites import ( - AutomaticHTTPSRewrites, - AsyncAutomaticHTTPSRewrites, - AutomaticHTTPSRewritesWithRawResponse, - AsyncAutomaticHTTPSRewritesWithRawResponse, - AutomaticHTTPSRewritesWithStreamingResponse, - AsyncAutomaticHTTPSRewritesWithStreamingResponse, -) -from .opportunistic_encryption import ( - OpportunisticEncryption, - AsyncOpportunisticEncryption, - OpportunisticEncryptionWithRawResponse, - AsyncOpportunisticEncryptionWithRawResponse, - OpportunisticEncryptionWithStreamingResponse, - AsyncOpportunisticEncryptionWithStreamingResponse, -) -from .origin_error_page_pass_thru import ( - OriginErrorPagePassThru, - AsyncOriginErrorPagePassThru, - OriginErrorPagePassThruWithRawResponse, - AsyncOriginErrorPagePassThruWithRawResponse, - OriginErrorPagePassThruWithStreamingResponse, - AsyncOriginErrorPagePassThruWithStreamingResponse, +from .waf import WAF, AsyncWAF +from .waf import WAFWithRawResponse, AsyncWAFWithRawResponse, WAFWithStreamingResponse, AsyncWAFWithStreamingResponse +from .webp import Webp, AsyncWebp +from .webp import ( + WebpWithRawResponse, + AsyncWebpWithRawResponse, + WebpWithStreamingResponse, + AsyncWebpWithStreamingResponse, ) -from .sort_query_string_for_cache import ( - SortQueryStringForCache, - AsyncSortQueryStringForCache, - SortQueryStringForCacheWithRawResponse, - AsyncSortQueryStringForCacheWithRawResponse, - SortQueryStringForCacheWithStreamingResponse, - AsyncSortQueryStringForCacheWithStreamingResponse, +from .websocket import Websocket, AsyncWebsocket +from .websocket import ( + WebsocketWithRawResponse, + AsyncWebsocketWithRawResponse, + WebsocketWithStreamingResponse, + AsyncWebsocketWithStreamingResponse, ) -from .automatic_platform_optimization import ( - AutomaticPlatformOptimization, - AsyncAutomaticPlatformOptimization, - AutomaticPlatformOptimizationWithRawResponse, - AsyncAutomaticPlatformOptimizationWithRawResponse, - AutomaticPlatformOptimizationWithStreamingResponse, - AsyncAutomaticPlatformOptimizationWithStreamingResponse, +from .settings import Settings, AsyncSettings +from .settings import ( + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/settings/advanced_ddos.py b/src/cloudflare/resources/settings/advanced_ddos.py index a6e87d01569..8e0afb1058e 100644 --- a/src/cloudflare/resources/settings/advanced_ddos.py +++ b/src/cloudflare/resources/settings/advanced_ddos.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import AdvancedDDOSGetResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import AdvancedDDOSGetResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["AdvancedDDOS", "AsyncAdvancedDDOS"] diff --git a/src/cloudflare/resources/settings/always_online.py b/src/cloudflare/resources/settings/always_online.py index 2d05733a1dd..c2ec33bb3e3 100644 --- a/src/cloudflare/resources/settings/always_online.py +++ b/src/cloudflare/resources/settings/always_online.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import AlwaysOnlineUpdateResponse, AlwaysOnlineGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import AlwaysOnlineGetResponse, AlwaysOnlineUpdateResponse, always_online_update_params +from ...types import shared_params +from ...types.settings import always_online_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AlwaysOnline", "AsyncAlwaysOnline"] diff --git a/src/cloudflare/resources/settings/always_use_https.py b/src/cloudflare/resources/settings/always_use_https.py index f9a4bcb158a..8a0815a1d29 100644 --- a/src/cloudflare/resources/settings/always_use_https.py +++ b/src/cloudflare/resources/settings/always_use_https.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import AlwaysUseHTTPSUpdateResponse, AlwaysUseHTTPSGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import AlwaysUseHTTPSGetResponse, AlwaysUseHTTPSUpdateResponse, always_use_https_update_params +from ...types import shared_params +from ...types.settings import always_use_https_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AlwaysUseHTTPS", "AsyncAlwaysUseHTTPS"] diff --git a/src/cloudflare/resources/settings/automatic_https_rewrites.py b/src/cloudflare/resources/settings/automatic_https_rewrites.py index e55f96880c4..2866f72ccc5 100644 --- a/src/cloudflare/resources/settings/automatic_https_rewrites.py +++ b/src/cloudflare/resources/settings/automatic_https_rewrites.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import AutomaticHTTPSRewriteUpdateResponse, AutomaticHTTPSRewriteGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - AutomaticHTTPSRewriteGetResponse, - AutomaticHTTPSRewriteUpdateResponse, - automatic_https_rewrite_update_params, -) +from ...types import shared_params +from ...types.settings import automatic_https_rewrite_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AutomaticHTTPSRewrites", "AsyncAutomaticHTTPSRewrites"] diff --git a/src/cloudflare/resources/settings/automatic_platform_optimization.py b/src/cloudflare/resources/settings/automatic_platform_optimization.py index f7e3ff1e9bc..66ea615758b 100644 --- a/src/cloudflare/resources/settings/automatic_platform_optimization.py +++ b/src/cloudflare/resources/settings/automatic_platform_optimization.py @@ -2,29 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ( + AutomaticPlatformOptimizationUpdateResponse, + AutomaticPlatformOptimizationGetResponse, + automatic_platform_optimization_update_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - AutomaticPlatformOptimizationGetResponse, - AutomaticPlatformOptimizationUpdateResponse, - automatic_platform_optimization_update_params, -) +from ...types import shared_params +from ...types.settings import automatic_platform_optimization_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AutomaticPlatformOptimization", "AsyncAutomaticPlatformOptimization"] diff --git a/src/cloudflare/resources/settings/brotli.py b/src/cloudflare/resources/settings/brotli.py index b8e472bf6e8..a9a4610c60d 100644 --- a/src/cloudflare/resources/settings/brotli.py +++ b/src/cloudflare/resources/settings/brotli.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import BrotliUpdateResponse, BrotliGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import BrotliGetResponse, BrotliUpdateResponse, brotli_update_params +from ...types import shared_params +from ...types.settings import brotli_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Brotli", "AsyncBrotli"] diff --git a/src/cloudflare/resources/settings/browser_cache_ttl.py b/src/cloudflare/resources/settings/browser_cache_ttl.py index d09b8508dbe..6eb6a0ec5a1 100644 --- a/src/cloudflare/resources/settings/browser_cache_ttl.py +++ b/src/cloudflare/resources/settings/browser_cache_ttl.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import BrowserCacheTTLUpdateResponse, BrowserCacheTTLGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import BrowserCacheTTLGetResponse, BrowserCacheTTLUpdateResponse, browser_cache_ttl_update_params +from ...types import shared_params +from ...types.settings import browser_cache_ttl_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["BrowserCacheTTL", "AsyncBrowserCacheTTL"] diff --git a/src/cloudflare/resources/settings/browser_check.py b/src/cloudflare/resources/settings/browser_check.py index a3d5d1d7166..294e6059d72 100644 --- a/src/cloudflare/resources/settings/browser_check.py +++ b/src/cloudflare/resources/settings/browser_check.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import BrowserCheckUpdateResponse, BrowserCheckGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import BrowserCheckGetResponse, BrowserCheckUpdateResponse, browser_check_update_params +from ...types import shared_params +from ...types.settings import browser_check_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["BrowserCheck", "AsyncBrowserCheck"] diff --git a/src/cloudflare/resources/settings/cache_level.py b/src/cloudflare/resources/settings/cache_level.py index 97937868a9c..5c6e39f861c 100644 --- a/src/cloudflare/resources/settings/cache_level.py +++ b/src/cloudflare/resources/settings/cache_level.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import CacheLevelUpdateResponse, CacheLevelGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import CacheLevelGetResponse, CacheLevelUpdateResponse, cache_level_update_params +from ...types import shared_params +from ...types.settings import cache_level_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["CacheLevel", "AsyncCacheLevel"] diff --git a/src/cloudflare/resources/settings/challenge_ttl.py b/src/cloudflare/resources/settings/challenge_ttl.py index e3e4a0ac61e..053856e1664 100644 --- a/src/cloudflare/resources/settings/challenge_ttl.py +++ b/src/cloudflare/resources/settings/challenge_ttl.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ChallengeTTLUpdateResponse, ChallengeTTLGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ChallengeTTLGetResponse, ChallengeTTLUpdateResponse, challenge_ttl_update_params +from ...types import shared_params +from ...types.settings import challenge_ttl_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ChallengeTTL", "AsyncChallengeTTL"] diff --git a/src/cloudflare/resources/settings/ciphers.py b/src/cloudflare/resources/settings/ciphers.py index b39cb7a138c..0729abc2988 100644 --- a/src/cloudflare/resources/settings/ciphers.py +++ b/src/cloudflare/resources/settings/ciphers.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import CipherUpdateResponse, CipherGetResponse + +from typing import Type, Optional, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import CipherGetResponse, CipherUpdateResponse, cipher_update_params +from ...types import shared_params +from ...types.settings import cipher_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Ciphers", "AsyncCiphers"] diff --git a/src/cloudflare/resources/settings/development_mode.py b/src/cloudflare/resources/settings/development_mode.py index 2deb7bb3444..12eccf704cd 100644 --- a/src/cloudflare/resources/settings/development_mode.py +++ b/src/cloudflare/resources/settings/development_mode.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import DevelopmentModeUpdateResponse, DevelopmentModeGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import DevelopmentModeGetResponse, DevelopmentModeUpdateResponse, development_mode_update_params +from ...types import shared_params +from ...types.settings import development_mode_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["DevelopmentMode", "AsyncDevelopmentMode"] diff --git a/src/cloudflare/resources/settings/early_hint.py b/src/cloudflare/resources/settings/early_hint.py index d09dcbefbf5..947dfc8deae 100644 --- a/src/cloudflare/resources/settings/early_hint.py +++ b/src/cloudflare/resources/settings/early_hint.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import EarlyHintUpdateResponse, EarlyHintGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import EarlyHintGetResponse, EarlyHintUpdateResponse, early_hint_update_params +from ...types import shared_params +from ...types.settings import early_hint_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["EarlyHint", "AsyncEarlyHint"] diff --git a/src/cloudflare/resources/settings/email_obfuscation.py b/src/cloudflare/resources/settings/email_obfuscation.py index f7b4b745d74..cb08787c245 100644 --- a/src/cloudflare/resources/settings/email_obfuscation.py +++ b/src/cloudflare/resources/settings/email_obfuscation.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import EmailObfuscationUpdateResponse, EmailObfuscationGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - EmailObfuscationGetResponse, - EmailObfuscationUpdateResponse, - email_obfuscation_update_params, -) +from ...types import shared_params +from ...types.settings import email_obfuscation_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["EmailObfuscation", "AsyncEmailObfuscation"] diff --git a/src/cloudflare/resources/settings/h2_prioritization.py b/src/cloudflare/resources/settings/h2_prioritization.py index 37ef323ee48..7cfedaa6342 100644 --- a/src/cloudflare/resources/settings/h2_prioritization.py +++ b/src/cloudflare/resources/settings/h2_prioritization.py @@ -2,29 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ( + H2PrioritizationUpdateResponse, + H2PrioritizationGetResponse, + h2_prioritization_update_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - H2PrioritizationGetResponse, - H2PrioritizationUpdateResponse, - h2_prioritization_update_params, -) +from ...types import shared_params +from ...types.settings import h2_prioritization_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["H2Prioritization", "AsyncH2Prioritization"] diff --git a/src/cloudflare/resources/settings/hotlink_protection.py b/src/cloudflare/resources/settings/hotlink_protection.py index 00c1134b426..9c724438cc2 100644 --- a/src/cloudflare/resources/settings/hotlink_protection.py +++ b/src/cloudflare/resources/settings/hotlink_protection.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import HotlinkProtectionUpdateResponse, HotlinkProtectionGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - HotlinkProtectionGetResponse, - HotlinkProtectionUpdateResponse, - hotlink_protection_update_params, -) +from ...types import shared_params +from ...types.settings import hotlink_protection_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["HotlinkProtection", "AsyncHotlinkProtection"] diff --git a/src/cloudflare/resources/settings/http2.py b/src/cloudflare/resources/settings/http2.py index cd93a5f9ad3..d13622b63d8 100644 --- a/src/cloudflare/resources/settings/http2.py +++ b/src/cloudflare/resources/settings/http2.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import HTTP2UpdateResponse, HTTP2GetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import HTTP2GetResponse, HTTP2UpdateResponse, http2_update_params +from ...types import shared_params +from ...types.settings import http2_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["HTTP2", "AsyncHTTP2"] diff --git a/src/cloudflare/resources/settings/http3.py b/src/cloudflare/resources/settings/http3.py index dda1ec4caf2..dbaf1a83424 100644 --- a/src/cloudflare/resources/settings/http3.py +++ b/src/cloudflare/resources/settings/http3.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import HTTP3UpdateResponse, HTTP3GetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import HTTP3GetResponse, HTTP3UpdateResponse, http3_update_params +from ...types import shared_params +from ...types.settings import http3_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["HTTP3", "AsyncHTTP3"] diff --git a/src/cloudflare/resources/settings/image_resizing.py b/src/cloudflare/resources/settings/image_resizing.py index b7473fb52b5..539ea4f1e76 100644 --- a/src/cloudflare/resources/settings/image_resizing.py +++ b/src/cloudflare/resources/settings/image_resizing.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ImageResizingUpdateResponse, ImageResizingGetResponse, image_resizing_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ImageResizingGetResponse, ImageResizingUpdateResponse, image_resizing_update_params +from ...types import shared_params +from ...types.settings import image_resizing_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ImageResizing", "AsyncImageResizing"] diff --git a/src/cloudflare/resources/settings/ip_geolocation.py b/src/cloudflare/resources/settings/ip_geolocation.py index c639ae64b6c..141af95b056 100644 --- a/src/cloudflare/resources/settings/ip_geolocation.py +++ b/src/cloudflare/resources/settings/ip_geolocation.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import IPGeolocationUpdateResponse, IPGeolocationGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import IPGeolocationGetResponse, IPGeolocationUpdateResponse, ip_geolocation_update_params +from ...types import shared_params +from ...types.settings import ip_geolocation_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["IPGeolocation", "AsyncIPGeolocation"] diff --git a/src/cloudflare/resources/settings/ipv6.py b/src/cloudflare/resources/settings/ipv6.py index caf569e6b6e..5bc79a82473 100644 --- a/src/cloudflare/resources/settings/ipv6.py +++ b/src/cloudflare/resources/settings/ipv6.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import IPV6UpdateResponse, IPV6GetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import IPV6GetResponse, IPV6UpdateResponse, ipv6_update_params +from ...types import shared_params +from ...types.settings import ipv6_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["IPV6", "AsyncIPV6"] diff --git a/src/cloudflare/resources/settings/min_tls_version.py b/src/cloudflare/resources/settings/min_tls_version.py index 7e7cb4dac4d..9eac11b7b3d 100644 --- a/src/cloudflare/resources/settings/min_tls_version.py +++ b/src/cloudflare/resources/settings/min_tls_version.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import MinTLSVersionUpdateResponse, MinTLSVersionGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import MinTLSVersionGetResponse, MinTLSVersionUpdateResponse, min_tls_version_update_params +from ...types import shared_params +from ...types.settings import min_tls_version_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["MinTLSVersion", "AsyncMinTLSVersion"] diff --git a/src/cloudflare/resources/settings/minify.py b/src/cloudflare/resources/settings/minify.py index d19e20be8b3..ae92f687a6b 100644 --- a/src/cloudflare/resources/settings/minify.py +++ b/src/cloudflare/resources/settings/minify.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import MinifyUpdateResponse, MinifyGetResponse, minify_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import MinifyGetResponse, MinifyUpdateResponse, minify_update_params +from ...types import shared_params +from ...types.settings import minify_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Minify", "AsyncMinify"] diff --git a/src/cloudflare/resources/settings/mirage.py b/src/cloudflare/resources/settings/mirage.py index 4d3b89f3aac..6e6b0adc73c 100644 --- a/src/cloudflare/resources/settings/mirage.py +++ b/src/cloudflare/resources/settings/mirage.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import MirageUpdateResponse, MirageGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import MirageGetResponse, MirageUpdateResponse, mirage_update_params +from ...types import shared_params +from ...types.settings import mirage_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Mirage", "AsyncMirage"] diff --git a/src/cloudflare/resources/settings/mobile_redirect.py b/src/cloudflare/resources/settings/mobile_redirect.py index f8c2f6a563d..7fa0014273f 100644 --- a/src/cloudflare/resources/settings/mobile_redirect.py +++ b/src/cloudflare/resources/settings/mobile_redirect.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import MobileRedirectUpdateResponse, MobileRedirectGetResponse, mobile_redirect_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import MobileRedirectGetResponse, MobileRedirectUpdateResponse, mobile_redirect_update_params +from ...types import shared_params +from ...types.settings import mobile_redirect_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["MobileRedirect", "AsyncMobileRedirect"] diff --git a/src/cloudflare/resources/settings/nel.py b/src/cloudflare/resources/settings/nel.py index 50a49373e87..a6864d7aa76 100644 --- a/src/cloudflare/resources/settings/nel.py +++ b/src/cloudflare/resources/settings/nel.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import NELUpdateResponse, NELGetResponse, nel_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import NELGetResponse, NELUpdateResponse, nel_update_params +from ...types import shared_params +from ...types.settings import nel_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["NEL", "AsyncNEL"] diff --git a/src/cloudflare/resources/settings/opportunistic_encryption.py b/src/cloudflare/resources/settings/opportunistic_encryption.py index 32cfdd176d9..1e4e7bda0fa 100644 --- a/src/cloudflare/resources/settings/opportunistic_encryption.py +++ b/src/cloudflare/resources/settings/opportunistic_encryption.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import OpportunisticEncryptionUpdateResponse, OpportunisticEncryptionGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - OpportunisticEncryptionGetResponse, - OpportunisticEncryptionUpdateResponse, - opportunistic_encryption_update_params, -) +from ...types import shared_params +from ...types.settings import opportunistic_encryption_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["OpportunisticEncryption", "AsyncOpportunisticEncryption"] diff --git a/src/cloudflare/resources/settings/opportunistic_onion.py b/src/cloudflare/resources/settings/opportunistic_onion.py index 5badbf46f0c..02da7628843 100644 --- a/src/cloudflare/resources/settings/opportunistic_onion.py +++ b/src/cloudflare/resources/settings/opportunistic_onion.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import OpportunisticOnionUpdateResponse, OpportunisticOnionGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - OpportunisticOnionGetResponse, - OpportunisticOnionUpdateResponse, - opportunistic_onion_update_params, -) +from ...types import shared_params +from ...types.settings import opportunistic_onion_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["OpportunisticOnion", "AsyncOpportunisticOnion"] diff --git a/src/cloudflare/resources/settings/orange_to_orange.py b/src/cloudflare/resources/settings/orange_to_orange.py index 0d330c7d8c6..92c0f44fe32 100644 --- a/src/cloudflare/resources/settings/orange_to_orange.py +++ b/src/cloudflare/resources/settings/orange_to_orange.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import OrangeToOrangeUpdateResponse, OrangeToOrangeGetResponse, orange_to_orange_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import OrangeToOrangeGetResponse, OrangeToOrangeUpdateResponse, orange_to_orange_update_params +from ...types import shared_params +from ...types.settings import orange_to_orange_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["OrangeToOrange", "AsyncOrangeToOrange"] diff --git a/src/cloudflare/resources/settings/origin_error_page_pass_thru.py b/src/cloudflare/resources/settings/origin_error_page_pass_thru.py index a7b6f9a5365..dd3e4764cca 100644 --- a/src/cloudflare/resources/settings/origin_error_page_pass_thru.py +++ b/src/cloudflare/resources/settings/origin_error_page_pass_thru.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import OriginErrorPagePassThruUpdateResponse, OriginErrorPagePassThruGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - OriginErrorPagePassThruGetResponse, - OriginErrorPagePassThruUpdateResponse, - origin_error_page_pass_thru_update_params, -) +from ...types import shared_params +from ...types.settings import origin_error_page_pass_thru_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["OriginErrorPagePassThru", "AsyncOriginErrorPagePassThru"] diff --git a/src/cloudflare/resources/settings/origin_max_http_version.py b/src/cloudflare/resources/settings/origin_max_http_version.py index 0ba3285335f..9b824289433 100644 --- a/src/cloudflare/resources/settings/origin_max_http_version.py +++ b/src/cloudflare/resources/settings/origin_max_http_version.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import OriginMaxHTTPVersionUpdateResponse, OriginMaxHTTPVersionGetResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - OriginMaxHTTPVersionGetResponse, - OriginMaxHTTPVersionUpdateResponse, - origin_max_http_version_update_params, -) +from ...types import shared_params +from ...types.settings import origin_max_http_version_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["OriginMaxHTTPVersion", "AsyncOriginMaxHTTPVersion"] diff --git a/src/cloudflare/resources/settings/polish.py b/src/cloudflare/resources/settings/polish.py index 495cd923449..a9cfcb3cb56 100644 --- a/src/cloudflare/resources/settings/polish.py +++ b/src/cloudflare/resources/settings/polish.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import PolishUpdateResponse, PolishGetResponse, polish_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import PolishGetResponse, PolishUpdateResponse, polish_update_params +from ...types import shared_params +from ...types.settings import polish_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Polish", "AsyncPolish"] diff --git a/src/cloudflare/resources/settings/prefetch_preload.py b/src/cloudflare/resources/settings/prefetch_preload.py index eb32bb8c844..53e71618daa 100644 --- a/src/cloudflare/resources/settings/prefetch_preload.py +++ b/src/cloudflare/resources/settings/prefetch_preload.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import PrefetchPreloadUpdateResponse, PrefetchPreloadGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import PrefetchPreloadGetResponse, PrefetchPreloadUpdateResponse, prefetch_preload_update_params +from ...types import shared_params +from ...types.settings import prefetch_preload_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["PrefetchPreload", "AsyncPrefetchPreload"] diff --git a/src/cloudflare/resources/settings/proxy_read_timeout.py b/src/cloudflare/resources/settings/proxy_read_timeout.py index eb42f89adaf..18f962f24e3 100644 --- a/src/cloudflare/resources/settings/proxy_read_timeout.py +++ b/src/cloudflare/resources/settings/proxy_read_timeout.py @@ -2,29 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ( + ProxyReadTimeoutUpdateResponse, + ProxyReadTimeoutGetResponse, + proxy_read_timeout_update_params, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - ProxyReadTimeoutGetResponse, - ProxyReadTimeoutUpdateResponse, - proxy_read_timeout_update_params, -) +from ...types import shared_params +from ...types.settings import proxy_read_timeout_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ProxyReadTimeout", "AsyncProxyReadTimeout"] diff --git a/src/cloudflare/resources/settings/pseudo_ipv4.py b/src/cloudflare/resources/settings/pseudo_ipv4.py index 7f22a69032a..31f08dec9a2 100644 --- a/src/cloudflare/resources/settings/pseudo_ipv4.py +++ b/src/cloudflare/resources/settings/pseudo_ipv4.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import PseudoIPV4UpdateResponse, PseudoIPV4GetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import PseudoIPV4GetResponse, PseudoIPV4UpdateResponse, pseudo_ipv4_update_params +from ...types import shared_params +from ...types.settings import pseudo_ipv4_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["PseudoIPV4", "AsyncPseudoIPV4"] diff --git a/src/cloudflare/resources/settings/response_buffering.py b/src/cloudflare/resources/settings/response_buffering.py index af56690d06d..e9c89dd8f82 100644 --- a/src/cloudflare/resources/settings/response_buffering.py +++ b/src/cloudflare/resources/settings/response_buffering.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ResponseBufferingUpdateResponse, ResponseBufferingGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - ResponseBufferingGetResponse, - ResponseBufferingUpdateResponse, - response_buffering_update_params, -) +from ...types import shared_params +from ...types.settings import response_buffering_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ResponseBuffering", "AsyncResponseBuffering"] diff --git a/src/cloudflare/resources/settings/rocket_loader.py b/src/cloudflare/resources/settings/rocket_loader.py index 49256b85742..1a63484744e 100644 --- a/src/cloudflare/resources/settings/rocket_loader.py +++ b/src/cloudflare/resources/settings/rocket_loader.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import RocketLoaderUpdateResponse, RocketLoaderGetResponse, rocket_loader_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import RocketLoaderGetResponse, RocketLoaderUpdateResponse, rocket_loader_update_params +from ...types import shared_params +from ...types.settings import rocket_loader_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["RocketLoader", "AsyncRocketLoader"] diff --git a/src/cloudflare/resources/settings/security_headers.py b/src/cloudflare/resources/settings/security_headers.py index ee6f3b0053c..a5daafbcb17 100644 --- a/src/cloudflare/resources/settings/security_headers.py +++ b/src/cloudflare/resources/settings/security_headers.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import SecurityHeaderUpdateResponse, SecurityHeaderGetResponse, security_header_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import SecurityHeaderGetResponse, SecurityHeaderUpdateResponse, security_header_update_params +from ...types import shared_params +from ...types.settings import security_header_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SecurityHeaders", "AsyncSecurityHeaders"] diff --git a/src/cloudflare/resources/settings/security_level.py b/src/cloudflare/resources/settings/security_level.py index 706c2d71c74..b43963155c2 100644 --- a/src/cloudflare/resources/settings/security_level.py +++ b/src/cloudflare/resources/settings/security_level.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import SecurityLevelUpdateResponse, SecurityLevelGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import SecurityLevelGetResponse, SecurityLevelUpdateResponse, security_level_update_params +from ...types import shared_params +from ...types.settings import security_level_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SecurityLevel", "AsyncSecurityLevel"] diff --git a/src/cloudflare/resources/settings/server_side_excludes.py b/src/cloudflare/resources/settings/server_side_excludes.py index cbd43c76b3e..7b14a20df73 100644 --- a/src/cloudflare/resources/settings/server_side_excludes.py +++ b/src/cloudflare/resources/settings/server_side_excludes.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ServerSideExcludeUpdateResponse, ServerSideExcludeGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - ServerSideExcludeGetResponse, - ServerSideExcludeUpdateResponse, - server_side_exclude_update_params, -) +from ...types import shared_params +from ...types.settings import server_side_exclude_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ServerSideExcludes", "AsyncServerSideExcludes"] diff --git a/src/cloudflare/resources/settings/settings.py b/src/cloudflare/resources/settings/settings.py index fa36b4f694f..3e0d16abacf 100644 --- a/src/cloudflare/resources/settings/settings.py +++ b/src/cloudflare/resources/settings/settings.py @@ -2,117 +2,137 @@ from __future__ import annotations -from typing import Type, Iterable, Optional, cast - import httpx -from .nel import ( - NEL, - AsyncNEL, - NELWithRawResponse, - AsyncNELWithRawResponse, - NELWithStreamingResponse, - AsyncNELWithStreamingResponse, -) -from .ssl import ( - SSL, - AsyncSSL, - SSLWithRawResponse, - AsyncSSLWithRawResponse, - SSLWithStreamingResponse, - AsyncSSLWithStreamingResponse, -) -from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, -) -from .ipv6 import ( - IPV6, - AsyncIPV6, - IPV6WithRawResponse, - AsyncIPV6WithRawResponse, - IPV6WithStreamingResponse, - AsyncIPV6WithStreamingResponse, -) -from .webp import ( - Webp, - AsyncWebp, - WebpWithRawResponse, - AsyncWebpWithRawResponse, - WebpWithStreamingResponse, - AsyncWebpWithStreamingResponse, -) -from .http2 import ( - HTTP2, - AsyncHTTP2, - HTTP2WithRawResponse, - AsyncHTTP2WithRawResponse, - HTTP2WithStreamingResponse, - AsyncHTTP2WithStreamingResponse, -) -from .http3 import ( - HTTP3, - AsyncHTTP3, - HTTP3WithRawResponse, - AsyncHTTP3WithRawResponse, - HTTP3WithStreamingResponse, - AsyncHTTP3WithStreamingResponse, -) -from .brotli import ( - Brotli, - AsyncBrotli, - BrotliWithRawResponse, - AsyncBrotliWithRawResponse, - BrotliWithStreamingResponse, - AsyncBrotliWithStreamingResponse, -) -from .minify import ( - Minify, - AsyncMinify, - MinifyWithRawResponse, - AsyncMinifyWithRawResponse, - MinifyWithStreamingResponse, - AsyncMinifyWithStreamingResponse, -) -from .mirage import ( - Mirage, - AsyncMirage, - MirageWithRawResponse, - AsyncMirageWithRawResponse, - MirageWithStreamingResponse, - AsyncMirageWithStreamingResponse, -) -from .polish import ( - Polish, - AsyncPolish, - PolishWithRawResponse, - AsyncPolishWithRawResponse, - PolishWithStreamingResponse, - AsyncPolishWithStreamingResponse, -) -from ...types import SettingEditResponse, SettingListResponse, setting_edit_params -from .ciphers import ( - Ciphers, - AsyncCiphers, - CiphersWithRawResponse, - AsyncCiphersWithRawResponse, - CiphersWithStreamingResponse, - AsyncCiphersWithStreamingResponse, +from .zero_rtt import ZeroRtt, AsyncZeroRtt + +from ..._compat import cached_property + +from .advanced_ddos import AdvancedDDOS, AsyncAdvancedDDOS + +from .always_online import AlwaysOnline, AsyncAlwaysOnline + +from .always_use_https import AlwaysUseHTTPS, AsyncAlwaysUseHTTPS + +from .automatic_https_rewrites import AutomaticHTTPSRewrites, AsyncAutomaticHTTPSRewrites + +from .automatic_platform_optimization import AutomaticPlatformOptimization, AsyncAutomaticPlatformOptimization + +from .brotli import Brotli, AsyncBrotli + +from .browser_cache_ttl import BrowserCacheTTL, AsyncBrowserCacheTTL + +from .browser_check import BrowserCheck, AsyncBrowserCheck + +from .cache_level import CacheLevel, AsyncCacheLevel + +from .challenge_ttl import ChallengeTTL, AsyncChallengeTTL + +from .ciphers import Ciphers, AsyncCiphers + +from .development_mode import DevelopmentMode, AsyncDevelopmentMode + +from .early_hint import EarlyHint, AsyncEarlyHint + +from .email_obfuscation import EmailObfuscation, AsyncEmailObfuscation + +from .h2_prioritization import H2Prioritization, AsyncH2Prioritization + +from .hotlink_protection import HotlinkProtection, AsyncHotlinkProtection + +from .http2 import HTTP2, AsyncHTTP2 + +from .http3 import HTTP3, AsyncHTTP3 + +from .image_resizing import ImageResizing, AsyncImageResizing + +from .ip_geolocation import IPGeolocation, AsyncIPGeolocation + +from .ipv6 import IPV6, AsyncIPV6 + +from .min_tls_version import MinTLSVersion, AsyncMinTLSVersion + +from .minify import Minify, AsyncMinify + +from .mirage import Mirage, AsyncMirage + +from .mobile_redirect import MobileRedirect, AsyncMobileRedirect + +from .nel import NEL, AsyncNEL + +from .opportunistic_encryption import OpportunisticEncryption, AsyncOpportunisticEncryption + +from .opportunistic_onion import OpportunisticOnion, AsyncOpportunisticOnion + +from .orange_to_orange import OrangeToOrange, AsyncOrangeToOrange + +from .origin_error_page_pass_thru import OriginErrorPagePassThru, AsyncOriginErrorPagePassThru + +from .origin_max_http_version import OriginMaxHTTPVersion, AsyncOriginMaxHTTPVersion + +from .polish import Polish, AsyncPolish + +from .prefetch_preload import PrefetchPreload, AsyncPrefetchPreload + +from .proxy_read_timeout import ProxyReadTimeout, AsyncProxyReadTimeout + +from .pseudo_ipv4 import PseudoIPV4, AsyncPseudoIPV4 + +from .response_buffering import ResponseBuffering, AsyncResponseBuffering + +from .rocket_loader import RocketLoader, AsyncRocketLoader + +from .security_headers import SecurityHeaders, AsyncSecurityHeaders + +from .security_level import SecurityLevel, AsyncSecurityLevel + +from .server_side_excludes import ServerSideExcludes, AsyncServerSideExcludes + +from .sort_query_string_for_cache import SortQueryStringForCache, AsyncSortQueryStringForCache + +from .ssl import SSL, AsyncSSL + +from .ssl_recommender import SSLRecommender, AsyncSSLRecommender + +from .tls_1_3 import TLS1_3, AsyncTLS1_3 + +from .tls_client_auth import TLSClientAuth, AsyncTLSClientAuth + +from .true_client_ip_header import TrueClientIPHeader, AsyncTrueClientIPHeader + +from .waf import WAF, AsyncWAF + +from .webp import Webp, AsyncWebp + +from .websocket import Websocket, AsyncWebsocket + +from ...types import SettingListResponse, SettingEditResponse, setting_edit_params + +from typing import Type, Optional, Iterable + +from ..._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, ) -from .tls_1_3 import ( - TLS1_3, - AsyncTLS1_3, - TLS1_3WithRawResponse, - AsyncTLS1_3WithRawResponse, - TLS1_3WithStreamingResponse, - AsyncTLS1_3WithStreamingResponse, + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform +from ...types import shared_params +from ...types import setting_edit_params from .zero_rtt import ( ZeroRtt, AsyncZeroRtt, @@ -121,47 +141,6 @@ ZeroRttWithStreamingResponse, AsyncZeroRttWithStreamingResponse, ) -from ..._compat import cached_property -from .websocket import ( - Websocket, - AsyncWebsocket, - WebsocketWithRawResponse, - AsyncWebsocketWithRawResponse, - WebsocketWithStreamingResponse, - AsyncWebsocketWithStreamingResponse, -) -from .early_hint import ( - EarlyHint, - AsyncEarlyHint, - EarlyHintWithRawResponse, - AsyncEarlyHintWithRawResponse, - EarlyHintWithStreamingResponse, - AsyncEarlyHintWithStreamingResponse, -) -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 .cache_level import ( - CacheLevel, - AsyncCacheLevel, - CacheLevelWithRawResponse, - AsyncCacheLevelWithRawResponse, - CacheLevelWithStreamingResponse, - AsyncCacheLevelWithStreamingResponse, -) -from .pseudo_ipv4 import ( - PseudoIPV4, - AsyncPseudoIPV4, - PseudoIPV4WithRawResponse, - AsyncPseudoIPV4WithRawResponse, - PseudoIPV4WithStreamingResponse, - AsyncPseudoIPV4WithStreamingResponse, -) from .advanced_ddos import ( AdvancedDDOS, AsyncAdvancedDDOS, @@ -178,6 +157,46 @@ AlwaysOnlineWithStreamingResponse, AsyncAlwaysOnlineWithStreamingResponse, ) +from .always_use_https import ( + AlwaysUseHTTPS, + AsyncAlwaysUseHTTPS, + AlwaysUseHTTPSWithRawResponse, + AsyncAlwaysUseHTTPSWithRawResponse, + AlwaysUseHTTPSWithStreamingResponse, + AsyncAlwaysUseHTTPSWithStreamingResponse, +) +from .automatic_https_rewrites import ( + AutomaticHTTPSRewrites, + AsyncAutomaticHTTPSRewrites, + AutomaticHTTPSRewritesWithRawResponse, + AsyncAutomaticHTTPSRewritesWithRawResponse, + AutomaticHTTPSRewritesWithStreamingResponse, + AsyncAutomaticHTTPSRewritesWithStreamingResponse, +) +from .automatic_platform_optimization import ( + AutomaticPlatformOptimization, + AsyncAutomaticPlatformOptimization, + AutomaticPlatformOptimizationWithRawResponse, + AsyncAutomaticPlatformOptimizationWithRawResponse, + AutomaticPlatformOptimizationWithStreamingResponse, + AsyncAutomaticPlatformOptimizationWithStreamingResponse, +) +from .brotli import ( + Brotli, + AsyncBrotli, + BrotliWithRawResponse, + AsyncBrotliWithRawResponse, + BrotliWithStreamingResponse, + AsyncBrotliWithStreamingResponse, +) +from .browser_cache_ttl import ( + BrowserCacheTTL, + AsyncBrowserCacheTTL, + BrowserCacheTTLWithRawResponse, + AsyncBrowserCacheTTLWithRawResponse, + BrowserCacheTTLWithStreamingResponse, + AsyncBrowserCacheTTLWithStreamingResponse, +) from .browser_check import ( BrowserCheck, AsyncBrowserCheck, @@ -186,6 +205,14 @@ BrowserCheckWithStreamingResponse, AsyncBrowserCheckWithStreamingResponse, ) +from .cache_level import ( + CacheLevel, + AsyncCacheLevel, + CacheLevelWithRawResponse, + AsyncCacheLevelWithRawResponse, + CacheLevelWithStreamingResponse, + AsyncCacheLevelWithStreamingResponse, +) from .challenge_ttl import ( ChallengeTTL, AsyncChallengeTTL, @@ -194,16 +221,69 @@ ChallengeTTLWithStreamingResponse, AsyncChallengeTTLWithStreamingResponse, ) -from .rocket_loader import ( - RocketLoader, - AsyncRocketLoader, - RocketLoaderWithRawResponse, - AsyncRocketLoaderWithRawResponse, - RocketLoaderWithStreamingResponse, - AsyncRocketLoaderWithStreamingResponse, +from .ciphers import ( + Ciphers, + AsyncCiphers, + CiphersWithRawResponse, + AsyncCiphersWithRawResponse, + CiphersWithStreamingResponse, + AsyncCiphersWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, +from .development_mode import ( + DevelopmentMode, + AsyncDevelopmentMode, + DevelopmentModeWithRawResponse, + AsyncDevelopmentModeWithRawResponse, + DevelopmentModeWithStreamingResponse, + AsyncDevelopmentModeWithStreamingResponse, +) +from .early_hint import ( + EarlyHint, + AsyncEarlyHint, + EarlyHintWithRawResponse, + AsyncEarlyHintWithRawResponse, + EarlyHintWithStreamingResponse, + AsyncEarlyHintWithStreamingResponse, +) +from .email_obfuscation import ( + EmailObfuscation, + AsyncEmailObfuscation, + EmailObfuscationWithRawResponse, + AsyncEmailObfuscationWithRawResponse, + EmailObfuscationWithStreamingResponse, + AsyncEmailObfuscationWithStreamingResponse, +) +from .h2_prioritization import ( + H2Prioritization, + AsyncH2Prioritization, + H2PrioritizationWithRawResponse, + AsyncH2PrioritizationWithRawResponse, + H2PrioritizationWithStreamingResponse, + AsyncH2PrioritizationWithStreamingResponse, +) +from .hotlink_protection import ( + HotlinkProtection, + AsyncHotlinkProtection, + HotlinkProtectionWithRawResponse, + AsyncHotlinkProtectionWithRawResponse, + HotlinkProtectionWithStreamingResponse, + AsyncHotlinkProtectionWithStreamingResponse, +) +from .http2 import ( + HTTP2, + AsyncHTTP2, + HTTP2WithRawResponse, + AsyncHTTP2WithRawResponse, + HTTP2WithStreamingResponse, + AsyncHTTP2WithStreamingResponse, +) +from .http3 import ( + HTTP3, + AsyncHTTP3, + HTTP3WithRawResponse, + AsyncHTTP3WithRawResponse, + HTTP3WithStreamingResponse, + AsyncHTTP3WithStreamingResponse, ) from .image_resizing import ( ImageResizing, @@ -221,13 +301,13 @@ IPGeolocationWithStreamingResponse, AsyncIPGeolocationWithStreamingResponse, ) -from .security_level import ( - SecurityLevel, - AsyncSecurityLevel, - SecurityLevelWithRawResponse, - AsyncSecurityLevelWithRawResponse, - SecurityLevelWithStreamingResponse, - AsyncSecurityLevelWithStreamingResponse, +from .ipv6 import ( + IPV6, + AsyncIPV6, + IPV6WithRawResponse, + AsyncIPV6WithRawResponse, + IPV6WithStreamingResponse, + AsyncIPV6WithStreamingResponse, ) from .min_tls_version import ( MinTLSVersion, @@ -237,45 +317,53 @@ MinTLSVersionWithStreamingResponse, AsyncMinTLSVersionWithStreamingResponse, ) +from .minify import ( + Minify, + AsyncMinify, + MinifyWithRawResponse, + AsyncMinifyWithRawResponse, + MinifyWithStreamingResponse, + AsyncMinifyWithStreamingResponse, +) +from .mirage import ( + Mirage, + AsyncMirage, + MirageWithRawResponse, + AsyncMirageWithRawResponse, + MirageWithStreamingResponse, + AsyncMirageWithStreamingResponse, +) from .mobile_redirect import ( MobileRedirect, - AsyncMobileRedirect, - MobileRedirectWithRawResponse, - AsyncMobileRedirectWithRawResponse, - MobileRedirectWithStreamingResponse, - AsyncMobileRedirectWithStreamingResponse, -) -from .ssl_recommender import ( - SSLRecommender, - AsyncSSLRecommender, - SSLRecommenderWithRawResponse, - AsyncSSLRecommenderWithRawResponse, - SSLRecommenderWithStreamingResponse, - AsyncSSLRecommenderWithStreamingResponse, + AsyncMobileRedirect, + MobileRedirectWithRawResponse, + AsyncMobileRedirectWithRawResponse, + MobileRedirectWithStreamingResponse, + AsyncMobileRedirectWithStreamingResponse, ) -from .tls_client_auth import ( - TLSClientAuth, - AsyncTLSClientAuth, - TLSClientAuthWithRawResponse, - AsyncTLSClientAuthWithRawResponse, - TLSClientAuthWithStreamingResponse, - AsyncTLSClientAuthWithStreamingResponse, +from .nel import ( + NEL, + AsyncNEL, + NELWithRawResponse, + AsyncNELWithRawResponse, + NELWithStreamingResponse, + AsyncNELWithStreamingResponse, ) -from .always_use_https import ( - AlwaysUseHTTPS, - AsyncAlwaysUseHTTPS, - AlwaysUseHTTPSWithRawResponse, - AsyncAlwaysUseHTTPSWithRawResponse, - AlwaysUseHTTPSWithStreamingResponse, - AsyncAlwaysUseHTTPSWithStreamingResponse, +from .opportunistic_encryption import ( + OpportunisticEncryption, + AsyncOpportunisticEncryption, + OpportunisticEncryptionWithRawResponse, + AsyncOpportunisticEncryptionWithRawResponse, + OpportunisticEncryptionWithStreamingResponse, + AsyncOpportunisticEncryptionWithStreamingResponse, ) -from .development_mode import ( - DevelopmentMode, - AsyncDevelopmentMode, - DevelopmentModeWithRawResponse, - AsyncDevelopmentModeWithRawResponse, - DevelopmentModeWithStreamingResponse, - AsyncDevelopmentModeWithStreamingResponse, +from .opportunistic_onion import ( + OpportunisticOnion, + AsyncOpportunisticOnion, + OpportunisticOnionWithRawResponse, + AsyncOpportunisticOnionWithRawResponse, + OpportunisticOnionWithStreamingResponse, + AsyncOpportunisticOnionWithStreamingResponse, ) from .orange_to_orange import ( OrangeToOrange, @@ -285,6 +373,30 @@ OrangeToOrangeWithStreamingResponse, AsyncOrangeToOrangeWithStreamingResponse, ) +from .origin_error_page_pass_thru import ( + OriginErrorPagePassThru, + AsyncOriginErrorPagePassThru, + OriginErrorPagePassThruWithRawResponse, + AsyncOriginErrorPagePassThruWithRawResponse, + OriginErrorPagePassThruWithStreamingResponse, + AsyncOriginErrorPagePassThruWithStreamingResponse, +) +from .origin_max_http_version import ( + OriginMaxHTTPVersion, + AsyncOriginMaxHTTPVersion, + OriginMaxHTTPVersionWithRawResponse, + AsyncOriginMaxHTTPVersionWithRawResponse, + OriginMaxHTTPVersionWithStreamingResponse, + AsyncOriginMaxHTTPVersionWithStreamingResponse, +) +from .polish import ( + Polish, + AsyncPolish, + PolishWithRawResponse, + AsyncPolishWithRawResponse, + PolishWithStreamingResponse, + AsyncPolishWithStreamingResponse, +) from .prefetch_preload import ( PrefetchPreload, AsyncPrefetchPreload, @@ -293,46 +405,6 @@ PrefetchPreloadWithStreamingResponse, AsyncPrefetchPreloadWithStreamingResponse, ) -from .security_headers import ( - SecurityHeaders, - AsyncSecurityHeaders, - SecurityHeadersWithRawResponse, - AsyncSecurityHeadersWithRawResponse, - SecurityHeadersWithStreamingResponse, - AsyncSecurityHeadersWithStreamingResponse, -) -from .browser_cache_ttl import ( - BrowserCacheTTL, - AsyncBrowserCacheTTL, - BrowserCacheTTLWithRawResponse, - AsyncBrowserCacheTTLWithRawResponse, - BrowserCacheTTLWithStreamingResponse, - AsyncBrowserCacheTTLWithStreamingResponse, -) -from .email_obfuscation import ( - EmailObfuscation, - AsyncEmailObfuscation, - EmailObfuscationWithRawResponse, - AsyncEmailObfuscationWithRawResponse, - EmailObfuscationWithStreamingResponse, - AsyncEmailObfuscationWithStreamingResponse, -) -from .h2_prioritization import ( - H2Prioritization, - AsyncH2Prioritization, - H2PrioritizationWithRawResponse, - AsyncH2PrioritizationWithRawResponse, - H2PrioritizationWithStreamingResponse, - AsyncH2PrioritizationWithStreamingResponse, -) -from .hotlink_protection import ( - HotlinkProtection, - AsyncHotlinkProtection, - HotlinkProtectionWithRawResponse, - AsyncHotlinkProtectionWithRawResponse, - HotlinkProtectionWithStreamingResponse, - AsyncHotlinkProtectionWithStreamingResponse, -) from .proxy_read_timeout import ( ProxyReadTimeout, AsyncProxyReadTimeout, @@ -341,6 +413,14 @@ ProxyReadTimeoutWithStreamingResponse, AsyncProxyReadTimeoutWithStreamingResponse, ) +from .pseudo_ipv4 import ( + PseudoIPV4, + AsyncPseudoIPV4, + PseudoIPV4WithRawResponse, + AsyncPseudoIPV4WithRawResponse, + PseudoIPV4WithStreamingResponse, + AsyncPseudoIPV4WithStreamingResponse, +) from .response_buffering import ( ResponseBuffering, AsyncResponseBuffering, @@ -349,13 +429,29 @@ ResponseBufferingWithStreamingResponse, AsyncResponseBufferingWithStreamingResponse, ) -from .opportunistic_onion import ( - OpportunisticOnion, - AsyncOpportunisticOnion, - OpportunisticOnionWithRawResponse, - AsyncOpportunisticOnionWithRawResponse, - OpportunisticOnionWithStreamingResponse, - AsyncOpportunisticOnionWithStreamingResponse, +from .rocket_loader import ( + RocketLoader, + AsyncRocketLoader, + RocketLoaderWithRawResponse, + AsyncRocketLoaderWithRawResponse, + RocketLoaderWithStreamingResponse, + AsyncRocketLoaderWithStreamingResponse, +) +from .security_headers import ( + SecurityHeaders, + AsyncSecurityHeaders, + SecurityHeadersWithRawResponse, + AsyncSecurityHeadersWithRawResponse, + SecurityHeadersWithStreamingResponse, + AsyncSecurityHeadersWithStreamingResponse, +) +from .security_level import ( + SecurityLevel, + AsyncSecurityLevel, + SecurityLevelWithRawResponse, + AsyncSecurityLevelWithRawResponse, + SecurityLevelWithStreamingResponse, + AsyncSecurityLevelWithStreamingResponse, ) from .server_side_excludes import ( ServerSideExcludes, @@ -365,6 +461,46 @@ ServerSideExcludesWithStreamingResponse, AsyncServerSideExcludesWithStreamingResponse, ) +from .sort_query_string_for_cache import ( + SortQueryStringForCache, + AsyncSortQueryStringForCache, + SortQueryStringForCacheWithRawResponse, + AsyncSortQueryStringForCacheWithRawResponse, + SortQueryStringForCacheWithStreamingResponse, + AsyncSortQueryStringForCacheWithStreamingResponse, +) +from .ssl import ( + SSL, + AsyncSSL, + SSLWithRawResponse, + AsyncSSLWithRawResponse, + SSLWithStreamingResponse, + AsyncSSLWithStreamingResponse, +) +from .ssl_recommender import ( + SSLRecommender, + AsyncSSLRecommender, + SSLRecommenderWithRawResponse, + AsyncSSLRecommenderWithRawResponse, + SSLRecommenderWithStreamingResponse, + AsyncSSLRecommenderWithStreamingResponse, +) +from .tls_1_3 import ( + TLS1_3, + AsyncTLS1_3, + TLS1_3WithRawResponse, + AsyncTLS1_3WithRawResponse, + TLS1_3WithStreamingResponse, + AsyncTLS1_3WithStreamingResponse, +) +from .tls_client_auth import ( + TLSClientAuth, + AsyncTLSClientAuth, + TLSClientAuthWithRawResponse, + AsyncTLSClientAuthWithRawResponse, + TLSClientAuthWithStreamingResponse, + AsyncTLSClientAuthWithStreamingResponse, +) from .true_client_ip_header import ( TrueClientIPHeader, AsyncTrueClientIPHeader, @@ -373,54 +509,35 @@ TrueClientIPHeaderWithStreamingResponse, AsyncTrueClientIPHeaderWithStreamingResponse, ) -from .origin_max_http_version import ( - OriginMaxHTTPVersion, - AsyncOriginMaxHTTPVersion, - OriginMaxHTTPVersionWithRawResponse, - AsyncOriginMaxHTTPVersionWithRawResponse, - OriginMaxHTTPVersionWithStreamingResponse, - AsyncOriginMaxHTTPVersionWithStreamingResponse, -) -from .automatic_https_rewrites import ( - AutomaticHTTPSRewrites, - AsyncAutomaticHTTPSRewrites, - AutomaticHTTPSRewritesWithRawResponse, - AsyncAutomaticHTTPSRewritesWithRawResponse, - AutomaticHTTPSRewritesWithStreamingResponse, - AsyncAutomaticHTTPSRewritesWithStreamingResponse, -) -from .opportunistic_encryption import ( - OpportunisticEncryption, - AsyncOpportunisticEncryption, - OpportunisticEncryptionWithRawResponse, - AsyncOpportunisticEncryptionWithRawResponse, - OpportunisticEncryptionWithStreamingResponse, - AsyncOpportunisticEncryptionWithStreamingResponse, -) -from .origin_error_page_pass_thru import ( - OriginErrorPagePassThru, - AsyncOriginErrorPagePassThru, - OriginErrorPagePassThruWithRawResponse, - AsyncOriginErrorPagePassThruWithRawResponse, - OriginErrorPagePassThruWithStreamingResponse, - AsyncOriginErrorPagePassThruWithStreamingResponse, +from .waf import ( + WAF, + AsyncWAF, + WAFWithRawResponse, + AsyncWAFWithRawResponse, + WAFWithStreamingResponse, + AsyncWAFWithStreamingResponse, ) -from .sort_query_string_for_cache import ( - SortQueryStringForCache, - AsyncSortQueryStringForCache, - SortQueryStringForCacheWithRawResponse, - AsyncSortQueryStringForCacheWithRawResponse, - SortQueryStringForCacheWithStreamingResponse, - AsyncSortQueryStringForCacheWithStreamingResponse, +from .webp import ( + Webp, + AsyncWebp, + WebpWithRawResponse, + AsyncWebpWithRawResponse, + WebpWithStreamingResponse, + AsyncWebpWithStreamingResponse, ) -from .automatic_platform_optimization import ( - AutomaticPlatformOptimization, - AsyncAutomaticPlatformOptimization, - AutomaticPlatformOptimizationWithRawResponse, - AsyncAutomaticPlatformOptimizationWithRawResponse, - AutomaticPlatformOptimizationWithStreamingResponse, - AsyncAutomaticPlatformOptimizationWithStreamingResponse, +from .websocket import ( + Websocket, + AsyncWebsocket, + WebsocketWithRawResponse, + AsyncWebsocketWithRawResponse, + WebsocketWithStreamingResponse, + AsyncWebsocketWithStreamingResponse, ) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/settings/sort_query_string_for_cache.py b/src/cloudflare/resources/settings/sort_query_string_for_cache.py index 0610226c426..7dc87e52e26 100644 --- a/src/cloudflare/resources/settings/sort_query_string_for_cache.py +++ b/src/cloudflare/resources/settings/sort_query_string_for_cache.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import SortQueryStringForCacheUpdateResponse, SortQueryStringForCacheGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - SortQueryStringForCacheGetResponse, - SortQueryStringForCacheUpdateResponse, - sort_query_string_for_cache_update_params, -) +from ...types import shared_params +from ...types.settings import sort_query_string_for_cache_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SortQueryStringForCache", "AsyncSortQueryStringForCache"] diff --git a/src/cloudflare/resources/settings/ssl.py b/src/cloudflare/resources/settings/ssl.py index 87491f2c915..75b857ea1b9 100644 --- a/src/cloudflare/resources/settings/ssl.py +++ b/src/cloudflare/resources/settings/ssl.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import SSLUpdateResponse, SSLGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import SSLGetResponse, SSLUpdateResponse, ssl_update_params +from ...types import shared_params +from ...types.settings import ssl_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SSL", "AsyncSSL"] diff --git a/src/cloudflare/resources/settings/ssl_recommender.py b/src/cloudflare/resources/settings/ssl_recommender.py index 2da194ac7cd..76950ce915a 100644 --- a/src/cloudflare/resources/settings/ssl_recommender.py +++ b/src/cloudflare/resources/settings/ssl_recommender.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import SSLRecommenderUpdateResponse, SSLRecommenderGetResponse, ssl_recommender_update_params + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import SSLRecommenderGetResponse, SSLRecommenderUpdateResponse, ssl_recommender_update_params +from ...types import shared_params +from ...types.settings import ssl_recommender_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SSLRecommender", "AsyncSSLRecommender"] diff --git a/src/cloudflare/resources/settings/tls_1_3.py b/src/cloudflare/resources/settings/tls_1_3.py index f5942863f49..596b728d373 100644 --- a/src/cloudflare/resources/settings/tls_1_3.py +++ b/src/cloudflare/resources/settings/tls_1_3.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import TLS1_3UpdateResponse, TLS1_3GetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import TLS1_3GetResponse, TLS1_3UpdateResponse, tls_1_3_update_params +from ...types import shared_params +from ...types.settings import tls_1_3_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["TLS1_3", "AsyncTLS1_3"] diff --git a/src/cloudflare/resources/settings/tls_client_auth.py b/src/cloudflare/resources/settings/tls_client_auth.py index e3925a78970..307a0edb25c 100644 --- a/src/cloudflare/resources/settings/tls_client_auth.py +++ b/src/cloudflare/resources/settings/tls_client_auth.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import TLSClientAuthUpdateResponse, TLSClientAuthGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import TLSClientAuthGetResponse, TLSClientAuthUpdateResponse, tls_client_auth_update_params +from ...types import shared_params +from ...types.settings import tls_client_auth_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["TLSClientAuth", "AsyncTLSClientAuth"] diff --git a/src/cloudflare/resources/settings/true_client_ip_header.py b/src/cloudflare/resources/settings/true_client_ip_header.py index b16849b71a0..9e215281a92 100644 --- a/src/cloudflare/resources/settings/true_client_ip_header.py +++ b/src/cloudflare/resources/settings/true_client_ip_header.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import TrueClientIPHeaderUpdateResponse, TrueClientIPHeaderGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - TrueClientIPHeaderGetResponse, - TrueClientIPHeaderUpdateResponse, - true_client_ip_header_update_params, -) +from ...types import shared_params +from ...types.settings import true_client_ip_header_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["TrueClientIPHeader", "AsyncTrueClientIPHeader"] diff --git a/src/cloudflare/resources/settings/waf.py b/src/cloudflare/resources/settings/waf.py index 80220a6d427..64ab8c45e56 100644 --- a/src/cloudflare/resources/settings/waf.py +++ b/src/cloudflare/resources/settings/waf.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import WAFUpdateResponse, WAFGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import WAFGetResponse, WAFUpdateResponse, waf_update_params +from ...types import shared_params +from ...types.settings import waf_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["WAF", "AsyncWAF"] diff --git a/src/cloudflare/resources/settings/webp.py b/src/cloudflare/resources/settings/webp.py index b2e0d40bca9..9721f771078 100644 --- a/src/cloudflare/resources/settings/webp.py +++ b/src/cloudflare/resources/settings/webp.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import WebpUpdateResponse, WebpGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import WebpGetResponse, WebpUpdateResponse, webp_update_params +from ...types import shared_params +from ...types.settings import webp_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Webp", "AsyncWebp"] diff --git a/src/cloudflare/resources/settings/websocket.py b/src/cloudflare/resources/settings/websocket.py index 4df463688c3..e6380599faa 100644 --- a/src/cloudflare/resources/settings/websocket.py +++ b/src/cloudflare/resources/settings/websocket.py @@ -2,26 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import WebsocketUpdateResponse, WebsocketGetResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import WebsocketGetResponse, WebsocketUpdateResponse, websocket_update_params +from ...types import shared_params +from ...types.settings import websocket_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Websocket", "AsyncWebsocket"] diff --git a/src/cloudflare/resources/settings/zero_rtt.py b/src/cloudflare/resources/settings/zero_rtt.py index 1b01bb784fd..fa0c1e1c243 100644 --- a/src/cloudflare/resources/settings/zero_rtt.py +++ b/src/cloudflare/resources/settings/zero_rtt.py @@ -2,30 +2,44 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.settings import ZeroRttGetResponse, ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.settings import ( - ZeroRttGetResponse, - ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse, - zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params, -) +from ...types import shared_params +from ...types.settings import zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ZeroRtt", "AsyncZeroRtt"] diff --git a/src/cloudflare/resources/snippets/__init__.py b/src/cloudflare/resources/snippets/__init__.py index 30e93e2c505..5b60a29cf32 100644 --- a/src/cloudflare/resources/snippets/__init__.py +++ b/src/cloudflare/resources/snippets/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .content import Content, AsyncContent from .content import ( - Content, - AsyncContent, ContentWithRawResponse, AsyncContentWithRawResponse, ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) -from .snippets import ( - Snippets, - AsyncSnippets, - SnippetsWithRawResponse, - AsyncSnippetsWithRawResponse, - SnippetsWithStreamingResponse, - AsyncSnippetsWithStreamingResponse, -) +from .snippet_rules import SnippetRules, AsyncSnippetRules from .snippet_rules import ( - SnippetRules, - AsyncSnippetRules, SnippetRulesWithRawResponse, AsyncSnippetRulesWithRawResponse, SnippetRulesWithStreamingResponse, AsyncSnippetRulesWithStreamingResponse, ) +from .snippets import Snippets, AsyncSnippets +from .snippets import ( + SnippetsWithRawResponse, + AsyncSnippetsWithRawResponse, + SnippetsWithStreamingResponse, + AsyncSnippetsWithStreamingResponse, +) __all__ = [ "Content", diff --git a/src/cloudflare/resources/snippets/content.py b/src/cloudflare/resources/snippets/content.py index ecac0768673..62c03e1059d 100644 --- a/src/cloudflare/resources/snippets/content.py +++ b/src/cloudflare/resources/snippets/content.py @@ -4,22 +4,35 @@ 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, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, async_to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + StreamedBinaryAPIResponse, async_to_custom_streamed_response_wrapper, + AsyncStreamedBinaryAPIResponse, ) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Content", "AsyncContent"] diff --git a/src/cloudflare/resources/snippets/snippet_rules.py b/src/cloudflare/resources/snippets/snippet_rules.py index 7afb4e6ebda..cfe083bc2f7 100644 --- a/src/cloudflare/resources/snippets/snippet_rules.py +++ b/src/cloudflare/resources/snippets/snippet_rules.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.snippets import SnippetRuleUpdateResponse, SnippetRuleListResponse, snippet_rule_update_params + +from typing import Type, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.snippets import SnippetRuleListResponse, SnippetRuleUpdateResponse, snippet_rule_update_params +from ...types import shared_params +from ...types.snippets import snippet_rule_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["SnippetRules", "AsyncSnippetRules"] diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py index 8b22e200ed5..b076e18e322 100644 --- a/src/cloudflare/resources/snippets/snippets.py +++ b/src/cloudflare/resources/snippets/snippets.py @@ -2,17 +2,47 @@ from __future__ import annotations -from typing import Any, Type, cast - import httpx +from .content import Content, AsyncContent + +from ..._compat import cached_property + +from .snippet_rules import SnippetRules, AsyncSnippetRules + from ...types import ( - SnippetGetResponse, + SnippetUpdateResponse, SnippetListResponse, SnippetDeleteResponse, - SnippetUpdateResponse, + SnippetGetResponse, snippet_update_params, ) + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import snippet_update_params from .content import ( Content, AsyncContent, @@ -21,17 +51,6 @@ ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) -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 ..._wrappers import ResultWrapper from .snippet_rules import ( SnippetRules, AsyncSnippetRules, @@ -40,9 +59,17 @@ SnippetRulesWithStreamingResponse, AsyncSnippetRulesWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, -) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Snippets", "AsyncSnippets"] diff --git a/src/cloudflare/resources/spectrums/__init__.py b/src/cloudflare/resources/spectrums/__init__.py index bc0abecb174..2b384a73273 100644 --- a/src/cloudflare/resources/spectrums/__init__.py +++ b/src/cloudflare/resources/spectrums/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .apps import ( - Apps, - AsyncApps, - AppsWithRawResponse, - AsyncAppsWithRawResponse, - AppsWithStreamingResponse, - AsyncAppsWithStreamingResponse, -) +from .analytics import Analytics, AsyncAnalytics from .analytics import ( - Analytics, - AsyncAnalytics, AnalyticsWithRawResponse, AsyncAnalyticsWithRawResponse, AnalyticsWithStreamingResponse, AsyncAnalyticsWithStreamingResponse, ) +from .apps import Apps, AsyncApps +from .apps import ( + AppsWithRawResponse, + AsyncAppsWithRawResponse, + AppsWithStreamingResponse, + AsyncAppsWithStreamingResponse, +) +from .spectrums import Spectrums, AsyncSpectrums from .spectrums import ( - Spectrums, - AsyncSpectrums, SpectrumsWithRawResponse, AsyncSpectrumsWithRawResponse, SpectrumsWithStreamingResponse, diff --git a/src/cloudflare/resources/spectrums/analytics/__init__.py b/src/cloudflare/resources/spectrums/analytics/__init__.py index 23e0620c5f1..59d619df4d2 100644 --- a/src/cloudflare/resources/spectrums/analytics/__init__.py +++ b/src/cloudflare/resources/spectrums/analytics/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .aggregates import Aggregates, AsyncAggregates +from .aggregates import ( + AggregatesWithRawResponse, + AsyncAggregatesWithRawResponse, + AggregatesWithStreamingResponse, + AsyncAggregatesWithStreamingResponse, +) +from .events import Events, AsyncEvents from .events import ( - Events, - AsyncEvents, EventsWithRawResponse, AsyncEventsWithRawResponse, EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) +from .analytics import Analytics, AsyncAnalytics from .analytics import ( - Analytics, - AsyncAnalytics, AnalyticsWithRawResponse, AsyncAnalyticsWithRawResponse, AnalyticsWithStreamingResponse, AsyncAnalyticsWithStreamingResponse, ) -from .aggregates import ( - Aggregates, - AsyncAggregates, - AggregatesWithRawResponse, - AsyncAggregatesWithRawResponse, - AggregatesWithStreamingResponse, - AsyncAggregatesWithStreamingResponse, -) __all__ = [ "Aggregates", diff --git a/src/cloudflare/resources/spectrums/analytics/aggregates/__init__.py b/src/cloudflare/resources/spectrums/analytics/aggregates/__init__.py index 73cca8b7abc..efcc9fb39a5 100644 --- a/src/cloudflare/resources/spectrums/analytics/aggregates/__init__.py +++ b/src/cloudflare/resources/spectrums/analytics/aggregates/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .currents import Currents, AsyncCurrents from .currents import ( - Currents, - AsyncCurrents, CurrentsWithRawResponse, AsyncCurrentsWithRawResponse, CurrentsWithStreamingResponse, AsyncCurrentsWithStreamingResponse, ) +from .aggregates import Aggregates, AsyncAggregates from .aggregates import ( - Aggregates, - AsyncAggregates, AggregatesWithRawResponse, AsyncAggregatesWithRawResponse, AggregatesWithStreamingResponse, diff --git a/src/cloudflare/resources/spectrums/analytics/aggregates/aggregates.py b/src/cloudflare/resources/spectrums/analytics/aggregates/aggregates.py index 874108038cf..f370c134d7c 100644 --- a/src/cloudflare/resources/spectrums/analytics/aggregates/aggregates.py +++ b/src/cloudflare/resources/spectrums/analytics/aggregates/aggregates.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .currents import Currents, AsyncCurrents + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .currents import ( Currents, AsyncCurrents, @@ -10,8 +29,7 @@ CurrentsWithStreamingResponse, AsyncCurrentsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Aggregates", "AsyncAggregates"] diff --git a/src/cloudflare/resources/spectrums/analytics/aggregates/currents.py b/src/cloudflare/resources/spectrums/analytics/aggregates/currents.py index 87bd7086685..71ebaed15cd 100644 --- a/src/cloudflare/resources/spectrums/analytics/aggregates/currents.py +++ b/src/cloudflare/resources/spectrums/analytics/aggregates/currents.py @@ -2,28 +2,44 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.spectrums.analytics.aggregates import ( + CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, +) + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params from .....types.spectrums.analytics.aggregates import ( - CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params, ) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Currents", "AsyncCurrents"] diff --git a/src/cloudflare/resources/spectrums/analytics/analytics.py b/src/cloudflare/resources/spectrums/analytics/analytics.py index 9257955a1e0..7912a7ae9e3 100644 --- a/src/cloudflare/resources/spectrums/analytics/analytics.py +++ b/src/cloudflare/resources/spectrums/analytics/analytics.py @@ -2,15 +2,27 @@ from __future__ import annotations -from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, -) +from .aggregates.aggregates import Aggregates, AsyncAggregates + from ...._compat import cached_property + +from .events.events import Events, AsyncEvents + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .aggregates import ( Aggregates, AsyncAggregates, @@ -19,9 +31,15 @@ AggregatesWithStreamingResponse, AsyncAggregatesWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .events.events import Events, AsyncEvents -from .aggregates.aggregates import Aggregates, AsyncAggregates +from .events import ( + Events, + AsyncEvents, + EventsWithRawResponse, + AsyncEventsWithRawResponse, + EventsWithStreamingResponse, + AsyncEventsWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Analytics", "AsyncAnalytics"] diff --git a/src/cloudflare/resources/spectrums/analytics/events/__init__.py b/src/cloudflare/resources/spectrums/analytics/events/__init__.py index 53c3edb3f6a..3e621a008fb 100644 --- a/src/cloudflare/resources/spectrums/analytics/events/__init__.py +++ b/src/cloudflare/resources/spectrums/analytics/events/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, -) +from .bytimes import Bytimes, AsyncBytimes from .bytimes import ( - Bytimes, - AsyncBytimes, BytimesWithRawResponse, AsyncBytimesWithRawResponse, BytimesWithStreamingResponse, AsyncBytimesWithStreamingResponse, ) +from .summaries import Summaries, AsyncSummaries from .summaries import ( - Summaries, - AsyncSummaries, SummariesWithRawResponse, AsyncSummariesWithRawResponse, SummariesWithStreamingResponse, AsyncSummariesWithStreamingResponse, ) +from .events import Events, AsyncEvents +from .events import ( + EventsWithRawResponse, + AsyncEventsWithRawResponse, + EventsWithStreamingResponse, + AsyncEventsWithStreamingResponse, +) __all__ = [ "Bytimes", diff --git a/src/cloudflare/resources/spectrums/analytics/events/bytimes.py b/src/cloudflare/resources/spectrums/analytics/events/bytimes.py index e7eeb3ef56f..073153c56fe 100644 --- a/src/cloudflare/resources/spectrums/analytics/events/bytimes.py +++ b/src/cloudflare/resources/spectrums/analytics/events/bytimes.py @@ -2,30 +2,46 @@ from __future__ import annotations -from typing import Any, List, Union, Iterable, 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.spectrums.analytics.events import BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse + +from typing import Optional, List, Union, Iterable + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.spectrums.analytics.events import ( - BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse, - bytime_spectrum_analytics_by_time_get_analytics_by_time_params, -) +from .....types import shared_params +from .....types.spectrums.analytics.events import bytime_spectrum_analytics_by_time_get_analytics_by_time_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Bytimes", "AsyncBytimes"] diff --git a/src/cloudflare/resources/spectrums/analytics/events/events.py b/src/cloudflare/resources/spectrums/analytics/events/events.py index 604caacb691..e5eef7654bb 100644 --- a/src/cloudflare/resources/spectrums/analytics/events/events.py +++ b/src/cloudflare/resources/spectrums/analytics/events/events.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .bytimes import Bytimes, AsyncBytimes + +from ....._compat import cached_property + +from .summaries import Summaries, AsyncSummaries + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .bytimes import ( Bytimes, AsyncBytimes, @@ -18,8 +39,7 @@ SummariesWithStreamingResponse, AsyncSummariesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Events", "AsyncEvents"] diff --git a/src/cloudflare/resources/spectrums/analytics/events/summaries.py b/src/cloudflare/resources/spectrums/analytics/events/summaries.py index ce4554d6a85..c4e29a2a41b 100644 --- a/src/cloudflare/resources/spectrums/analytics/events/summaries.py +++ b/src/cloudflare/resources/spectrums/analytics/events/summaries.py @@ -2,30 +2,46 @@ from __future__ import annotations -from typing import Any, List, Union, Iterable, 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.spectrums.analytics.events import SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse + +from typing import Optional, List, Union, Iterable + +from typing_extensions import Literal + +from datetime import datetime + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.spectrums.analytics.events import ( - SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse, - summary_spectrum_analytics_summary_get_analytics_summary_params, -) +from .....types import shared_params +from .....types.spectrums.analytics.events import summary_spectrum_analytics_summary_get_analytics_summary_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Summaries", "AsyncSummaries"] diff --git a/src/cloudflare/resources/spectrums/apps.py b/src/cloudflare/resources/spectrums/apps.py index bb893137e92..80c622cb21e 100644 --- a/src/cloudflare/resources/spectrums/apps.py +++ b/src/cloudflare/resources/spectrums/apps.py @@ -2,35 +2,62 @@ from __future__ import annotations -from typing import Any, Type, Union, Optional, cast -from typing_extensions import Literal - 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 ...types.spectrums import ( + AppUpdateResponse, + AppDeleteResponse, + AppGetResponse, + AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, + AppSpectrumApplicationsListSpectrumApplicationsResponse, + app_update_params, + app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params, +) + +from typing import Type, Optional, Union + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.spectrums import ( - AppGetResponse, - AppDeleteResponse, - AppUpdateResponse, - AppSpectrumApplicationsListSpectrumApplicationsResponse, - AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, - app_update_params, - app_spectrum_applications_list_spectrum_applications_params, - app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params, -) +from ...types import shared_params +from ...types.spectrums import app_update_params +from ...types.spectrums import app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params +from ...types.spectrums import app_spectrum_applications_list_spectrum_applications_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Apps", "AsyncApps"] diff --git a/src/cloudflare/resources/spectrums/spectrums.py b/src/cloudflare/resources/spectrums/spectrums.py index 831f4521d39..775f58dd744 100644 --- a/src/cloudflare/resources/spectrums/spectrums.py +++ b/src/cloudflare/resources/spectrums/spectrums.py @@ -2,15 +2,27 @@ from __future__ import annotations -from .apps import ( - Apps, - AsyncApps, - AppsWithRawResponse, - AsyncAppsWithRawResponse, - AppsWithStreamingResponse, - AsyncAppsWithStreamingResponse, -) +from .analytics.analytics import Analytics, AsyncAnalytics + from ..._compat import cached_property + +from .apps import Apps, AsyncApps + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .analytics import ( Analytics, AsyncAnalytics, @@ -19,8 +31,15 @@ AnalyticsWithStreamingResponse, AsyncAnalyticsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .analytics.analytics import Analytics, AsyncAnalytics +from .apps import ( + Apps, + AsyncApps, + AppsWithRawResponse, + AsyncAppsWithRawResponse, + AppsWithStreamingResponse, + AsyncAppsWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Spectrums", "AsyncSpectrums"] diff --git a/src/cloudflare/resources/speed_api/__init__.py b/src/cloudflare/resources/speed_api/__init__.py index d3d19b256ff..7f8bcd4d6af 100644 --- a/src/cloudflare/resources/speed_api/__init__.py +++ b/src/cloudflare/resources/speed_api/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .schedule import Schedule, AsyncSchedule from .schedule import ( - Schedule, - AsyncSchedule, ScheduleWithRawResponse, AsyncScheduleWithRawResponse, ScheduleWithStreamingResponse, AsyncScheduleWithStreamingResponse, ) +from .speed_api import SpeedAPI, AsyncSpeedAPI from .speed_api import ( - SpeedAPI, - AsyncSpeedAPI, SpeedAPIWithRawResponse, AsyncSpeedAPIWithRawResponse, SpeedAPIWithStreamingResponse, diff --git a/src/cloudflare/resources/speed_api/schedule.py b/src/cloudflare/resources/speed_api/schedule.py index 4031bb499be..526b545939c 100644 --- a/src/cloudflare/resources/speed_api/schedule.py +++ b/src/cloudflare/resources/speed_api/schedule.py @@ -2,26 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.speed_api import ScheduleCreateResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.speed_api import ScheduleCreateResponse, schedule_create_params +from ...types import shared_params +from ...types.speed_api import schedule_create_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Schedule", "AsyncSchedule"] diff --git a/src/cloudflare/resources/speed_api/speed_api.py b/src/cloudflare/resources/speed_api/speed_api.py index eaa1b1aa48d..8fff61626d7 100644 --- a/src/cloudflare/resources/speed_api/speed_api.py +++ b/src/cloudflare/resources/speed_api/speed_api.py @@ -2,30 +2,56 @@ from __future__ import annotations -from typing import Type, Optional, cast -from typing_extensions import Literal - import httpx +from .schedule import Schedule, AsyncSchedule + +from ..._compat import cached_property + from ...types import ( - SpeedAPITestsGetResponse, + SpeedAPIAvailabilitiesListResponse, SpeedAPIPagesListResponse, - SpeedAPITestsListResponse, - SpeedAPITrendsListResponse, + SpeedAPIScheduleDeleteResponse, SpeedAPIScheduleGetResponse, SpeedAPITestsCreateResponse, SpeedAPITestsDeleteResponse, - SpeedAPIScheduleDeleteResponse, - SpeedAPIAvailabilitiesListResponse, - speed_api_tests_list_params, - speed_api_trends_list_params, - speed_api_schedule_get_params, - speed_api_tests_create_params, - speed_api_tests_delete_params, - speed_api_schedule_delete_params, + SpeedAPITestsGetResponse, + SpeedAPITestsListResponse, + SpeedAPITrendsListResponse, +) + +from typing import Type, Optional + +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 + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import speed_api_schedule_delete_params +from ...types import speed_api_schedule_get_params +from ...types import speed_api_tests_create_params +from ...types import speed_api_tests_delete_params +from ...types import speed_api_tests_list_params +from ...types import speed_api_trends_list_params from .schedule import ( Schedule, AsyncSchedule, @@ -34,18 +60,23 @@ ScheduleWithStreamingResponse, AsyncScheduleWithStreamingResponse, ) -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 typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["SpeedAPI", "AsyncSpeedAPI"] diff --git a/src/cloudflare/resources/ssls/__init__.py b/src/cloudflare/resources/ssls/__init__.py index d5877a6ca34..994f8bfa19c 100644 --- a/src/cloudflare/resources/ssls/__init__.py +++ b/src/cloudflare/resources/ssls/__init__.py @@ -1,52 +1,46 @@ # File generated from our OpenAPI spec by Stainless. -from .ssls import ( - SSLs, - AsyncSSLs, - SSLsWithRawResponse, - AsyncSSLsWithRawResponse, - SSLsWithStreamingResponse, - AsyncSSLsWithStreamingResponse, -) +from .analyzes import Analyzes, AsyncAnalyzes from .analyzes import ( - Analyzes, - AsyncAnalyzes, AnalyzesWithRawResponse, AsyncAnalyzesWithRawResponse, AnalyzesWithStreamingResponse, AsyncAnalyzesWithStreamingResponse, ) +from .certificate_packs import CertificatePacks, AsyncCertificatePacks +from .certificate_packs import ( + CertificatePacksWithRawResponse, + AsyncCertificatePacksWithRawResponse, + CertificatePacksWithStreamingResponse, + AsyncCertificatePacksWithStreamingResponse, +) +from .recommendations import Recommendations, AsyncRecommendations +from .recommendations import ( + RecommendationsWithRawResponse, + AsyncRecommendationsWithRawResponse, + RecommendationsWithStreamingResponse, + AsyncRecommendationsWithStreamingResponse, +) +from .universals import Universals, AsyncUniversals from .universals import ( - Universals, - AsyncUniversals, UniversalsWithRawResponse, AsyncUniversalsWithRawResponse, UniversalsWithStreamingResponse, AsyncUniversalsWithStreamingResponse, ) +from .verifications import Verifications, AsyncVerifications from .verifications import ( - Verifications, - AsyncVerifications, VerificationsWithRawResponse, AsyncVerificationsWithRawResponse, VerificationsWithStreamingResponse, AsyncVerificationsWithStreamingResponse, ) -from .recommendations import ( - Recommendations, - AsyncRecommendations, - RecommendationsWithRawResponse, - AsyncRecommendationsWithRawResponse, - RecommendationsWithStreamingResponse, - AsyncRecommendationsWithStreamingResponse, -) -from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, - CertificatePacksWithRawResponse, - AsyncCertificatePacksWithRawResponse, - CertificatePacksWithStreamingResponse, - AsyncCertificatePacksWithStreamingResponse, +from .ssls import SSLs, AsyncSSLs +from .ssls import ( + SSLsWithRawResponse, + AsyncSSLsWithRawResponse, + SSLsWithStreamingResponse, + AsyncSSLsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/ssls/analyzes.py b/src/cloudflare/resources/ssls/analyzes.py index c9c1264c29a..23586b1452b 100644 --- a/src/cloudflare/resources/ssls/analyzes.py +++ b/src/cloudflare/resources/ssls/analyzes.py @@ -2,29 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.ssls import AnalyzeAnalyzeCertificateAnalyzeCertificateResponse + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.ssls import ( - AnalyzeAnalyzeCertificateAnalyzeCertificateResponse, - analyze_analyze_certificate_analyze_certificate_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.ssls import analyze_analyze_certificate_analyze_certificate_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Analyzes", "AsyncAnalyzes"] diff --git a/src/cloudflare/resources/ssls/certificate_packs/__init__.py b/src/cloudflare/resources/ssls/certificate_packs/__init__.py index 6a2115aecba..91d012e090f 100644 --- a/src/cloudflare/resources/ssls/certificate_packs/__init__.py +++ b/src/cloudflare/resources/ssls/certificate_packs/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .orders import Orders, AsyncOrders from .orders import ( - Orders, - AsyncOrders, OrdersWithRawResponse, AsyncOrdersWithRawResponse, OrdersWithStreamingResponse, AsyncOrdersWithStreamingResponse, ) +from .quotas import Quotas, AsyncQuotas from .quotas import ( - Quotas, - AsyncQuotas, QuotasWithRawResponse, AsyncQuotasWithRawResponse, QuotasWithStreamingResponse, AsyncQuotasWithStreamingResponse, ) +from .certificate_packs import CertificatePacks, AsyncCertificatePacks from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, CertificatePacksWithRawResponse, AsyncCertificatePacksWithRawResponse, CertificatePacksWithStreamingResponse, diff --git a/src/cloudflare/resources/ssls/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssls/certificate_packs/certificate_packs.py index 6d47ad8ddfc..234c921119d 100644 --- a/src/cloudflare/resources/ssls/certificate_packs/certificate_packs.py +++ b/src/cloudflare/resources/ssls/certificate_packs/certificate_packs.py @@ -2,11 +2,48 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast +import httpx + +from .orders import Orders, AsyncOrders + +from ...._compat import cached_property + +from .quotas import Quotas, AsyncQuotas + +from ....types.ssls import ( + CertificatePackUpdateResponse, + CertificatePackDeleteResponse, + CertificatePackCertificatePacksListCertificatePacksResponse, + CertificatePackGetResponse, +) + +from typing import Type, Optional + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.ssls import certificate_pack_certificate_packs_list_certificate_packs_params from .orders import ( Orders, AsyncOrders, @@ -23,27 +60,17 @@ QuotasWithStreamingResponse, AsyncQuotasWithStreamingResponse, ) -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 ...._wrappers import ResultWrapper -from ....types.ssls import ( - CertificatePackGetResponse, - CertificatePackDeleteResponse, - CertificatePackUpdateResponse, - CertificatePackCertificatePacksListCertificatePacksResponse, - certificate_pack_certificate_packs_list_certificate_packs_params, -) -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["CertificatePacks", "AsyncCertificatePacks"] diff --git a/src/cloudflare/resources/ssls/certificate_packs/orders.py b/src/cloudflare/resources/ssls/certificate_packs/orders.py index b4095b436c3..b935a1517af 100644 --- a/src/cloudflare/resources/ssls/certificate_packs/orders.py +++ b/src/cloudflare/resources/ssls/certificate_packs/orders.py @@ -2,29 +2,44 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.ssls.certificate_packs import OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse + +from typing import Type, List + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.ssls.certificate_packs import ( - OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Orders", "AsyncOrders"] diff --git a/src/cloudflare/resources/ssls/certificate_packs/quotas.py b/src/cloudflare/resources/ssls/certificate_packs/quotas.py index a7564ecd731..4e9cd6b1e0b 100644 --- a/src/cloudflare/resources/ssls/certificate_packs/quotas.py +++ b/src/cloudflare/resources/ssls/certificate_packs/quotas.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.ssls.certificate_packs import QuotaCertificatePacksGetCertificatePackQuotasResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.ssls.certificate_packs import QuotaCertificatePacksGetCertificatePackQuotasResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Quotas", "AsyncQuotas"] diff --git a/src/cloudflare/resources/ssls/recommendations.py b/src/cloudflare/resources/ssls/recommendations.py index c68c4e89c80..54928cda7d2 100644 --- a/src/cloudflare/resources/ssls/recommendations.py +++ b/src/cloudflare/resources/ssls/recommendations.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.ssls import RecommendationListResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.ssls import RecommendationListResponse + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Recommendations", "AsyncRecommendations"] diff --git a/src/cloudflare/resources/ssls/ssls.py b/src/cloudflare/resources/ssls/ssls.py index 65e643abed6..6d00488f7df 100644 --- a/src/cloudflare/resources/ssls/ssls.py +++ b/src/cloudflare/resources/ssls/ssls.py @@ -2,6 +2,33 @@ from __future__ import annotations +from .analyzes import Analyzes, AsyncAnalyzes + +from ..._compat import cached_property + +from .certificate_packs.certificate_packs import CertificatePacks, AsyncCertificatePacks + +from .recommendations import Recommendations, AsyncRecommendations + +from .universals.universals import Universals, AsyncUniversals + +from .verifications import Verifications, AsyncVerifications + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .analyzes import ( Analyzes, AsyncAnalyzes, @@ -10,7 +37,22 @@ AnalyzesWithStreamingResponse, AsyncAnalyzesWithStreamingResponse, ) -from ..._compat import cached_property +from .certificate_packs import ( + CertificatePacks, + AsyncCertificatePacks, + CertificatePacksWithRawResponse, + AsyncCertificatePacksWithRawResponse, + CertificatePacksWithStreamingResponse, + AsyncCertificatePacksWithStreamingResponse, +) +from .recommendations import ( + Recommendations, + AsyncRecommendations, + RecommendationsWithRawResponse, + AsyncRecommendationsWithRawResponse, + RecommendationsWithStreamingResponse, + AsyncRecommendationsWithStreamingResponse, +) from .universals import ( Universals, AsyncUniversals, @@ -19,7 +61,6 @@ UniversalsWithStreamingResponse, AsyncUniversalsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource from .verifications import ( Verifications, AsyncVerifications, @@ -28,24 +69,7 @@ VerificationsWithStreamingResponse, AsyncVerificationsWithStreamingResponse, ) -from .recommendations import ( - Recommendations, - AsyncRecommendations, - RecommendationsWithRawResponse, - AsyncRecommendationsWithRawResponse, - RecommendationsWithStreamingResponse, - AsyncRecommendationsWithStreamingResponse, -) -from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, - CertificatePacksWithRawResponse, - AsyncCertificatePacksWithRawResponse, - CertificatePacksWithStreamingResponse, - AsyncCertificatePacksWithStreamingResponse, -) -from .universals.universals import Universals, AsyncUniversals -from .certificate_packs.certificate_packs import CertificatePacks, AsyncCertificatePacks +from ..._wrappers import ResultWrapper __all__ = ["SSLs", "AsyncSSLs"] diff --git a/src/cloudflare/resources/ssls/universals/__init__.py b/src/cloudflare/resources/ssls/universals/__init__.py index cd762110fb3..59862430009 100644 --- a/src/cloudflare/resources/ssls/universals/__init__.py +++ b/src/cloudflare/resources/ssls/universals/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .universals import Universals, AsyncUniversals from .universals import ( - Universals, - AsyncUniversals, UniversalsWithRawResponse, AsyncUniversalsWithRawResponse, UniversalsWithStreamingResponse, diff --git a/src/cloudflare/resources/ssls/universals/settings.py b/src/cloudflare/resources/ssls/universals/settings.py index 844a7807feb..00dc5bce3ab 100644 --- a/src/cloudflare/resources/ssls/universals/settings.py +++ b/src/cloudflare/resources/ssls/universals/settings.py @@ -2,25 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.ssls.universals import SettingUpdateResponse, SettingGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.ssls.universals import SettingGetResponse, SettingUpdateResponse, setting_update_params +from ....types import shared_params +from ....types.ssls.universals import setting_update_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/ssls/universals/universals.py b/src/cloudflare/resources/ssls/universals/universals.py index b11bc872f36..e59fb235deb 100644 --- a/src/cloudflare/resources/ssls/universals/universals.py +++ b/src/cloudflare/resources/ssls/universals/universals.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .settings import Settings, AsyncSettings + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .settings import ( Settings, AsyncSettings, @@ -10,8 +29,7 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["Universals", "AsyncUniversals"] diff --git a/src/cloudflare/resources/ssls/verifications.py b/src/cloudflare/resources/ssls/verifications.py index 8b1c29c8e6f..6c643b55801 100644 --- a/src/cloudflare/resources/ssls/verifications.py +++ b/src/cloudflare/resources/ssls/verifications.py @@ -2,31 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.ssls import VerificationUpdateResponse, VerificationSSLVerificationSSLVerificationDetailsResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.ssls import ( - VerificationUpdateResponse, - VerificationSSLVerificationSSLVerificationDetailsResponse, - verification_update_params, - verification_ssl_verification_ssl_verification_details_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.ssls import verification_update_params +from ...types.ssls import verification_ssl_verification_ssl_verification_details_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Verifications", "AsyncVerifications"] diff --git a/src/cloudflare/resources/storage/__init__.py b/src/cloudflare/resources/storage/__init__.py index 51d34cc37b5..42351d3837f 100644 --- a/src/cloudflare/resources/storage/__init__.py +++ b/src/cloudflare/resources/storage/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .kv import ( - Kv, - AsyncKv, - KvWithRawResponse, - AsyncKvWithRawResponse, - KvWithStreamingResponse, - AsyncKvWithStreamingResponse, +from .analytics import Analytics, AsyncAnalytics +from .analytics import ( + AnalyticsWithRawResponse, + AsyncAnalyticsWithRawResponse, + AnalyticsWithStreamingResponse, + AsyncAnalyticsWithStreamingResponse, ) +from .kv import Kv, AsyncKv +from .kv import KvWithRawResponse, AsyncKvWithRawResponse, KvWithStreamingResponse, AsyncKvWithStreamingResponse +from .storage import Storage, AsyncStorage from .storage import ( - Storage, - AsyncStorage, StorageWithRawResponse, AsyncStorageWithRawResponse, StorageWithStreamingResponse, AsyncStorageWithStreamingResponse, ) -from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, -) __all__ = [ "Analytics", diff --git a/src/cloudflare/resources/storage/analytics.py b/src/cloudflare/resources/storage/analytics.py index 747c819a421..b15059341c8 100644 --- a/src/cloudflare/resources/storage/analytics.py +++ b/src/cloudflare/resources/storage/analytics.py @@ -2,30 +2,48 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.storage import ( + AnalyticsListResponse, + AnalyticsStoredResponse, + analytics_list_params, + analytics_stored_params, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.storage import ( - AnalyticsListResponse, - AnalyticsStoredResponse, - analytics_list_params, - analytics_stored_params, -) +from ...types import shared_params +from ...types.storage import analytics_list_params +from ...types.storage import analytics_stored_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Analytics", "AsyncAnalytics"] diff --git a/src/cloudflare/resources/storage/kv/__init__.py b/src/cloudflare/resources/storage/kv/__init__.py index 8f5ae1edcc7..8ff87c70d17 100644 --- a/src/cloudflare/resources/storage/kv/__init__.py +++ b/src/cloudflare/resources/storage/kv/__init__.py @@ -1,21 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from .kv import ( - Kv, - AsyncKv, - KvWithRawResponse, - AsyncKvWithRawResponse, - KvWithStreamingResponse, - AsyncKvWithStreamingResponse, -) +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) +from .kv import Kv, AsyncKv +from .kv import KvWithRawResponse, AsyncKvWithRawResponse, KvWithStreamingResponse, AsyncKvWithStreamingResponse __all__ = [ "Namespaces", diff --git a/src/cloudflare/resources/storage/kv/kv.py b/src/cloudflare/resources/storage/kv/kv.py index 14defb6daa8..4f69ec11bc9 100644 --- a/src/cloudflare/resources/storage/kv/kv.py +++ b/src/cloudflare/resources/storage/kv/kv.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .namespaces.namespaces import Namespaces, AsyncNamespaces + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .namespaces import ( Namespaces, AsyncNamespaces, @@ -11,8 +29,7 @@ NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from ...._wrappers import ResultWrapper __all__ = ["Kv", "AsyncKv"] diff --git a/src/cloudflare/resources/storage/kv/namespaces/__init__.py b/src/cloudflare/resources/storage/kv/namespaces/__init__.py index c6cab044376..03a7af6c373 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/__init__.py +++ b/src/cloudflare/resources/storage/kv/namespaces/__init__.py @@ -1,40 +1,35 @@ # File generated from our OpenAPI spec by Stainless. -from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, -) +from .bulks import Bulks, AsyncBulks from .bulks import ( - Bulks, - AsyncBulks, BulksWithRawResponse, AsyncBulksWithRawResponse, BulksWithStreamingResponse, AsyncBulksWithStreamingResponse, ) -from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, +from .keys import Keys, AsyncKeys +from .keys import ( + KeysWithRawResponse, + AsyncKeysWithRawResponse, + KeysWithStreamingResponse, + AsyncKeysWithStreamingResponse, ) +from .metadata import Metadata, AsyncMetadata from .metadata import ( - Metadata, - AsyncMetadata, MetadataWithRawResponse, AsyncMetadataWithRawResponse, MetadataWithStreamingResponse, AsyncMetadataWithStreamingResponse, ) +from .values import Values, AsyncValues +from .values import ( + ValuesWithRawResponse, + AsyncValuesWithRawResponse, + ValuesWithStreamingResponse, + AsyncValuesWithStreamingResponse, +) +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, diff --git a/src/cloudflare/resources/storage/kv/namespaces/bulks.py b/src/cloudflare/resources/storage/kv/namespaces/bulks.py index 861327e594d..677589187e9 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/bulks.py +++ b/src/cloudflare/resources/storage/kv/namespaces/bulks.py @@ -2,30 +2,51 @@ from __future__ import annotations -from typing import Any, List, Iterable, cast - 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 .....types.storage.kv.namespaces import ( + BulkDeleteResponse, + BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, + bulk_workers_kv_namespace_write_multiple_key_value_pairs_params, +) + +from typing import List, Iterable + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.storage.kv.namespaces import ( - BulkDeleteResponse, - BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, - bulk_delete_params, - bulk_workers_kv_namespace_write_multiple_key_value_pairs_params, -) +from .....types import shared_params +from .....types.storage.kv.namespaces import bulk_delete_params +from .....types.storage.kv.namespaces import bulk_workers_kv_namespace_write_multiple_key_value_pairs_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Bulks", "AsyncBulks"] diff --git a/src/cloudflare/resources/storage/kv/namespaces/keys.py b/src/cloudflare/resources/storage/kv/namespaces/keys.py index ef1618de6d1..d2c5beadcb1 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/keys.py +++ b/src/cloudflare/resources/storage/kv/namespaces/keys.py @@ -2,25 +2,40 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.storage.kv.namespaces import KeyListResponse + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.storage.kv.namespaces import KeyListResponse, key_list_params +from .....types import shared_params +from .....types.storage.kv.namespaces import key_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Keys", "AsyncKeys"] diff --git a/src/cloudflare/resources/storage/kv/namespaces/metadata.py b/src/cloudflare/resources/storage/kv/namespaces/metadata.py index 4b17752f4aa..4fa81df8f7e 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/metadata.py +++ b/src/cloudflare/resources/storage/kv/namespaces/metadata.py @@ -2,23 +2,37 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Metadata", "AsyncMetadata"] diff --git a/src/cloudflare/resources/storage/kv/namespaces/namespaces.py b/src/cloudflare/resources/storage/kv/namespaces/namespaces.py index 70a34ff1299..7d1a3d46249 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/namespaces.py +++ b/src/cloudflare/resources/storage/kv/namespaces/namespaces.py @@ -2,19 +2,54 @@ from __future__ import annotations -from typing import Any, Type, Optional, cast +import httpx + +from .bulks import Bulks, AsyncBulks + +from ....._compat import cached_property + +from .keys import Keys, AsyncKeys + +from .metadata import Metadata, AsyncMetadata + +from .values import Values, AsyncValues + +from .....types.storage.kv import ( + NamespaceUpdateResponse, + NamespaceListResponse, + NamespaceDeleteResponse, + NamespaceWorkersKvNamespaceCreateANamespaceResponse, +) + +from typing import Type, Optional + from typing_extensions import Literal -import httpx +from ....._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, +) -from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from .....types import shared_params +from .....types.storage.kv import namespace_update_params +from .....types.storage.kv import namespace_list_params +from .....types.storage.kv import namespace_workers_kv_namespace_create_a_namespace_params from .bulks import ( Bulks, AsyncBulks, @@ -23,13 +58,13 @@ BulksWithStreamingResponse, AsyncBulksWithStreamingResponse, ) -from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, +from .keys import ( + Keys, + AsyncKeys, + KeysWithRawResponse, + AsyncKeysWithRawResponse, + KeysWithStreamingResponse, + AsyncKeysWithStreamingResponse, ) from .metadata import ( Metadata, @@ -39,29 +74,27 @@ MetadataWithStreamingResponse, AsyncMetadataWithStreamingResponse, ) -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 .values import ( + Values, + AsyncValues, + ValuesWithRawResponse, + AsyncValuesWithRawResponse, + ValuesWithStreamingResponse, + AsyncValuesWithStreamingResponse, ) from ....._wrappers import ResultWrapper -from ....._base_client import ( - make_request_options, -) -from .....types.storage.kv import ( - NamespaceListResponse, - NamespaceDeleteResponse, - NamespaceUpdateResponse, - NamespaceWorkersKvNamespaceCreateANamespaceResponse, - namespace_list_params, - namespace_update_params, - namespace_workers_kv_namespace_create_a_namespace_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 __all__ = ["Namespaces", "AsyncNamespaces"] diff --git a/src/cloudflare/resources/storage/kv/namespaces/values.py b/src/cloudflare/resources/storage/kv/namespaces/values.py index 3315e4471d2..f7ccd6e99ed 100644 --- a/src/cloudflare/resources/storage/kv/namespaces/values.py +++ b/src/cloudflare/resources/storage/kv/namespaces/values.py @@ -2,29 +2,44 @@ from __future__ import annotations -from typing import Any, cast - 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 .....types.storage.kv.namespaces import ValueUpdateResponse, ValueDeleteResponse, ValueGetResponse + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.storage.kv.namespaces import ( - ValueDeleteResponse, - ValueUpdateResponse, - value_update_params, -) +from .....types import shared_params +from .....types.storage.kv.namespaces import value_update_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Values", "AsyncValues"] diff --git a/src/cloudflare/resources/storage/storage.py b/src/cloudflare/resources/storage/storage.py index 16ae0d598b3..80b2402bb63 100644 --- a/src/cloudflare/resources/storage/storage.py +++ b/src/cloudflare/resources/storage/storage.py @@ -2,16 +2,27 @@ from __future__ import annotations -from .kv import ( - Kv, - AsyncKv, - KvWithRawResponse, - AsyncKvWithRawResponse, - KvWithStreamingResponse, - AsyncKvWithStreamingResponse, -) -from .kv.kv import Kv, AsyncKv +from .analytics import Analytics, AsyncAnalytics + from ..._compat import cached_property + +from .kv.kv import Kv, AsyncKv + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .analytics import ( Analytics, AsyncAnalytics, @@ -20,7 +31,15 @@ AnalyticsWithStreamingResponse, AsyncAnalyticsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from .kv import ( + Kv, + AsyncKv, + KvWithRawResponse, + AsyncKvWithRawResponse, + KvWithStreamingResponse, + AsyncKvWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Storage", "AsyncStorage"] diff --git a/src/cloudflare/resources/stream/__init__.py b/src/cloudflare/resources/stream/__init__.py index d3b2ffff812..c62d6a1a16a 100644 --- a/src/cloudflare/resources/stream/__init__.py +++ b/src/cloudflare/resources/stream/__init__.py @@ -1,116 +1,102 @@ # File generated from our OpenAPI spec by Stainless. -from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, +from .audio_tracks import AudioTracks, AsyncAudioTracks +from .audio_tracks import ( + AudioTracksWithRawResponse, + AsyncAudioTracksWithRawResponse, + AudioTracksWithStreamingResponse, + AsyncAudioTracksWithStreamingResponse, +) +from .videos import Videos, AsyncVideos +from .videos import ( + VideosWithRawResponse, + AsyncVideosWithRawResponse, + VideosWithStreamingResponse, + AsyncVideosWithStreamingResponse, ) +from .clips import Clips, AsyncClips from .clips import ( - Clips, - AsyncClips, ClipsWithRawResponse, AsyncClipsWithRawResponse, ClipsWithStreamingResponse, AsyncClipsWithStreamingResponse, ) +from .copies import Copies, AsyncCopies from .copies import ( - Copies, - AsyncCopies, CopiesWithRawResponse, AsyncCopiesWithRawResponse, CopiesWithStreamingResponse, AsyncCopiesWithStreamingResponse, ) -from .embeds import ( - Embeds, - AsyncEmbeds, - EmbedsWithRawResponse, - AsyncEmbedsWithRawResponse, - EmbedsWithStreamingResponse, - AsyncEmbedsWithStreamingResponse, -) -from .stream import ( - Stream, - AsyncStream, - StreamWithRawResponse, - AsyncStreamWithRawResponse, - StreamWithStreamingResponse, - AsyncStreamWithStreamingResponse, +from .direct_uploads import DirectUploads, AsyncDirectUploads +from .direct_uploads import ( + DirectUploadsWithRawResponse, + AsyncDirectUploadsWithRawResponse, + DirectUploadsWithStreamingResponse, + AsyncDirectUploadsWithStreamingResponse, ) -from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, +from .keys import Keys, AsyncKeys +from .keys import ( + KeysWithRawResponse, + AsyncKeysWithRawResponse, + KeysWithStreamingResponse, + AsyncKeysWithStreamingResponse, ) -from .videos import ( - Videos, - AsyncVideos, - VideosWithRawResponse, - AsyncVideosWithRawResponse, - VideosWithStreamingResponse, - AsyncVideosWithStreamingResponse, +from .live_inputs import LiveInputs, AsyncLiveInputs +from .live_inputs import ( + LiveInputsWithRawResponse, + AsyncLiveInputsWithRawResponse, + LiveInputsWithStreamingResponse, + AsyncLiveInputsWithStreamingResponse, ) -from .captions import ( - Captions, - AsyncCaptions, - CaptionsWithRawResponse, - AsyncCaptionsWithRawResponse, - CaptionsWithStreamingResponse, - AsyncCaptionsWithStreamingResponse, +from .watermarks import Watermarks, AsyncWatermarks +from .watermarks import ( + WatermarksWithRawResponse, + AsyncWatermarksWithRawResponse, + WatermarksWithStreamingResponse, + AsyncWatermarksWithStreamingResponse, ) +from .webhooks import Webhooks, AsyncWebhooks from .webhooks import ( - Webhooks, - AsyncWebhooks, WebhooksWithRawResponse, AsyncWebhooksWithRawResponse, WebhooksWithStreamingResponse, AsyncWebhooksWithStreamingResponse, ) +from .captions import Captions, AsyncCaptions +from .captions import ( + CaptionsWithRawResponse, + AsyncCaptionsWithRawResponse, + CaptionsWithStreamingResponse, + AsyncCaptionsWithStreamingResponse, +) +from .downloads import Downloads, AsyncDownloads from .downloads import ( - Downloads, - AsyncDownloads, DownloadsWithRawResponse, AsyncDownloadsWithRawResponse, DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) -from .watermarks import ( - Watermarks, - AsyncWatermarks, - WatermarksWithRawResponse, - AsyncWatermarksWithRawResponse, - WatermarksWithStreamingResponse, - AsyncWatermarksWithStreamingResponse, -) -from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, - LiveInputsWithRawResponse, - AsyncLiveInputsWithRawResponse, - LiveInputsWithStreamingResponse, - AsyncLiveInputsWithStreamingResponse, +from .embeds import Embeds, AsyncEmbeds +from .embeds import ( + EmbedsWithRawResponse, + AsyncEmbedsWithRawResponse, + EmbedsWithStreamingResponse, + AsyncEmbedsWithStreamingResponse, ) -from .audio_tracks import ( - AudioTracks, - AsyncAudioTracks, - AudioTracksWithRawResponse, - AsyncAudioTracksWithRawResponse, - AudioTracksWithStreamingResponse, - AsyncAudioTracksWithStreamingResponse, +from .tokens import Tokens, AsyncTokens +from .tokens import ( + TokensWithRawResponse, + AsyncTokensWithRawResponse, + TokensWithStreamingResponse, + AsyncTokensWithStreamingResponse, ) -from .direct_uploads import ( - DirectUploads, - AsyncDirectUploads, - DirectUploadsWithRawResponse, - AsyncDirectUploadsWithRawResponse, - DirectUploadsWithStreamingResponse, - AsyncDirectUploadsWithStreamingResponse, +from .stream import Stream, AsyncStream +from .stream import ( + StreamWithRawResponse, + AsyncStreamWithRawResponse, + StreamWithStreamingResponse, + AsyncStreamWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/stream/audio_tracks.py b/src/cloudflare/resources/stream/audio_tracks.py index 67240f91cb4..11b97fb7032 100644 --- a/src/cloudflare/resources/stream/audio_tracks.py +++ b/src/cloudflare/resources/stream/audio_tracks.py @@ -2,32 +2,54 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + AudioTrackUpdateResponse, + AudioTrackListResponse, + AudioTrackDeleteResponse, + AudioTrackCopyResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - AudioTrackCopyResponse, - AudioTrackListResponse, - AudioTrackDeleteResponse, - AudioTrackUpdateResponse, - audio_track_copy_params, - audio_track_update_params, -) +from ...types import shared_params +from ...types.stream import audio_track_update_params +from ...types.stream import audio_track_copy_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["AudioTracks", "AsyncAudioTracks"] diff --git a/src/cloudflare/resources/stream/captions.py b/src/cloudflare/resources/stream/captions.py index 436f0ba6633..1ff97bb8387 100644 --- a/src/cloudflare/resources/stream/captions.py +++ b/src/cloudflare/resources/stream/captions.py @@ -2,30 +2,52 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + CaptionUpdateResponse, + CaptionDeleteResponse, + CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - CaptionDeleteResponse, - CaptionUpdateResponse, - CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, - caption_update_params, -) +from ...types import shared_params +from ...types.stream import caption_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Captions", "AsyncCaptions"] diff --git a/src/cloudflare/resources/stream/clips.py b/src/cloudflare/resources/stream/clips.py index 7a96f908da0..7138ae95aff 100644 --- a/src/cloudflare/resources/stream/clips.py +++ b/src/cloudflare/resources/stream/clips.py @@ -2,28 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse, + clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params, +) + +from typing import Type, List + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse, - clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params, -) +from ...types import shared_params +from ...types.stream import clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Clips", "AsyncClips"] diff --git a/src/cloudflare/resources/stream/copies.py b/src/cloudflare/resources/stream/copies.py index b5b18e88c0d..c18d3c7a44f 100644 --- a/src/cloudflare/resources/stream/copies.py +++ b/src/cloudflare/resources/stream/copies.py @@ -2,29 +2,45 @@ from __future__ import annotations -from typing import List, Type, Union, cast -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 ...types.stream import ( + CopyStreamVideosUploadVideosFromAURLResponse, + copy_stream_videos_upload_videos_from_a_url_params, +) + +from typing import Type, List, Union + +from datetime import datetime + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - CopyStreamVideosUploadVideosFromAURLResponse, - copy_stream_videos_upload_videos_from_a_url_params, -) +from ...types import shared_params +from ...types.stream import copy_stream_videos_upload_videos_from_a_url_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Copies", "AsyncCopies"] diff --git a/src/cloudflare/resources/stream/direct_uploads.py b/src/cloudflare/resources/stream/direct_uploads.py index 84fbff5dfc9..0f3ead87385 100644 --- a/src/cloudflare/resources/stream/direct_uploads.py +++ b/src/cloudflare/resources/stream/direct_uploads.py @@ -2,29 +2,45 @@ from __future__ import annotations -from typing import List, Type, Union, cast -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 ...types.stream import ( + DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse, + direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params, +) + +from typing import Type, List, Union + +from datetime import datetime + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse, - direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params, -) +from ...types import shared_params +from ...types.stream import direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["DirectUploads", "AsyncDirectUploads"] diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py index 10ca1faa6bd..6bc223b9500 100644 --- a/src/cloudflare/resources/stream/downloads.py +++ b/src/cloudflare/resources/stream/downloads.py @@ -2,28 +2,51 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + DownloadDeleteResponse, + DownloadStreamMP4DownloadsCreateDownloadsResponse, + DownloadStreamMP4DownloadsListDownloadsResponse, +) + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - DownloadDeleteResponse, - DownloadStreamMP4DownloadsListDownloadsResponse, - DownloadStreamMP4DownloadsCreateDownloadsResponse, -) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Downloads", "AsyncDownloads"] diff --git a/src/cloudflare/resources/stream/embeds.py b/src/cloudflare/resources/stream/embeds.py index 4b3578afc8f..93a9b7d37a9 100644 --- a/src/cloudflare/resources/stream/embeds.py +++ b/src/cloudflare/resources/stream/embeds.py @@ -4,18 +4,31 @@ import httpx -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, + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Embeds", "AsyncEmbeds"] diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py index e6aa4e2d0ae..c07d8841958 100644 --- a/src/cloudflare/resources/stream/keys.py +++ b/src/cloudflare/resources/stream/keys.py @@ -2,28 +2,49 @@ from __future__ import annotations -from typing import Any, Type, cast - import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + KeyDeleteResponse, + KeyStreamSigningKeysCreateSigningKeysResponse, + KeyStreamSigningKeysListSigningKeysResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - KeyDeleteResponse, - KeyStreamSigningKeysListSigningKeysResponse, - KeyStreamSigningKeysCreateSigningKeysResponse, -) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Keys", "AsyncKeys"] diff --git a/src/cloudflare/resources/stream/live_inputs/__init__.py b/src/cloudflare/resources/stream/live_inputs/__init__.py index 6fa4b844491..f808fdea8d8 100644 --- a/src/cloudflare/resources/stream/live_inputs/__init__.py +++ b/src/cloudflare/resources/stream/live_inputs/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .outputs import Outputs, AsyncOutputs from .outputs import ( - Outputs, - AsyncOutputs, OutputsWithRawResponse, AsyncOutputsWithRawResponse, OutputsWithStreamingResponse, AsyncOutputsWithStreamingResponse, ) +from .live_inputs import LiveInputs, AsyncLiveInputs from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, LiveInputsWithRawResponse, AsyncLiveInputsWithRawResponse, LiveInputsWithStreamingResponse, diff --git a/src/cloudflare/resources/stream/live_inputs/live_inputs.py b/src/cloudflare/resources/stream/live_inputs/live_inputs.py index 09024eb36d9..a7fb441e961 100644 --- a/src/cloudflare/resources/stream/live_inputs/live_inputs.py +++ b/src/cloudflare/resources/stream/live_inputs/live_inputs.py @@ -2,41 +2,65 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .outputs import ( - Outputs, - AsyncOutputs, - OutputsWithRawResponse, - AsyncOutputsWithRawResponse, - OutputsWithStreamingResponse, - AsyncOutputsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven -from ...._utils import maybe_transform +from .outputs import Outputs, AsyncOutputs + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.stream import ( + LiveInputUpdateResponse, + LiveInputGetResponse, + LiveInputStreamLiveInputsCreateALiveInputResponse, + LiveInputStreamLiveInputsListLiveInputsResponse, + live_input_update_params, + live_input_stream_live_inputs_create_a_live_input_params, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.stream import ( - LiveInputGetResponse, - LiveInputUpdateResponse, - LiveInputStreamLiveInputsListLiveInputsResponse, - LiveInputStreamLiveInputsCreateALiveInputResponse, - live_input_update_params, - live_input_stream_live_inputs_list_live_inputs_params, - live_input_stream_live_inputs_create_a_live_input_params, +from ....types import shared_params +from ....types.stream import live_input_update_params +from ....types.stream import live_input_stream_live_inputs_create_a_live_input_params +from ....types.stream import live_input_stream_live_inputs_list_live_inputs_params +from .outputs import ( + Outputs, + AsyncOutputs, + OutputsWithRawResponse, + AsyncOutputsWithRawResponse, + OutputsWithStreamingResponse, + AsyncOutputsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["LiveInputs", "AsyncLiveInputs"] diff --git a/src/cloudflare/resources/stream/live_inputs/outputs.py b/src/cloudflare/resources/stream/live_inputs/outputs.py index 1720a6ad0c9..1d624d87e25 100644 --- a/src/cloudflare/resources/stream/live_inputs/outputs.py +++ b/src/cloudflare/resources/stream/live_inputs/outputs.py @@ -2,31 +2,49 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven -from ...._utils import maybe_transform from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.stream.live_inputs import ( + OutputUpdateResponse, + OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, + OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.stream.live_inputs import ( - OutputUpdateResponse, - OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, - OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, - output_update_params, - output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params, -) +from ....types import shared_params +from ....types.stream.live_inputs import output_update_params +from ....types.stream.live_inputs import output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params +from ...._wrappers import ResultWrapper +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__ = ["Outputs", "AsyncOutputs"] diff --git a/src/cloudflare/resources/stream/stream.py b/src/cloudflare/resources/stream/stream.py index 32d3a6122dc..40e9f0e6732 100644 --- a/src/cloudflare/resources/stream/stream.py +++ b/src/cloudflare/resources/stream/stream.py @@ -2,19 +2,83 @@ from __future__ import annotations -from typing import List, Type, Union, cast +import httpx + +from .audio_tracks import AudioTracks, AsyncAudioTracks + +from ..._compat import cached_property + +from .videos import Videos, AsyncVideos + +from .clips import Clips, AsyncClips + +from .copies import Copies, AsyncCopies + +from .direct_uploads import DirectUploads, AsyncDirectUploads + +from .keys import Keys, AsyncKeys + +from .live_inputs.live_inputs import LiveInputs, AsyncLiveInputs + +from .watermarks import Watermarks, AsyncWatermarks + +from .webhooks import Webhooks, AsyncWebhooks + +from .captions import Captions, AsyncCaptions + +from .downloads import Downloads, AsyncDownloads + +from .embeds import Embeds, AsyncEmbeds + +from .tokens import Tokens, AsyncTokens + +from ...types import StreamUpdateResponse, StreamGetResponse, StreamStreamVideosListVideosResponse + +from typing import Type, List, Union + from datetime import datetime + from typing_extensions import Literal -import httpx +from ..._response import ( + to_raw_response_wrapper, + async_to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_streamed_response_wrapper, +) -from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import stream_update_params +from ...types import stream_stream_videos_list_videos_params +from .audio_tracks import ( + AudioTracks, + AsyncAudioTracks, + AudioTracksWithRawResponse, + AsyncAudioTracksWithRawResponse, + AudioTracksWithStreamingResponse, + AsyncAudioTracksWithStreamingResponse, +) +from .videos import ( + Videos, + AsyncVideos, + VideosWithRawResponse, + AsyncVideosWithRawResponse, + VideosWithStreamingResponse, + AsyncVideosWithStreamingResponse, ) from .clips import ( Clips, @@ -32,46 +96,37 @@ CopiesWithStreamingResponse, AsyncCopiesWithStreamingResponse, ) -from .embeds import ( - Embeds, - AsyncEmbeds, - EmbedsWithRawResponse, - AsyncEmbedsWithRawResponse, - EmbedsWithStreamingResponse, - AsyncEmbedsWithStreamingResponse, -) -from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, +from .direct_uploads import ( + DirectUploads, + AsyncDirectUploads, + DirectUploadsWithRawResponse, + AsyncDirectUploadsWithRawResponse, + DirectUploadsWithStreamingResponse, + AsyncDirectUploadsWithStreamingResponse, ) -from .videos import ( - Videos, - AsyncVideos, - VideosWithRawResponse, - AsyncVideosWithRawResponse, - VideosWithStreamingResponse, - AsyncVideosWithStreamingResponse, +from .keys import ( + Keys, + AsyncKeys, + KeysWithRawResponse, + AsyncKeysWithRawResponse, + KeysWithStreamingResponse, + AsyncKeysWithStreamingResponse, ) -from ...types import ( - StreamGetResponse, - StreamUpdateResponse, - StreamStreamVideosListVideosResponse, - stream_update_params, - stream_stream_videos_list_videos_params, +from .live_inputs import ( + LiveInputs, + AsyncLiveInputs, + LiveInputsWithRawResponse, + AsyncLiveInputsWithRawResponse, + LiveInputsWithStreamingResponse, + AsyncLiveInputsWithStreamingResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven -from ..._utils import maybe_transform -from .captions import ( - Captions, - AsyncCaptions, - CaptionsWithRawResponse, - AsyncCaptionsWithRawResponse, - CaptionsWithStreamingResponse, - AsyncCaptionsWithStreamingResponse, +from .watermarks import ( + Watermarks, + AsyncWatermarks, + WatermarksWithRawResponse, + AsyncWatermarksWithRawResponse, + WatermarksWithStreamingResponse, + AsyncWatermarksWithStreamingResponse, ) from .webhooks import ( Webhooks, @@ -81,7 +136,14 @@ WebhooksWithStreamingResponse, AsyncWebhooksWithStreamingResponse, ) -from ..._compat import cached_property +from .captions import ( + Captions, + AsyncCaptions, + CaptionsWithRawResponse, + AsyncCaptionsWithRawResponse, + CaptionsWithStreamingResponse, + AsyncCaptionsWithStreamingResponse, +) from .downloads import ( Downloads, AsyncDownloads, @@ -90,50 +152,29 @@ DownloadsWithStreamingResponse, AsyncDownloadsWithStreamingResponse, ) -from .watermarks import ( - Watermarks, - AsyncWatermarks, - WatermarksWithRawResponse, - AsyncWatermarksWithRawResponse, - WatermarksWithStreamingResponse, - AsyncWatermarksWithStreamingResponse, +from .embeds import ( + Embeds, + AsyncEmbeds, + EmbedsWithRawResponse, + AsyncEmbedsWithRawResponse, + EmbedsWithStreamingResponse, + AsyncEmbedsWithStreamingResponse, ) -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 .tokens import ( + Tokens, + AsyncTokens, + TokensWithRawResponse, + AsyncTokensWithRawResponse, + TokensWithStreamingResponse, + AsyncTokensWithStreamingResponse, ) from ..._wrappers import ResultWrapper -from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, - LiveInputsWithRawResponse, - AsyncLiveInputsWithRawResponse, - LiveInputsWithStreamingResponse, - AsyncLiveInputsWithStreamingResponse, -) -from .audio_tracks import ( - AudioTracks, - AsyncAudioTracks, - AudioTracksWithRawResponse, - AsyncAudioTracksWithRawResponse, - AudioTracksWithStreamingResponse, - AsyncAudioTracksWithStreamingResponse, -) -from ..._base_client import ( - make_request_options, -) -from .direct_uploads import ( - DirectUploads, - AsyncDirectUploads, - DirectUploadsWithRawResponse, - AsyncDirectUploadsWithRawResponse, - DirectUploadsWithStreamingResponse, - AsyncDirectUploadsWithStreamingResponse, -) -from .live_inputs.live_inputs import LiveInputs, AsyncLiveInputs +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__ = ["Stream", "AsyncStream"] diff --git a/src/cloudflare/resources/stream/tokens.py b/src/cloudflare/resources/stream/tokens.py index c24ddd2bf7a..bc2c0b8ffce 100644 --- a/src/cloudflare/resources/stream/tokens.py +++ b/src/cloudflare/resources/stream/tokens.py @@ -2,28 +2,43 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + TokenStreamVideosCreateSignedURLTokensForVideosResponse, + token_stream_videos_create_signed_url_tokens_for_videos_params, +) + +from typing import Type, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - TokenStreamVideosCreateSignedURLTokensForVideosResponse, - token_stream_videos_create_signed_url_tokens_for_videos_params, -) +from ...types import shared_params +from ...types.stream import token_stream_videos_create_signed_url_tokens_for_videos_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Tokens", "AsyncTokens"] diff --git a/src/cloudflare/resources/stream/videos.py b/src/cloudflare/resources/stream/videos.py index 8503af19b82..e567516080a 100644 --- a/src/cloudflare/resources/stream/videos.py +++ b/src/cloudflare/resources/stream/videos.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import VideoStorageUsageResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import VideoStorageUsageResponse, video_storage_usage_params +from ...types import shared_params +from ...types.stream import video_storage_usage_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Videos", "AsyncVideos"] diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py index d5c2ca58569..93068db1950 100644 --- a/src/cloudflare/resources/stream/watermarks.py +++ b/src/cloudflare/resources/stream/watermarks.py @@ -2,31 +2,57 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.stream import ( + WatermarkDeleteResponse, + WatermarkGetResponse, + WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, + WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - WatermarkGetResponse, - WatermarkDeleteResponse, - WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, - WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, - watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params, -) +from ...types import shared_params +from ...types.stream import watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Watermarks", "AsyncWatermarks"] diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py index 77536e78a9c..6876005284b 100644 --- a/src/cloudflare/resources/stream/webhooks.py +++ b/src/cloudflare/resources/stream/webhooks.py @@ -2,30 +2,52 @@ from __future__ import annotations -from typing import Any, cast - 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 ...types.stream import ( + WebhookDeleteResponse, + WebhookStreamWebhookCreateWebhooksResponse, + WebhookStreamWebhookViewWebhooksResponse, +) + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.stream import ( - WebhookDeleteResponse, - WebhookStreamWebhookViewWebhooksResponse, - WebhookStreamWebhookCreateWebhooksResponse, - webhook_stream_webhook_create_webhooks_params, -) +from ...types import shared_params +from ...types.stream import webhook_stream_webhook_create_webhooks_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Webhooks", "AsyncWebhooks"] diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py index ca0878b153d..80cb93d1093 100644 --- a/src/cloudflare/resources/subscriptions.py +++ b/src/cloudflare/resources/subscriptions.py @@ -2,16 +2,15 @@ from __future__ import annotations -from typing import Any, Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx +from .._compat import cached_property + from ..types import ( - SubscriptionDeleteResponse, SubscriptionUpdateResponse, - SubscriptionAccountSubscriptionsListSubscriptionsResponse, + SubscriptionDeleteResponse, SubscriptionAccountSubscriptionsCreateSubscriptionResponse, + SubscriptionAccountSubscriptionsListSubscriptionsResponse, SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse, @@ -20,20 +19,62 @@ subscription_zone_subscription_create_zone_subscription_params, subscription_zone_subscription_update_zone_subscription_params, ) -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 typing import Iterable, Type, Optional + +from typing_extensions import Literal + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import subscription_update_params +from ..types import subscription_account_subscriptions_create_subscription_params +from ..types import subscription_zone_subscription_create_zone_subscription_params +from ..types import subscription_zone_subscription_update_zone_subscription_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Subscriptions", "AsyncSubscriptions"] diff --git a/src/cloudflare/resources/teamnet/__init__.py b/src/cloudflare/resources/teamnet/__init__.py index 14420b99d25..efd3fd59e12 100644 --- a/src/cloudflare/resources/teamnet/__init__.py +++ b/src/cloudflare/resources/teamnet/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .routes import Routes, AsyncRoutes from .routes import ( - Routes, - AsyncRoutes, RoutesWithRawResponse, AsyncRoutesWithRawResponse, RoutesWithStreamingResponse, AsyncRoutesWithStreamingResponse, ) +from .teamnet import Teamnet, AsyncTeamnet from .teamnet import ( - Teamnet, - AsyncTeamnet, TeamnetWithRawResponse, AsyncTeamnetWithRawResponse, TeamnetWithStreamingResponse, diff --git a/src/cloudflare/resources/teamnet/routes.py b/src/cloudflare/resources/teamnet/routes.py index 23e0bede389..1c465b1b9eb 100644 --- a/src/cloudflare/resources/teamnet/routes.py +++ b/src/cloudflare/resources/teamnet/routes.py @@ -2,32 +2,47 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.teamnet import RouteCreateResponse, RouteUpdateResponse, RouteDeleteResponse + +from typing import Type + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.teamnet import ( - RouteCreateResponse, - RouteDeleteResponse, - RouteUpdateResponse, - route_create_params, - route_update_params, -) +from ...types import shared_params +from ...types.teamnet import route_create_params +from ...types.teamnet import route_update_params +from ..._wrappers import ResultWrapper +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__ = ["Routes", "AsyncRoutes"] diff --git a/src/cloudflare/resources/teamnet/teamnet.py b/src/cloudflare/resources/teamnet/teamnet.py index 71ce685a364..ba015d2dfb3 100644 --- a/src/cloudflare/resources/teamnet/teamnet.py +++ b/src/cloudflare/resources/teamnet/teamnet.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .routes import Routes, AsyncRoutes + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .routes import ( Routes, AsyncRoutes, @@ -10,8 +29,7 @@ RoutesWithStreamingResponse, AsyncRoutesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Teamnet", "AsyncTeamnet"] diff --git a/src/cloudflare/resources/teamnets/__init__.py b/src/cloudflare/resources/teamnets/__init__.py index 3f08bb4bf07..d2908d69cc4 100644 --- a/src/cloudflare/resources/teamnets/__init__.py +++ b/src/cloudflare/resources/teamnets/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .routes import Routes, AsyncRoutes from .routes import ( - Routes, - AsyncRoutes, RoutesWithRawResponse, AsyncRoutesWithRawResponse, RoutesWithStreamingResponse, AsyncRoutesWithStreamingResponse, ) -from .teamnets import ( - Teamnets, - AsyncTeamnets, - TeamnetsWithRawResponse, - AsyncTeamnetsWithRawResponse, - TeamnetsWithStreamingResponse, - AsyncTeamnetsWithStreamingResponse, -) +from .virtual_networks import VirtualNetworks, AsyncVirtualNetworks from .virtual_networks import ( - VirtualNetworks, - AsyncVirtualNetworks, VirtualNetworksWithRawResponse, AsyncVirtualNetworksWithRawResponse, VirtualNetworksWithStreamingResponse, AsyncVirtualNetworksWithStreamingResponse, ) +from .teamnets import Teamnets, AsyncTeamnets +from .teamnets import ( + TeamnetsWithRawResponse, + AsyncTeamnetsWithRawResponse, + TeamnetsWithStreamingResponse, + AsyncTeamnetsWithStreamingResponse, +) __all__ = [ "Routes", diff --git a/src/cloudflare/resources/teamnets/routes/__init__.py b/src/cloudflare/resources/teamnets/routes/__init__.py index 5a146d4eea0..d876d7bfed1 100644 --- a/src/cloudflare/resources/teamnets/routes/__init__.py +++ b/src/cloudflare/resources/teamnets/routes/__init__.py @@ -1,29 +1,21 @@ # File generated from our OpenAPI spec by Stainless. -from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, +from .ips import IPs, AsyncIPs +from .ips import IPsWithRawResponse, AsyncIPsWithRawResponse, IPsWithStreamingResponse, AsyncIPsWithStreamingResponse +from .networks import Networks, AsyncNetworks +from .networks import ( + NetworksWithRawResponse, + AsyncNetworksWithRawResponse, + NetworksWithStreamingResponse, + AsyncNetworksWithStreamingResponse, ) +from .routes import Routes, AsyncRoutes from .routes import ( - Routes, - AsyncRoutes, RoutesWithRawResponse, AsyncRoutesWithRawResponse, RoutesWithStreamingResponse, AsyncRoutesWithStreamingResponse, ) -from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, -) __all__ = [ "IPs", diff --git a/src/cloudflare/resources/teamnets/routes/ips.py b/src/cloudflare/resources/teamnets/routes/ips.py index 69b5beac8a4..c653b57b69f 100644 --- a/src/cloudflare/resources/teamnets/routes/ips.py +++ b/src/cloudflare/resources/teamnets/routes/ips.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.teamnets.routes import IPGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.teamnets.routes import IPGetResponse, ip_get_params +from ....types import shared_params +from ....types.teamnets.routes import ip_get_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["IPs", "AsyncIPs"] diff --git a/src/cloudflare/resources/teamnets/routes/networks.py b/src/cloudflare/resources/teamnets/routes/networks.py index 1be49a02858..ffa3013a114 100644 --- a/src/cloudflare/resources/teamnets/routes/networks.py +++ b/src/cloudflare/resources/teamnets/routes/networks.py @@ -2,31 +2,45 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.teamnets.routes import NetworkUpdateResponse, NetworkDeleteResponse + +from typing import Type + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.teamnets.routes import ( - NetworkDeleteResponse, - NetworkUpdateResponse, - network_delete_params, - network_update_params, -) +from ....types import shared_params +from ....types.teamnets.routes import network_update_params +from ....types.teamnets.routes import network_delete_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Networks", "AsyncNetworks"] diff --git a/src/cloudflare/resources/teamnets/routes/routes.py b/src/cloudflare/resources/teamnets/routes/routes.py index acb9f713ee1..967f11e71eb 100644 --- a/src/cloudflare/resources/teamnets/routes/routes.py +++ b/src/cloudflare/resources/teamnets/routes/routes.py @@ -2,10 +2,41 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx +from .ips import IPs, AsyncIPs + +from ...._compat import cached_property + +from .networks import Networks, AsyncNetworks + +from ....types.teamnets import RouteTunnelRouteListTunnelRoutesResponse + +from typing import Type, 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.teamnets import route_tunnel_route_list_tunnel_routes_params from .ips import ( IPs, AsyncIPs, @@ -22,21 +53,9 @@ NetworksWithStreamingResponse, AsyncNetworksWithStreamingResponse, ) -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 ...._wrappers import ResultWrapper -from ...._base_client import ( - make_request_options, -) -from ....types.teamnets import RouteTunnelRouteListTunnelRoutesResponse, route_tunnel_route_list_tunnel_routes_params +from typing import cast +from typing import cast __all__ = ["Routes", "AsyncRoutes"] diff --git a/src/cloudflare/resources/teamnets/teamnets.py b/src/cloudflare/resources/teamnets/teamnets.py index deb3ff15f08..147f8db369d 100644 --- a/src/cloudflare/resources/teamnets/teamnets.py +++ b/src/cloudflare/resources/teamnets/teamnets.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .routes.routes import Routes, AsyncRoutes + +from ..._compat import cached_property + +from .virtual_networks import VirtualNetworks, AsyncVirtualNetworks + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .routes import ( Routes, AsyncRoutes, @@ -10,9 +31,6 @@ RoutesWithStreamingResponse, AsyncRoutesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .routes.routes import Routes, AsyncRoutes from .virtual_networks import ( VirtualNetworks, AsyncVirtualNetworks, @@ -21,6 +39,7 @@ VirtualNetworksWithStreamingResponse, AsyncVirtualNetworksWithStreamingResponse, ) +from ..._wrappers import ResultWrapper __all__ = ["Teamnets", "AsyncTeamnets"] diff --git a/src/cloudflare/resources/teamnets/virtual_networks.py b/src/cloudflare/resources/teamnets/virtual_networks.py index 188866afa15..0000162f38e 100644 --- a/src/cloudflare/resources/teamnets/virtual_networks.py +++ b/src/cloudflare/resources/teamnets/virtual_networks.py @@ -2,33 +2,59 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.teamnets import ( + VirtualNetworkUpdateResponse, + VirtualNetworkDeleteResponse, + VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, + VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.teamnets import ( - VirtualNetworkDeleteResponse, - VirtualNetworkUpdateResponse, - VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, - VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, - virtual_network_update_params, - virtual_network_tunnel_virtual_network_list_virtual_networks_params, - virtual_network_tunnel_virtual_network_create_a_virtual_network_params, -) +from ...types import shared_params +from ...types.teamnets import virtual_network_update_params +from ...types.teamnets import virtual_network_tunnel_virtual_network_create_a_virtual_network_params +from ...types.teamnets import virtual_network_tunnel_virtual_network_list_virtual_networks_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["VirtualNetworks", "AsyncVirtualNetworks"] diff --git a/src/cloudflare/resources/tunnels/__init__.py b/src/cloudflare/resources/tunnels/__init__.py index 1dea728ba2f..c08de035279 100644 --- a/src/cloudflare/resources/tunnels/__init__.py +++ b/src/cloudflare/resources/tunnels/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .tunnels import ( - Tunnels, - AsyncTunnels, - TunnelsWithRawResponse, - AsyncTunnelsWithRawResponse, - TunnelsWithStreamingResponse, - AsyncTunnelsWithStreamingResponse, -) +from .connections import Connections, AsyncConnections from .connections import ( - Connections, - AsyncConnections, ConnectionsWithRawResponse, AsyncConnectionsWithRawResponse, ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) +from .tunnels import Tunnels, AsyncTunnels +from .tunnels import ( + TunnelsWithRawResponse, + AsyncTunnelsWithRawResponse, + TunnelsWithStreamingResponse, + AsyncTunnelsWithStreamingResponse, +) __all__ = [ "Connections", diff --git a/src/cloudflare/resources/tunnels/connections.py b/src/cloudflare/resources/tunnels/connections.py index 8c381a8692c..77da33668ca 100644 --- a/src/cloudflare/resources/tunnels/connections.py +++ b/src/cloudflare/resources/tunnels/connections.py @@ -2,25 +2,40 @@ from __future__ import annotations -from typing import Any, cast - 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 ...types.tunnels import ConnectionDeleteResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.tunnels import ConnectionDeleteResponse, connection_delete_params +from ...types import shared_params +from ...types.tunnels import connection_delete_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Connections", "AsyncConnections"] diff --git a/src/cloudflare/resources/tunnels/tunnels.py b/src/cloudflare/resources/tunnels/tunnels.py index 4d09fac2671..1c879335ab7 100644 --- a/src/cloudflare/resources/tunnels/tunnels.py +++ b/src/cloudflare/resources/tunnels/tunnels.py @@ -2,31 +2,48 @@ from __future__ import annotations -from typing import Type, Union, Optional, cast -from datetime import datetime - import httpx +from .connections import Connections, AsyncConnections + +from ..._compat import cached_property + from ...types import ( - TunnelGetResponse, TunnelDeleteResponse, - TunnelArgoTunnelListArgoTunnelsResponse, TunnelArgoTunnelCreateAnArgoTunnelResponse, - tunnel_delete_params, - tunnel_argo_tunnel_list_argo_tunnels_params, - tunnel_argo_tunnel_create_an_argo_tunnel_params, + TunnelArgoTunnelListArgoTunnelsResponse, + TunnelGetResponse, ) -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 typing import Type, Optional, Union + +from datetime import datetime + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import tunnel_delete_params +from ...types import tunnel_argo_tunnel_create_an_argo_tunnel_params +from ...types import tunnel_argo_tunnel_list_argo_tunnels_params from .connections import ( Connections, AsyncConnections, @@ -35,9 +52,15 @@ ConnectionsWithStreamingResponse, AsyncConnectionsWithStreamingResponse, ) -from ..._base_client import ( - make_request_options, -) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Tunnels", "AsyncTunnels"] diff --git a/src/cloudflare/resources/url_normalizations.py b/src/cloudflare/resources/url_normalizations.py index 7e8de8495dd..73960a780a4 100644 --- a/src/cloudflare/resources/url_normalizations.py +++ b/src/cloudflare/resources/url_normalizations.py @@ -4,24 +4,37 @@ import httpx +from .._compat import cached_property + from ..types import ( URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, - url_normalization_url_normalization_update_url_normalization_settings_params, ) -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, + 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 .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import url_normalization_url_normalization_update_url_normalization_settings_params +from .._wrappers import ResultWrapper __all__ = ["URLNormalizations", "AsyncURLNormalizations"] diff --git a/src/cloudflare/resources/url_scanner/__init__.py b/src/cloudflare/resources/url_scanner/__init__.py index 72d93f135df..259546ecba8 100644 --- a/src/cloudflare/resources/url_scanner/__init__.py +++ b/src/cloudflare/resources/url_scanner/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .scans import Scans, AsyncScans from .scans import ( - Scans, - AsyncScans, ScansWithRawResponse, AsyncScansWithRawResponse, ScansWithStreamingResponse, AsyncScansWithStreamingResponse, ) +from .url_scanner import URLScanner, AsyncURLScanner from .url_scanner import ( - URLScanner, - AsyncURLScanner, URLScannerWithRawResponse, AsyncURLScannerWithRawResponse, URLScannerWithStreamingResponse, diff --git a/src/cloudflare/resources/url_scanner/scans.py b/src/cloudflare/resources/url_scanner/scans.py index d9454ce02a1..bdca428ce53 100644 --- a/src/cloudflare/resources/url_scanner/scans.py +++ b/src/cloudflare/resources/url_scanner/scans.py @@ -2,40 +2,55 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.url_scanner import ScanCreateResponse, ScanGetResponse, ScanHarResponse + +from typing import Type, Dict, List + +from typing_extensions import Literal + 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_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 ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.url_scanner import ( - ScanGetResponse, - ScanHarResponse, - ScanCreateResponse, - scan_create_params, - scan_screenshot_params, -) +from ...types import shared_params +from ...types.url_scanner import scan_create_params +from ...types.url_scanner import scan_screenshot_params +from ..._wrappers import ResultWrapper +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__ = ["Scans", "AsyncScans"] diff --git a/src/cloudflare/resources/url_scanner/url_scanner.py b/src/cloudflare/resources/url_scanner/url_scanner.py index 976a6d3ca57..30f1405ce43 100644 --- a/src/cloudflare/resources/url_scanner/url_scanner.py +++ b/src/cloudflare/resources/url_scanner/url_scanner.py @@ -2,11 +2,41 @@ from __future__ import annotations -from typing import Type, Union, cast +import httpx + +from .scans import Scans, AsyncScans + +from ..._compat import cached_property + +from ...types import URLScannerScanResponse + +from typing import Type, Union + from datetime import datetime -import httpx +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import url_scanner_scan_params from .scans import ( Scans, AsyncScans, @@ -15,21 +45,9 @@ ScansWithStreamingResponse, AsyncScansWithStreamingResponse, ) -from ...types import URLScannerScanResponse, url_scanner_scan_params -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 ..._wrappers import ResultWrapper -from ..._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast __all__ = ["URLScanner", "AsyncURLScanner"] diff --git a/src/cloudflare/resources/users/__init__.py b/src/cloudflare/resources/users/__init__.py index 39e2b2a8760..0ea060c7608 100644 --- a/src/cloudflare/resources/users/__init__.py +++ b/src/cloudflare/resources/users/__init__.py @@ -1,84 +1,74 @@ # File generated from our OpenAPI spec by Stainless. -from .users import ( - Users, - AsyncUsers, - UsersWithRawResponse, - AsyncUsersWithRawResponse, - UsersWithStreamingResponse, - AsyncUsersWithStreamingResponse, -) -from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, -) -from .invites import ( - Invites, - AsyncInvites, - InvitesWithRawResponse, - AsyncInvitesWithRawResponse, - InvitesWithStreamingResponse, - AsyncInvitesWithStreamingResponse, +from .audit_logs import AuditLogs, AsyncAuditLogs +from .audit_logs import ( + AuditLogsWithRawResponse, + AsyncAuditLogsWithRawResponse, + AuditLogsWithStreamingResponse, + AsyncAuditLogsWithStreamingResponse, ) +from .billings import Billings, AsyncBillings from .billings import ( - Billings, - AsyncBillings, BillingsWithRawResponse, AsyncBillingsWithRawResponse, BillingsWithStreamingResponse, AsyncBillingsWithStreamingResponse, ) +from .firewalls import Firewalls, AsyncFirewalls from .firewalls import ( - Firewalls, - AsyncFirewalls, FirewallsWithRawResponse, AsyncFirewallsWithRawResponse, FirewallsWithStreamingResponse, AsyncFirewallsWithStreamingResponse, ) -from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, - AuditLogsWithRawResponse, - AsyncAuditLogsWithRawResponse, - AuditLogsWithStreamingResponse, - AsyncAuditLogsWithStreamingResponse, +from .invites import Invites, AsyncInvites +from .invites import ( + InvitesWithRawResponse, + AsyncInvitesWithRawResponse, + InvitesWithStreamingResponse, + AsyncInvitesWithStreamingResponse, ) +from .load_balancers import LoadBalancers, AsyncLoadBalancers +from .load_balancers import ( + LoadBalancersWithRawResponse, + AsyncLoadBalancersWithRawResponse, + LoadBalancersWithStreamingResponse, + AsyncLoadBalancersWithStreamingResponse, +) +from .load_balancing_analytics import LoadBalancingAnalytics, AsyncLoadBalancingAnalytics +from .load_balancing_analytics import ( + LoadBalancingAnalyticsWithRawResponse, + AsyncLoadBalancingAnalyticsWithRawResponse, + LoadBalancingAnalyticsWithStreamingResponse, + AsyncLoadBalancingAnalyticsWithStreamingResponse, +) +from .organizations import Organizations, AsyncOrganizations from .organizations import ( - Organizations, - AsyncOrganizations, OrganizationsWithRawResponse, AsyncOrganizationsWithRawResponse, OrganizationsWithStreamingResponse, AsyncOrganizationsWithStreamingResponse, ) +from .subscriptions import Subscriptions, AsyncSubscriptions from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, SubscriptionsWithRawResponse, AsyncSubscriptionsWithRawResponse, SubscriptionsWithStreamingResponse, AsyncSubscriptionsWithStreamingResponse, ) -from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, - LoadBalancersWithRawResponse, - AsyncLoadBalancersWithRawResponse, - LoadBalancersWithStreamingResponse, - AsyncLoadBalancersWithStreamingResponse, +from .tokens import Tokens, AsyncTokens +from .tokens import ( + TokensWithRawResponse, + AsyncTokensWithRawResponse, + TokensWithStreamingResponse, + AsyncTokensWithStreamingResponse, ) -from .load_balancing_analytics import ( - LoadBalancingAnalytics, - AsyncLoadBalancingAnalytics, - LoadBalancingAnalyticsWithRawResponse, - AsyncLoadBalancingAnalyticsWithRawResponse, - LoadBalancingAnalyticsWithStreamingResponse, - AsyncLoadBalancingAnalyticsWithStreamingResponse, +from .users import Users, AsyncUsers +from .users import ( + UsersWithRawResponse, + AsyncUsersWithRawResponse, + UsersWithStreamingResponse, + AsyncUsersWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/users/audit_logs.py b/src/cloudflare/resources/users/audit_logs.py index 1da79b107b3..dbae13c69f9 100644 --- a/src/cloudflare/resources/users/audit_logs.py +++ b/src/cloudflare/resources/users/audit_logs.py @@ -2,26 +2,46 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.users import AuditLogListResponse, audit_log_list_params + +from typing import Union + +from datetime import datetime + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...types.users import AuditLogListResponse, 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.users import audit_log_list_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AuditLogs", "AsyncAuditLogs"] diff --git a/src/cloudflare/resources/users/billings/__init__.py b/src/cloudflare/resources/users/billings/__init__.py index 1949981cd1c..0963ea305d7 100644 --- a/src/cloudflare/resources/users/billings/__init__.py +++ b/src/cloudflare/resources/users/billings/__init__.py @@ -1,28 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from .billings import ( - Billings, - AsyncBillings, - BillingsWithRawResponse, - AsyncBillingsWithRawResponse, - BillingsWithStreamingResponse, - AsyncBillingsWithStreamingResponse, +from .histories import Histories, AsyncHistories +from .histories import ( + HistoriesWithRawResponse, + AsyncHistoriesWithRawResponse, + HistoriesWithStreamingResponse, + AsyncHistoriesWithStreamingResponse, ) +from .profiles import Profiles, AsyncProfiles from .profiles import ( - Profiles, - AsyncProfiles, ProfilesWithRawResponse, AsyncProfilesWithRawResponse, ProfilesWithStreamingResponse, AsyncProfilesWithStreamingResponse, ) -from .histories import ( - Histories, - AsyncHistories, - HistoriesWithRawResponse, - AsyncHistoriesWithRawResponse, - HistoriesWithStreamingResponse, - AsyncHistoriesWithStreamingResponse, +from .billings import Billings, AsyncBillings +from .billings import ( + BillingsWithRawResponse, + AsyncBillingsWithRawResponse, + BillingsWithStreamingResponse, + AsyncBillingsWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/users/billings/billings.py b/src/cloudflare/resources/users/billings/billings.py index e9d6bae7378..fd4f56c11a0 100644 --- a/src/cloudflare/resources/users/billings/billings.py +++ b/src/cloudflare/resources/users/billings/billings.py @@ -2,14 +2,27 @@ from __future__ import annotations -from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, +from .histories import Histories, AsyncHistories + +from ...._compat import cached_property + +from .profiles import Profiles, AsyncProfiles + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .histories import ( Histories, AsyncHistories, @@ -18,8 +31,15 @@ HistoriesWithStreamingResponse, AsyncHistoriesWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from .profiles import ( + Profiles, + AsyncProfiles, + ProfilesWithRawResponse, + AsyncProfilesWithRawResponse, + ProfilesWithStreamingResponse, + AsyncProfilesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper __all__ = ["Billings", "AsyncBillings"] diff --git a/src/cloudflare/resources/users/billings/histories.py b/src/cloudflare/resources/users/billings/histories.py index 1136c6ed8b1..d61eed9eba5 100644 --- a/src/cloudflare/resources/users/billings/histories.py +++ b/src/cloudflare/resources/users/billings/histories.py @@ -2,29 +2,42 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.users.billings import HistoryUserBillingHistoryBillingHistoryDetailsResponse + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.users.billings import ( - HistoryUserBillingHistoryBillingHistoryDetailsResponse, - history_user_billing_history_billing_history_details_params, -) +from ....types import shared_params +from ....types.users.billings import history_user_billing_history_billing_history_details_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Histories", "AsyncHistories"] diff --git a/src/cloudflare/resources/users/billings/profiles.py b/src/cloudflare/resources/users/billings/profiles.py index c05f0dd264e..0e2a8e619d8 100644 --- a/src/cloudflare/resources/users/billings/profiles.py +++ b/src/cloudflare/resources/users/billings/profiles.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.users.billings import ProfileUserBillingProfileBillingProfileDetailsResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.users.billings import ProfileUserBillingProfileBillingProfileDetailsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Profiles", "AsyncProfiles"] diff --git a/src/cloudflare/resources/users/firewalls/__init__.py b/src/cloudflare/resources/users/firewalls/__init__.py index 6623923562a..60d33297000 100644 --- a/src/cloudflare/resources/users/firewalls/__init__.py +++ b/src/cloudflare/resources/users/firewalls/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .firewalls import ( - Firewalls, - AsyncFirewalls, - FirewallsWithRawResponse, - AsyncFirewallsWithRawResponse, - FirewallsWithStreamingResponse, - AsyncFirewallsWithStreamingResponse, -) +from .access_rules import AccessRules, AsyncAccessRules from .access_rules import ( - AccessRules, - AsyncAccessRules, AccessRulesWithRawResponse, AsyncAccessRulesWithRawResponse, AccessRulesWithStreamingResponse, AsyncAccessRulesWithStreamingResponse, ) +from .firewalls import Firewalls, AsyncFirewalls +from .firewalls import ( + FirewallsWithRawResponse, + AsyncFirewallsWithRawResponse, + FirewallsWithStreamingResponse, + AsyncFirewallsWithStreamingResponse, +) __all__ = [ "AccessRules", diff --git a/src/cloudflare/resources/users/firewalls/access_rules/__init__.py b/src/cloudflare/resources/users/firewalls/access_rules/__init__.py index 92fae37c1d8..1cb61eab541 100644 --- a/src/cloudflare/resources/users/firewalls/access_rules/__init__.py +++ b/src/cloudflare/resources/users/firewalls/access_rules/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .rules import Rules, AsyncRules from .rules import ( - Rules, - AsyncRules, RulesWithRawResponse, AsyncRulesWithRawResponse, RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) +from .access_rules import AccessRules, AsyncAccessRules from .access_rules import ( - AccessRules, - AsyncAccessRules, AccessRulesWithRawResponse, AsyncAccessRulesWithRawResponse, AccessRulesWithStreamingResponse, diff --git a/src/cloudflare/resources/users/firewalls/access_rules/access_rules.py b/src/cloudflare/resources/users/firewalls/access_rules/access_rules.py index e252e18edd9..c6577d24520 100644 --- a/src/cloudflare/resources/users/firewalls/access_rules/access_rules.py +++ b/src/cloudflare/resources/users/firewalls/access_rules/access_rules.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .rules import Rules, AsyncRules + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .rules import ( Rules, AsyncRules, @@ -10,8 +29,7 @@ RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["AccessRules", "AsyncAccessRules"] diff --git a/src/cloudflare/resources/users/firewalls/access_rules/rules.py b/src/cloudflare/resources/users/firewalls/access_rules/rules.py index 9a8500cb064..5fd9457c64a 100644 --- a/src/cloudflare/resources/users/firewalls/access_rules/rules.py +++ b/src/cloudflare/resources/users/firewalls/access_rules/rules.py @@ -2,34 +2,57 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.firewalls.access_rules import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, + RuleIPAccessRulesForAUserListIPAccessRulesResponse, + rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params, + rule_ip_access_rules_for_a_user_list_ip_access_rules_params, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.firewalls.access_rules import ( - RuleDeleteResponse, - RuleUpdateResponse, - RuleIPAccessRulesForAUserListIPAccessRulesResponse, - RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, - rule_update_params, - rule_ip_access_rules_for_a_user_list_ip_access_rules_params, - rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params, -) +from .....types import shared_params +from .....types.users.firewalls.access_rules import rule_update_params +from .....types.users.firewalls.access_rules import rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params +from .....types.users.firewalls.access_rules import rule_ip_access_rules_for_a_user_list_ip_access_rules_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/users/firewalls/firewalls.py b/src/cloudflare/resources/users/firewalls/firewalls.py index 8aafcb821f0..06447be88e6 100644 --- a/src/cloudflare/resources/users/firewalls/firewalls.py +++ b/src/cloudflare/resources/users/firewalls/firewalls.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .access_rules.access_rules import AccessRules, AsyncAccessRules + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .access_rules import ( AccessRules, AsyncAccessRules, @@ -12,7 +29,7 @@ AccessRulesWithStreamingResponse, AsyncAccessRulesWithStreamingResponse, ) -from .access_rules.access_rules import AccessRules, AsyncAccessRules +from ...._wrappers import ResultWrapper __all__ = ["Firewalls", "AsyncFirewalls"] diff --git a/src/cloudflare/resources/users/invites.py b/src/cloudflare/resources/users/invites.py index f1740cd0b82..0a957793693 100644 --- a/src/cloudflare/resources/users/invites.py +++ b/src/cloudflare/resources/users/invites.py @@ -2,31 +2,50 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.users import InviteUpdateResponse, InviteGetResponse, InviteUserSInvitesListInvitationsResponse + +from typing_extensions import Literal + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.users import ( - InviteGetResponse, - InviteUpdateResponse, - InviteUserSInvitesListInvitationsResponse, - invite_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.users import invite_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Invites", "AsyncInvites"] diff --git a/src/cloudflare/resources/users/load_balancers/__init__.py b/src/cloudflare/resources/users/load_balancers/__init__.py index c4aadb32637..9d9618f35e0 100644 --- a/src/cloudflare/resources/users/load_balancers/__init__.py +++ b/src/cloudflare/resources/users/load_balancers/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, -) +from .monitors import Monitors, AsyncMonitors from .monitors import ( - Monitors, - AsyncMonitors, MonitorsWithRawResponse, AsyncMonitorsWithRawResponse, MonitorsWithStreamingResponse, AsyncMonitorsWithStreamingResponse, ) +from .pools import Pools, AsyncPools +from .pools import ( + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .load_balancers import LoadBalancers, AsyncLoadBalancers from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, LoadBalancersWithRawResponse, AsyncLoadBalancersWithRawResponse, LoadBalancersWithStreamingResponse, diff --git a/src/cloudflare/resources/users/load_balancers/load_balancers.py b/src/cloudflare/resources/users/load_balancers/load_balancers.py index 8e29823b29e..217217e5bc3 100644 --- a/src/cloudflare/resources/users/load_balancers/load_balancers.py +++ b/src/cloudflare/resources/users/load_balancers/load_balancers.py @@ -2,14 +2,29 @@ from __future__ import annotations -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, +from .monitors.monitors import Monitors, AsyncMonitors + +from ...._compat import cached_property + +from .pools.pools import Pools, AsyncPools + +from .previews import Previews, AsyncPreviews + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from .monitors import ( Monitors, AsyncMonitors, @@ -18,6 +33,14 @@ MonitorsWithStreamingResponse, AsyncMonitorsWithStreamingResponse, ) +from .pools import ( + Pools, + AsyncPools, + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) from .previews import ( Previews, AsyncPreviews, @@ -26,10 +49,7 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -from ...._compat import cached_property -from .pools.pools import Pools, AsyncPools -from ...._resource import SyncAPIResource, AsyncAPIResource -from .monitors.monitors import Monitors, AsyncMonitors +from ...._wrappers import ResultWrapper __all__ = ["LoadBalancers", "AsyncLoadBalancers"] diff --git a/src/cloudflare/resources/users/load_balancers/monitors/__init__.py b/src/cloudflare/resources/users/load_balancers/monitors/__init__.py index a4b52a649ad..17335d3d691 100644 --- a/src/cloudflare/resources/users/load_balancers/monitors/__init__.py +++ b/src/cloudflare/resources/users/load_balancers/monitors/__init__.py @@ -1,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from .monitors import ( - Monitors, - AsyncMonitors, - MonitorsWithRawResponse, - AsyncMonitorsWithRawResponse, - MonitorsWithStreamingResponse, - AsyncMonitorsWithStreamingResponse, -) +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .references import References, AsyncReferences from .references import ( - References, - AsyncReferences, ReferencesWithRawResponse, AsyncReferencesWithRawResponse, ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) +from .monitors import Monitors, AsyncMonitors +from .monitors import ( + MonitorsWithRawResponse, + AsyncMonitorsWithRawResponse, + MonitorsWithStreamingResponse, + AsyncMonitorsWithStreamingResponse, +) __all__ = [ "Previews", diff --git a/src/cloudflare/resources/users/load_balancers/monitors/monitors.py b/src/cloudflare/resources/users/load_balancers/monitors/monitors.py index 5f4d50401ea..dd0b90213ba 100644 --- a/src/cloudflare/resources/users/load_balancers/monitors/monitors.py +++ b/src/cloudflare/resources/users/load_balancers/monitors/monitors.py @@ -2,11 +2,50 @@ from __future__ import annotations -from typing import Type, Optional, cast +import httpx + +from .previews import Previews, AsyncPreviews + +from ....._compat import cached_property + +from .references import References, AsyncReferences + +from .....types.users.load_balancers import ( + MonitorCreateResponse, + MonitorUpdateResponse, + MonitorListResponse, + MonitorDeleteResponse, + MonitorGetResponse, +) + +from typing import Type, Optional + from typing_extensions import Literal -import httpx +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .....types.users.load_balancers import monitor_create_params +from .....types.users.load_balancers import monitor_update_params from .previews import ( Previews, AsyncPreviews, @@ -15,8 +54,6 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ....._utils import maybe_transform from .references import ( References, AsyncReferences, @@ -25,27 +62,17 @@ ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) -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.users.load_balancers import ( - MonitorGetResponse, - MonitorListResponse, - MonitorCreateResponse, - MonitorDeleteResponse, - MonitorUpdateResponse, - monitor_create_params, - monitor_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 __all__ = ["Monitors", "AsyncMonitors"] diff --git a/src/cloudflare/resources/users/load_balancers/monitors/previews.py b/src/cloudflare/resources/users/load_balancers/monitors/previews.py index e4b94828660..05bb5aa5ef2 100644 --- a/src/cloudflare/resources/users/load_balancers/monitors/previews.py +++ b/src/cloudflare/resources/users/load_balancers/monitors/previews.py @@ -2,29 +2,42 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.load_balancers.monitors import PreviewLoadBalancerMonitorsPreviewMonitorResponse + +from typing import Type + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.load_balancers.monitors import ( - PreviewLoadBalancerMonitorsPreviewMonitorResponse, - preview_load_balancer_monitors_preview_monitor_params, -) +from .....types import shared_params +from .....types.users.load_balancers.monitors import preview_load_balancer_monitors_preview_monitor_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/users/load_balancers/monitors/references.py b/src/cloudflare/resources/users/load_balancers/monitors/references.py index 65f5b68abdb..c96bcbe2226 100644 --- a/src/cloudflare/resources/users/load_balancers/monitors/references.py +++ b/src/cloudflare/resources/users/load_balancers/monitors/references.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.load_balancers.monitors import ReferenceLoadBalancerMonitorsListMonitorReferencesResponse + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.load_balancers.monitors import ReferenceLoadBalancerMonitorsListMonitorReferencesResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["References", "AsyncReferences"] diff --git a/src/cloudflare/resources/users/load_balancers/pools/__init__.py b/src/cloudflare/resources/users/load_balancers/pools/__init__.py index 8da8b6aea52..13e167d0412 100644 --- a/src/cloudflare/resources/users/load_balancers/pools/__init__.py +++ b/src/cloudflare/resources/users/load_balancers/pools/__init__.py @@ -1,37 +1,33 @@ # File generated from our OpenAPI spec by Stainless. -from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, -) +from .health import Health, AsyncHealth from .health import ( - Health, - AsyncHealth, HealthWithRawResponse, AsyncHealthWithRawResponse, HealthWithStreamingResponse, AsyncHealthWithStreamingResponse, ) +from .previews import Previews, AsyncPreviews from .previews import ( - Previews, - AsyncPreviews, PreviewsWithRawResponse, AsyncPreviewsWithRawResponse, PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) +from .references import References, AsyncReferences from .references import ( - References, - AsyncReferences, ReferencesWithRawResponse, AsyncReferencesWithRawResponse, ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) +from .pools import Pools, AsyncPools +from .pools import ( + PoolsWithRawResponse, + AsyncPoolsWithRawResponse, + PoolsWithStreamingResponse, + AsyncPoolsWithStreamingResponse, +) __all__ = [ "Health", diff --git a/src/cloudflare/resources/users/load_balancers/pools/health.py b/src/cloudflare/resources/users/load_balancers/pools/health.py index 55cb7fe1abf..01dc5b4c316 100644 --- a/src/cloudflare/resources/users/load_balancers/pools/health.py +++ b/src/cloudflare/resources/users/load_balancers/pools/health.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.load_balancers.pools import HealthLoadBalancerPoolsPoolHealthDetailsResponse + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.load_balancers.pools import HealthLoadBalancerPoolsPoolHealthDetailsResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Health", "AsyncHealth"] diff --git a/src/cloudflare/resources/users/load_balancers/pools/pools.py b/src/cloudflare/resources/users/load_balancers/pools/pools.py index daa60748fd0..96b9072b385 100644 --- a/src/cloudflare/resources/users/load_balancers/pools/pools.py +++ b/src/cloudflare/resources/users/load_balancers/pools/pools.py @@ -2,11 +2,57 @@ from __future__ import annotations -from typing import List, Type, Iterable, Optional, cast +import httpx + +from .health import Health, AsyncHealth + +from ....._compat import cached_property + +from .previews import Previews, AsyncPreviews + +from .references import References, AsyncReferences + +from .....types.users.load_balancers import ( + PoolUpdateResponse, + PoolDeleteResponse, + PoolGetResponse, + PoolLoadBalancerPoolsCreatePoolResponse, + PoolLoadBalancerPoolsListPoolsResponse, + PoolLoadBalancerPoolsPatchPoolsResponse, + pool_update_params, + pool_load_balancer_pools_create_pool_params, +) + +from typing import Type, Optional, List, Iterable + from typing_extensions import Literal -import httpx +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params +from .....types.users.load_balancers import pool_update_params +from .....types.users.load_balancers import pool_load_balancer_pools_create_pool_params +from .....types.users.load_balancers import pool_load_balancer_pools_list_pools_params +from .....types.users.load_balancers import pool_load_balancer_pools_patch_pools_params from .health import ( Health, AsyncHealth, @@ -23,8 +69,6 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ....._utils import maybe_transform from .references import ( References, AsyncReferences, @@ -33,30 +77,19 @@ ReferencesWithStreamingResponse, AsyncReferencesWithStreamingResponse, ) -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.users.load_balancers import ( - PoolGetResponse, - PoolDeleteResponse, - PoolUpdateResponse, - PoolLoadBalancerPoolsListPoolsResponse, - PoolLoadBalancerPoolsCreatePoolResponse, - PoolLoadBalancerPoolsPatchPoolsResponse, - pool_update_params, - pool_load_balancer_pools_list_pools_params, - pool_load_balancer_pools_create_pool_params, - pool_load_balancer_pools_patch_pools_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 __all__ = ["Pools", "AsyncPools"] diff --git a/src/cloudflare/resources/users/load_balancers/pools/previews.py b/src/cloudflare/resources/users/load_balancers/pools/previews.py index c30adf6d1f1..675498bc9ef 100644 --- a/src/cloudflare/resources/users/load_balancers/pools/previews.py +++ b/src/cloudflare/resources/users/load_balancers/pools/previews.py @@ -2,29 +2,42 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.load_balancers.pools import PreviewLoadBalancerPoolsPreviewPoolResponse + +from typing import Type + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.load_balancers.pools import ( - PreviewLoadBalancerPoolsPreviewPoolResponse, - preview_load_balancer_pools_preview_pool_params, -) +from .....types import shared_params +from .....types.users.load_balancers.pools import preview_load_balancer_pools_preview_pool_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/users/load_balancers/pools/references.py b/src/cloudflare/resources/users/load_balancers/pools/references.py index 40bebd78f0e..a6e3eddb362 100644 --- a/src/cloudflare/resources/users/load_balancers/pools/references.py +++ b/src/cloudflare/resources/users/load_balancers/pools/references.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.users.load_balancers.pools import ReferenceLoadBalancerPoolsListPoolReferencesResponse + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.users.load_balancers.pools import ReferenceLoadBalancerPoolsListPoolReferencesResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["References", "AsyncReferences"] diff --git a/src/cloudflare/resources/users/load_balancers/previews.py b/src/cloudflare/resources/users/load_balancers/previews.py index 8c7faa35357..7fe92a90288 100644 --- a/src/cloudflare/resources/users/load_balancers/previews.py +++ b/src/cloudflare/resources/users/load_balancers/previews.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.users.load_balancers import PreviewGetResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.users.load_balancers import PreviewGetResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/users/load_balancing_analytics/__init__.py b/src/cloudflare/resources/users/load_balancing_analytics/__init__.py index fd25c78c44a..9f4b5d1c75f 100644 --- a/src/cloudflare/resources/users/load_balancing_analytics/__init__.py +++ b/src/cloudflare/resources/users/load_balancing_analytics/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .events import Events, AsyncEvents from .events import ( - Events, - AsyncEvents, EventsWithRawResponse, AsyncEventsWithRawResponse, EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) +from .load_balancing_analytics import LoadBalancingAnalytics, AsyncLoadBalancingAnalytics from .load_balancing_analytics import ( - LoadBalancingAnalytics, - AsyncLoadBalancingAnalytics, LoadBalancingAnalyticsWithRawResponse, AsyncLoadBalancingAnalyticsWithRawResponse, LoadBalancingAnalyticsWithStreamingResponse, diff --git a/src/cloudflare/resources/users/load_balancing_analytics/events.py b/src/cloudflare/resources/users/load_balancing_analytics/events.py index 59338b1650a..faba7edcc7c 100644 --- a/src/cloudflare/resources/users/load_balancing_analytics/events.py +++ b/src/cloudflare/resources/users/load_balancing_analytics/events.py @@ -2,29 +2,44 @@ from __future__ import annotations -from typing import Type, Union, Optional, cast -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 ....types.users.load_balancing_analytics import EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse + +from typing import Type, Optional, Union + +from datetime import datetime + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.users.load_balancing_analytics import ( - EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse, event_load_balancer_healthcheck_events_list_healthcheck_events_params, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Events", "AsyncEvents"] diff --git a/src/cloudflare/resources/users/load_balancing_analytics/load_balancing_analytics.py b/src/cloudflare/resources/users/load_balancing_analytics/load_balancing_analytics.py index 35600929989..177d1f1adfa 100644 --- a/src/cloudflare/resources/users/load_balancing_analytics/load_balancing_analytics.py +++ b/src/cloudflare/resources/users/load_balancing_analytics/load_balancing_analytics.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .events import Events, AsyncEvents + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .events import ( Events, AsyncEvents, @@ -10,8 +29,7 @@ EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._wrappers import ResultWrapper __all__ = ["LoadBalancingAnalytics", "AsyncLoadBalancingAnalytics"] diff --git a/src/cloudflare/resources/users/organizations.py b/src/cloudflare/resources/users/organizations.py index b3d59b14f19..5de8a4fcc1a 100644 --- a/src/cloudflare/resources/users/organizations.py +++ b/src/cloudflare/resources/users/organizations.py @@ -2,31 +2,50 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.users import ( + OrganizationDeleteResponse, + OrganizationGetResponse, + OrganizationUserSOrganizationsListOrganizationsResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.users import ( - OrganizationGetResponse, - OrganizationDeleteResponse, - OrganizationUserSOrganizationsListOrganizationsResponse, - organization_user_s_organizations_list_organizations_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.users import organization_user_s_organizations_list_organizations_params +from ..._wrappers import ResultWrapper +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__ = ["Organizations", "AsyncOrganizations"] diff --git a/src/cloudflare/resources/users/subscriptions.py b/src/cloudflare/resources/users/subscriptions.py index f7f2e711afe..a71a2bdec93 100644 --- a/src/cloudflare/resources/users/subscriptions.py +++ b/src/cloudflare/resources/users/subscriptions.py @@ -2,31 +2,51 @@ from __future__ import annotations -from typing import Any, 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 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.users import ( - SubscriptionDeleteResponse, SubscriptionUpdateResponse, + SubscriptionDeleteResponse, SubscriptionUserSubscriptionGetUserSubscriptionsResponse, subscription_update_params, ) + +from typing import Iterable, Type, Optional + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.users import subscription_update_params +from ..._wrappers import ResultWrapper +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__ = ["Subscriptions", "AsyncSubscriptions"] diff --git a/src/cloudflare/resources/users/tokens/__init__.py b/src/cloudflare/resources/users/tokens/__init__.py index 6730373d311..57ca3ed6cf2 100644 --- a/src/cloudflare/resources/users/tokens/__init__.py +++ b/src/cloudflare/resources/users/tokens/__init__.py @@ -1,36 +1,32 @@ # File generated from our OpenAPI spec by Stainless. -from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, -) -from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, +from .permission_groups import PermissionGroups, AsyncPermissionGroups +from .permission_groups import ( + PermissionGroupsWithRawResponse, + AsyncPermissionGroupsWithRawResponse, + PermissionGroupsWithStreamingResponse, + AsyncPermissionGroupsWithStreamingResponse, ) +from .verifies import Verifies, AsyncVerifies from .verifies import ( - Verifies, - AsyncVerifies, VerifiesWithRawResponse, AsyncVerifiesWithRawResponse, VerifiesWithStreamingResponse, AsyncVerifiesWithStreamingResponse, ) -from .permission_groups import ( - PermissionGroups, - AsyncPermissionGroups, - PermissionGroupsWithRawResponse, - AsyncPermissionGroupsWithRawResponse, - PermissionGroupsWithStreamingResponse, - AsyncPermissionGroupsWithStreamingResponse, +from .values import Values, AsyncValues +from .values import ( + ValuesWithRawResponse, + AsyncValuesWithRawResponse, + ValuesWithStreamingResponse, + AsyncValuesWithStreamingResponse, +) +from .tokens import Tokens, AsyncTokens +from .tokens import ( + TokensWithRawResponse, + AsyncTokensWithRawResponse, + TokensWithStreamingResponse, + AsyncTokensWithStreamingResponse, ) __all__ = [ diff --git a/src/cloudflare/resources/users/tokens/permission_groups.py b/src/cloudflare/resources/users/tokens/permission_groups.py index 46783909445..01cb707c17b 100644 --- a/src/cloudflare/resources/users/tokens/permission_groups.py +++ b/src/cloudflare/resources/users/tokens/permission_groups.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.users.tokens import PermissionGroupPermissionGroupsListPermissionGroupsResponse + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.users.tokens import PermissionGroupPermissionGroupsListPermissionGroupsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["PermissionGroups", "AsyncPermissionGroups"] diff --git a/src/cloudflare/resources/users/tokens/tokens.py b/src/cloudflare/resources/users/tokens/tokens.py index 1b885ea3a98..c6857671070 100644 --- a/src/cloudflare/resources/users/tokens/tokens.py +++ b/src/cloudflare/resources/users/tokens/tokens.py @@ -2,52 +2,57 @@ from __future__ import annotations -from typing import Any, Type, Union, Iterable, Optional, cast -from datetime import datetime -from typing_extensions import Literal - import httpx -from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, -) -from .verifies import ( - Verifies, - AsyncVerifies, - VerifiesWithRawResponse, - AsyncVerifiesWithRawResponse, - VerifiesWithStreamingResponse, - AsyncVerifiesWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .permission_groups import PermissionGroups, AsyncPermissionGroups + 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 .verifies import Verifies, AsyncVerifies + +from .values import Values, AsyncValues + from ....types.users import ( - TokenGetResponse, - TokenDeleteResponse, TokenUpdateResponse, - TokenUserAPITokensListTokensResponse, + TokenDeleteResponse, + TokenGetResponse, TokenUserAPITokensCreateTokenResponse, + TokenUserAPITokensListTokensResponse, token_update_params, - token_user_api_tokens_list_tokens_params, token_user_api_tokens_create_token_params, ) + +from typing import Iterable, Union, Type, Optional + +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.users import token_update_params +from ....types.users import token_user_api_tokens_create_token_params +from ....types.users import token_user_api_tokens_list_tokens_params from .permission_groups import ( PermissionGroups, AsyncPermissionGroups, @@ -56,6 +61,37 @@ PermissionGroupsWithStreamingResponse, AsyncPermissionGroupsWithStreamingResponse, ) +from .verifies import ( + Verifies, + AsyncVerifies, + VerifiesWithRawResponse, + AsyncVerifiesWithRawResponse, + VerifiesWithStreamingResponse, + AsyncVerifiesWithStreamingResponse, +) +from .values import ( + Values, + AsyncValues, + ValuesWithRawResponse, + AsyncValuesWithRawResponse, + ValuesWithStreamingResponse, + AsyncValuesWithStreamingResponse, +) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Tokens", "AsyncTokens"] diff --git a/src/cloudflare/resources/users/tokens/values.py b/src/cloudflare/resources/users/tokens/values.py index ccbc2c6ad15..c3ef416fbd3 100644 --- a/src/cloudflare/resources/users/tokens/values.py +++ b/src/cloudflare/resources/users/tokens/values.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ....types.users.tokens import ValueUserAPITokensRollTokenResponse + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params from ....types.users.tokens import value_user_api_tokens_roll_token_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Values", "AsyncValues"] diff --git a/src/cloudflare/resources/users/tokens/verifies.py b/src/cloudflare/resources/users/tokens/verifies.py index 8d194880e64..aa13eebce93 100644 --- a/src/cloudflare/resources/users/tokens/verifies.py +++ b/src/cloudflare/resources/users/tokens/verifies.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.users.tokens import VerifyUserAPITokensVerifyTokenResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.users.tokens import VerifyUserAPITokensVerifyTokenResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Verifies", "AsyncVerifies"] diff --git a/src/cloudflare/resources/users/users.py b/src/cloudflare/resources/users/users.py index 36da197e759..a5dfd91f882 100644 --- a/src/cloudflare/resources/users/users.py +++ b/src/cloudflare/resources/users/users.py @@ -2,29 +2,63 @@ from __future__ import annotations -from typing import Any, Optional, cast - import httpx -from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, +from .audit_logs import AuditLogs, AsyncAuditLogs + +from ..._compat import cached_property + +from .billings.billings import Billings, AsyncBillings + +from .firewalls.firewalls import Firewalls, AsyncFirewalls + +from .invites import Invites, AsyncInvites + +from .load_balancers.load_balancers import LoadBalancers, AsyncLoadBalancers + +from .load_balancing_analytics.load_balancing_analytics import LoadBalancingAnalytics, AsyncLoadBalancingAnalytics + +from .organizations import Organizations, AsyncOrganizations + +from .subscriptions import Subscriptions, AsyncSubscriptions + +from .tokens.tokens import Tokens, AsyncTokens + +from ...types import UserUserEditUserResponse, UserUserUserDetailsResponse + +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 ...types import UserUserEditUserResponse, UserUserUserDetailsResponse, user_user_edit_user_params -from .invites import ( - Invites, - AsyncInvites, - InvitesWithRawResponse, - AsyncInvitesWithRawResponse, - InvitesWithStreamingResponse, - AsyncInvitesWithStreamingResponse, + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import user_user_edit_user_params +from .audit_logs import ( + AuditLogs, + AsyncAuditLogs, + AuditLogsWithRawResponse, + AsyncAuditLogsWithRawResponse, + AuditLogsWithStreamingResponse, + AsyncAuditLogsWithStreamingResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform from .billings import ( Billings, AsyncBillings, @@ -33,7 +67,6 @@ BillingsWithStreamingResponse, AsyncBillingsWithStreamingResponse, ) -from ..._compat import cached_property from .firewalls import ( Firewalls, AsyncFirewalls, @@ -42,22 +75,30 @@ FirewallsWithStreamingResponse, AsyncFirewallsWithStreamingResponse, ) -from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, - AuditLogsWithRawResponse, - AsyncAuditLogsWithRawResponse, - AuditLogsWithStreamingResponse, - AsyncAuditLogsWithStreamingResponse, +from .invites import ( + Invites, + AsyncInvites, + InvitesWithRawResponse, + AsyncInvitesWithRawResponse, + InvitesWithStreamingResponse, + AsyncInvitesWithStreamingResponse, ) -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 .load_balancers import ( + LoadBalancers, + AsyncLoadBalancers, + LoadBalancersWithRawResponse, + AsyncLoadBalancersWithRawResponse, + LoadBalancersWithStreamingResponse, + AsyncLoadBalancersWithStreamingResponse, +) +from .load_balancing_analytics import ( + LoadBalancingAnalytics, + AsyncLoadBalancingAnalytics, + LoadBalancingAnalyticsWithRawResponse, + AsyncLoadBalancingAnalyticsWithRawResponse, + LoadBalancingAnalyticsWithStreamingResponse, + AsyncLoadBalancingAnalyticsWithStreamingResponse, ) -from ..._wrappers import ResultWrapper from .organizations import ( Organizations, AsyncOrganizations, @@ -74,30 +115,23 @@ SubscriptionsWithStreamingResponse, AsyncSubscriptionsWithStreamingResponse, ) -from .tokens.tokens import Tokens, AsyncTokens -from ..._base_client import ( - make_request_options, -) -from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, - LoadBalancersWithRawResponse, - AsyncLoadBalancersWithRawResponse, - LoadBalancersWithStreamingResponse, - AsyncLoadBalancersWithStreamingResponse, -) -from .billings.billings import Billings, AsyncBillings -from .firewalls.firewalls import Firewalls, AsyncFirewalls -from .load_balancing_analytics import ( - LoadBalancingAnalytics, - AsyncLoadBalancingAnalytics, - LoadBalancingAnalyticsWithRawResponse, - AsyncLoadBalancingAnalyticsWithRawResponse, - LoadBalancingAnalyticsWithStreamingResponse, - AsyncLoadBalancingAnalyticsWithStreamingResponse, +from .tokens import ( + Tokens, + AsyncTokens, + TokensWithRawResponse, + AsyncTokensWithRawResponse, + TokensWithStreamingResponse, + AsyncTokensWithStreamingResponse, ) -from .load_balancers.load_balancers import LoadBalancers, AsyncLoadBalancers -from .load_balancing_analytics.load_balancing_analytics import LoadBalancingAnalytics, AsyncLoadBalancingAnalytics +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Users", "AsyncUsers"] diff --git a/src/cloudflare/resources/vectorize/__init__.py b/src/cloudflare/resources/vectorize/__init__.py index dc1522991ec..b74bf8f4a05 100644 --- a/src/cloudflare/resources/vectorize/__init__.py +++ b/src/cloudflare/resources/vectorize/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .indexes import Indexes, AsyncIndexes from .indexes import ( - Indexes, - AsyncIndexes, IndexesWithRawResponse, AsyncIndexesWithRawResponse, IndexesWithStreamingResponse, AsyncIndexesWithStreamingResponse, ) +from .vectorize import Vectorize, AsyncVectorize from .vectorize import ( - Vectorize, - AsyncVectorize, VectorizeWithRawResponse, AsyncVectorizeWithRawResponse, VectorizeWithStreamingResponse, diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py index 74c61c377c8..32fbf2a8a5e 100644 --- a/src/cloudflare/resources/vectorize/indexes.py +++ b/src/cloudflare/resources/vectorize/indexes.py @@ -2,40 +2,75 @@ from __future__ import annotations -from typing import Any, List, Type, Iterable, Optional, cast - 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 ...types.vectorize import ( + IndexCreateResponse, + IndexUpdateResponse, + IndexListResponse, + IndexDeleteResponse, + IndexDeleteByIDsResponse, + IndexGetResponse, + IndexInsertResponse, + IndexQueryResponse, + IndexUpsertResponse, + index_create_params, +) + +from typing import Type, Optional, List, Iterable + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.vectorize import ( - IndexGetResponse, - IndexListResponse, - IndexQueryResponse, - IndexCreateResponse, - IndexDeleteResponse, - IndexInsertResponse, - IndexUpdateResponse, - IndexUpsertResponse, - IndexDeleteByIDsResponse, - index_query_params, - index_create_params, - index_update_params, - index_get_by_ids_params, - index_delete_by_ids_params, -) +from ...types import shared_params +from ...types.vectorize import index_create_params +from ...types.vectorize import index_update_params +from ...types.vectorize import index_delete_by_ids_params +from ...types.vectorize import index_get_by_ids_params +from ...types.vectorize import index_query_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Indexes", "AsyncIndexes"] diff --git a/src/cloudflare/resources/vectorize/vectorize.py b/src/cloudflare/resources/vectorize/vectorize.py index 84d2297378d..a0b0d01b616 100644 --- a/src/cloudflare/resources/vectorize/vectorize.py +++ b/src/cloudflare/resources/vectorize/vectorize.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .indexes import Indexes, AsyncIndexes + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .indexes import ( Indexes, AsyncIndexes, @@ -10,8 +29,7 @@ IndexesWithStreamingResponse, AsyncIndexesWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._wrappers import ResultWrapper __all__ = ["Vectorize", "AsyncVectorize"] diff --git a/src/cloudflare/resources/waiting_rooms/__init__.py b/src/cloudflare/resources/waiting_rooms/__init__.py index e50ff5a672f..6fc8d022989 100644 --- a/src/cloudflare/resources/waiting_rooms/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/__init__.py @@ -1,48 +1,42 @@ # File generated from our OpenAPI spec by Stainless. -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, +from .previews import Previews, AsyncPreviews +from .previews import ( + PreviewsWithRawResponse, + AsyncPreviewsWithRawResponse, + PreviewsWithStreamingResponse, + AsyncPreviewsWithStreamingResponse, ) +from .events import Events, AsyncEvents from .events import ( - Events, - AsyncEvents, EventsWithRawResponse, AsyncEventsWithRawResponse, EventsWithStreamingResponse, AsyncEventsWithStreamingResponse, ) -from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, -) -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, +from .rules import Rules, AsyncRules +from .rules import ( + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) +from .statuses import Statuses, AsyncStatuses from .statuses import ( - Statuses, - AsyncStatuses, StatusesWithRawResponse, AsyncStatusesWithRawResponse, StatusesWithStreamingResponse, AsyncStatusesWithStreamingResponse, ) +from .settings import Settings, AsyncSettings +from .settings import ( + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, +) +from .waiting_rooms import WaitingRooms, AsyncWaitingRooms from .waiting_rooms import ( - WaitingRooms, - AsyncWaitingRooms, WaitingRoomsWithRawResponse, AsyncWaitingRoomsWithRawResponse, WaitingRoomsWithStreamingResponse, diff --git a/src/cloudflare/resources/waiting_rooms/events/__init__.py b/src/cloudflare/resources/waiting_rooms/events/__init__.py index 599fcb203e3..94ed4644d5e 100644 --- a/src/cloudflare/resources/waiting_rooms/events/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/events/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, -) +from .details import Details, AsyncDetails from .details import ( - Details, - AsyncDetails, DetailsWithRawResponse, AsyncDetailsWithRawResponse, DetailsWithStreamingResponse, AsyncDetailsWithStreamingResponse, ) +from .events import Events, AsyncEvents +from .events import ( + EventsWithRawResponse, + AsyncEventsWithRawResponse, + EventsWithStreamingResponse, + AsyncEventsWithStreamingResponse, +) __all__ = [ "Details", diff --git a/src/cloudflare/resources/waiting_rooms/events/details.py b/src/cloudflare/resources/waiting_rooms/events/details.py index af6c9894c57..ace840f74d6 100644 --- a/src/cloudflare/resources/waiting_rooms/events/details.py +++ b/src/cloudflare/resources/waiting_rooms/events/details.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.waiting_rooms.events import DetailWaitingRoomPreviewActiveEventDetailsResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.waiting_rooms.events import DetailWaitingRoomPreviewActiveEventDetailsResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Details", "AsyncDetails"] diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py index 07a1a01e70b..d5838a1d28a 100644 --- a/src/cloudflare/resources/waiting_rooms/events/events.py +++ b/src/cloudflare/resources/waiting_rooms/events/events.py @@ -2,41 +2,65 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from .details import ( - Details, - AsyncDetails, - DetailsWithRawResponse, - AsyncDetailsWithRawResponse, - DetailsWithStreamingResponse, - AsyncDetailsWithStreamingResponse, -) -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import maybe_transform +from .details import Details, AsyncDetails + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.waiting_rooms import ( + EventUpdateResponse, + EventDeleteResponse, + EventGetResponse, + EventWaitingRoomCreateEventResponse, + EventWaitingRoomListEventsResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.waiting_rooms import ( - EventGetResponse, - EventDeleteResponse, - EventUpdateResponse, - EventWaitingRoomListEventsResponse, - EventWaitingRoomCreateEventResponse, - event_update_params, - event_waiting_room_create_event_params, +from ....types import shared_params +from ....types.waiting_rooms import event_update_params +from ....types.waiting_rooms import event_waiting_room_create_event_params +from .details import ( + Details, + AsyncDetails, + DetailsWithRawResponse, + AsyncDetailsWithRawResponse, + DetailsWithStreamingResponse, + AsyncDetailsWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Events", "AsyncEvents"] diff --git a/src/cloudflare/resources/waiting_rooms/previews.py b/src/cloudflare/resources/waiting_rooms/previews.py index 6107fa75334..f4ec788ddb7 100644 --- a/src/cloudflare/resources/waiting_rooms/previews.py +++ b/src/cloudflare/resources/waiting_rooms/previews.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.waiting_rooms import PreviewCreateResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.waiting_rooms import PreviewCreateResponse, preview_create_params +from ...types import shared_params +from ...types.waiting_rooms import preview_create_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Previews", "AsyncPreviews"] diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py index d10a79941bd..3d9c585c4e8 100644 --- a/src/cloudflare/resources/waiting_rooms/rules.py +++ b/src/cloudflare/resources/waiting_rooms/rules.py @@ -2,35 +2,60 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.waiting_rooms import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleWaitingRoomCreateWaitingRoomRuleResponse, + RuleWaitingRoomListWaitingRoomRulesResponse, + RuleWaitingRoomReplaceWaitingRoomRulesResponse, + rule_update_params, + rule_waiting_room_replace_waiting_room_rules_params, +) + +from typing import Type, Optional, Iterable + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.waiting_rooms import ( - RuleDeleteResponse, - RuleUpdateResponse, - RuleWaitingRoomListWaitingRoomRulesResponse, - RuleWaitingRoomCreateWaitingRoomRuleResponse, - RuleWaitingRoomReplaceWaitingRoomRulesResponse, - rule_update_params, - rule_waiting_room_create_waiting_room_rule_params, - rule_waiting_room_replace_waiting_room_rules_params, -) +from ...types import shared_params +from ...types.waiting_rooms import rule_update_params +from ...types.waiting_rooms import rule_waiting_room_create_waiting_room_rule_params +from ...types.waiting_rooms import rule_waiting_room_replace_waiting_room_rules_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Rules", "AsyncRules"] diff --git a/src/cloudflare/resources/waiting_rooms/settings.py b/src/cloudflare/resources/waiting_rooms/settings.py index 8192bd9f767..26d6517ff40 100644 --- a/src/cloudflare/resources/waiting_rooms/settings.py +++ b/src/cloudflare/resources/waiting_rooms/settings.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.waiting_rooms import SettingUpdateResponse, SettingGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.waiting_rooms import SettingGetResponse, SettingUpdateResponse, setting_update_params +from ...types import shared_params +from ...types.waiting_rooms import setting_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/waiting_rooms/statuses.py b/src/cloudflare/resources/waiting_rooms/statuses.py index 7af6fa91715..1c4969b4261 100644 --- a/src/cloudflare/resources/waiting_rooms/statuses.py +++ b/src/cloudflare/resources/waiting_rooms/statuses.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.waiting_rooms import StatusWaitingRoomGetWaitingRoomStatusResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.waiting_rooms import StatusWaitingRoomGetWaitingRoomStatusResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Statuses", "AsyncStatuses"] diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py index f0f56e8d71f..31542d954af 100644 --- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py +++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py @@ -2,38 +2,58 @@ from __future__ import annotations -from typing import Type, Iterable, Optional, cast -from typing_extensions import Literal - import httpx -from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, -) -from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, -) +from .previews import Previews, AsyncPreviews + +from ..._compat import cached_property + +from .events.events import Events, AsyncEvents + +from .rules import Rules, AsyncRules + +from .statuses import Statuses, AsyncStatuses + +from .settings import Settings, AsyncSettings + from ...types import ( - WaitingRoomGetResponse, - WaitingRoomListResponse, WaitingRoomCreateResponse, - WaitingRoomDeleteResponse, WaitingRoomUpdateResponse, + WaitingRoomListResponse, + WaitingRoomDeleteResponse, + WaitingRoomGetResponse, waiting_room_create_params, waiting_room_update_params, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform + +from typing import Type, Iterable, Optional + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import waiting_room_create_params +from ...types import waiting_room_update_params from .previews import ( Previews, AsyncPreviews, @@ -42,13 +62,21 @@ PreviewsWithStreamingResponse, AsyncPreviewsWithStreamingResponse, ) -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, +from .events import ( + Events, + AsyncEvents, + EventsWithRawResponse, + AsyncEventsWithRawResponse, + EventsWithStreamingResponse, + AsyncEventsWithStreamingResponse, +) +from .rules import ( + Rules, + AsyncRules, + RulesWithRawResponse, + AsyncRulesWithRawResponse, + RulesWithStreamingResponse, + AsyncRulesWithStreamingResponse, ) from .statuses import ( Statuses, @@ -58,19 +86,25 @@ StatusesWithStreamingResponse, AsyncStatusesWithStreamingResponse, ) -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 .settings import ( + Settings, + AsyncSettings, + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, ) from ..._wrappers import ResultWrapper -from .events.events import Events, AsyncEvents -from ..._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["WaitingRooms", "AsyncWaitingRooms"] diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py index 6e85574a769..b5230d920ed 100644 --- a/src/cloudflare/resources/warp_connector.py +++ b/src/cloudflare/resources/warp_connector.py @@ -2,36 +2,67 @@ from __future__ import annotations -from typing import Any, Type, Union, Optional, cast -from datetime import datetime - import httpx +from .._compat import cached_property + from ..types import ( - WarpConnectorGetResponse, - WarpConnectorListResponse, WarpConnectorCreateResponse, - WarpConnectorDeleteResponse, WarpConnectorUpdateResponse, - warp_connector_list_params, - warp_connector_create_params, - warp_connector_delete_params, - warp_connector_update_params, + WarpConnectorListResponse, + WarpConnectorDeleteResponse, + WarpConnectorGetResponse, ) -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 typing import Type, Optional, Union + +from datetime import datetime + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from ..types import warp_connector_create_params +from ..types import warp_connector_update_params +from ..types import warp_connector_list_params +from ..types import warp_connector_delete_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["WarpConnector", "AsyncWarpConnector"] diff --git a/src/cloudflare/resources/web3s/__init__.py b/src/cloudflare/resources/web3s/__init__.py index d22589b8155..fabee7db9c5 100644 --- a/src/cloudflare/resources/web3s/__init__.py +++ b/src/cloudflare/resources/web3s/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .web3s import ( - Web3s, - AsyncWeb3s, - Web3sWithRawResponse, - AsyncWeb3sWithRawResponse, - Web3sWithStreamingResponse, - AsyncWeb3sWithStreamingResponse, -) +from .hostnames import Hostnames, AsyncHostnames from .hostnames import ( - Hostnames, - AsyncHostnames, HostnamesWithRawResponse, AsyncHostnamesWithRawResponse, HostnamesWithStreamingResponse, AsyncHostnamesWithStreamingResponse, ) +from .web3s import Web3s, AsyncWeb3s +from .web3s import ( + Web3sWithRawResponse, + AsyncWeb3sWithRawResponse, + Web3sWithStreamingResponse, + AsyncWeb3sWithStreamingResponse, +) __all__ = [ "Hostnames", diff --git a/src/cloudflare/resources/web3s/hostnames/__init__.py b/src/cloudflare/resources/web3s/hostnames/__init__.py index 6a312e728f7..1424d51cf25 100644 --- a/src/cloudflare/resources/web3s/hostnames/__init__.py +++ b/src/cloudflare/resources/web3s/hostnames/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, -) +from .ipfs_universal_paths import IpfsUniversalPaths, AsyncIpfsUniversalPaths from .ipfs_universal_paths import ( - IpfsUniversalPaths, - AsyncIpfsUniversalPaths, IpfsUniversalPathsWithRawResponse, AsyncIpfsUniversalPathsWithRawResponse, IpfsUniversalPathsWithStreamingResponse, AsyncIpfsUniversalPathsWithStreamingResponse, ) +from .hostnames import Hostnames, AsyncHostnames +from .hostnames import ( + HostnamesWithRawResponse, + AsyncHostnamesWithRawResponse, + HostnamesWithStreamingResponse, + AsyncHostnamesWithStreamingResponse, +) __all__ = [ "IpfsUniversalPaths", diff --git a/src/cloudflare/resources/web3s/hostnames/hostnames.py b/src/cloudflare/resources/web3s/hostnames/hostnames.py index 00573bf37f2..7076588c052 100644 --- a/src/cloudflare/resources/web3s/hostnames/hostnames.py +++ b/src/cloudflare/resources/web3s/hostnames/hostnames.py @@ -2,34 +2,48 @@ 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 +from .ipfs_universal_paths.ipfs_universal_paths import IpfsUniversalPaths, AsyncIpfsUniversalPaths + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.web3s import ( + HostnameUpdateResponse, + HostnameDeleteResponse, + HostnameGetResponse, + HostnameWeb3HostnameCreateWeb3HostnameResponse, + HostnameWeb3HostnameListWeb3HostnamesResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ....types.web3s import ( - HostnameGetResponse, - HostnameDeleteResponse, - HostnameUpdateResponse, - HostnameWeb3HostnameListWeb3HostnamesResponse, - HostnameWeb3HostnameCreateWeb3HostnameResponse, - hostname_update_params, - hostname_web3_hostname_create_web3_hostname_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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ....types import shared_params +from ....types.web3s import hostname_update_params +from ....types.web3s import hostname_web3_hostname_create_web3_hostname_params from .ipfs_universal_paths import ( IpfsUniversalPaths, AsyncIpfsUniversalPaths, @@ -38,7 +52,17 @@ IpfsUniversalPathsWithStreamingResponse, AsyncIpfsUniversalPathsWithStreamingResponse, ) -from .ipfs_universal_paths.ipfs_universal_paths import IpfsUniversalPaths, AsyncIpfsUniversalPaths +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Hostnames", "AsyncHostnames"] diff --git a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/__init__.py b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/__init__.py index 5ba2fe680f0..11847bde53b 100644 --- a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/__init__.py +++ b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .content_lists import ContentLists, AsyncContentLists from .content_lists import ( - ContentLists, - AsyncContentLists, ContentListsWithRawResponse, AsyncContentListsWithRawResponse, ContentListsWithStreamingResponse, AsyncContentListsWithStreamingResponse, ) +from .ipfs_universal_paths import IpfsUniversalPaths, AsyncIpfsUniversalPaths from .ipfs_universal_paths import ( - IpfsUniversalPaths, - AsyncIpfsUniversalPaths, IpfsUniversalPathsWithRawResponse, AsyncIpfsUniversalPathsWithRawResponse, IpfsUniversalPathsWithStreamingResponse, diff --git a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py index 0b997aafbb1..17d48e245ce 100644 --- a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py +++ b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .entries import Entries, AsyncEntries from .entries import ( - Entries, - AsyncEntries, EntriesWithRawResponse, AsyncEntriesWithRawResponse, EntriesWithStreamingResponse, AsyncEntriesWithStreamingResponse, ) +from .content_lists import ContentLists, AsyncContentLists from .content_lists import ( - ContentLists, - AsyncContentLists, ContentListsWithRawResponse, AsyncContentListsWithRawResponse, ContentListsWithStreamingResponse, diff --git a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/content_lists.py b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/content_lists.py index 06b76850699..f698876a681 100644 --- a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/content_lists.py +++ b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/content_lists.py @@ -2,38 +2,60 @@ from __future__ import annotations -from typing import Type, Iterable, cast -from typing_extensions import Literal - import httpx -from .entries import ( - Entries, - AsyncEntries, - EntriesWithRawResponse, - AsyncEntriesWithRawResponse, - EntriesWithStreamingResponse, - AsyncEntriesWithStreamingResponse, -) -from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ......_utils import maybe_transform +from .entries import Entries, AsyncEntries + from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.web3s.hostnames.ipfs_universal_paths import ( + ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, + ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, + content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params, +) + +from typing import Type, Iterable + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ......types import shared_params from ......types.web3s.hostnames.ipfs_universal_paths import ( - ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, - ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params, ) +from .entries import ( + Entries, + AsyncEntries, + EntriesWithRawResponse, + AsyncEntriesWithRawResponse, + EntriesWithStreamingResponse, + AsyncEntriesWithStreamingResponse, +) +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ContentLists", "AsyncContentLists"] diff --git a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/entries.py b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/entries.py index 66572908140..b00ee09c3b5 100644 --- a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/entries.py +++ b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/content_lists/entries.py @@ -2,34 +2,59 @@ 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 from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.web3s.hostnames.ipfs_universal_paths.content_lists import ( + EntryUpdateResponse, + EntryDeleteResponse, + EntryGetResponse, + EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, + EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, +) + +from typing import Type, Optional + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ......types import shared_params +from ......types.web3s.hostnames.ipfs_universal_paths.content_lists import entry_update_params from ......types.web3s.hostnames.ipfs_universal_paths.content_lists import ( - EntryGetResponse, - EntryDeleteResponse, - EntryUpdateResponse, - EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, - EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, - entry_update_params, entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params, ) +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Entries", "AsyncEntries"] diff --git a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/ipfs_universal_paths.py b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/ipfs_universal_paths.py index 5c1fb3615a2..898ac2dc55d 100644 --- a/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/ipfs_universal_paths.py +++ b/src/cloudflare/resources/web3s/hostnames/ipfs_universal_paths/ipfs_universal_paths.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .content_lists.content_lists import ContentLists, AsyncContentLists + 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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .content_lists import ( ContentLists, AsyncContentLists, @@ -12,7 +29,7 @@ ContentListsWithStreamingResponse, AsyncContentListsWithStreamingResponse, ) -from .content_lists.content_lists import ContentLists, AsyncContentLists +from ....._wrappers import ResultWrapper __all__ = ["IpfsUniversalPaths", "AsyncIpfsUniversalPaths"] diff --git a/src/cloudflare/resources/web3s/web3s.py b/src/cloudflare/resources/web3s/web3s.py index c9c6fad04db..83755308bca 100644 --- a/src/cloudflare/resources/web3s/web3s.py +++ b/src/cloudflare/resources/web3s/web3s.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .hostnames.hostnames import Hostnames, AsyncHostnames + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .hostnames import ( Hostnames, AsyncHostnames, @@ -11,8 +29,7 @@ HostnamesWithStreamingResponse, AsyncHostnamesWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource -from .hostnames.hostnames import Hostnames, AsyncHostnames +from ..._wrappers import ResultWrapper __all__ = ["Web3s", "AsyncWeb3s"] diff --git a/src/cloudflare/resources/worker_domains.py b/src/cloudflare/resources/worker_domains.py index b7d92f9acf6..9e029925142 100644 --- a/src/cloudflare/resources/worker_domains.py +++ b/src/cloudflare/resources/worker_domains.py @@ -2,24 +2,39 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..types import WorkerDomainGetResponse -from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from .._compat import cached_property -from .._resource import SyncAPIResource, AsyncAPIResource + +from ..types import WorkerDomainGetResponse + +from typing import Type + from .._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from .._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from .._resource import SyncAPIResource, AsyncAPIResource from .._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ..types import shared_params +from .._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["WorkerDomains", "AsyncWorkerDomains"] diff --git a/src/cloudflare/resources/worker_scripts/__init__.py b/src/cloudflare/resources/worker_scripts/__init__.py index 283056ef471..8cda468407d 100644 --- a/src/cloudflare/resources/worker_scripts/__init__.py +++ b/src/cloudflare/resources/worker_scripts/__init__.py @@ -1,32 +1,28 @@ # File generated from our OpenAPI spec by Stainless. +from .content import Content, AsyncContent from .content import ( - Content, - AsyncContent, ContentWithRawResponse, AsyncContentWithRawResponse, ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, -) +from .content_v2 import ContentV2, AsyncContentV2 from .content_v2 import ( - ContentV2, - AsyncContentV2, ContentV2WithRawResponse, AsyncContentV2WithRawResponse, ContentV2WithStreamingResponse, AsyncContentV2WithStreamingResponse, ) +from .settings import Settings, AsyncSettings +from .settings import ( + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, +) +from .worker_scripts import WorkerScripts, AsyncWorkerScripts from .worker_scripts import ( - WorkerScripts, - AsyncWorkerScripts, WorkerScriptsWithRawResponse, AsyncWorkerScriptsWithRawResponse, WorkerScriptsWithStreamingResponse, diff --git a/src/cloudflare/resources/worker_scripts/content.py b/src/cloudflare/resources/worker_scripts/content.py index 0b9cedbe8b5..39d7bb940da 100644 --- a/src/cloudflare/resources/worker_scripts/content.py +++ b/src/cloudflare/resources/worker_scripts/content.py @@ -2,25 +2,42 @@ from __future__ import annotations -from typing import List, Type, Mapping, cast - import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes -from ..._utils import extract_files, maybe_transform, deepcopy_minimal from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.worker_scripts import ContentUpdateResponse, content_update_params + +from typing import Type, List + +from ..._types import FileTypes + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.worker_scripts import ContentUpdateResponse, content_update_params +from ...types import shared_params +from ...types.worker_scripts import content_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Content", "AsyncContent"] diff --git a/src/cloudflare/resources/worker_scripts/content_v2.py b/src/cloudflare/resources/worker_scripts/content_v2.py index 09aea461b5a..221e2aceffa 100644 --- a/src/cloudflare/resources/worker_scripts/content_v2.py +++ b/src/cloudflare/resources/worker_scripts/content_v2.py @@ -4,22 +4,35 @@ 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, - StreamedBinaryAPIResponse, - AsyncStreamedBinaryAPIResponse, to_custom_raw_response_wrapper, - to_custom_streamed_response_wrapper, async_to_custom_raw_response_wrapper, + to_custom_streamed_response_wrapper, + StreamedBinaryAPIResponse, async_to_custom_streamed_response_wrapper, + AsyncStreamedBinaryAPIResponse, ) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["ContentV2", "AsyncContentV2"] diff --git a/src/cloudflare/resources/worker_scripts/settings.py b/src/cloudflare/resources/worker_scripts/settings.py index 05a3d8425ea..8e028292116 100644 --- a/src/cloudflare/resources/worker_scripts/settings.py +++ b/src/cloudflare/resources/worker_scripts/settings.py @@ -2,25 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.worker_scripts import SettingUpdateResponse, SettingGetResponse, setting_update_params + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.worker_scripts import SettingGetResponse, SettingUpdateResponse, setting_update_params +from ...types import shared_params +from ...types.worker_scripts import setting_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/worker_scripts/worker_scripts.py b/src/cloudflare/resources/worker_scripts/worker_scripts.py index 34843d0097a..529d5e2f203 100644 --- a/src/cloudflare/resources/worker_scripts/worker_scripts.py +++ b/src/cloudflare/resources/worker_scripts/worker_scripts.py @@ -2,6 +2,29 @@ from __future__ import annotations +from .content import Content, AsyncContent + +from ..._compat import cached_property + +from .content_v2 import ContentV2, AsyncContentV2 + +from .settings import Settings, AsyncSettings + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .content import ( Content, AsyncContent, @@ -10,15 +33,6 @@ ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) -from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, -) -from ..._compat import cached_property from .content_v2 import ( ContentV2, AsyncContentV2, @@ -27,7 +41,15 @@ ContentV2WithStreamingResponse, AsyncContentV2WithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource +from .settings import ( + Settings, + AsyncSettings, + SettingsWithRawResponse, + AsyncSettingsWithRawResponse, + SettingsWithStreamingResponse, + AsyncSettingsWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["WorkerScripts", "AsyncWorkerScripts"] diff --git a/src/cloudflare/resources/workers/__init__.py b/src/cloudflare/resources/workers/__init__.py index 09e3a2e5766..26323d6e28e 100644 --- a/src/cloudflare/resources/workers/__init__.py +++ b/src/cloudflare/resources/workers/__init__.py @@ -1,109 +1,96 @@ # File generated from our OpenAPI spec by Stainless. -from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, -) -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, -) -from .script import ( - Script, - AsyncScript, - ScriptWithRawResponse, - AsyncScriptWithRawResponse, - ScriptWithStreamingResponse, - AsyncScriptWithStreamingResponse, -) -from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, -) -from .filters import ( - Filters, - AsyncFilters, - FiltersWithRawResponse, - AsyncFiltersWithRawResponse, - FiltersWithStreamingResponse, - AsyncFiltersWithStreamingResponse, -) +from .scripts import Scripts, AsyncScripts from .scripts import ( - Scripts, - AsyncScripts, ScriptsWithRawResponse, AsyncScriptsWithRawResponse, ScriptsWithStreamingResponse, AsyncScriptsWithStreamingResponse, ) -from .workers import ( - Workers, - AsyncWorkers, - WorkersWithRawResponse, - AsyncWorkersWithRawResponse, - WorkersWithStreamingResponse, - AsyncWorkersWithStreamingResponse, +from .filters import Filters, AsyncFilters +from .filters import ( + FiltersWithRawResponse, + AsyncFiltersWithRawResponse, + FiltersWithStreamingResponse, + AsyncFiltersWithStreamingResponse, ) -from .services import ( - Services, - AsyncServices, - ServicesWithRawResponse, - AsyncServicesWithRawResponse, - ServicesWithStreamingResponse, - AsyncServicesWithStreamingResponse, +from .routes import Routes, AsyncRoutes +from .routes import ( + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, ) -from .subdomains import ( - Subdomains, - AsyncSubdomains, - SubdomainsWithRawResponse, - AsyncSubdomainsWithRawResponse, - SubdomainsWithStreamingResponse, - AsyncSubdomainsWithStreamingResponse, +from .account_settings import AccountSettings, AsyncAccountSettings +from .account_settings import ( + AccountSettingsWithRawResponse, + AsyncAccountSettingsWithRawResponse, + AccountSettingsWithStreamingResponse, + AsyncAccountSettingsWithStreamingResponse, ) +from .deployments import Deployments, AsyncDeployments from .deployments import ( - Deployments, - AsyncDeployments, DeploymentsWithRawResponse, AsyncDeploymentsWithRawResponse, DeploymentsWithStreamingResponse, AsyncDeploymentsWithStreamingResponse, ) +from .domains import Domains, AsyncDomains +from .domains import ( + DomainsWithRawResponse, + AsyncDomainsWithRawResponse, + DomainsWithStreamingResponse, + AsyncDomainsWithStreamingResponse, +) +from .durable_objects import DurableObjects, AsyncDurableObjects from .durable_objects import ( - DurableObjects, - AsyncDurableObjects, DurableObjectsWithRawResponse, AsyncDurableObjectsWithRawResponse, DurableObjectsWithStreamingResponse, AsyncDurableObjectsWithStreamingResponse, ) -from .account_settings import ( - AccountSettings, - AsyncAccountSettings, - AccountSettingsWithRawResponse, - AsyncAccountSettingsWithRawResponse, - AccountSettingsWithStreamingResponse, - AsyncAccountSettingsWithStreamingResponse, +from .queues import Queues, AsyncQueues +from .queues import ( + QueuesWithRawResponse, + AsyncQueuesWithRawResponse, + QueuesWithStreamingResponse, + AsyncQueuesWithStreamingResponse, +) +from .subdomains import Subdomains, AsyncSubdomains +from .subdomains import ( + SubdomainsWithRawResponse, + AsyncSubdomainsWithRawResponse, + SubdomainsWithStreamingResponse, + AsyncSubdomainsWithStreamingResponse, ) +from .deployments_by_script import DeploymentsByScript, AsyncDeploymentsByScript from .deployments_by_script import ( - DeploymentsByScript, - AsyncDeploymentsByScript, DeploymentsByScriptWithRawResponse, AsyncDeploymentsByScriptWithRawResponse, DeploymentsByScriptWithStreamingResponse, AsyncDeploymentsByScriptWithStreamingResponse, ) +from .services import Services, AsyncServices +from .services import ( + ServicesWithRawResponse, + AsyncServicesWithRawResponse, + ServicesWithStreamingResponse, + AsyncServicesWithStreamingResponse, +) +from .script import Script, AsyncScript +from .script import ( + ScriptWithRawResponse, + AsyncScriptWithRawResponse, + ScriptWithStreamingResponse, + AsyncScriptWithStreamingResponse, +) +from .workers import Workers, AsyncWorkers +from .workers import ( + WorkersWithRawResponse, + AsyncWorkersWithRawResponse, + WorkersWithStreamingResponse, + AsyncWorkersWithStreamingResponse, +) __all__ = [ "Scripts", diff --git a/src/cloudflare/resources/workers/account_settings.py b/src/cloudflare/resources/workers/account_settings.py index 1078943fb28..99597af878b 100644 --- a/src/cloudflare/resources/workers/account_settings.py +++ b/src/cloudflare/resources/workers/account_settings.py @@ -2,29 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import ( + AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, + AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import ( - AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, - AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, - account_setting_worker_account_settings_create_worker_account_settings_params, -) +from ...types import shared_params +from ...types.workers import account_setting_worker_account_settings_create_worker_account_settings_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["AccountSettings", "AsyncAccountSettings"] diff --git a/src/cloudflare/resources/workers/deployments/__init__.py b/src/cloudflare/resources/workers/deployments/__init__.py index 46050e5c5e4..afc96509c96 100644 --- a/src/cloudflare/resources/workers/deployments/__init__.py +++ b/src/cloudflare/resources/workers/deployments/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .by_scripts import ByScripts, AsyncByScripts from .by_scripts import ( - ByScripts, - AsyncByScripts, ByScriptsWithRawResponse, AsyncByScriptsWithRawResponse, ByScriptsWithStreamingResponse, AsyncByScriptsWithStreamingResponse, ) +from .deployments import Deployments, AsyncDeployments from .deployments import ( - Deployments, - AsyncDeployments, DeploymentsWithRawResponse, AsyncDeploymentsWithRawResponse, DeploymentsWithStreamingResponse, diff --git a/src/cloudflare/resources/workers/deployments/by_scripts/__init__.py b/src/cloudflare/resources/workers/deployments/by_scripts/__init__.py index 44dfd530bee..47541115bc3 100644 --- a/src/cloudflare/resources/workers/deployments/by_scripts/__init__.py +++ b/src/cloudflare/resources/workers/deployments/by_scripts/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .details import Details, AsyncDetails from .details import ( - Details, - AsyncDetails, DetailsWithRawResponse, AsyncDetailsWithRawResponse, DetailsWithStreamingResponse, AsyncDetailsWithStreamingResponse, ) +from .by_scripts import ByScripts, AsyncByScripts from .by_scripts import ( - ByScripts, - AsyncByScripts, ByScriptsWithRawResponse, AsyncByScriptsWithRawResponse, ByScriptsWithStreamingResponse, diff --git a/src/cloudflare/resources/workers/deployments/by_scripts/by_scripts.py b/src/cloudflare/resources/workers/deployments/by_scripts/by_scripts.py index a7cca49dc79..e5dff95e463 100644 --- a/src/cloudflare/resources/workers/deployments/by_scripts/by_scripts.py +++ b/src/cloudflare/resources/workers/deployments/by_scripts/by_scripts.py @@ -2,32 +2,49 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from .details import ( - Details, - AsyncDetails, - DetailsWithRawResponse, - AsyncDetailsWithRawResponse, - DetailsWithStreamingResponse, - AsyncDetailsWithStreamingResponse, -) -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .details import Details, AsyncDetails + from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.workers.deployments import ByScriptWorkerDeploymentsListDeploymentsResponse + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.deployments import ByScriptWorkerDeploymentsListDeploymentsResponse +from .....types import shared_params +from .details import ( + Details, + AsyncDetails, + DetailsWithRawResponse, + AsyncDetailsWithRawResponse, + DetailsWithStreamingResponse, + AsyncDetailsWithStreamingResponse, +) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["ByScripts", "AsyncByScripts"] diff --git a/src/cloudflare/resources/workers/deployments/by_scripts/details.py b/src/cloudflare/resources/workers/deployments/by_scripts/details.py index 8826e445845..b04a7d134b6 100644 --- a/src/cloudflare/resources/workers/deployments/by_scripts/details.py +++ b/src/cloudflare/resources/workers/deployments/by_scripts/details.py @@ -2,24 +2,39 @@ 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 ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.workers.deployments.by_scripts import DetailGetResponse + +from typing import Type + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.deployments.by_scripts import DetailGetResponse +from .....types import shared_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Details", "AsyncDetails"] diff --git a/src/cloudflare/resources/workers/deployments/deployments.py b/src/cloudflare/resources/workers/deployments/deployments.py index 286c4e05e45..561f5ace47a 100644 --- a/src/cloudflare/resources/workers/deployments/deployments.py +++ b/src/cloudflare/resources/workers/deployments/deployments.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .by_scripts.by_scripts import ByScripts, AsyncByScripts + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .by_scripts import ( ByScripts, AsyncByScripts, @@ -11,8 +29,7 @@ ByScriptsWithStreamingResponse, AsyncByScriptsWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .by_scripts.by_scripts import ByScripts, AsyncByScripts +from ...._wrappers import ResultWrapper __all__ = ["Deployments", "AsyncDeployments"] diff --git a/src/cloudflare/resources/workers/deployments_by_script.py b/src/cloudflare/resources/workers/deployments_by_script.py index e6162189df0..100794b6374 100644 --- a/src/cloudflare/resources/workers/deployments_by_script.py +++ b/src/cloudflare/resources/workers/deployments_by_script.py @@ -2,24 +2,41 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import DeploymentsByScriptListResponse, DeploymentsByScriptDetailResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import DeploymentsByScriptListResponse, DeploymentsByScriptDetailResponse +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["DeploymentsByScript", "AsyncDeploymentsByScript"] diff --git a/src/cloudflare/resources/workers/domains.py b/src/cloudflare/resources/workers/domains.py index 5e255f85d49..767cee1326e 100644 --- a/src/cloudflare/resources/workers/domains.py +++ b/src/cloudflare/resources/workers/domains.py @@ -2,31 +2,49 @@ from __future__ import annotations -from typing import Type, cast - import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven -from ..._utils import maybe_transform from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import ( + DomainGetResponse, + DomainWorkerDomainAttachToDomainResponse, + DomainWorkerDomainListDomainsResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import ( - DomainGetResponse, - DomainWorkerDomainListDomainsResponse, - DomainWorkerDomainAttachToDomainResponse, - domain_worker_domain_list_domains_params, - domain_worker_domain_attach_to_domain_params, -) +from ...types import shared_params +from ...types.workers import domain_worker_domain_attach_to_domain_params +from ...types.workers import domain_worker_domain_list_domains_params +from ..._wrappers import ResultWrapper +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__ = ["Domains", "AsyncDomains"] diff --git a/src/cloudflare/resources/workers/durable_objects/__init__.py b/src/cloudflare/resources/workers/durable_objects/__init__.py index ccaf68ad49a..14b039356df 100644 --- a/src/cloudflare/resources/workers/durable_objects/__init__.py +++ b/src/cloudflare/resources/workers/durable_objects/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) +from .durable_objects import DurableObjects, AsyncDurableObjects from .durable_objects import ( - DurableObjects, - AsyncDurableObjects, DurableObjectsWithRawResponse, AsyncDurableObjectsWithRawResponse, DurableObjectsWithStreamingResponse, diff --git a/src/cloudflare/resources/workers/durable_objects/durable_objects.py b/src/cloudflare/resources/workers/durable_objects/durable_objects.py index 316a1066709..c4e67a9b2a5 100644 --- a/src/cloudflare/resources/workers/durable_objects/durable_objects.py +++ b/src/cloudflare/resources/workers/durable_objects/durable_objects.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .namespaces.namespaces import Namespaces, AsyncNamespaces + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .namespaces import ( Namespaces, AsyncNamespaces, @@ -11,8 +29,7 @@ NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from ...._wrappers import ResultWrapper __all__ = ["DurableObjects", "AsyncDurableObjects"] diff --git a/src/cloudflare/resources/workers/durable_objects/namespaces/__init__.py b/src/cloudflare/resources/workers/durable_objects/namespaces/__init__.py index 8395f701570..5afe558fcbc 100644 --- a/src/cloudflare/resources/workers/durable_objects/namespaces/__init__.py +++ b/src/cloudflare/resources/workers/durable_objects/namespaces/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .objects import Objects, AsyncObjects from .objects import ( - Objects, - AsyncObjects, ObjectsWithRawResponse, AsyncObjectsWithRawResponse, ObjectsWithStreamingResponse, AsyncObjectsWithStreamingResponse, ) +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, diff --git a/src/cloudflare/resources/workers/durable_objects/namespaces/namespaces.py b/src/cloudflare/resources/workers/durable_objects/namespaces/namespaces.py index 4903ebcfebb..5c7f5419e98 100644 --- a/src/cloudflare/resources/workers/durable_objects/namespaces/namespaces.py +++ b/src/cloudflare/resources/workers/durable_objects/namespaces/namespaces.py @@ -2,32 +2,49 @@ from __future__ import annotations -from typing import Type, Optional, cast - import httpx -from .objects import ( - Objects, - AsyncObjects, - ObjectsWithRawResponse, - AsyncObjectsWithRawResponse, - ObjectsWithStreamingResponse, - AsyncObjectsWithStreamingResponse, -) -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from .objects import Objects, AsyncObjects + from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.workers.durable_objects import NamespaceListResponse + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.durable_objects import NamespaceListResponse +from .....types import shared_params +from .objects import ( + Objects, + AsyncObjects, + ObjectsWithRawResponse, + AsyncObjectsWithRawResponse, + ObjectsWithStreamingResponse, + AsyncObjectsWithStreamingResponse, +) +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Namespaces", "AsyncNamespaces"] diff --git a/src/cloudflare/resources/workers/durable_objects/namespaces/objects.py b/src/cloudflare/resources/workers/durable_objects/namespaces/objects.py index b258de88274..3f043fdaf01 100644 --- a/src/cloudflare/resources/workers/durable_objects/namespaces/objects.py +++ b/src/cloudflare/resources/workers/durable_objects/namespaces/objects.py @@ -2,25 +2,40 @@ 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 from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.workers.durable_objects.namespaces import ObjectListResponse + +from typing import Type, Optional + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.durable_objects.namespaces import ObjectListResponse, object_list_params +from .....types import shared_params +from .....types.workers.durable_objects.namespaces import object_list_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Objects", "AsyncObjects"] diff --git a/src/cloudflare/resources/workers/filters.py b/src/cloudflare/resources/workers/filters.py index 56bb7efd167..b35888f93c8 100644 --- a/src/cloudflare/resources/workers/filters.py +++ b/src/cloudflare/resources/workers/filters.py @@ -2,32 +2,52 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import ( + FilterUpdateResponse, + FilterDeleteResponse, + FilterWorkerFiltersDeprecatedCreateFilterResponse, + FilterWorkerFiltersDeprecatedListFiltersResponse, +) + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import ( - FilterDeleteResponse, - FilterUpdateResponse, - FilterWorkerFiltersDeprecatedListFiltersResponse, - FilterWorkerFiltersDeprecatedCreateFilterResponse, - filter_update_params, - filter_worker_filters_deprecated_create_filter_params, -) +from ...types import shared_params +from ...types.workers import filter_update_params +from ...types.workers import filter_worker_filters_deprecated_create_filter_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Filters", "AsyncFilters"] diff --git a/src/cloudflare/resources/workers/queues/__init__.py b/src/cloudflare/resources/workers/queues/__init__.py index 27031085d1c..8b5d4ea6488 100644 --- a/src/cloudflare/resources/workers/queues/__init__.py +++ b/src/cloudflare/resources/workers/queues/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, -) +from .consumers import Consumers, AsyncConsumers from .consumers import ( - Consumers, - AsyncConsumers, ConsumersWithRawResponse, AsyncConsumersWithRawResponse, ConsumersWithStreamingResponse, AsyncConsumersWithStreamingResponse, ) +from .queues import Queues, AsyncQueues +from .queues import ( + QueuesWithRawResponse, + AsyncQueuesWithRawResponse, + QueuesWithStreamingResponse, + AsyncQueuesWithStreamingResponse, +) __all__ = [ "Consumers", diff --git a/src/cloudflare/resources/workers/queues/consumers.py b/src/cloudflare/resources/workers/queues/consumers.py index b73cd8cf995..6d0909f0229 100644 --- a/src/cloudflare/resources/workers/queues/consumers.py +++ b/src/cloudflare/resources/workers/queues/consumers.py @@ -2,32 +2,54 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers.queues import ( + ConsumerUpdateResponse, + ConsumerListResponse, + ConsumerDeleteResponse, + ConsumerQueueCreateQueueConsumerResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers.queues import ( - ConsumerListResponse, - ConsumerDeleteResponse, - ConsumerUpdateResponse, - ConsumerQueueCreateQueueConsumerResponse, - consumer_update_params, - consumer_queue_create_queue_consumer_params, -) +from ....types import shared_params +from ....types.workers.queues import consumer_update_params +from ....types.workers.queues import consumer_queue_create_queue_consumer_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Consumers", "AsyncConsumers"] diff --git a/src/cloudflare/resources/workers/queues/queues.py b/src/cloudflare/resources/workers/queues/queues.py index bb85f6f2b14..47f064dbcf7 100644 --- a/src/cloudflare/resources/workers/queues/queues.py +++ b/src/cloudflare/resources/workers/queues/queues.py @@ -2,41 +2,67 @@ 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 -from .consumers import ( - Consumers, - AsyncConsumers, - ConsumersWithRawResponse, - AsyncConsumersWithRawResponse, - ConsumersWithStreamingResponse, - AsyncConsumersWithStreamingResponse, -) +from .consumers import Consumers, AsyncConsumers + from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers import ( + QueueUpdateResponse, + QueueListResponse, + QueueDeleteResponse, + QueueGetResponse, + QueueQueueCreateQueueResponse, +) + +from typing import Type, Optional + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers import ( - QueueGetResponse, - QueueListResponse, - QueueDeleteResponse, - QueueUpdateResponse, - QueueQueueCreateQueueResponse, - queue_update_params, - queue_queue_create_queue_params, +from ....types import shared_params +from ....types.workers import queue_update_params +from ....types.workers import queue_queue_create_queue_params +from .consumers import ( + Consumers, + AsyncConsumers, + ConsumersWithRawResponse, + AsyncConsumersWithRawResponse, + ConsumersWithStreamingResponse, + AsyncConsumersWithStreamingResponse, ) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Queues", "AsyncQueues"] diff --git a/src/cloudflare/resources/workers/routes.py b/src/cloudflare/resources/workers/routes.py index 650338aeb50..470f66d3237 100644 --- a/src/cloudflare/resources/workers/routes.py +++ b/src/cloudflare/resources/workers/routes.py @@ -2,33 +2,59 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import ( + RouteUpdateResponse, + RouteDeleteResponse, + RouteGetResponse, + RouteWorkerRoutesCreateRouteResponse, + RouteWorkerRoutesListRoutesResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import ( - RouteGetResponse, - RouteDeleteResponse, - RouteUpdateResponse, - RouteWorkerRoutesListRoutesResponse, - RouteWorkerRoutesCreateRouteResponse, - route_update_params, - route_worker_routes_create_route_params, -) +from ...types import shared_params +from ...types.workers import route_update_params +from ...types.workers import route_worker_routes_create_route_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Routes", "AsyncRoutes"] diff --git a/src/cloudflare/resources/workers/script.py b/src/cloudflare/resources/workers/script.py index a28febf64bd..dc76737d8af 100644 --- a/src/cloudflare/resources/workers/script.py +++ b/src/cloudflare/resources/workers/script.py @@ -4,18 +4,31 @@ import httpx -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, + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Script", "AsyncScript"] diff --git a/src/cloudflare/resources/workers/scripts/__init__.py b/src/cloudflare/resources/workers/scripts/__init__.py index 40d02213509..89fc85f7884 100644 --- a/src/cloudflare/resources/workers/scripts/__init__.py +++ b/src/cloudflare/resources/workers/scripts/__init__.py @@ -1,45 +1,40 @@ # File generated from our OpenAPI spec by Stainless. -from .tails import ( - Tails, - AsyncTails, - TailsWithRawResponse, - AsyncTailsWithRawResponse, - TailsWithStreamingResponse, - AsyncTailsWithStreamingResponse, -) -from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, -) +from .bindings import Bindings, AsyncBindings from .bindings import ( - Bindings, - AsyncBindings, BindingsWithRawResponse, AsyncBindingsWithRawResponse, BindingsWithStreamingResponse, AsyncBindingsWithStreamingResponse, ) +from .schedules import Schedules, AsyncSchedules from .schedules import ( - Schedules, - AsyncSchedules, SchedulesWithRawResponse, AsyncSchedulesWithRawResponse, SchedulesWithStreamingResponse, AsyncSchedulesWithStreamingResponse, ) +from .tails import Tails, AsyncTails +from .tails import ( + TailsWithRawResponse, + AsyncTailsWithRawResponse, + TailsWithStreamingResponse, + AsyncTailsWithStreamingResponse, +) +from .usage_models import UsageModels, AsyncUsageModels from .usage_models import ( - UsageModels, - AsyncUsageModels, UsageModelsWithRawResponse, AsyncUsageModelsWithRawResponse, UsageModelsWithStreamingResponse, AsyncUsageModelsWithStreamingResponse, ) +from .scripts import Scripts, AsyncScripts +from .scripts import ( + ScriptsWithRawResponse, + AsyncScriptsWithRawResponse, + ScriptsWithStreamingResponse, + AsyncScriptsWithStreamingResponse, +) __all__ = [ "Bindings", diff --git a/src/cloudflare/resources/workers/scripts/bindings.py b/src/cloudflare/resources/workers/scripts/bindings.py index 34e51230839..76cc86584a3 100644 --- a/src/cloudflare/resources/workers/scripts/bindings.py +++ b/src/cloudflare/resources/workers/scripts/bindings.py @@ -2,24 +2,39 @@ 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 ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers.scripts import BindingListResponse + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers.scripts import BindingListResponse +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Bindings", "AsyncBindings"] diff --git a/src/cloudflare/resources/workers/scripts/schedules.py b/src/cloudflare/resources/workers/scripts/schedules.py index bdccb2dab4f..56c41eb7648 100644 --- a/src/cloudflare/resources/workers/scripts/schedules.py +++ b/src/cloudflare/resources/workers/scripts/schedules.py @@ -2,29 +2,45 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers.scripts import ( + ScheduleWorkerCronTriggerGetCronTriggersResponse, + ScheduleWorkerCronTriggerUpdateCronTriggersResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers.scripts import ( - ScheduleWorkerCronTriggerGetCronTriggersResponse, - ScheduleWorkerCronTriggerUpdateCronTriggersResponse, - schedule_worker_cron_trigger_update_cron_triggers_params, -) +from ....types import shared_params +from ....types.workers.scripts import schedule_worker_cron_trigger_update_cron_triggers_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Schedules", "AsyncSchedules"] diff --git a/src/cloudflare/resources/workers/scripts/scripts.py b/src/cloudflare/resources/workers/scripts/scripts.py index 3508f729959..ebf7d11bf07 100644 --- a/src/cloudflare/resources/workers/scripts/scripts.py +++ b/src/cloudflare/resources/workers/scripts/scripts.py @@ -2,18 +2,56 @@ from __future__ import annotations -from typing import Any, List, Type, cast, overload - import httpx -from .tails import ( - Tails, - AsyncTails, - TailsWithRawResponse, - AsyncTailsWithRawResponse, - TailsWithStreamingResponse, - AsyncTailsWithStreamingResponse, +from .bindings import Bindings, AsyncBindings + +from ...._compat import cached_property + +from .schedules import Schedules, AsyncSchedules + +from .tails import Tails, AsyncTails + +from .usage_models import UsageModels, AsyncUsageModels + +from ....types.workers import ScriptCreateResponse, ScriptUpdateResponse, ScriptListResponse, script_update_params + +from typing import List, Type + +from ...._types import FileTypes + +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, ) + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.workers import script_update_params +from ....types.workers import script_delete_params from .bindings import ( Bindings, AsyncBindings, @@ -22,8 +60,6 @@ BindingsWithStreamingResponse, AsyncBindingsWithStreamingResponse, ) -from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes -from ...._utils import required_args, maybe_transform from .schedules import ( Schedules, AsyncSchedules, @@ -32,23 +68,14 @@ SchedulesWithStreamingResponse, AsyncSchedulesWithStreamingResponse, ) -from ...._compat import cached_property -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 .tails import ( + Tails, + AsyncTails, + TailsWithRawResponse, + AsyncTailsWithRawResponse, + TailsWithStreamingResponse, + AsyncTailsWithStreamingResponse, ) -from ...._wrappers import ResultWrapper from .usage_models import ( UsageModels, AsyncUsageModels, @@ -57,16 +84,15 @@ UsageModelsWithStreamingResponse, AsyncUsageModelsWithStreamingResponse, ) -from ...._base_client import ( - make_request_options, -) -from ....types.workers import ( - ScriptListResponse, - ScriptCreateResponse, - ScriptUpdateResponse, - script_delete_params, - script_update_params, -) +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Scripts", "AsyncScripts"] diff --git a/src/cloudflare/resources/workers/scripts/tails.py b/src/cloudflare/resources/workers/scripts/tails.py index 8f6259fc431..1831741de42 100644 --- a/src/cloudflare/resources/workers/scripts/tails.py +++ b/src/cloudflare/resources/workers/scripts/tails.py @@ -2,28 +2,49 @@ from __future__ import annotations -from typing import Any, Type, cast - import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers.scripts import ( + TailDeleteResponse, + TailWorkerTailLogsListTailsResponse, + TailWorkerTailLogsStartTailResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers.scripts import ( - TailDeleteResponse, - TailWorkerTailLogsListTailsResponse, - TailWorkerTailLogsStartTailResponse, -) +from ....types import shared_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +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__ = ["Tails", "AsyncTails"] diff --git a/src/cloudflare/resources/workers/scripts/usage_models.py b/src/cloudflare/resources/workers/scripts/usage_models.py index bb105c42727..a7695de1418 100644 --- a/src/cloudflare/resources/workers/scripts/usage_models.py +++ b/src/cloudflare/resources/workers/scripts/usage_models.py @@ -2,29 +2,45 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.workers.scripts import ( + UsageModelWorkerScriptFetchUsageModelResponse, + UsageModelWorkerScriptUpdateUsageModelResponse, +) + +from typing import Type + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.workers.scripts import ( - UsageModelWorkerScriptFetchUsageModelResponse, - UsageModelWorkerScriptUpdateUsageModelResponse, - usage_model_worker_script_update_usage_model_params, -) +from ....types import shared_params +from ....types.workers.scripts import usage_model_worker_script_update_usage_model_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["UsageModels", "AsyncUsageModels"] diff --git a/src/cloudflare/resources/workers/services/__init__.py b/src/cloudflare/resources/workers/services/__init__.py index 2cf7b02a138..c5e0bb940b6 100644 --- a/src/cloudflare/resources/workers/services/__init__.py +++ b/src/cloudflare/resources/workers/services/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .services import ( - Services, - AsyncServices, - ServicesWithRawResponse, - AsyncServicesWithRawResponse, - ServicesWithStreamingResponse, - AsyncServicesWithStreamingResponse, -) +from .environments import Environments, AsyncEnvironments from .environments import ( - Environments, - AsyncEnvironments, EnvironmentsWithRawResponse, AsyncEnvironmentsWithRawResponse, EnvironmentsWithStreamingResponse, AsyncEnvironmentsWithStreamingResponse, ) +from .services import Services, AsyncServices +from .services import ( + ServicesWithRawResponse, + AsyncServicesWithRawResponse, + ServicesWithStreamingResponse, + AsyncServicesWithStreamingResponse, +) __all__ = [ "Environments", diff --git a/src/cloudflare/resources/workers/services/environments/__init__.py b/src/cloudflare/resources/workers/services/environments/__init__.py index 98f52d2e583..c13f9c4bcf5 100644 --- a/src/cloudflare/resources/workers/services/environments/__init__.py +++ b/src/cloudflare/resources/workers/services/environments/__init__.py @@ -1,24 +1,21 @@ # File generated from our OpenAPI spec by Stainless. +from .content import Content, AsyncContent from .content import ( - Content, - AsyncContent, ContentWithRawResponse, AsyncContentWithRawResponse, ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .environments import Environments, AsyncEnvironments from .environments import ( - Environments, - AsyncEnvironments, EnvironmentsWithRawResponse, AsyncEnvironmentsWithRawResponse, EnvironmentsWithStreamingResponse, diff --git a/src/cloudflare/resources/workers/services/environments/content.py b/src/cloudflare/resources/workers/services/environments/content.py index 9bb79ac8c35..1edfa20ea16 100644 --- a/src/cloudflare/resources/workers/services/environments/content.py +++ b/src/cloudflare/resources/workers/services/environments/content.py @@ -2,33 +2,50 @@ from __future__ import annotations -from typing import List, Type, Mapping, cast - import httpx -from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes -from ....._utils import extract_files, maybe_transform, deepcopy_minimal from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource + +from .....types.workers.services.environments import ContentUpdateResponse, content_update_params + +from typing import Type, List + +from ....._types import FileTypes + 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_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 ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.services.environments import ContentUpdateResponse, content_update_params +from .....types import shared_params +from .....types.workers.services.environments import content_update_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Content", "AsyncContent"] diff --git a/src/cloudflare/resources/workers/services/environments/environments.py b/src/cloudflare/resources/workers/services/environments/environments.py index ecaaaca304f..be85faedf42 100644 --- a/src/cloudflare/resources/workers/services/environments/environments.py +++ b/src/cloudflare/resources/workers/services/environments/environments.py @@ -2,6 +2,27 @@ from __future__ import annotations +from .content import Content, AsyncContent + +from ....._compat import cached_property + +from .settings import Settings, AsyncSettings + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .content import ( Content, AsyncContent, @@ -18,8 +39,7 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._wrappers import ResultWrapper __all__ = ["Environments", "AsyncEnvironments"] diff --git a/src/cloudflare/resources/workers/services/environments/settings.py b/src/cloudflare/resources/workers/services/environments/settings.py index 2a8539184c5..57e3b73d1dc 100644 --- a/src/cloudflare/resources/workers/services/environments/settings.py +++ b/src/cloudflare/resources/workers/services/environments/settings.py @@ -2,26 +2,44 @@ from __future__ import annotations -from typing import Type, Iterable, cast -from typing_extensions import Literal - 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 .....types.workers.services.environments import SettingGetResponse, SettingModifyResponse, setting_modify_params + +from typing import Type, Iterable + +from typing_extensions import Literal + from ....._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ....._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ....._resource import SyncAPIResource, AsyncAPIResource from ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from .....types.workers.services.environments import SettingGetResponse, SettingModifyResponse, setting_modify_params +from .....types import shared_params +from .....types.workers.services.environments import setting_modify_params +from ....._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] diff --git a/src/cloudflare/resources/workers/services/services.py b/src/cloudflare/resources/workers/services/services.py index 07481f2e99f..5f268b4d0bf 100644 --- a/src/cloudflare/resources/workers/services/services.py +++ b/src/cloudflare/resources/workers/services/services.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .environments.environments import Environments, AsyncEnvironments + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .environments import ( Environments, AsyncEnvironments, @@ -12,7 +29,7 @@ EnvironmentsWithStreamingResponse, AsyncEnvironmentsWithStreamingResponse, ) -from .environments.environments import Environments, AsyncEnvironments +from ...._wrappers import ResultWrapper __all__ = ["Services", "AsyncServices"] diff --git a/src/cloudflare/resources/workers/subdomains.py b/src/cloudflare/resources/workers/subdomains.py index 1e24f44efcd..b8b9fc72adf 100644 --- a/src/cloudflare/resources/workers/subdomains.py +++ b/src/cloudflare/resources/workers/subdomains.py @@ -2,29 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.workers import ( + SubdomainWorkerSubdomainCreateSubdomainResponse, + SubdomainWorkerSubdomainGetSubdomainResponse, +) + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.workers import ( - SubdomainWorkerSubdomainGetSubdomainResponse, - SubdomainWorkerSubdomainCreateSubdomainResponse, - subdomain_worker_subdomain_create_subdomain_params, -) +from ...types import shared_params +from ...types.workers import subdomain_worker_subdomain_create_subdomain_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Subdomains", "AsyncSubdomains"] diff --git a/src/cloudflare/resources/workers/workers.py b/src/cloudflare/resources/workers/workers.py index ba9bf83b09c..f721c415d82 100644 --- a/src/cloudflare/resources/workers/workers.py +++ b/src/cloudflare/resources/workers/workers.py @@ -2,37 +2,54 @@ from __future__ import annotations -from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, -) -from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, -) -from .script import ( - Script, - AsyncScript, - ScriptWithRawResponse, - AsyncScriptWithRawResponse, - ScriptWithStreamingResponse, - AsyncScriptWithStreamingResponse, +from .scripts.scripts import Scripts, AsyncScripts + +from ..._compat import cached_property + +from .filters import Filters, AsyncFilters + +from .routes import Routes, AsyncRoutes + +from .account_settings import AccountSettings, AsyncAccountSettings + +from .deployments.deployments import Deployments, AsyncDeployments + +from .domains import Domains, AsyncDomains + +from .durable_objects.durable_objects import DurableObjects, AsyncDurableObjects + +from .queues.queues import Queues, AsyncQueues + +from .subdomains import Subdomains, AsyncSubdomains + +from .deployments_by_script import DeploymentsByScript, AsyncDeploymentsByScript + +from .services.services import Services, AsyncServices + +from .script import Script, AsyncScript + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, ) -from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, +from ...types import shared_params +from .scripts import ( + Scripts, + AsyncScripts, + ScriptsWithRawResponse, + AsyncScriptsWithRawResponse, + ScriptsWithStreamingResponse, + AsyncScriptsWithStreamingResponse, ) from .filters import ( Filters, @@ -42,32 +59,22 @@ FiltersWithStreamingResponse, AsyncFiltersWithStreamingResponse, ) -from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, -) -from .services import ( - Services, - AsyncServices, - ServicesWithRawResponse, - AsyncServicesWithRawResponse, - ServicesWithStreamingResponse, - AsyncServicesWithStreamingResponse, +from .routes import ( + Routes, + AsyncRoutes, + RoutesWithRawResponse, + AsyncRoutesWithRawResponse, + RoutesWithStreamingResponse, + AsyncRoutesWithStreamingResponse, ) -from ..._compat import cached_property -from .subdomains import ( - Subdomains, - AsyncSubdomains, - SubdomainsWithRawResponse, - AsyncSubdomainsWithRawResponse, - SubdomainsWithStreamingResponse, - AsyncSubdomainsWithStreamingResponse, +from .account_settings import ( + AccountSettings, + AsyncAccountSettings, + AccountSettingsWithRawResponse, + AsyncAccountSettingsWithRawResponse, + AccountSettingsWithStreamingResponse, + AsyncAccountSettingsWithStreamingResponse, ) -from ..._resource import SyncAPIResource, AsyncAPIResource from .deployments import ( Deployments, AsyncDeployments, @@ -76,7 +83,14 @@ DeploymentsWithStreamingResponse, AsyncDeploymentsWithStreamingResponse, ) -from .queues.queues import Queues, AsyncQueues +from .domains import ( + Domains, + AsyncDomains, + DomainsWithRawResponse, + AsyncDomainsWithRawResponse, + DomainsWithStreamingResponse, + AsyncDomainsWithStreamingResponse, +) from .durable_objects import ( DurableObjects, AsyncDurableObjects, @@ -85,16 +99,22 @@ DurableObjectsWithStreamingResponse, AsyncDurableObjectsWithStreamingResponse, ) -from .scripts.scripts import Scripts, AsyncScripts -from .account_settings import ( - AccountSettings, - AsyncAccountSettings, - AccountSettingsWithRawResponse, - AsyncAccountSettingsWithRawResponse, - AccountSettingsWithStreamingResponse, - AsyncAccountSettingsWithStreamingResponse, +from .queues import ( + Queues, + AsyncQueues, + QueuesWithRawResponse, + AsyncQueuesWithRawResponse, + QueuesWithStreamingResponse, + AsyncQueuesWithStreamingResponse, +) +from .subdomains import ( + Subdomains, + AsyncSubdomains, + SubdomainsWithRawResponse, + AsyncSubdomainsWithRawResponse, + SubdomainsWithStreamingResponse, + AsyncSubdomainsWithStreamingResponse, ) -from .services.services import Services, AsyncServices from .deployments_by_script import ( DeploymentsByScript, AsyncDeploymentsByScript, @@ -103,8 +123,23 @@ DeploymentsByScriptWithStreamingResponse, AsyncDeploymentsByScriptWithStreamingResponse, ) -from .deployments.deployments import Deployments, AsyncDeployments -from .durable_objects.durable_objects import DurableObjects, AsyncDurableObjects +from .services import ( + Services, + AsyncServices, + ServicesWithRawResponse, + AsyncServicesWithRawResponse, + ServicesWithStreamingResponse, + AsyncServicesWithStreamingResponse, +) +from .script import ( + Script, + AsyncScript, + ScriptWithRawResponse, + AsyncScriptWithRawResponse, + ScriptWithStreamingResponse, + AsyncScriptWithStreamingResponse, +) +from ..._wrappers import ResultWrapper __all__ = ["Workers", "AsyncWorkers"] diff --git a/src/cloudflare/resources/workers_for_platforms/__init__.py b/src/cloudflare/resources/workers_for_platforms/__init__.py index d26028028ea..85f85d31c47 100644 --- a/src/cloudflare/resources/workers_for_platforms/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .dispatch import Dispatch, AsyncDispatch from .dispatch import ( - Dispatch, - AsyncDispatch, DispatchWithRawResponse, AsyncDispatchWithRawResponse, DispatchWithStreamingResponse, AsyncDispatchWithStreamingResponse, ) +from .workers_for_platforms import WorkersForPlatforms, AsyncWorkersForPlatforms from .workers_for_platforms import ( - WorkersForPlatforms, - AsyncWorkersForPlatforms, WorkersForPlatformsWithRawResponse, AsyncWorkersForPlatformsWithRawResponse, WorkersForPlatformsWithStreamingResponse, diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py index 201c7a1a42a..2a8aa364a7d 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .dispatch import ( - Dispatch, - AsyncDispatch, - DispatchWithRawResponse, - AsyncDispatchWithRawResponse, - DispatchWithStreamingResponse, - AsyncDispatchWithStreamingResponse, -) +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) +from .dispatch import Dispatch, AsyncDispatch +from .dispatch import ( + DispatchWithRawResponse, + AsyncDispatchWithRawResponse, + DispatchWithStreamingResponse, + AsyncDispatchWithStreamingResponse, +) __all__ = [ "Namespaces", diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py index 557802d79d8..a7831b5a0f2 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py @@ -2,7 +2,25 @@ from __future__ import annotations +from .namespaces.namespaces import Namespaces, AsyncNamespaces + 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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params from .namespaces import ( Namespaces, AsyncNamespaces, @@ -11,8 +29,7 @@ NamespacesWithStreamingResponse, AsyncNamespacesWithStreamingResponse, ) -from ...._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from ...._wrappers import ResultWrapper __all__ = ["Dispatch", "AsyncDispatch"] 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 5ee6d6e955a..e69a451fc16 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .scripts import Scripts, AsyncScripts from .scripts import ( - Scripts, - AsyncScripts, ScriptsWithRawResponse, AsyncScriptsWithRawResponse, ScriptsWithStreamingResponse, AsyncScriptsWithStreamingResponse, ) +from .namespaces import Namespaces, AsyncNamespaces from .namespaces import ( - Namespaces, - AsyncNamespaces, NamespacesWithRawResponse, AsyncNamespacesWithRawResponse, NamespacesWithStreamingResponse, 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 2e29bc6b688..ffba09965ab 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .scripts.scripts import Scripts, AsyncScripts + +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 ....._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from .....types import shared_params from .scripts import ( Scripts, AsyncScripts, @@ -10,9 +29,7 @@ ScriptsWithStreamingResponse, AsyncScriptsWithStreamingResponse, ) -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource -from .scripts.scripts import Scripts, AsyncScripts +from ....._wrappers import ResultWrapper __all__ = ["Namespaces", "AsyncNamespaces"] 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 07ed6118daa..db3a08b1a0e 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,29 +1,26 @@ # File generated from our OpenAPI spec by Stainless. +from .content import Content, AsyncContent from .content import ( - Content, - AsyncContent, ContentWithRawResponse, AsyncContentWithRawResponse, ContentWithStreamingResponse, AsyncContentWithStreamingResponse, ) -from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, -) +from .settings import Settings, AsyncSettings from .settings import ( - Settings, - AsyncSettings, SettingsWithRawResponse, AsyncSettingsWithRawResponse, SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) +from .scripts import Scripts, AsyncScripts +from .scripts import ( + ScriptsWithRawResponse, + AsyncScriptsWithRawResponse, + ScriptsWithStreamingResponse, + AsyncScriptsWithStreamingResponse, +) __all__ = [ "Content", 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 41d54ccdb32..ffeb46b20a5 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,33 +2,50 @@ from __future__ import annotations -from typing import List, Type, Mapping, cast - import httpx -from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes -from ......_utils import extract_files, maybe_transform, deepcopy_minimal from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource + +from ......types.workers_for_platforms.dispatch.namespaces.scripts import ContentUpdateResponse, content_update_params + +from typing import Type, List + +from ......_types import FileTypes + 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_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 ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.workers_for_platforms.dispatch.namespaces.scripts import ContentUpdateResponse, content_update_params +from ......types import shared_params +from ......types.workers_for_platforms.dispatch.namespaces.scripts import content_update_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Content", "AsyncContent"] 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 fde9ff1ddab..4fa146d8023 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,6 +2,27 @@ from __future__ import annotations +from .content import Content, AsyncContent + +from ......_compat import cached_property + +from .settings import Settings, AsyncSettings + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ......types import shared_params from .content import ( Content, AsyncContent, @@ -18,8 +39,7 @@ SettingsWithStreamingResponse, AsyncSettingsWithStreamingResponse, ) -from ......_compat import cached_property -from ......_resource import SyncAPIResource, AsyncAPIResource +from ......_wrappers import ResultWrapper __all__ = ["Scripts", "AsyncScripts"] 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 9cd5d266abe..07f69283159 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,30 +2,48 @@ from __future__ import annotations -from typing import Type, Iterable, cast -from typing_extensions import Literal - 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 ......types.workers_for_platforms.dispatch.namespaces.scripts import ( + SettingUpdateResponse, + SettingGetResponse, + setting_update_params, +) + +from typing import Type, Iterable + +from typing_extensions import Literal + from ......_response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ......_wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ......_utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ......_types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ......_resource import SyncAPIResource, AsyncAPIResource from ......_base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ......types.workers_for_platforms.dispatch.namespaces.scripts import ( - SettingGetResponse, - SettingUpdateResponse, - setting_update_params, -) +from ......types import shared_params +from ......types.workers_for_platforms.dispatch.namespaces.scripts import setting_update_params +from ......_wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Settings", "AsyncSettings"] 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 8db07ca4c58..76d0a97ac0d 100644 --- a/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py +++ b/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py @@ -2,6 +2,25 @@ from __future__ import annotations +from .dispatch.dispatch import Dispatch, AsyncDispatch + +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .dispatch import ( Dispatch, AsyncDispatch, @@ -10,9 +29,7 @@ DispatchWithStreamingResponse, AsyncDispatchWithStreamingResponse, ) -from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource -from .dispatch.dispatch import Dispatch, AsyncDispatch +from ..._wrappers import ResultWrapper __all__ = ["WorkersForPlatforms", "AsyncWorkersForPlatforms"] diff --git a/src/cloudflare/resources/zaraz/__init__.py b/src/cloudflare/resources/zaraz/__init__.py index be72edb9914..e541ded4f50 100644 --- a/src/cloudflare/resources/zaraz/__init__.py +++ b/src/cloudflare/resources/zaraz/__init__.py @@ -1,61 +1,54 @@ # File generated from our OpenAPI spec by Stainless. -from .zaraz import ( - Zaraz, - AsyncZaraz, - ZarazWithRawResponse, - AsyncZarazWithRawResponse, - ZarazWithStreamingResponse, - AsyncZarazWithStreamingResponse, -) +from .config import Config, AsyncConfig from .config import ( - Config, - AsyncConfig, ConfigWithRawResponse, AsyncConfigWithRawResponse, ConfigWithStreamingResponse, AsyncConfigWithStreamingResponse, ) -from .export import ( - Export, - AsyncExport, - ExportWithRawResponse, - AsyncExportWithRawResponse, - ExportWithStreamingResponse, - AsyncExportWithStreamingResponse, -) +from .default import Default, AsyncDefault from .default import ( - Default, - AsyncDefault, DefaultWithRawResponse, AsyncDefaultWithRawResponse, DefaultWithStreamingResponse, AsyncDefaultWithStreamingResponse, ) +from .export import Export, AsyncExport +from .export import ( + ExportWithRawResponse, + AsyncExportWithRawResponse, + ExportWithStreamingResponse, + AsyncExportWithStreamingResponse, +) +from .history import History, AsyncHistory from .history import ( - History, - AsyncHistory, HistoryWithRawResponse, AsyncHistoryWithRawResponse, HistoryWithStreamingResponse, AsyncHistoryWithStreamingResponse, ) +from .publish import Publish, AsyncPublish from .publish import ( - Publish, - AsyncPublish, PublishWithRawResponse, AsyncPublishWithRawResponse, PublishWithStreamingResponse, AsyncPublishWithStreamingResponse, ) +from .workflow import Workflow, AsyncWorkflow from .workflow import ( - Workflow, - AsyncWorkflow, WorkflowWithRawResponse, AsyncWorkflowWithRawResponse, WorkflowWithStreamingResponse, AsyncWorkflowWithStreamingResponse, ) +from .zaraz import Zaraz, AsyncZaraz +from .zaraz import ( + ZarazWithRawResponse, + AsyncZarazWithRawResponse, + ZarazWithStreamingResponse, + AsyncZarazWithStreamingResponse, +) __all__ = [ "Config", diff --git a/src/cloudflare/resources/zaraz/config.py b/src/cloudflare/resources/zaraz/config.py index d902f7f06b0..5e9f24fb15e 100644 --- a/src/cloudflare/resources/zaraz/config.py +++ b/src/cloudflare/resources/zaraz/config.py @@ -2,25 +2,42 @@ from __future__ import annotations -from typing import Dict, Type, cast - 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 ...types.zaraz import ConfigUpdateResponse, ConfigGetResponse, config_update_params + +from typing import Type, Dict + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.zaraz import ConfigGetResponse, ConfigUpdateResponse, config_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.zaraz import config_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["Config", "AsyncConfig"] diff --git a/src/cloudflare/resources/zaraz/default.py b/src/cloudflare/resources/zaraz/default.py index c28bdfdd89b..068c2f86a99 100644 --- a/src/cloudflare/resources/zaraz/default.py +++ b/src/cloudflare/resources/zaraz/default.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.zaraz import DefaultGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.zaraz import DefaultGetResponse + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Default", "AsyncDefault"] diff --git a/src/cloudflare/resources/zaraz/export.py b/src/cloudflare/resources/zaraz/export.py index 1b61bc65ecd..e69d4603364 100644 --- a/src/cloudflare/resources/zaraz/export.py +++ b/src/cloudflare/resources/zaraz/export.py @@ -4,19 +4,33 @@ import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.zaraz import ExportGetResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...types.zaraz import ExportGetResponse + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper __all__ = ["Export", "AsyncExport"] diff --git a/src/cloudflare/resources/zaraz/history/__init__.py b/src/cloudflare/resources/zaraz/history/__init__.py index 0e1989c7d2a..fb600326d86 100644 --- a/src/cloudflare/resources/zaraz/history/__init__.py +++ b/src/cloudflare/resources/zaraz/history/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .configs import Configs, AsyncConfigs from .configs import ( - Configs, - AsyncConfigs, ConfigsWithRawResponse, AsyncConfigsWithRawResponse, ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) +from .history import History, AsyncHistory from .history import ( - History, - AsyncHistory, HistoryWithRawResponse, AsyncHistoryWithRawResponse, HistoryWithStreamingResponse, diff --git a/src/cloudflare/resources/zaraz/history/configs.py b/src/cloudflare/resources/zaraz/history/configs.py index db1ad51a9c4..a1340a3fc86 100644 --- a/src/cloudflare/resources/zaraz/history/configs.py +++ b/src/cloudflare/resources/zaraz/history/configs.py @@ -2,25 +2,40 @@ 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 from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource + +from ....types.zaraz.history import ConfigGetResponse + +from typing import Type, Iterable + from ...._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ...._resource import SyncAPIResource, AsyncAPIResource from ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ....types.zaraz.history import ConfigGetResponse, config_get_params +from ....types import shared_params +from ....types.zaraz.history import config_get_params +from ...._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Configs", "AsyncConfigs"] diff --git a/src/cloudflare/resources/zaraz/history/history.py b/src/cloudflare/resources/zaraz/history/history.py index 5b950e5603b..e5592c185ed 100644 --- a/src/cloudflare/resources/zaraz/history/history.py +++ b/src/cloudflare/resources/zaraz/history/history.py @@ -2,11 +2,42 @@ from __future__ import annotations -from typing import Type, cast +import httpx + +from .configs import Configs, AsyncConfigs + +from ...._compat import cached_property + +from ....types.zaraz import HistoryUpdateResponse, HistoryListResponse + +from typing import Type + from typing_extensions import Literal -import httpx +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 ...._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ....types import shared_params +from ....types.zaraz import history_update_params +from ....types.zaraz import history_list_params from .configs import ( Configs, AsyncConfigs, @@ -15,21 +46,11 @@ ConfigsWithStreamingResponse, AsyncConfigsWithStreamingResponse, ) -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 ...._wrappers import ResultWrapper -from ....types.zaraz import HistoryListResponse, HistoryUpdateResponse, history_list_params, history_update_params -from ...._base_client import ( - make_request_options, -) +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["History", "AsyncHistory"] diff --git a/src/cloudflare/resources/zaraz/publish.py b/src/cloudflare/resources/zaraz/publish.py index 43c1f4bb228..01cc726b705 100644 --- a/src/cloudflare/resources/zaraz/publish.py +++ b/src/cloudflare/resources/zaraz/publish.py @@ -2,25 +2,40 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from typing import Type + +from ...types.zaraz import PublishCreateResponse + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.zaraz import publish_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.zaraz import publish_create_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Publish", "AsyncPublish"] diff --git a/src/cloudflare/resources/zaraz/workflow.py b/src/cloudflare/resources/zaraz/workflow.py index 6e4490f3f84..5316398a89f 100644 --- a/src/cloudflare/resources/zaraz/workflow.py +++ b/src/cloudflare/resources/zaraz/workflow.py @@ -2,24 +2,39 @@ 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 ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.zaraz import WorkflowGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.zaraz import WorkflowGetResponse + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast __all__ = ["Workflow", "AsyncWorkflow"] diff --git a/src/cloudflare/resources/zaraz/zaraz.py b/src/cloudflare/resources/zaraz/zaraz.py index a8dbb950faf..cbc53202267 100644 --- a/src/cloudflare/resources/zaraz/zaraz.py +++ b/src/cloudflare/resources/zaraz/zaraz.py @@ -2,11 +2,51 @@ from __future__ import annotations -from typing import Type, cast +import httpx + +from .config import Config, AsyncConfig + +from ..._compat import cached_property + +from .default import Default, AsyncDefault + +from .export import Export, AsyncExport + +from .history.history import History, AsyncHistory + +from .publish import Publish, AsyncPublish + +from .workflow import Workflow, AsyncWorkflow + +from ...types import ZarazWorkflowUpdateResponse + +from typing import Type + from typing_extensions import Literal -import httpx +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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import zaraz_workflow_update_params from .config import ( Config, AsyncConfig, @@ -15,15 +55,6 @@ ConfigWithStreamingResponse, AsyncConfigWithStreamingResponse, ) -from .export import ( - Export, - AsyncExport, - ExportWithRawResponse, - AsyncExportWithRawResponse, - ExportWithStreamingResponse, - AsyncExportWithStreamingResponse, -) -from ...types import ZarazWorkflowUpdateResponse, zaraz_workflow_update_params from .default import ( Default, AsyncDefault, @@ -32,6 +63,14 @@ DefaultWithStreamingResponse, AsyncDefaultWithStreamingResponse, ) +from .export import ( + Export, + AsyncExport, + ExportWithRawResponse, + AsyncExportWithRawResponse, + ExportWithStreamingResponse, + AsyncExportWithStreamingResponse, +) from .history import ( History, AsyncHistory, @@ -48,8 +87,6 @@ PublishWithStreamingResponse, AsyncPublishWithStreamingResponse, ) -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import maybe_transform from .workflow import ( Workflow, AsyncWorkflow, @@ -58,19 +95,9 @@ WorkflowWithStreamingResponse, AsyncWorkflowWithStreamingResponse, ) -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 .history.history import History, AsyncHistory +from typing import cast +from typing import cast __all__ = ["Zaraz", "AsyncZaraz"] diff --git a/src/cloudflare/resources/zerotrust/__init__.py b/src/cloudflare/resources/zerotrust/__init__.py index 7e9207efa99..3a1acb11994 100644 --- a/src/cloudflare/resources/zerotrust/__init__.py +++ b/src/cloudflare/resources/zerotrust/__init__.py @@ -1,21 +1,19 @@ # File generated from our OpenAPI spec by Stainless. -from .zerotrust import ( - Zerotrust, - AsyncZerotrust, - ZerotrustWithRawResponse, - AsyncZerotrustWithRawResponse, - ZerotrustWithStreamingResponse, - AsyncZerotrustWithStreamingResponse, -) +from .connectivity_settings import ConnectivitySettings, AsyncConnectivitySettings from .connectivity_settings import ( - ConnectivitySettings, - AsyncConnectivitySettings, ConnectivitySettingsWithRawResponse, AsyncConnectivitySettingsWithRawResponse, ConnectivitySettingsWithStreamingResponse, AsyncConnectivitySettingsWithStreamingResponse, ) +from .zerotrust import Zerotrust, AsyncZerotrust +from .zerotrust import ( + ZerotrustWithRawResponse, + AsyncZerotrustWithRawResponse, + ZerotrustWithStreamingResponse, + AsyncZerotrustWithStreamingResponse, +) __all__ = [ "ConnectivitySettings", diff --git a/src/cloudflare/resources/zerotrust/connectivity_settings.py b/src/cloudflare/resources/zerotrust/connectivity_settings.py index 8d27a2da166..970f16bf076 100644 --- a/src/cloudflare/resources/zerotrust/connectivity_settings.py +++ b/src/cloudflare/resources/zerotrust/connectivity_settings.py @@ -2,29 +2,42 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.zerotrust import ConnectivitySettingUpdateResponse, ConnectivitySettingGetResponse + +from typing import Type + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) -from ...types.zerotrust import ( - ConnectivitySettingGetResponse, - ConnectivitySettingUpdateResponse, - connectivity_setting_update_params, -) +from ...types import shared_params +from ...types.zerotrust import connectivity_setting_update_params +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast __all__ = ["ConnectivitySettings", "AsyncConnectivitySettings"] diff --git a/src/cloudflare/resources/zerotrust/zerotrust.py b/src/cloudflare/resources/zerotrust/zerotrust.py index 84bc56651ab..75511bd6bfb 100644 --- a/src/cloudflare/resources/zerotrust/zerotrust.py +++ b/src/cloudflare/resources/zerotrust/zerotrust.py @@ -2,8 +2,25 @@ from __future__ import annotations +from .connectivity_settings import ConnectivitySettings, AsyncConnectivitySettings + 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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, + make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params from .connectivity_settings import ( ConnectivitySettings, AsyncConnectivitySettings, @@ -12,6 +29,7 @@ ConnectivitySettingsWithStreamingResponse, AsyncConnectivitySettingsWithStreamingResponse, ) +from ..._wrappers import ResultWrapper __all__ = ["Zerotrust", "AsyncZerotrust"] diff --git a/src/cloudflare/resources/zones/__init__.py b/src/cloudflare/resources/zones/__init__.py index 1409eafbe98..ca84b3facc4 100644 --- a/src/cloudflare/resources/zones/__init__.py +++ b/src/cloudflare/resources/zones/__init__.py @@ -1,16 +1,14 @@ # File generated from our OpenAPI spec by Stainless. +from .hold import Hold, AsyncHold from .hold import ( - Hold, - AsyncHold, HoldWithRawResponse, AsyncHoldWithRawResponse, HoldWithStreamingResponse, AsyncHoldWithStreamingResponse, ) +from .zones import Zones, AsyncZones from .zones import ( - Zones, - AsyncZones, ZonesWithRawResponse, AsyncZonesWithRawResponse, ZonesWithStreamingResponse, diff --git a/src/cloudflare/resources/zones/hold.py b/src/cloudflare/resources/zones/hold.py index 54e02af182e..9eda16740f5 100644 --- a/src/cloudflare/resources/zones/hold.py +++ b/src/cloudflare/resources/zones/hold.py @@ -2,31 +2,45 @@ 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 from ..._compat import cached_property -from ..._resource import SyncAPIResource, AsyncAPIResource + +from ...types.zones import HoldEnforceResponse, HoldGetResponse, HoldRemoveResponse + +from typing import Type, Optional + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper -from ...types.zones import ( - HoldGetResponse, - HoldRemoveResponse, - HoldEnforceResponse, - hold_remove_params, - hold_enforce_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 ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, ) +from ...types import shared_params +from ...types.zones import hold_enforce_params +from ...types.zones import hold_remove_params +from ..._wrappers import ResultWrapper +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__ = ["Hold", "AsyncHold"] diff --git a/src/cloudflare/resources/zones/zones.py b/src/cloudflare/resources/zones/zones.py index 1c60253daca..a182da857e3 100644 --- a/src/cloudflare/resources/zones/zones.py +++ b/src/cloudflare/resources/zones/zones.py @@ -2,43 +2,71 @@ from __future__ import annotations -from typing import List, Type, Optional, cast -from typing_extensions import Literal - import httpx -from .hold import ( - Hold, - AsyncHold, - HoldWithRawResponse, - AsyncHoldWithRawResponse, - HoldWithStreamingResponse, - AsyncHoldWithStreamingResponse, -) +from .hold import Hold, AsyncHold + +from ..._compat import cached_property + from ...types import ( - ZoneGetResponse, - ZoneListResponse, ZoneCreateResponse, - ZoneDeleteResponse, ZoneUpdateResponse, - zone_list_params, + ZoneListResponse, + ZoneDeleteResponse, + ZoneGetResponse, zone_create_params, zone_update_params, + zone_list_params, ) -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 typing import Type, Optional, List + +from typing_extensions import Literal + from ..._response import ( to_raw_response_wrapper, - to_streamed_response_wrapper, async_to_raw_response_wrapper, + to_streamed_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper + +import warnings +from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload +from typing_extensions import Literal +from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given +from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent +from ..._resource import SyncAPIResource, AsyncAPIResource from ..._base_client import ( + SyncAPIClient, + AsyncAPIClient, + _merge_mappings, + AsyncPaginator, make_request_options, + HttpxBinaryResponseContent, +) +from ...types import shared_params +from ...types import zone_create_params +from ...types import zone_update_params +from ...types import zone_list_params +from .hold import ( + Hold, + AsyncHold, + HoldWithRawResponse, + AsyncHoldWithRawResponse, + HoldWithStreamingResponse, + AsyncHoldWithStreamingResponse, ) +from ..._wrappers import ResultWrapper +from typing import cast +from typing import cast +from typing import cast +from typing import cast +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__ = ["Zones", "AsyncZones"] diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py index e70e72676db..32d0fc82935 100644 --- a/src/cloudflare/types/__init__.py +++ b/src/cloudflare/types/__init__.py @@ -2,401 +2,401 @@ from __future__ import annotations -from .ai_run_params import AIRunParams as AIRunParams -from .ip_list_params import IPListParams as IPListParams -from .ip_list_response import IPListResponse as IPListResponse -from .zone_list_params import ZoneListParams as ZoneListParams -from .call_get_response import CallGetResponse as CallGetResponse -from .pcap_get_response import PcapGetResponse as PcapGetResponse -from .role_get_response import RoleGetResponse as RoleGetResponse -from .zone_get_response import ZoneGetResponse as ZoneGetResponse -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 .zone_create_params import ZoneCreateParams as ZoneCreateParams -from .zone_list_response import ZoneListResponse as ZoneListResponse -from .zone_update_params import ZoneUpdateParams as ZoneUpdateParams -from .account_list_params import AccountListParams as AccountListParams -from .device_get_response import DeviceGetResponse as DeviceGetResponse -from .dnssec_get_response import DNSSECGetResponse as DNSSECGetResponse -from .filter_get_response import FilterGetResponse as FilterGetResponse -from .setting_edit_params import SettingEditParams as SettingEditParams -from .stream_get_response import StreamGetResponse as StreamGetResponse -from .tunnel_get_response import TunnelGetResponse as TunnelGetResponse -from .account_get_response import AccountGetResponse as AccountGetResponse -from .call_create_response import CallCreateResponse as CallCreateResponse -from .call_delete_response import CallDeleteResponse as CallDeleteResponse -from .call_update_response import CallUpdateResponse as CallUpdateResponse -from .dnssec_update_params import DNSSECUpdateParams as DNSSECUpdateParams -from .filter_update_params import FilterUpdateParams as FilterUpdateParams -from .pagerule_list_params import PageruleListParams as PageruleListParams -from .ruleset_get_response import RulesetGetResponse as RulesetGetResponse -from .snippet_get_response import SnippetGetResponse as SnippetGetResponse -from .stream_update_params import StreamUpdateParams as StreamUpdateParams -from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams -from .zone_create_response import ZoneCreateResponse as ZoneCreateResponse -from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse -from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse +from .account_update_response import AccountUpdateResponse as AccountUpdateResponse from .account_list_response import AccountListResponse as AccountListResponse +from .account_get_response import AccountGetResponse as AccountGetResponse from .account_update_params import AccountUpdateParams as AccountUpdateParams -from .pagerule_get_response import PageruleGetResponse as PageruleGetResponse -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 .setting_edit_response import SettingEditResponse as SettingEditResponse -from .setting_list_response import SettingListResponse as SettingListResponse -from .snippet_list_response import SnippetListResponse as SnippetListResponse -from .snippet_update_params import SnippetUpdateParams as SnippetUpdateParams -from .custom_n_create_params import CustomNCreateParams as CustomNCreateParams -from .custom_n_list_response import CustomNListResponse as CustomNListResponse -from .dns_record_list_params import DNSRecordListParams as DNSRecordListParams -from .dnssec_update_response import DNSSECUpdateResponse as DNSSECUpdateResponse -from .filter_delete_response import FilterDeleteResponse as FilterDeleteResponse -from .filter_update_response import FilterUpdateResponse as FilterUpdateResponse -from .membership_list_params import MembershipListParams as MembershipListParams -from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams -from .pagerule_list_response import PageruleListResponse as PageruleListResponse -from .pagerule_update_params import PageruleUpdateParams as PageruleUpdateParams -from .rate_limit_list_params import RateLimitListParams as RateLimitListParams -from .stream_update_response import StreamUpdateResponse as StreamUpdateResponse -from .tunnel_delete_response import TunnelDeleteResponse as TunnelDeleteResponse -from .access_tag_get_response import AccessTagGetResponse as AccessTagGetResponse -from .account_update_response import AccountUpdateResponse as AccountUpdateResponse -from .cfd_tunnel_get_response import CfdTunnelGetResponse as CfdTunnelGetResponse -from .dns_record_get_response import DNSRecordGetResponse as DNSRecordGetResponse -from .membership_get_response import MembershipGetResponse as MembershipGetResponse -from .rate_limit_get_response import RateLimitGetResponse as RateLimitGetResponse -from .ruleset_create_response import RulesetCreateResponse as RulesetCreateResponse -from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse -from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse -from .snippet_update_response import SnippetUpdateResponse as SnippetUpdateResponse -from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams -from .access_tag_create_params import AccessTagCreateParams as AccessTagCreateParams -from .access_tag_update_params import AccessTagUpdateParams as AccessTagUpdateParams +from .account_list_params import AccountListParams as AccountListParams +from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse from .certificate_get_response import CertificateGetResponse as CertificateGetResponse -from .cfd_tunnel_delete_params import CfdTunnelDeleteParams as CfdTunnelDeleteParams -from .cfd_tunnel_update_params import CfdTunnelUpdateParams as CfdTunnelUpdateParams -from .custom_n_create_response import CustomNCreateResponse as CustomNCreateResponse -from .custom_n_delete_response import CustomNDeleteResponse as CustomNDeleteResponse -from .dns_firewall_list_params import DNSFirewallListParams as DNSFirewallListParams -from .dns_record_create_params import DNSRecordCreateParams as DNSRecordCreateParams -from .dns_record_import_params import DNSRecordImportParams as DNSRecordImportParams -from .dns_record_list_response import DNSRecordListResponse as DNSRecordListResponse -from .dns_record_scan_response import DNSRecordScanResponse as DNSRecordScanResponse -from .dns_record_update_params import DNSRecordUpdateParams as DNSRecordUpdateParams -from .healthcheck_get_response import HealthcheckGetResponse as HealthcheckGetResponse +from .certificate_origin_ca_create_certificate_response import ( + CertificateOriginCaCreateCertificateResponse as CertificateOriginCaCreateCertificateResponse, +) +from .certificate_origin_ca_list_certificates_response import ( + CertificateOriginCaListCertificatesResponse as CertificateOriginCaListCertificatesResponse, +) +from .certificate_origin_ca_create_certificate_params import ( + CertificateOriginCaCreateCertificateParams as CertificateOriginCaCreateCertificateParams, +) +from .ip_list_response import IPListResponse as IPListResponse +from .ip_list_params import IPListParams as IPListParams +from .membership_update_response import MembershipUpdateResponse as MembershipUpdateResponse from .membership_list_response import MembershipListResponse as MembershipListResponse -from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams -from .pagerule_create_response import PageruleCreateResponse as PageruleCreateResponse -from .pagerule_delete_response import PageruleDeleteResponse as PageruleDeleteResponse -from .pagerule_update_response import PageruleUpdateResponse as PageruleUpdateResponse -from .rate_limit_list_response import RateLimitListResponse as RateLimitListResponse -from .rate_limit_update_params import RateLimitUpdateParams as RateLimitUpdateParams -from .dns_firewall_get_response import DNSFirewallGetResponse as DNSFirewallGetResponse -from .font_setting_get_response import FontSettingGetResponse as FontSettingGetResponse -from .healthcheck_update_params import HealthcheckUpdateParams as HealthcheckUpdateParams -from .page_shield_list_response import PageShieldListResponse as PageShieldListResponse -from .url_scanner_scan_response import URLScannerScanResponse as URLScannerScanResponse -from .waiting_room_get_response import WaitingRoomGetResponse as WaitingRoomGetResponse -from .access_tag_create_response import AccessTagCreateResponse as AccessTagCreateResponse -from .access_tag_delete_response import AccessTagDeleteResponse as AccessTagDeleteResponse -from .access_tag_update_response import AccessTagUpdateResponse as AccessTagUpdateResponse -from .account_member_list_params import AccountMemberListParams as AccountMemberListParams -from .cfd_tunnel_delete_response import CfdTunnelDeleteResponse as CfdTunnelDeleteResponse -from .cfd_tunnel_update_response import CfdTunnelUpdateResponse as CfdTunnelUpdateResponse -from .dns_firewall_create_params import DNSFirewallCreateParams as DNSFirewallCreateParams -from .dns_firewall_list_response import DNSFirewallListResponse as DNSFirewallListResponse -from .dns_firewall_update_params import DNSFirewallUpdateParams as DNSFirewallUpdateParams -from .dns_record_create_response import DNSRecordCreateResponse as DNSRecordCreateResponse -from .dns_record_delete_response import DNSRecordDeleteResponse as DNSRecordDeleteResponse -from .dns_record_export_response import DNSRecordExportResponse as DNSRecordExportResponse -from .dns_record_import_response import DNSRecordImportResponse as DNSRecordImportResponse -from .dns_record_update_response import DNSRecordUpdateResponse as DNSRecordUpdateResponse -from .font_setting_update_params import FontSettingUpdateParams as FontSettingUpdateParams -from .load_balancer_get_response import LoadBalancerGetResponse as LoadBalancerGetResponse from .membership_delete_response import MembershipDeleteResponse as MembershipDeleteResponse -from .membership_update_response import MembershipUpdateResponse as MembershipUpdateResponse -from .rate_limit_update_response import RateLimitUpdateResponse as RateLimitUpdateResponse -from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +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 .user_user_edit_user_response import UserUserEditUserResponse as UserUserEditUserResponse +from .user_user_user_details_response import UserUserUserDetailsResponse as UserUserUserDetailsResponse from .user_user_edit_user_params import UserUserEditUserParams as UserUserEditUserParams -from .waiting_room_create_params import WaitingRoomCreateParams as WaitingRoomCreateParams -from .waiting_room_list_response import WaitingRoomListResponse as WaitingRoomListResponse -from .waiting_room_update_params import WaitingRoomUpdateParams as WaitingRoomUpdateParams -from .warp_connector_list_params import WarpConnectorListParams as WarpConnectorListParams -from .worker_domain_get_response import WorkerDomainGetResponse as WorkerDomainGetResponse -from .account_member_get_response import AccountMemberGetResponse as AccountMemberGetResponse -from .available_plan_get_response import AvailablePlanGetResponse as AvailablePlanGetResponse -from .bot_management_get_response import BotManagementGetResponse as BotManagementGetResponse -from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse -from .healthcheck_delete_response import HealthcheckDeleteResponse as HealthcheckDeleteResponse -from .healthcheck_update_response import HealthcheckUpdateResponse as HealthcheckUpdateResponse -from .load_balancer_create_params import LoadBalancerCreateParams as LoadBalancerCreateParams +from .zone_create_response import ZoneCreateResponse as ZoneCreateResponse +from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse +from .zone_list_response import ZoneListResponse as ZoneListResponse +from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse +from .zone_get_response import ZoneGetResponse as ZoneGetResponse +from .zone_create_params import ZoneCreateParams as ZoneCreateParams +from .zone_update_params import ZoneUpdateParams as ZoneUpdateParams +from .zone_list_params import ZoneListParams as ZoneListParams +from .ai_run_params import AIRunParams as AIRunParams +from .load_balancer_create_response import LoadBalancerCreateResponse as LoadBalancerCreateResponse +from .load_balancer_update_response import LoadBalancerUpdateResponse as LoadBalancerUpdateResponse from .load_balancer_list_response import LoadBalancerListResponse as LoadBalancerListResponse +from .load_balancer_delete_response import LoadBalancerDeleteResponse as LoadBalancerDeleteResponse +from .load_balancer_get_response import LoadBalancerGetResponse as LoadBalancerGetResponse +from .load_balancer_create_params import LoadBalancerCreateParams as LoadBalancerCreateParams from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams -from .speed_api_tests_list_params import SpeedAPITestsListParams as SpeedAPITestsListParams -from .warp_connector_get_response import WarpConnectorGetResponse as WarpConnectorGetResponse -from .account_member_create_params import AccountMemberCreateParams as AccountMemberCreateParams -from .account_member_list_response import AccountMemberListResponse as AccountMemberListResponse -from .account_member_update_params import AccountMemberUpdateParams as AccountMemberUpdateParams -from .available_plan_list_response import AvailablePlanListResponse as AvailablePlanListResponse -from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams -from .cache_reserve_clear_response import CacheReserveClearResponse as CacheReserveClearResponse -from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse -from .dns_firewall_create_response import DNSFirewallCreateResponse as DNSFirewallCreateResponse -from .dns_firewall_delete_response import DNSFirewallDeleteResponse as DNSFirewallDeleteResponse -from .dns_firewall_update_response import DNSFirewallUpdateResponse as DNSFirewallUpdateResponse -from .font_setting_update_response import FontSettingUpdateResponse as FontSettingUpdateResponse -from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse +from .purge_cach_zone_purge_response import PurgeCachZonePurgeResponse as PurgeCachZonePurgeResponse from .purge_cach_zone_purge_params import PurgeCachZonePurgeParams as PurgeCachZonePurgeParams -from .speed_api_tests_get_response import SpeedAPITestsGetResponse as SpeedAPITestsGetResponse -from .speed_api_trends_list_params import SpeedAPITrendsListParams as SpeedAPITrendsListParams -from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse -from .user_user_edit_user_response import UserUserEditUserResponse as UserUserEditUserResponse -from .waiting_room_create_response import WaitingRoomCreateResponse as WaitingRoomCreateResponse -from .waiting_room_delete_response import WaitingRoomDeleteResponse as WaitingRoomDeleteResponse -from .waiting_room_update_response import WaitingRoomUpdateResponse as WaitingRoomUpdateResponse -from .warp_connector_create_params import WarpConnectorCreateParams as WarpConnectorCreateParams -from .warp_connector_delete_params import WarpConnectorDeleteParams as WarpConnectorDeleteParams -from .warp_connector_list_response import WarpConnectorListResponse as WarpConnectorListResponse -from .warp_connector_update_params import WarpConnectorUpdateParams as WarpConnectorUpdateParams -from .zaraz_workflow_update_params import ZarazWorkflowUpdateParams as ZarazWorkflowUpdateParams -from .cache_reserve_create_response import CacheReserveCreateResponse as CacheReserveCreateResponse -from .custom_hostname_update_params import CustomHostnameUpdateParams as CustomHostnameUpdateParams -from .load_balancer_create_response import LoadBalancerCreateResponse as LoadBalancerCreateResponse -from .load_balancer_delete_response import LoadBalancerDeleteResponse as LoadBalancerDeleteResponse -from .load_balancer_update_response import LoadBalancerUpdateResponse as LoadBalancerUpdateResponse -from .mtls_certificate_get_response import MtlsCertificateGetResponse as MtlsCertificateGetResponse -from .speed_api_pages_list_response import SpeedAPIPagesListResponse as SpeedAPIPagesListResponse -from .speed_api_schedule_get_params import SpeedAPIScheduleGetParams as SpeedAPIScheduleGetParams -from .speed_api_tests_create_params import SpeedAPITestsCreateParams as SpeedAPITestsCreateParams -from .speed_api_tests_delete_params import SpeedAPITestsDeleteParams as SpeedAPITestsDeleteParams -from .speed_api_tests_list_response import SpeedAPITestsListResponse as SpeedAPITestsListResponse -from .account_member_create_response import AccountMemberCreateResponse as AccountMemberCreateResponse -from .account_member_delete_response import AccountMemberDeleteResponse as AccountMemberDeleteResponse -from .account_member_update_response import AccountMemberUpdateResponse as AccountMemberUpdateResponse -from .bot_management_update_response import BotManagementUpdateResponse as BotManagementUpdateResponse -from .custom_certificate_list_params import CustomCertificateListParams as CustomCertificateListParams -from .mtls_certificate_list_response import MtlsCertificateListResponse as MtlsCertificateListResponse -from .mtls_certificate_update_params import MtlsCertificateUpdateParams as MtlsCertificateUpdateParams -from .purge_cach_zone_purge_response import PurgeCachZonePurgeResponse as PurgeCachZonePurgeResponse -from .speed_api_trends_list_response import SpeedAPITrendsListResponse as SpeedAPITrendsListResponse -from .warp_connector_create_response import WarpConnectorCreateResponse as WarpConnectorCreateResponse -from .warp_connector_delete_response import WarpConnectorDeleteResponse as WarpConnectorDeleteResponse -from .warp_connector_update_response import WarpConnectorUpdateResponse as WarpConnectorUpdateResponse -from .zaraz_workflow_update_response import ZarazWorkflowUpdateResponse as ZarazWorkflowUpdateResponse +from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse +from .subscription_account_subscriptions_create_subscription_response import ( + SubscriptionAccountSubscriptionsCreateSubscriptionResponse as SubscriptionAccountSubscriptionsCreateSubscriptionResponse, +) +from .subscription_account_subscriptions_list_subscriptions_response import ( + SubscriptionAccountSubscriptionsListSubscriptionsResponse as SubscriptionAccountSubscriptionsListSubscriptionsResponse, +) +from .subscription_zone_subscription_create_zone_subscription_response import ( + SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse as SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, +) +from .subscription_zone_subscription_update_zone_subscription_response import ( + SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse as SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, +) +from .subscription_zone_subscription_zone_subscription_details_response import ( + SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse as SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse, +) +from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +from .subscription_account_subscriptions_create_subscription_params import ( + SubscriptionAccountSubscriptionsCreateSubscriptionParams as SubscriptionAccountSubscriptionsCreateSubscriptionParams, +) +from .subscription_zone_subscription_create_zone_subscription_params import ( + SubscriptionZoneSubscriptionCreateZoneSubscriptionParams as SubscriptionZoneSubscriptionCreateZoneSubscriptionParams, +) +from .subscription_zone_subscription_update_zone_subscription_params import ( + SubscriptionZoneSubscriptionUpdateZoneSubscriptionParams as SubscriptionZoneSubscriptionUpdateZoneSubscriptionParams, +) +from .available_plan_list_response import AvailablePlanListResponse as AvailablePlanListResponse +from .available_plan_get_response import AvailablePlanGetResponse as AvailablePlanGetResponse +from .available_rate_plan_zone_rate_plan_list_available_rate_plans_response import ( + AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse as AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse, +) +from .client_certificate_update_response import ClientCertificateUpdateResponse as ClientCertificateUpdateResponse +from .client_certificate_delete_response import ClientCertificateDeleteResponse as ClientCertificateDeleteResponse +from .client_certificate_client_certificate_for_a_zone_create_client_certificate_response import ( + ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse as ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, +) +from .client_certificate_client_certificate_for_a_zone_list_client_certificates_response import ( + ClientCertificateClientCertificateForAZoneListClientCertificatesResponse as ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, +) from .client_certificate_get_response import ClientCertificateGetResponse as ClientCertificateGetResponse +from .client_certificate_client_certificate_for_a_zone_create_client_certificate_params import ( + ClientCertificateClientCertificateForAZoneCreateClientCertificateParams as ClientCertificateClientCertificateForAZoneCreateClientCertificateParams, +) +from .client_certificate_client_certificate_for_a_zone_list_client_certificates_params import ( + ClientCertificateClientCertificateForAZoneListClientCertificatesParams as ClientCertificateClientCertificateForAZoneListClientCertificatesParams, +) +from .custom_certificate_create_response import CustomCertificateCreateResponse as CustomCertificateCreateResponse +from .custom_certificate_update_response import CustomCertificateUpdateResponse as CustomCertificateUpdateResponse +from .custom_certificate_list_response import CustomCertificateListResponse as CustomCertificateListResponse +from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse from .custom_certificate_get_response import CustomCertificateGetResponse as CustomCertificateGetResponse -from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse -from .custom_hostname_update_response import CustomHostnameUpdateResponse as CustomHostnameUpdateResponse -from .speed_api_schedule_get_response import SpeedAPIScheduleGetResponse as SpeedAPIScheduleGetResponse -from .speed_api_tests_create_response import SpeedAPITestsCreateResponse as SpeedAPITestsCreateResponse -from .speed_api_tests_delete_response import SpeedAPITestsDeleteResponse as SpeedAPITestsDeleteResponse -from .user_user_user_details_response import UserUserUserDetailsResponse as UserUserUserDetailsResponse from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams -from .custom_certificate_list_response import CustomCertificateListResponse as CustomCertificateListResponse from .custom_certificate_update_params import CustomCertificateUpdateParams as CustomCertificateUpdateParams -from .keyless_certificate_get_response import KeylessCertificateGetResponse as KeylessCertificateGetResponse -from .mtls_certificate_delete_response import MtlsCertificateDeleteResponse as MtlsCertificateDeleteResponse -from .mtls_certificate_update_response import MtlsCertificateUpdateResponse as MtlsCertificateUpdateResponse -from .speed_api_schedule_delete_params import SpeedAPIScheduleDeleteParams as SpeedAPIScheduleDeleteParams -from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams -from .keyless_certificate_list_response import KeylessCertificateListResponse as KeylessCertificateListResponse -from .keyless_certificate_update_params import KeylessCertificateUpdateParams as KeylessCertificateUpdateParams -from .client_certificate_delete_response import ClientCertificateDeleteResponse as ClientCertificateDeleteResponse -from .client_certificate_update_response import ClientCertificateUpdateResponse as ClientCertificateUpdateResponse -from .custom_certificate_create_response import CustomCertificateCreateResponse as CustomCertificateCreateResponse -from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse -from .custom_certificate_update_response import CustomCertificateUpdateResponse as CustomCertificateUpdateResponse -from .filter_filters_list_filters_params import FilterFiltersListFiltersParams as FilterFiltersListFiltersParams -from .speed_api_schedule_delete_response import SpeedAPIScheduleDeleteResponse as SpeedAPIScheduleDeleteResponse -from .keyless_certificate_create_response import KeylessCertificateCreateResponse as KeylessCertificateCreateResponse -from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse -from .keyless_certificate_update_response import KeylessCertificateUpdateResponse as KeylessCertificateUpdateResponse -from .origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse as OriginTLSClientAuthGetResponse -from .device_devices_list_devices_response import DeviceDevicesListDevicesResponse as DeviceDevicesListDevicesResponse -from .filter_filters_create_filters_params import FilterFiltersCreateFiltersParams as FilterFiltersCreateFiltersParams -from .filter_filters_list_filters_response import FilterFiltersListFiltersResponse as FilterFiltersListFiltersResponse -from .filter_filters_update_filters_params import FilterFiltersUpdateFiltersParams as FilterFiltersUpdateFiltersParams -from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams -from .origin_tls_client_auth_list_response import OriginTLSClientAuthListResponse as OriginTLSClientAuthListResponse -from .cache_regional_tiered_caches_response import ( - CacheRegionalTieredCachesResponse as CacheRegionalTieredCachesResponse, +from .custom_certificate_list_params import CustomCertificateListParams as CustomCertificateListParams +from .custom_hostname_update_response import CustomHostnameUpdateResponse as CustomHostnameUpdateResponse +from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse +from .custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response import ( + CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse as CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, +) +from .custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response import ( + CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse as CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, +) +from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse +from .custom_hostname_update_params import CustomHostnameUpdateParams as CustomHostnameUpdateParams +from .custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params import ( + CustomHostnameCustomHostnameForAZoneCreateCustomHostnameParams as CustomHostnameCustomHostnameForAZoneCreateCustomHostnameParams, +) +from .custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params import ( + CustomHostnameCustomHostnameForAZoneListCustomHostnamesParams as CustomHostnameCustomHostnameForAZoneListCustomHostnamesParams, ) +from .custom_n_create_response import CustomNCreateResponse as CustomNCreateResponse +from .custom_n_list_response import CustomNListResponse as CustomNListResponse +from .custom_n_delete_response import CustomNDeleteResponse as CustomNDeleteResponse +from .custom_n_create_params import CustomNCreateParams as CustomNCreateParams +from .dns_record_create_response import DNSRecordCreateResponse as DNSRecordCreateResponse +from .dns_record_update_response import DNSRecordUpdateResponse as DNSRecordUpdateResponse +from .dns_record_list_response import DNSRecordListResponse as DNSRecordListResponse +from .dns_record_delete_response import DNSRecordDeleteResponse as DNSRecordDeleteResponse +from .dns_record_export_response import DNSRecordExportResponse as DNSRecordExportResponse +from .dns_record_get_response import DNSRecordGetResponse as DNSRecordGetResponse +from .dns_record_import_response import DNSRecordImportResponse as DNSRecordImportResponse +from .dns_record_scan_response import DNSRecordScanResponse as DNSRecordScanResponse +from .dns_record_create_params import DNSRecordCreateParams as DNSRecordCreateParams +from .dns_record_update_params import DNSRecordUpdateParams as DNSRecordUpdateParams +from .dns_record_list_params import DNSRecordListParams as DNSRecordListParams +from .dns_record_import_params import DNSRecordImportParams as DNSRecordImportParams +from .dnssec_update_response import DNSSECUpdateResponse as DNSSECUpdateResponse +from .dnssec_get_response import DNSSECGetResponse as DNSSECGetResponse +from .dnssec_update_params import DNSSECUpdateParams as DNSSECUpdateParams +from .filter_update_response import FilterUpdateResponse as FilterUpdateResponse +from .filter_delete_response import FilterDeleteResponse as FilterDeleteResponse from .filter_filters_create_filters_response import ( FilterFiltersCreateFiltersResponse as FilterFiltersCreateFiltersResponse, ) +from .filter_filters_list_filters_response import FilterFiltersListFiltersResponse as FilterFiltersListFiltersResponse from .filter_filters_update_filters_response import ( FilterFiltersUpdateFiltersResponse as FilterFiltersUpdateFiltersResponse, ) +from .filter_get_response import FilterGetResponse as FilterGetResponse +from .filter_update_params import FilterUpdateParams as FilterUpdateParams +from .filter_filters_create_filters_params import FilterFiltersCreateFiltersParams as FilterFiltersCreateFiltersParams +from .filter_filters_list_filters_params import FilterFiltersListFiltersParams as FilterFiltersListFiltersParams +from .filter_filters_update_filters_params import FilterFiltersUpdateFiltersParams as FilterFiltersUpdateFiltersParams +from .healthcheck_update_response import HealthcheckUpdateResponse as HealthcheckUpdateResponse +from .healthcheck_delete_response import HealthcheckDeleteResponse as HealthcheckDeleteResponse +from .healthcheck_get_response import HealthcheckGetResponse as HealthcheckGetResponse +from .healthcheck_health_checks_create_health_check_response import ( + HealthcheckHealthChecksCreateHealthCheckResponse as HealthcheckHealthChecksCreateHealthCheckResponse, +) +from .healthcheck_health_checks_list_health_checks_response import ( + HealthcheckHealthChecksListHealthChecksResponse as HealthcheckHealthChecksListHealthChecksResponse, +) +from .healthcheck_update_params import HealthcheckUpdateParams as HealthcheckUpdateParams +from .healthcheck_health_checks_create_health_check_params import ( + HealthcheckHealthChecksCreateHealthCheckParams as HealthcheckHealthChecksCreateHealthCheckParams, +) +from .keyless_certificate_create_response import KeylessCertificateCreateResponse as KeylessCertificateCreateResponse +from .keyless_certificate_update_response import KeylessCertificateUpdateResponse as KeylessCertificateUpdateResponse +from .keyless_certificate_list_response import KeylessCertificateListResponse as KeylessCertificateListResponse +from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse +from .keyless_certificate_get_response import KeylessCertificateGetResponse as KeylessCertificateGetResponse +from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams +from .keyless_certificate_update_params import KeylessCertificateUpdateParams as KeylessCertificateUpdateParams from .origin_tls_client_auth_create_response import ( OriginTLSClientAuthCreateResponse as OriginTLSClientAuthCreateResponse, ) +from .origin_tls_client_auth_list_response import OriginTLSClientAuthListResponse as OriginTLSClientAuthListResponse from .origin_tls_client_auth_delete_response import ( OriginTLSClientAuthDeleteResponse as OriginTLSClientAuthDeleteResponse, ) -from .role_account_roles_list_roles_response import ( - RoleAccountRolesListRolesResponse as RoleAccountRolesListRolesResponse, -) -from .speed_api_availabilities_list_response import ( - SpeedAPIAvailabilitiesListResponse as SpeedAPIAvailabilitiesListResponse, -) -from .stream_stream_videos_list_videos_params import ( - StreamStreamVideosListVideosParams as StreamStreamVideosListVideosParams, -) -from .cache_update_regional_tiered_cache_params import ( - CacheUpdateRegionalTieredCacheParams as CacheUpdateRegionalTieredCacheParams, -) -from .stream_stream_videos_list_videos_response import ( - StreamStreamVideosListVideosResponse as StreamStreamVideosListVideosResponse, -) -from .cache_update_regional_tiered_cache_response import ( - CacheUpdateRegionalTieredCacheResponse as CacheUpdateRegionalTieredCacheResponse, -) -from .origin_post_quantum_encryption_get_response import ( - OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse, -) -from .tunnel_argo_tunnel_list_argo_tunnels_params import ( - TunnelArgoTunnelListArgoTunnelsParams as TunnelArgoTunnelListArgoTunnelsParams, -) -from .origin_post_quantum_encryption_update_params import ( - OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams, -) -from .tunnel_argo_tunnel_list_argo_tunnels_response import ( - TunnelArgoTunnelListArgoTunnelsResponse as TunnelArgoTunnelListArgoTunnelsResponse, +from .origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse as OriginTLSClientAuthGetResponse +from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams +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_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 .rate_limit_update_response import RateLimitUpdateResponse as RateLimitUpdateResponse +from .rate_limit_list_response import RateLimitListResponse as RateLimitListResponse +from .rate_limit_get_response import RateLimitGetResponse as RateLimitGetResponse +from .rate_limit_update_params import RateLimitUpdateParams as RateLimitUpdateParams +from .rate_limit_list_params import RateLimitListParams as RateLimitListParams +from .setting_list_response import SettingListResponse as SettingListResponse +from .setting_edit_response import SettingEditResponse as SettingEditResponse +from .setting_edit_params import SettingEditParams as SettingEditParams +from .waiting_room_create_response import WaitingRoomCreateResponse as WaitingRoomCreateResponse +from .waiting_room_update_response import WaitingRoomUpdateResponse as WaitingRoomUpdateResponse +from .waiting_room_list_response import WaitingRoomListResponse as WaitingRoomListResponse +from .waiting_room_delete_response import WaitingRoomDeleteResponse as WaitingRoomDeleteResponse +from .waiting_room_get_response import WaitingRoomGetResponse as WaitingRoomGetResponse +from .waiting_room_create_params import WaitingRoomCreateParams as WaitingRoomCreateParams +from .waiting_room_update_params import WaitingRoomUpdateParams as WaitingRoomUpdateParams +from .activation_check_put_zones_zone_id_activation_check_response import ( + ActivationCheckPutZonesZoneIDActivationCheckResponse as ActivationCheckPutZonesZoneIDActivationCheckResponse, ) -from .origin_post_quantum_encryption_update_response import ( - OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse, +from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse +from .managed_header_managed_transforms_update_status_of_managed_transforms_response import ( + ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse as ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, ) -from .certificate_origin_ca_create_certificate_params import ( - CertificateOriginCaCreateCertificateParams as CertificateOriginCaCreateCertificateParams, +from .managed_header_managed_transforms_update_status_of_managed_transforms_params import ( + ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsParams as ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsParams, ) -from .tunnel_argo_tunnel_create_an_argo_tunnel_params import ( - TunnelArgoTunnelCreateAnArgoTunnelParams as TunnelArgoTunnelCreateAnArgoTunnelParams, +from .page_shield_list_response import PageShieldListResponse as PageShieldListResponse +from .page_shield_page_shield_update_page_shield_settings_response import ( + PageShieldPageShieldUpdatePageShieldSettingsResponse as PageShieldPageShieldUpdatePageShieldSettingsResponse, ) -from .certificate_origin_ca_list_certificates_response import ( - CertificateOriginCaListCertificatesResponse as CertificateOriginCaListCertificatesResponse, +from .page_shield_page_shield_update_page_shield_settings_params import ( + PageShieldPageShieldUpdatePageShieldSettingsParams as PageShieldPageShieldUpdatePageShieldSettingsParams, ) -from .certificate_origin_ca_create_certificate_response import ( - CertificateOriginCaCreateCertificateResponse as CertificateOriginCaCreateCertificateResponse, +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 .url_normalization_url_normalization_get_url_normalization_settings_response import ( + URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse as URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, ) -from .tunnel_argo_tunnel_create_an_argo_tunnel_response import ( - TunnelArgoTunnelCreateAnArgoTunnelResponse as TunnelArgoTunnelCreateAnArgoTunnelResponse, +from .url_normalization_url_normalization_update_url_normalization_settings_response import ( + URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse as URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, ) -from .audit_log_audit_logs_get_account_audit_logs_params import ( - AuditLogAuditLogsGetAccountAuditLogsParams as AuditLogAuditLogsGetAccountAuditLogsParams, +from .url_normalization_url_normalization_update_url_normalization_settings_params import ( + URLNormalizationURLNormalizationUpdateURLNormalizationSettingsParams as URLNormalizationURLNormalizationUpdateURLNormalizationSettingsParams, ) from .audit_log_audit_logs_get_account_audit_logs_response import ( AuditLogAuditLogsGetAccountAuditLogsResponse as AuditLogAuditLogsGetAccountAuditLogsResponse, ) -from .healthcheck_health_checks_create_health_check_params import ( - HealthcheckHealthChecksCreateHealthCheckParams as HealthcheckHealthChecksCreateHealthCheckParams, -) -from .healthcheck_health_checks_list_health_checks_response import ( - HealthcheckHealthChecksListHealthChecksResponse as HealthcheckHealthChecksListHealthChecksResponse, -) -from .pcap_magic_pcap_collection_create_pcap_request_params import ( - PcapMagicPcapCollectionCreatePcapRequestParams as PcapMagicPcapCollectionCreatePcapRequestParams, -) -from .healthcheck_health_checks_create_health_check_response import ( - HealthcheckHealthChecksCreateHealthCheckResponse as HealthcheckHealthChecksCreateHealthCheckResponse, -) -from .pcap_magic_pcap_collection_create_pcap_request_response import ( - PcapMagicPcapCollectionCreatePcapRequestResponse as PcapMagicPcapCollectionCreatePcapRequestResponse, -) -from .page_shield_page_shield_update_page_shield_settings_params import ( - PageShieldPageShieldUpdatePageShieldSettingsParams as PageShieldPageShieldUpdatePageShieldSettingsParams, -) -from .cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params import ( - CfdTunnelCloudflareTunnelListCloudflareTunnelsParams as CfdTunnelCloudflareTunnelListCloudflareTunnelsParams, -) -from .activation_check_put_zones_zone_id_activation_check_response import ( - ActivationCheckPutZonesZoneIDActivationCheckResponse as ActivationCheckPutZonesZoneIDActivationCheckResponse, +from .audit_log_audit_logs_get_account_audit_logs_params import ( + AuditLogAuditLogsGetAccountAuditLogsParams as AuditLogAuditLogsGetAccountAuditLogsParams, ) -from .page_shield_page_shield_update_page_shield_settings_response import ( - PageShieldPageShieldUpdatePageShieldSettingsResponse as PageShieldPageShieldUpdatePageShieldSettingsResponse, +from .cfd_tunnel_update_response import CfdTunnelUpdateResponse as CfdTunnelUpdateResponse +from .cfd_tunnel_delete_response import CfdTunnelDeleteResponse as CfdTunnelDeleteResponse +from .cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response import ( + CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse as CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, ) from .cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_response import ( CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse as CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, ) -from .subscription_account_subscriptions_create_subscription_params import ( - SubscriptionAccountSubscriptionsCreateSubscriptionParams as SubscriptionAccountSubscriptionsCreateSubscriptionParams, -) +from .cfd_tunnel_get_response import CfdTunnelGetResponse as CfdTunnelGetResponse +from .cfd_tunnel_update_params import CfdTunnelUpdateParams as CfdTunnelUpdateParams +from .cfd_tunnel_delete_params import CfdTunnelDeleteParams as CfdTunnelDeleteParams from .cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params import ( CfdTunnelCloudflareTunnelCreateACloudflareTunnelParams as CfdTunnelCloudflareTunnelCreateACloudflareTunnelParams, ) -from .gateway_zero_trust_accounts_create_zero_trust_account_response import ( - GatewayZeroTrustAccountsCreateZeroTrustAccountResponse as GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, -) -from .subscription_account_subscriptions_list_subscriptions_response import ( - SubscriptionAccountSubscriptionsListSubscriptionsResponse as SubscriptionAccountSubscriptionsListSubscriptionsResponse, -) -from .subscription_zone_subscription_create_zone_subscription_params import ( - SubscriptionZoneSubscriptionCreateZoneSubscriptionParams as SubscriptionZoneSubscriptionCreateZoneSubscriptionParams, -) -from .subscription_zone_subscription_update_zone_subscription_params import ( - SubscriptionZoneSubscriptionUpdateZoneSubscriptionParams as SubscriptionZoneSubscriptionUpdateZoneSubscriptionParams, -) -from .subscription_account_subscriptions_create_subscription_response import ( - SubscriptionAccountSubscriptionsCreateSubscriptionResponse as SubscriptionAccountSubscriptionsCreateSubscriptionResponse, +from .cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params import ( + CfdTunnelCloudflareTunnelListCloudflareTunnelsParams as CfdTunnelCloudflareTunnelListCloudflareTunnelsParams, ) -from .cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response import ( - CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse as CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, +from .dns_firewall_create_response import DNSFirewallCreateResponse as DNSFirewallCreateResponse +from .dns_firewall_update_response import DNSFirewallUpdateResponse as DNSFirewallUpdateResponse +from .dns_firewall_list_response import DNSFirewallListResponse as DNSFirewallListResponse +from .dns_firewall_delete_response import DNSFirewallDeleteResponse as DNSFirewallDeleteResponse +from .dns_firewall_get_response import DNSFirewallGetResponse as DNSFirewallGetResponse +from .dns_firewall_create_params import DNSFirewallCreateParams as DNSFirewallCreateParams +from .dns_firewall_update_params import DNSFirewallUpdateParams as DNSFirewallUpdateParams +from .dns_firewall_list_params import DNSFirewallListParams as DNSFirewallListParams +from .account_member_create_response import AccountMemberCreateResponse as AccountMemberCreateResponse +from .account_member_update_response import AccountMemberUpdateResponse as AccountMemberUpdateResponse +from .account_member_list_response import AccountMemberListResponse as AccountMemberListResponse +from .account_member_delete_response import AccountMemberDeleteResponse as AccountMemberDeleteResponse +from .account_member_get_response import AccountMemberGetResponse as AccountMemberGetResponse +from .account_member_create_params import AccountMemberCreateParams as AccountMemberCreateParams +from .account_member_update_params import AccountMemberUpdateParams as AccountMemberUpdateParams +from .account_member_list_params import AccountMemberListParams as AccountMemberListParams +from .mtls_certificate_update_response import MtlsCertificateUpdateResponse as MtlsCertificateUpdateResponse +from .mtls_certificate_list_response import MtlsCertificateListResponse as MtlsCertificateListResponse +from .mtls_certificate_delete_response import MtlsCertificateDeleteResponse as MtlsCertificateDeleteResponse +from .mtls_certificate_get_response import MtlsCertificateGetResponse as MtlsCertificateGetResponse +from .mtls_certificate_update_params import MtlsCertificateUpdateParams as MtlsCertificateUpdateParams +from .pcap_get_response import PcapGetResponse as PcapGetResponse +from .pcap_magic_pcap_collection_create_pcap_request_response import ( + PcapMagicPcapCollectionCreatePcapRequestResponse as PcapMagicPcapCollectionCreatePcapRequestResponse, ) from .pcap_magic_pcap_collection_list_packet_capture_requests_response import ( PcapMagicPcapCollectionListPacketCaptureRequestsResponse as PcapMagicPcapCollectionListPacketCaptureRequestsResponse, ) -from .subscription_zone_subscription_create_zone_subscription_response import ( - SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse as SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, -) -from .subscription_zone_subscription_update_zone_subscription_response import ( - SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse as SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, +from .pcap_magic_pcap_collection_create_pcap_request_params import ( + PcapMagicPcapCollectionCreatePcapRequestParams as PcapMagicPcapCollectionCreatePcapRequestParams, ) -from .subscription_zone_subscription_zone_subscription_details_response import ( - SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse as SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse, +from .role_account_roles_list_roles_response import ( + RoleAccountRolesListRolesResponse as RoleAccountRolesListRolesResponse, ) -from .available_rate_plan_zone_rate_plan_list_available_rate_plans_response import ( - AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse as AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse, +from .role_get_response import RoleGetResponse as RoleGetResponse +from .stream_update_response import StreamUpdateResponse as StreamUpdateResponse +from .stream_get_response import StreamGetResponse as StreamGetResponse +from .stream_stream_videos_list_videos_response import ( + StreamStreamVideosListVideosResponse as StreamStreamVideosListVideosResponse, ) -from .custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params import ( - CustomHostnameCustomHostnameForAZoneListCustomHostnamesParams as CustomHostnameCustomHostnameForAZoneListCustomHostnamesParams, +from .stream_update_params import StreamUpdateParams as StreamUpdateParams +from .stream_stream_videos_list_videos_params import ( + StreamStreamVideosListVideosParams as StreamStreamVideosListVideosParams, ) -from .gateway_zero_trust_accounts_get_zero_trust_account_information_response import ( - GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse as GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, +from .tunnel_delete_response import TunnelDeleteResponse as TunnelDeleteResponse +from .tunnel_argo_tunnel_create_an_argo_tunnel_response import ( + TunnelArgoTunnelCreateAnArgoTunnelResponse as TunnelArgoTunnelCreateAnArgoTunnelResponse, ) -from .custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params import ( - CustomHostnameCustomHostnameForAZoneCreateCustomHostnameParams as CustomHostnameCustomHostnameForAZoneCreateCustomHostnameParams, +from .tunnel_argo_tunnel_list_argo_tunnels_response import ( + TunnelArgoTunnelListArgoTunnelsResponse as TunnelArgoTunnelListArgoTunnelsResponse, ) -from .custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response import ( - CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse as CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, +from .tunnel_get_response import TunnelGetResponse as TunnelGetResponse +from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams +from .tunnel_argo_tunnel_create_an_argo_tunnel_params import ( + TunnelArgoTunnelCreateAnArgoTunnelParams as TunnelArgoTunnelCreateAnArgoTunnelParams, ) -from .custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response import ( - CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse as CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, +from .tunnel_argo_tunnel_list_argo_tunnels_params import ( + TunnelArgoTunnelListArgoTunnelsParams as TunnelArgoTunnelListArgoTunnelsParams, ) -from .url_normalization_url_normalization_get_url_normalization_settings_response import ( - URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse as URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, +from .gateway_zero_trust_accounts_create_zero_trust_account_response import ( + GatewayZeroTrustAccountsCreateZeroTrustAccountResponse as GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, ) -from .managed_header_managed_transforms_update_status_of_managed_transforms_params import ( - ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsParams as ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsParams, +from .gateway_zero_trust_accounts_get_zero_trust_account_information_response import ( + GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse as GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, ) -from .url_normalization_url_normalization_update_url_normalization_settings_params import ( - URLNormalizationURLNormalizationUpdateURLNormalizationSettingsParams as URLNormalizationURLNormalizationUpdateURLNormalizationSettingsParams, +from .device_devices_list_devices_response import DeviceDevicesListDevicesResponse as DeviceDevicesListDevicesResponse +from .device_get_response import DeviceGetResponse as DeviceGetResponse +from .warp_connector_create_response import WarpConnectorCreateResponse as WarpConnectorCreateResponse +from .warp_connector_update_response import WarpConnectorUpdateResponse as WarpConnectorUpdateResponse +from .warp_connector_list_response import WarpConnectorListResponse as WarpConnectorListResponse +from .warp_connector_delete_response import WarpConnectorDeleteResponse as WarpConnectorDeleteResponse +from .warp_connector_get_response import WarpConnectorGetResponse as WarpConnectorGetResponse +from .warp_connector_create_params import WarpConnectorCreateParams as WarpConnectorCreateParams +from .warp_connector_update_params import WarpConnectorUpdateParams as WarpConnectorUpdateParams +from .warp_connector_list_params import WarpConnectorListParams as WarpConnectorListParams +from .warp_connector_delete_params import WarpConnectorDeleteParams as WarpConnectorDeleteParams +from .worker_domain_get_response import WorkerDomainGetResponse as WorkerDomainGetResponse +from .url_scanner_scan_response import URLScannerScanResponse as URLScannerScanResponse +from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams +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 .cache_reserve_create_response import CacheReserveCreateResponse as CacheReserveCreateResponse +from .cache_reserve_clear_response import CacheReserveClearResponse as CacheReserveClearResponse +from .origin_post_quantum_encryption_update_response import ( + OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse, ) -from .managed_header_managed_transforms_update_status_of_managed_transforms_response import ( - ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse as ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, +from .origin_post_quantum_encryption_get_response import ( + OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse, ) -from .url_normalization_url_normalization_update_url_normalization_settings_response import ( - URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse as URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, +from .origin_post_quantum_encryption_update_params import ( + OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams, ) -from .client_certificate_client_certificate_for_a_zone_list_client_certificates_params import ( - ClientCertificateClientCertificateForAZoneListClientCertificatesParams as ClientCertificateClientCertificateForAZoneListClientCertificatesParams, +from .cache_regional_tiered_caches_response import ( + CacheRegionalTieredCachesResponse as CacheRegionalTieredCachesResponse, ) -from .client_certificate_client_certificate_for_a_zone_create_client_certificate_params import ( - ClientCertificateClientCertificateForAZoneCreateClientCertificateParams as ClientCertificateClientCertificateForAZoneCreateClientCertificateParams, +from .cache_update_regional_tiered_cache_response import ( + CacheUpdateRegionalTieredCacheResponse as CacheUpdateRegionalTieredCacheResponse, ) -from .client_certificate_client_certificate_for_a_zone_list_client_certificates_response import ( - ClientCertificateClientCertificateForAZoneListClientCertificatesResponse as ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, +from .cache_update_regional_tiered_cache_params import ( + CacheUpdateRegionalTieredCacheParams as CacheUpdateRegionalTieredCacheParams, ) -from .client_certificate_client_certificate_for_a_zone_create_client_certificate_response import ( - ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse as ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, +from .zaraz_workflow_update_response import ZarazWorkflowUpdateResponse as ZarazWorkflowUpdateResponse +from .zaraz_workflow_update_params import ZarazWorkflowUpdateParams as ZarazWorkflowUpdateParams +from .speed_api_availabilities_list_response import ( + SpeedAPIAvailabilitiesListResponse as SpeedAPIAvailabilitiesListResponse, ) +from .speed_api_pages_list_response import SpeedAPIPagesListResponse as SpeedAPIPagesListResponse +from .speed_api_schedule_delete_response import SpeedAPIScheduleDeleteResponse as SpeedAPIScheduleDeleteResponse +from .speed_api_schedule_get_response import SpeedAPIScheduleGetResponse as SpeedAPIScheduleGetResponse +from .speed_api_tests_create_response import SpeedAPITestsCreateResponse as SpeedAPITestsCreateResponse +from .speed_api_tests_delete_response import SpeedAPITestsDeleteResponse as SpeedAPITestsDeleteResponse +from .speed_api_tests_get_response import SpeedAPITestsGetResponse as SpeedAPITestsGetResponse +from .speed_api_tests_list_response import SpeedAPITestsListResponse as SpeedAPITestsListResponse +from .speed_api_trends_list_response import SpeedAPITrendsListResponse as SpeedAPITrendsListResponse +from .speed_api_schedule_delete_params import SpeedAPIScheduleDeleteParams as SpeedAPIScheduleDeleteParams +from .speed_api_schedule_get_params import SpeedAPIScheduleGetParams as SpeedAPIScheduleGetParams +from .speed_api_tests_create_params import SpeedAPITestsCreateParams as SpeedAPITestsCreateParams +from .speed_api_tests_delete_params import SpeedAPITestsDeleteParams as SpeedAPITestsDeleteParams +from .speed_api_tests_list_params import SpeedAPITestsListParams as SpeedAPITestsListParams +from .speed_api_trends_list_params import SpeedAPITrendsListParams as SpeedAPITrendsListParams +from .font_setting_update_response import FontSettingUpdateResponse as FontSettingUpdateResponse +from .font_setting_get_response import FontSettingGetResponse as FontSettingGetResponse +from .font_setting_update_params import FontSettingUpdateParams as FontSettingUpdateParams +from .snippet_update_response import SnippetUpdateResponse as SnippetUpdateResponse +from .snippet_list_response import SnippetListResponse as SnippetListResponse +from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse +from .snippet_get_response import SnippetGetResponse as SnippetGetResponse +from .snippet_update_params import SnippetUpdateParams as SnippetUpdateParams +from .access_tag_create_response import AccessTagCreateResponse as AccessTagCreateResponse +from .access_tag_update_response import AccessTagUpdateResponse as AccessTagUpdateResponse +from .access_tag_delete_response import AccessTagDeleteResponse as AccessTagDeleteResponse +from .access_tag_get_response import AccessTagGetResponse as AccessTagGetResponse +from .access_tag_create_params import AccessTagCreateParams as AccessTagCreateParams +from .access_tag_update_params import AccessTagUpdateParams as AccessTagUpdateParams +from .call_create_response import CallCreateResponse as CallCreateResponse +from .call_update_response import CallUpdateResponse as CallUpdateResponse +from .call_list_response import CallListResponse as CallListResponse +from .call_delete_response import CallDeleteResponse as CallDeleteResponse +from .call_get_response import CallGetResponse as CallGetResponse +from .call_create_params import CallCreateParams as CallCreateParams +from .call_update_params import CallUpdateParams as CallUpdateParams diff --git a/src/cloudflare/types/access/__init__.py b/src/cloudflare/types/access/__init__.py index e8590b8955c..c48caed1800 100644 --- a/src/cloudflare/types/access/__init__.py +++ b/src/cloudflare/types/access/__init__.py @@ -2,106 +2,106 @@ from __future__ import annotations +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_list_response import AppListResponse as AppListResponse from .app_update_params import AppUpdateParams as AppUpdateParams -from .tag_list_response import TagListResponse as TagListResponse -from .group_get_response import GroupGetResponse as GroupGetResponse -from .user_list_response import UserListResponse as UserListResponse -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 .group_update_params import GroupUpdateParams as GroupUpdateParams -from .bookmark_get_response import BookmarkGetResponse as BookmarkGetResponse -from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse -from .group_update_response import GroupUpdateResponse as GroupUpdateResponse -from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse -from .bookmark_update_response import BookmarkUpdateResponse as BookmarkUpdateResponse -from .certificate_get_response import CertificateGetResponse as CertificateGetResponse -from .custom_page_get_response import CustomPageGetResponse as CustomPageGetResponse -from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams -from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams -from .custom_page_list_response import CustomPageListResponse as CustomPageListResponse -from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams -from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse from .certificate_update_response import CertificateUpdateResponse as CertificateUpdateResponse -from .custom_page_create_response import CustomPageCreateResponse as CustomPageCreateResponse -from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse -from .custom_page_update_response import CustomPageUpdateResponse as CustomPageUpdateResponse -from .service_token_update_params import ServiceTokenUpdateParams as ServiceTokenUpdateParams -from .service_token_delete_response import ServiceTokenDeleteResponse as ServiceTokenDeleteResponse -from .service_token_update_response import ServiceTokenUpdateResponse as ServiceTokenUpdateResponse -from .identity_provider_get_response import IdentityProviderGetResponse as IdentityProviderGetResponse -from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams -from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse -from .identity_provider_update_response import IdentityProviderUpdateResponse as IdentityProviderUpdateResponse -from .group_access_groups_list_access_groups_response import ( - GroupAccessGroupsListAccessGroupsResponse as GroupAccessGroupsListAccessGroupsResponse, -) -from .seat_zero_trust_seats_update_a_user_seat_params import ( - SeatZeroTrustSeatsUpdateAUserSeatParams as SeatZeroTrustSeatsUpdateAUserSeatParams, +from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse +from .certificate_access_m_tls_authentication_add_an_m_tls_certificate_response import ( + CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse as CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, ) -from .group_access_groups_create_an_access_group_params import ( - GroupAccessGroupsCreateAnAccessGroupParams as GroupAccessGroupsCreateAnAccessGroupParams, +from .certificate_access_m_tls_authentication_list_m_tls_certificates_response import ( + CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse as CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, ) -from .seat_zero_trust_seats_update_a_user_seat_response import ( - SeatZeroTrustSeatsUpdateAUserSeatResponse as SeatZeroTrustSeatsUpdateAUserSeatResponse, +from .certificate_get_response import CertificateGetResponse as CertificateGetResponse +from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams +from .certificate_access_m_tls_authentication_add_an_m_tls_certificate_params import ( + CertificateAccessMTLSAuthenticationAddAnMTLSCertificateParams as CertificateAccessMTLSAuthenticationAddAnMTLSCertificateParams, ) +from .group_update_response import GroupUpdateResponse as GroupUpdateResponse +from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse from .group_access_groups_create_an_access_group_response import ( GroupAccessGroupsCreateAnAccessGroupResponse as GroupAccessGroupsCreateAnAccessGroupResponse, ) -from .service_token_access_service_tokens_list_service_tokens_response import ( - ServiceTokenAccessServiceTokensListServiceTokensResponse as ServiceTokenAccessServiceTokensListServiceTokensResponse, -) -from .service_token_access_service_tokens_create_a_service_token_params import ( - ServiceTokenAccessServiceTokensCreateAServiceTokenParams as ServiceTokenAccessServiceTokensCreateAServiceTokenParams, -) -from .service_token_access_service_tokens_create_a_service_token_response import ( - ServiceTokenAccessServiceTokensCreateAServiceTokenResponse as ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, -) -from .key_access_key_configuration_get_the_access_key_configuration_response import ( - KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse as KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, +from .group_access_groups_list_access_groups_response import ( + GroupAccessGroupsListAccessGroupsResponse as GroupAccessGroupsListAccessGroupsResponse, ) -from .certificate_access_m_tls_authentication_add_an_m_tls_certificate_params import ( - CertificateAccessMTLSAuthenticationAddAnMTLSCertificateParams as CertificateAccessMTLSAuthenticationAddAnMTLSCertificateParams, +from .group_get_response import GroupGetResponse as GroupGetResponse +from .group_update_params import GroupUpdateParams as GroupUpdateParams +from .group_access_groups_create_an_access_group_params import ( + GroupAccessGroupsCreateAnAccessGroupParams as GroupAccessGroupsCreateAnAccessGroupParams, ) -from .key_access_key_configuration_update_the_access_key_configuration_params import ( - KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationParams as KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationParams, +from .identity_provider_update_response import IdentityProviderUpdateResponse as IdentityProviderUpdateResponse +from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse +from .identity_provider_access_identity_providers_add_an_access_identity_provider_response import ( + IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse as IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, ) -from .certificate_access_m_tls_authentication_list_m_tls_certificates_response import ( - CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse as CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, +from .identity_provider_access_identity_providers_list_access_identity_providers_response import ( + IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse as IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, ) -from .certificate_access_m_tls_authentication_add_an_m_tls_certificate_response import ( - CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse as CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, +from .identity_provider_get_response import IdentityProviderGetResponse as IdentityProviderGetResponse +from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams +from .identity_provider_access_identity_providers_add_an_access_identity_provider_params import ( + IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderParams as IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderParams, ) -from .key_access_key_configuration_update_the_access_key_configuration_response import ( - KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse as KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, +from .organization_zero_trust_organization_create_your_zero_trust_organization_response import ( + OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse as OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, ) from .organization_zero_trust_organization_get_your_zero_trust_organization_response import ( OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse as OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, ) +from .organization_zero_trust_organization_update_your_zero_trust_organization_response import ( + OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse as OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, +) from .organization_zero_trust_organization_create_your_zero_trust_organization_params import ( OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationParams as OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationParams, ) from .organization_zero_trust_organization_update_your_zero_trust_organization_params import ( OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationParams as OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationParams, ) -from .organization_zero_trust_organization_create_your_zero_trust_organization_response import ( - OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse as OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, -) -from .organization_zero_trust_organization_update_your_zero_trust_organization_response import ( - OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse as OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, +from .service_token_update_response import ServiceTokenUpdateResponse as ServiceTokenUpdateResponse +from .service_token_delete_response import ServiceTokenDeleteResponse as ServiceTokenDeleteResponse +from .service_token_access_service_tokens_create_a_service_token_response import ( + ServiceTokenAccessServiceTokensCreateAServiceTokenResponse as ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, ) -from .identity_provider_access_identity_providers_add_an_access_identity_provider_params import ( - IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderParams as IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderParams, +from .service_token_access_service_tokens_list_service_tokens_response import ( + ServiceTokenAccessServiceTokensListServiceTokensResponse as ServiceTokenAccessServiceTokensListServiceTokensResponse, ) -from .identity_provider_access_identity_providers_list_access_identity_providers_response import ( - IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse as IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, +from .service_token_update_params import ServiceTokenUpdateParams as ServiceTokenUpdateParams +from .service_token_access_service_tokens_create_a_service_token_params import ( + ServiceTokenAccessServiceTokensCreateAServiceTokenParams as ServiceTokenAccessServiceTokensCreateAServiceTokenParams, ) +from .bookmark_update_response import BookmarkUpdateResponse as BookmarkUpdateResponse +from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse from .bookmark_access_bookmark_applications_deprecated_list_bookmark_applications_response import ( BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse as BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, ) -from .identity_provider_access_identity_providers_add_an_access_identity_provider_response import ( - IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse as IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, +from .bookmark_get_response import BookmarkGetResponse as BookmarkGetResponse +from .key_access_key_configuration_get_the_access_key_configuration_response import ( + KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse as KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, ) +from .key_access_key_configuration_update_the_access_key_configuration_response import ( + KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse as KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, +) +from .key_access_key_configuration_update_the_access_key_configuration_params import ( + KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationParams as KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationParams, +) +from .seat_zero_trust_seats_update_a_user_seat_response import ( + SeatZeroTrustSeatsUpdateAUserSeatResponse as SeatZeroTrustSeatsUpdateAUserSeatResponse, +) +from .seat_zero_trust_seats_update_a_user_seat_params import ( + SeatZeroTrustSeatsUpdateAUserSeatParams as SeatZeroTrustSeatsUpdateAUserSeatParams, +) +from .user_list_response import UserListResponse as UserListResponse +from .custom_page_create_response import CustomPageCreateResponse as CustomPageCreateResponse +from .custom_page_update_response import CustomPageUpdateResponse as CustomPageUpdateResponse +from .custom_page_list_response import CustomPageListResponse as CustomPageListResponse +from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse +from .custom_page_get_response import CustomPageGetResponse as CustomPageGetResponse +from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams +from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams +from .tag_list_response import TagListResponse as TagListResponse diff --git a/src/cloudflare/types/access/app_create_params.py b/src/cloudflare/types/access/app_create_params.py index 416089f0e96..f41b2a03b1d 100644 --- a/src/cloudflare/types/access/app_create_params.py +++ b/src/cloudflare/types/access/app_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import List, 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 ...types import shared_params __all__ = [ "AppCreateParams", diff --git a/src/cloudflare/types/access/app_create_response.py b/src/cloudflare/types/access/app_create_response.py index 3fe945554f3..aa7f1cc0aac 100644 --- a/src/cloudflare/types/access/app_create_response.py +++ b/src/cloudflare/types/access/app_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "AppCreateResponse", diff --git a/src/cloudflare/types/access/app_delete_response.py b/src/cloudflare/types/access/app_delete_response.py index b548b8fc5d8..e9d536c826d 100644 --- a/src/cloudflare/types/access/app_delete_response.py +++ b/src/cloudflare/types/access/app_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AppDeleteResponse"] diff --git a/src/cloudflare/types/access/app_get_response.py b/src/cloudflare/types/access/app_get_response.py index e640c08032d..99803fcad66 100644 --- a/src/cloudflare/types/access/app_get_response.py +++ b/src/cloudflare/types/access/app_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "AppGetResponse", diff --git a/src/cloudflare/types/access/app_list_response.py b/src/cloudflare/types/access/app_list_response.py index 34a8be96e5b..06a9792cbab 100644 --- a/src/cloudflare/types/access/app_list_response.py +++ b/src/cloudflare/types/access/app_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "AppListResponse", diff --git a/src/cloudflare/types/access/app_update_params.py b/src/cloudflare/types/access/app_update_params.py index 2f5bd95a04f..c9ea4ec303b 100644 --- a/src/cloudflare/types/access/app_update_params.py +++ b/src/cloudflare/types/access/app_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import List, 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 ...types import shared_params __all__ = [ "AppUpdateParams", diff --git a/src/cloudflare/types/access/app_update_response.py b/src/cloudflare/types/access/app_update_response.py index 9b6143b87d6..258cdcfe03a 100644 --- a/src/cloudflare/types/access/app_update_response.py +++ b/src/cloudflare/types/access/app_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "AppUpdateResponse", diff --git a/src/cloudflare/types/access/apps/__init__.py b/src/cloudflare/types/access/apps/__init__.py index b45e0bf7a20..a448f13ab09 100644 --- a/src/cloudflare/types/access/apps/__init__.py +++ b/src/cloudflare/types/access/apps/__init__.py @@ -2,25 +2,25 @@ from __future__ import annotations -from .ca_get_response import CaGetResponse as CaGetResponse -from .ca_list_response import CaListResponse as CaListResponse from .ca_create_response import CaCreateResponse as CaCreateResponse +from .ca_list_response import CaListResponse as CaListResponse from .ca_delete_response import CaDeleteResponse as CaDeleteResponse -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 .ca_get_response import CaGetResponse as CaGetResponse +from .user_policy_check_access_applications_test_access_policies_response import ( + UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse as UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse, +) 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 .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .policy_access_policies_create_an_access_policy_response import ( + PolicyAccessPoliciesCreateAnAccessPolicyResponse as PolicyAccessPoliciesCreateAnAccessPolicyResponse, +) from .policy_access_policies_list_access_policies_response import ( PolicyAccessPoliciesListAccessPoliciesResponse as PolicyAccessPoliciesListAccessPoliciesResponse, ) +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 .policy_access_policies_create_an_access_policy_params import ( PolicyAccessPoliciesCreateAnAccessPolicyParams as PolicyAccessPoliciesCreateAnAccessPolicyParams, ) -from .policy_access_policies_create_an_access_policy_response import ( - PolicyAccessPoliciesCreateAnAccessPolicyResponse as PolicyAccessPoliciesCreateAnAccessPolicyResponse, -) -from .user_policy_check_access_applications_test_access_policies_response import ( - UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse as UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse, -) diff --git a/src/cloudflare/types/access/apps/ca_create_response.py b/src/cloudflare/types/access/apps/ca_create_response.py index 4186d0bc44a..e46a2a5c5bc 100644 --- a/src/cloudflare/types/access/apps/ca_create_response.py +++ b/src/cloudflare/types/access/apps/ca_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["CaCreateResponse"] diff --git a/src/cloudflare/types/access/apps/ca_delete_response.py b/src/cloudflare/types/access/apps/ca_delete_response.py index d71f0deecce..97d97c3effd 100644 --- a/src/cloudflare/types/access/apps/ca_delete_response.py +++ b/src/cloudflare/types/access/apps/ca_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["CaDeleteResponse"] diff --git a/src/cloudflare/types/access/apps/ca_get_response.py b/src/cloudflare/types/access/apps/ca_get_response.py index 34a518207e9..585721fb6e7 100644 --- a/src/cloudflare/types/access/apps/ca_get_response.py +++ b/src/cloudflare/types/access/apps/ca_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["CaGetResponse"] diff --git a/src/cloudflare/types/access/apps/ca_list_response.py b/src/cloudflare/types/access/apps/ca_list_response.py index d4372ce9eb7..ed0c20b6883 100644 --- a/src/cloudflare/types/access/apps/ca_list_response.py +++ b/src/cloudflare/types/access/apps/ca_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["CaListResponse", "CaListResponseItem"] diff --git a/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_params.py b/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_params.py index 1f641da8e06..03f23385fc5 100644 --- a/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_params.py +++ b/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, Union + +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 ....types import shared_params __all__ = [ "PolicyAccessPoliciesCreateAnAccessPolicyParams", diff --git a/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_response.py b/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_response.py index 0e2674efcf3..710ba0b6a76 100644 --- a/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_response.py +++ b/src/cloudflare/types/access/apps/policy_access_policies_create_an_access_policy_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ....types import shared __all__ = [ "PolicyAccessPoliciesCreateAnAccessPolicyResponse", diff --git a/src/cloudflare/types/access/apps/policy_access_policies_list_access_policies_response.py b/src/cloudflare/types/access/apps/policy_access_policies_list_access_policies_response.py index 368616fe8fd..0578df6d196 100644 --- a/src/cloudflare/types/access/apps/policy_access_policies_list_access_policies_response.py +++ b/src/cloudflare/types/access/apps/policy_access_policies_list_access_policies_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ....types import shared __all__ = [ "PolicyAccessPoliciesListAccessPoliciesResponse", diff --git a/src/cloudflare/types/access/apps/policy_create_params.py b/src/cloudflare/types/access/apps/policy_create_params.py index d3f8a9e5332..953f90c93a7 100644 --- a/src/cloudflare/types/access/apps/policy_create_params.py +++ b/src/cloudflare/types/access/apps/policy_create_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, Union + +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 ....types import shared_params __all__ = [ "PolicyCreateParams", diff --git a/src/cloudflare/types/access/apps/policy_create_response.py b/src/cloudflare/types/access/apps/policy_create_response.py index efa2fd712f4..7298176d9ee 100644 --- a/src/cloudflare/types/access/apps/policy_create_response.py +++ b/src/cloudflare/types/access/apps/policy_create_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ....types import shared __all__ = [ "PolicyCreateResponse", diff --git a/src/cloudflare/types/access/apps/policy_delete_response.py b/src/cloudflare/types/access/apps/policy_delete_response.py index e0e1e2b8a9b..b5d554a48e8 100644 --- a/src/cloudflare/types/access/apps/policy_delete_response.py +++ b/src/cloudflare/types/access/apps/policy_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["PolicyDeleteResponse"] diff --git a/src/cloudflare/types/access/apps/policy_get_response.py b/src/cloudflare/types/access/apps/policy_get_response.py index fcea4f4f27e..48ea587a779 100644 --- a/src/cloudflare/types/access/apps/policy_get_response.py +++ b/src/cloudflare/types/access/apps/policy_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ....types import shared __all__ = [ "PolicyGetResponse", diff --git a/src/cloudflare/types/access/apps/policy_update_params.py b/src/cloudflare/types/access/apps/policy_update_params.py index b20a76e3c8b..0e1521b3cc6 100644 --- a/src/cloudflare/types/access/apps/policy_update_params.py +++ b/src/cloudflare/types/access/apps/policy_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, Union + +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 ....types import shared_params __all__ = [ "PolicyUpdateParams", diff --git a/src/cloudflare/types/access/apps/policy_update_response.py b/src/cloudflare/types/access/apps/policy_update_response.py index 70acf07d405..9c4d70c2b83 100644 --- a/src/cloudflare/types/access/apps/policy_update_response.py +++ b/src/cloudflare/types/access/apps/policy_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ....types import shared __all__ = [ "PolicyUpdateResponse", diff --git a/src/cloudflare/types/access/apps/user_policy_check_access_applications_test_access_policies_response.py b/src/cloudflare/types/access/apps/user_policy_check_access_applications_test_access_policies_response.py index a18471cba1a..84ea0953770 100644 --- a/src/cloudflare/types/access/apps/user_policy_check_access_applications_test_access_policies_response.py +++ b/src/cloudflare/types/access/apps/user_policy_check_access_applications_test_access_policies_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse", "AppState", "UserIdentity", "UserIdentityGeo"] diff --git a/src/cloudflare/types/access/bookmark_access_bookmark_applications_deprecated_list_bookmark_applications_response.py b/src/cloudflare/types/access/bookmark_access_bookmark_applications_deprecated_list_bookmark_applications_response.py index 114d2886479..dd6a371bc3a 100644 --- a/src/cloudflare/types/access/bookmark_access_bookmark_applications_deprecated_list_bookmark_applications_response.py +++ b/src/cloudflare/types/access/bookmark_access_bookmark_applications_deprecated_list_bookmark_applications_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = [ "BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse", diff --git a/src/cloudflare/types/access/bookmark_delete_response.py b/src/cloudflare/types/access/bookmark_delete_response.py index 23fabd727b0..7aa701728e8 100644 --- a/src/cloudflare/types/access/bookmark_delete_response.py +++ b/src/cloudflare/types/access/bookmark_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["BookmarkDeleteResponse"] diff --git a/src/cloudflare/types/access/bookmark_get_response.py b/src/cloudflare/types/access/bookmark_get_response.py index e3e38dbab93..0948553973f 100644 --- a/src/cloudflare/types/access/bookmark_get_response.py +++ b/src/cloudflare/types/access/bookmark_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["BookmarkGetResponse"] diff --git a/src/cloudflare/types/access/bookmark_update_response.py b/src/cloudflare/types/access/bookmark_update_response.py index e07c0ce877f..c82cfc82400 100644 --- a/src/cloudflare/types/access/bookmark_update_response.py +++ b/src/cloudflare/types/access/bookmark_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["BookmarkUpdateResponse"] diff --git a/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_params.py b/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_params.py index ea982e20419..df419d7a9ad 100644 --- a/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_params.py +++ b/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["CertificateAccessMTLSAuthenticationAddAnMTLSCertificateParams"] diff --git a/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_response.py b/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_response.py index 9ab18ced8f6..0db1eca96b9 100644 --- a/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_response.py +++ b/src/cloudflare/types/access/certificate_access_m_tls_authentication_add_an_m_tls_certificate_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse"] diff --git a/src/cloudflare/types/access/certificate_access_m_tls_authentication_list_m_tls_certificates_response.py b/src/cloudflare/types/access/certificate_access_m_tls_authentication_list_m_tls_certificates_response.py index cc09818b90d..d078de00bb5 100644 --- a/src/cloudflare/types/access/certificate_access_m_tls_authentication_list_m_tls_certificates_response.py +++ b/src/cloudflare/types/access/certificate_access_m_tls_authentication_list_m_tls_certificates_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse", diff --git a/src/cloudflare/types/access/certificate_delete_response.py b/src/cloudflare/types/access/certificate_delete_response.py index 3a955c30edb..4af56432e13 100644 --- a/src/cloudflare/types/access/certificate_delete_response.py +++ b/src/cloudflare/types/access/certificate_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["CertificateDeleteResponse"] diff --git a/src/cloudflare/types/access/certificate_get_response.py b/src/cloudflare/types/access/certificate_get_response.py index de61023cbe2..80dbe81613d 100644 --- a/src/cloudflare/types/access/certificate_get_response.py +++ b/src/cloudflare/types/access/certificate_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["CertificateGetResponse"] diff --git a/src/cloudflare/types/access/certificate_update_params.py b/src/cloudflare/types/access/certificate_update_params.py index 5d61033cf77..0d00bf4a642 100644 --- a/src/cloudflare/types/access/certificate_update_params.py +++ b/src/cloudflare/types/access/certificate_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["CertificateUpdateParams"] diff --git a/src/cloudflare/types/access/certificate_update_response.py b/src/cloudflare/types/access/certificate_update_response.py index 3e06300682b..e73781a7faa 100644 --- a/src/cloudflare/types/access/certificate_update_response.py +++ b/src/cloudflare/types/access/certificate_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["CertificateUpdateResponse"] diff --git a/src/cloudflare/types/access/certificates/__init__.py b/src/cloudflare/types/access/certificates/__init__.py index 87389096190..b39f1990b71 100644 --- a/src/cloudflare/types/access/certificates/__init__.py +++ b/src/cloudflare/types/access/certificates/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse from .setting_list_response import SettingListResponse as SettingListResponse from .setting_update_params import SettingUpdateParams as SettingUpdateParams -from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse diff --git a/src/cloudflare/types/access/certificates/setting_list_response.py b/src/cloudflare/types/access/certificates/setting_list_response.py index bf0a370e2c2..c5c08e6766a 100644 --- a/src/cloudflare/types/access/certificates/setting_list_response.py +++ b/src/cloudflare/types/access/certificates/setting_list_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["SettingListResponse", "SettingListResponseItem"] diff --git a/src/cloudflare/types/access/certificates/setting_update_params.py b/src/cloudflare/types/access/certificates/setting_update_params.py index 51429ca63e6..3befea5a984 100644 --- a/src/cloudflare/types/access/certificates/setting_update_params.py +++ b/src/cloudflare/types/access/certificates/setting_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["SettingUpdateParams", "Setting"] diff --git a/src/cloudflare/types/access/certificates/setting_update_response.py b/src/cloudflare/types/access/certificates/setting_update_response.py index ec38caa9666..7d21b36ea55 100644 --- a/src/cloudflare/types/access/certificates/setting_update_response.py +++ b/src/cloudflare/types/access/certificates/setting_update_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["SettingUpdateResponse", "SettingUpdateResponseItem"] diff --git a/src/cloudflare/types/access/custom_page_create_params.py b/src/cloudflare/types/access/custom_page_create_params.py index 0a539061bcc..0d7f58c3453 100644 --- a/src/cloudflare/types/access/custom_page_create_params.py +++ b/src/cloudflare/types/access/custom_page_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["CustomPageCreateParams"] diff --git a/src/cloudflare/types/access/custom_page_create_response.py b/src/cloudflare/types/access/custom_page_create_response.py index 2351cbb08ee..48372a91d91 100644 --- a/src/cloudflare/types/access/custom_page_create_response.py +++ b/src/cloudflare/types/access/custom_page_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CustomPageCreateResponse"] diff --git a/src/cloudflare/types/access/custom_page_delete_response.py b/src/cloudflare/types/access/custom_page_delete_response.py index 5982438ce3d..0f3688221f2 100644 --- a/src/cloudflare/types/access/custom_page_delete_response.py +++ b/src/cloudflare/types/access/custom_page_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["CustomPageDeleteResponse"] diff --git a/src/cloudflare/types/access/custom_page_get_response.py b/src/cloudflare/types/access/custom_page_get_response.py index 5ae6042b9f5..5839f3966e2 100644 --- a/src/cloudflare/types/access/custom_page_get_response.py +++ b/src/cloudflare/types/access/custom_page_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CustomPageGetResponse"] diff --git a/src/cloudflare/types/access/custom_page_list_response.py b/src/cloudflare/types/access/custom_page_list_response.py index 4254cc3514f..5c245f702c7 100644 --- a/src/cloudflare/types/access/custom_page_list_response.py +++ b/src/cloudflare/types/access/custom_page_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime 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 +from ...types import shared __all__ = ["CustomPageListResponse", "CustomPageListResponseItem"] diff --git a/src/cloudflare/types/access/custom_page_update_params.py b/src/cloudflare/types/access/custom_page_update_params.py index 7ddb08f25b6..f4292efd76e 100644 --- a/src/cloudflare/types/access/custom_page_update_params.py +++ b/src/cloudflare/types/access/custom_page_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["CustomPageUpdateParams"] diff --git a/src/cloudflare/types/access/custom_page_update_response.py b/src/cloudflare/types/access/custom_page_update_response.py index 14d69f27dc9..232c99f68c5 100644 --- a/src/cloudflare/types/access/custom_page_update_response.py +++ b/src/cloudflare/types/access/custom_page_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CustomPageUpdateResponse"] diff --git a/src/cloudflare/types/access/group_access_groups_create_an_access_group_params.py b/src/cloudflare/types/access/group_access_groups_create_an_access_group_params.py index 0182b1ac354..4c73db48ceb 100644 --- a/src/cloudflare/types/access/group_access_groups_create_an_access_group_params.py +++ b/src/cloudflare/types/access/group_access_groups_create_an_access_group_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated +from typing import Iterable, Union + +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 ...types import shared_params __all__ = [ "GroupAccessGroupsCreateAnAccessGroupParams", diff --git a/src/cloudflare/types/access/group_access_groups_create_an_access_group_response.py b/src/cloudflare/types/access/group_access_groups_create_an_access_group_response.py index 06bfc487fc2..415f38de10c 100644 --- a/src/cloudflare/types/access/group_access_groups_create_an_access_group_response.py +++ b/src/cloudflare/types/access/group_access_groups_create_an_access_group_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "GroupAccessGroupsCreateAnAccessGroupResponse", diff --git a/src/cloudflare/types/access/group_access_groups_list_access_groups_response.py b/src/cloudflare/types/access/group_access_groups_list_access_groups_response.py index 92168fdb4d4..ad4e670b19b 100644 --- a/src/cloudflare/types/access/group_access_groups_list_access_groups_response.py +++ b/src/cloudflare/types/access/group_access_groups_list_access_groups_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "GroupAccessGroupsListAccessGroupsResponse", diff --git a/src/cloudflare/types/access/group_delete_response.py b/src/cloudflare/types/access/group_delete_response.py index 758d3599141..ee73bb2e212 100644 --- a/src/cloudflare/types/access/group_delete_response.py +++ b/src/cloudflare/types/access/group_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["GroupDeleteResponse"] diff --git a/src/cloudflare/types/access/group_get_response.py b/src/cloudflare/types/access/group_get_response.py index c5a5d484438..29070d1f41e 100644 --- a/src/cloudflare/types/access/group_get_response.py +++ b/src/cloudflare/types/access/group_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "GroupGetResponse", diff --git a/src/cloudflare/types/access/group_update_params.py b/src/cloudflare/types/access/group_update_params.py index 7514b05f541..093686f5147 100644 --- a/src/cloudflare/types/access/group_update_params.py +++ b/src/cloudflare/types/access/group_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated +from typing import Iterable, Union + +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 ...types import shared_params __all__ = [ "GroupUpdateParams", diff --git a/src/cloudflare/types/access/group_update_response.py b/src/cloudflare/types/access/group_update_response.py index 59747388014..d01d0ef781f 100644 --- a/src/cloudflare/types/access/group_update_response.py +++ b/src/cloudflare/types/access/group_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "GroupUpdateResponse", diff --git a/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_params.py b/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_params.py index 75ddc6223aa..38ce02e7d43 100644 --- a/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_params.py +++ b/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +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 ...types import shared_params __all__ = [ "IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderParams", diff --git a/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_response.py b/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_response.py index 84233efef8a..727e559541c 100644 --- a/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_response.py +++ b/src/cloudflare/types/access/identity_provider_access_identity_providers_add_an_access_identity_provider_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse", diff --git a/src/cloudflare/types/access/identity_provider_access_identity_providers_list_access_identity_providers_response.py b/src/cloudflare/types/access/identity_provider_access_identity_providers_list_access_identity_providers_response.py index 0123dcfc161..0e46d862352 100644 --- a/src/cloudflare/types/access/identity_provider_access_identity_providers_list_access_identity_providers_response.py +++ b/src/cloudflare/types/access/identity_provider_access_identity_providers_list_access_identity_providers_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse", diff --git a/src/cloudflare/types/access/identity_provider_delete_response.py b/src/cloudflare/types/access/identity_provider_delete_response.py index e72acf80ecd..62f4e3de9f2 100644 --- a/src/cloudflare/types/access/identity_provider_delete_response.py +++ b/src/cloudflare/types/access/identity_provider_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IdentityProviderDeleteResponse"] diff --git a/src/cloudflare/types/access/identity_provider_get_response.py b/src/cloudflare/types/access/identity_provider_get_response.py index c34714363ee..372b766405c 100644 --- a/src/cloudflare/types/access/identity_provider_get_response.py +++ b/src/cloudflare/types/access/identity_provider_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "IdentityProviderGetResponse", diff --git a/src/cloudflare/types/access/identity_provider_update_params.py b/src/cloudflare/types/access/identity_provider_update_params.py index f195a22b16f..f459b318334 100644 --- a/src/cloudflare/types/access/identity_provider_update_params.py +++ b/src/cloudflare/types/access/identity_provider_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +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 ...types import shared_params __all__ = [ "IdentityProviderUpdateParams", diff --git a/src/cloudflare/types/access/identity_provider_update_response.py b/src/cloudflare/types/access/identity_provider_update_response.py index 061ef0e672e..2966db99b6d 100644 --- a/src/cloudflare/types/access/identity_provider_update_response.py +++ b/src/cloudflare/types/access/identity_provider_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "IdentityProviderUpdateResponse", diff --git a/src/cloudflare/types/access/key_access_key_configuration_get_the_access_key_configuration_response.py b/src/cloudflare/types/access/key_access_key_configuration_get_the_access_key_configuration_response.py index f7e043b5f3a..de1fab2c64e 100644 --- a/src/cloudflare/types/access/key_access_key_configuration_get_the_access_key_configuration_response.py +++ b/src/cloudflare/types/access/key_access_key_configuration_get_the_access_key_configuration_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse"] diff --git a/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_params.py b/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_params.py index 28ed99fc165..d1e87618a2d 100644 --- a/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_params.py +++ b/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationParams"] diff --git a/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_response.py b/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_response.py index 2d0f2c4c069..2aece6df6fa 100644 --- a/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_response.py +++ b/src/cloudflare/types/access/key_access_key_configuration_update_the_access_key_configuration_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse"] diff --git a/src/cloudflare/types/access/keys/rotate_access_key_configuration_rotate_access_keys_response.py b/src/cloudflare/types/access/keys/rotate_access_key_configuration_rotate_access_keys_response.py index 962d8597cba..bab7f2e7cbd 100644 --- a/src/cloudflare/types/access/keys/rotate_access_key_configuration_rotate_access_keys_response.py +++ b/src/cloudflare/types/access/keys/rotate_access_key_configuration_rotate_access_keys_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["RotateAccessKeyConfigurationRotateAccessKeysResponse"] diff --git a/src/cloudflare/types/access/logs/access_request_access_authentication_logs_get_access_authentication_logs_response.py b/src/cloudflare/types/access/logs/access_request_access_authentication_logs_get_access_authentication_logs_response.py index e8b7774af7b..7b796baa43a 100644 --- a/src/cloudflare/types/access/logs/access_request_access_authentication_logs_get_access_authentication_logs_response.py +++ b/src/cloudflare/types/access/logs/access_request_access_authentication_logs_get_access_authentication_logs_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = [ "AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse", diff --git a/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_params.py b/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_params.py index 287b2be111b..204f067e1b1 100644 --- a/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_params.py +++ b/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationParams", "LoginDesign"] diff --git a/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_response.py b/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_response.py index 3b3c2e1b1d1..5f1ab2aee5d 100644 --- a/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_response.py +++ b/src/cloudflare/types/access/organization_zero_trust_organization_create_your_zero_trust_organization_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse", "CustomPages", "LoginDesign"] diff --git a/src/cloudflare/types/access/organization_zero_trust_organization_get_your_zero_trust_organization_response.py b/src/cloudflare/types/access/organization_zero_trust_organization_get_your_zero_trust_organization_response.py index d7ec04ae8d3..312bec0e109 100644 --- a/src/cloudflare/types/access/organization_zero_trust_organization_get_your_zero_trust_organization_response.py +++ b/src/cloudflare/types/access/organization_zero_trust_organization_get_your_zero_trust_organization_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse", "CustomPages", "LoginDesign"] diff --git a/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_params.py b/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_params.py index da875d9cc26..7bc9f7d664b 100644 --- a/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_params.py +++ b/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationParams", "CustomPages", "LoginDesign"] diff --git a/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_response.py b/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_response.py index bd38171b740..ff7774c865c 100644 --- a/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_response.py +++ b/src/cloudflare/types/access/organization_zero_trust_organization_update_your_zero_trust_organization_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse", "CustomPages", "LoginDesign"] diff --git a/src/cloudflare/types/access/organizations/__init__.py b/src/cloudflare/types/access/organizations/__init__.py index 77c20668438..bbdadc97703 100644 --- a/src/cloudflare/types/access/organizations/__init__.py +++ b/src/cloudflare/types/access/organizations/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params import ( - RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserParams as RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserParams, -) from .revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_response import ( RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse as RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse, ) +from .revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params import ( + RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserParams as RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserParams, +) diff --git a/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params.py b/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params.py index 53ba7255e85..164026b5004 100644 --- a/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params.py +++ b/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserParams"] diff --git a/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_response.py b/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_response.py index 9518ee2dde5..3762b6c303f 100644 --- a/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_response.py +++ b/src/cloudflare/types/access/organizations/revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_response.py @@ -2,6 +2,12 @@ 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 ....types import shared + __all__ = ["RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse"] RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse = Literal[True, False] diff --git a/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_params.py b/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_params.py index 80438292639..049af3c8b36 100644 --- a/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_params.py +++ b/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["SeatZeroTrustSeatsUpdateAUserSeatParams", "Body"] diff --git a/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_response.py b/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_response.py index 172a93d1905..e3e7d8c6d89 100644 --- a/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_response.py +++ b/src/cloudflare/types/access/seat_zero_trust_seats_update_a_user_seat_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["SeatZeroTrustSeatsUpdateAUserSeatResponse", "SeatZeroTrustSeatsUpdateAUserSeatResponseItem"] diff --git a/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_params.py b/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_params.py index c0113a1f4b8..0a26bc6eb09 100644 --- a/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_params.py +++ b/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ServiceTokenAccessServiceTokensCreateAServiceTokenParams"] diff --git a/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_response.py b/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_response.py index 14768cb0748..f726a03b8f1 100644 --- a/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_response.py +++ b/src/cloudflare/types/access/service_token_access_service_tokens_create_a_service_token_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ServiceTokenAccessServiceTokensCreateAServiceTokenResponse"] diff --git a/src/cloudflare/types/access/service_token_access_service_tokens_list_service_tokens_response.py b/src/cloudflare/types/access/service_token_access_service_tokens_list_service_tokens_response.py index 812f83727c1..8478d602125 100644 --- a/src/cloudflare/types/access/service_token_access_service_tokens_list_service_tokens_response.py +++ b/src/cloudflare/types/access/service_token_access_service_tokens_list_service_tokens_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = [ "ServiceTokenAccessServiceTokensListServiceTokensResponse", diff --git a/src/cloudflare/types/access/service_token_delete_response.py b/src/cloudflare/types/access/service_token_delete_response.py index 4112fa2f022..910f1f471f7 100644 --- a/src/cloudflare/types/access/service_token_delete_response.py +++ b/src/cloudflare/types/access/service_token_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ServiceTokenDeleteResponse"] diff --git a/src/cloudflare/types/access/service_token_update_params.py b/src/cloudflare/types/access/service_token_update_params.py index b3f27748a7c..9055f35868f 100644 --- a/src/cloudflare/types/access/service_token_update_params.py +++ b/src/cloudflare/types/access/service_token_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ServiceTokenUpdateParams"] diff --git a/src/cloudflare/types/access/service_token_update_response.py b/src/cloudflare/types/access/service_token_update_response.py index 7b38191a563..511146ce674 100644 --- a/src/cloudflare/types/access/service_token_update_response.py +++ b/src/cloudflare/types/access/service_token_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ServiceTokenUpdateResponse"] diff --git a/src/cloudflare/types/access/service_tokens/__init__.py b/src/cloudflare/types/access/service_tokens/__init__.py index c8a1cd6c567..f347f880967 100644 --- a/src/cloudflare/types/access/service_tokens/__init__.py +++ b/src/cloudflare/types/access/service_tokens/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .rotate_access_service_tokens_rotate_a_service_token_response import ( - RotateAccessServiceTokensRotateAServiceTokenResponse as RotateAccessServiceTokensRotateAServiceTokenResponse, -) from .refresh_access_service_tokens_refresh_a_service_token_response import ( RefreshAccessServiceTokensRefreshAServiceTokenResponse as RefreshAccessServiceTokensRefreshAServiceTokenResponse, ) +from .rotate_access_service_tokens_rotate_a_service_token_response import ( + RotateAccessServiceTokensRotateAServiceTokenResponse as RotateAccessServiceTokensRotateAServiceTokenResponse, +) diff --git a/src/cloudflare/types/access/service_tokens/refresh_access_service_tokens_refresh_a_service_token_response.py b/src/cloudflare/types/access/service_tokens/refresh_access_service_tokens_refresh_a_service_token_response.py index 7a3d13ae037..e71e04d427c 100644 --- a/src/cloudflare/types/access/service_tokens/refresh_access_service_tokens_refresh_a_service_token_response.py +++ b/src/cloudflare/types/access/service_tokens/refresh_access_service_tokens_refresh_a_service_token_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["RefreshAccessServiceTokensRefreshAServiceTokenResponse"] diff --git a/src/cloudflare/types/access/service_tokens/rotate_access_service_tokens_rotate_a_service_token_response.py b/src/cloudflare/types/access/service_tokens/rotate_access_service_tokens_rotate_a_service_token_response.py index 7df451c797e..e36591a2e71 100644 --- a/src/cloudflare/types/access/service_tokens/rotate_access_service_tokens_rotate_a_service_token_response.py +++ b/src/cloudflare/types/access/service_tokens/rotate_access_service_tokens_rotate_a_service_token_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["RotateAccessServiceTokensRotateAServiceTokenResponse"] diff --git a/src/cloudflare/types/access/tag_list_response.py b/src/cloudflare/types/access/tag_list_response.py index 3e89a694801..546a86f92d7 100644 --- a/src/cloudflare/types/access/tag_list_response.py +++ b/src/cloudflare/types/access/tag_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["TagListResponse", "TagListResponseItem"] diff --git a/src/cloudflare/types/access/user_list_response.py b/src/cloudflare/types/access/user_list_response.py index e247dd8a7bd..2efbf60a4a8 100644 --- a/src/cloudflare/types/access/user_list_response.py +++ b/src/cloudflare/types/access/user_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["UserListResponse", "UserListResponseItem"] diff --git a/src/cloudflare/types/access/users/__init__.py b/src/cloudflare/types/access/users/__init__.py index c91d6fdfd9b..7469c674e4d 100644 --- a/src/cloudflare/types/access/users/__init__.py +++ b/src/cloudflare/types/access/users/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .active_session_get_response import ActiveSessionGetResponse as ActiveSessionGetResponse from .active_session_list_response import ActiveSessionListResponse as ActiveSessionListResponse +from .active_session_get_response import ActiveSessionGetResponse as ActiveSessionGetResponse from .last_seen_identity_get_response import LastSeenIdentityGetResponse as LastSeenIdentityGetResponse from .failed_login_zero_trust_users_get_failed_logins_response import ( FailedLoginZeroTrustUsersGetFailedLoginsResponse as FailedLoginZeroTrustUsersGetFailedLoginsResponse, diff --git a/src/cloudflare/types/access/users/active_session_get_response.py b/src/cloudflare/types/access/users/active_session_get_response.py index f88e8a572cf..0ad1367d39c 100644 --- a/src/cloudflare/types/access/users/active_session_get_response.py +++ b/src/cloudflare/types/access/users/active_session_get_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ...._models import BaseModel +from ....types import shared __all__ = [ "ActiveSessionGetResponse", diff --git a/src/cloudflare/types/access/users/active_session_list_response.py b/src/cloudflare/types/access/users/active_session_list_response.py index af6346c26c1..d42922b6ed7 100644 --- a/src/cloudflare/types/access/users/active_session_list_response.py +++ b/src/cloudflare/types/access/users/active_session_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +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 ...._models import BaseModel +from ....types import shared __all__ = [ "ActiveSessionListResponse", diff --git a/src/cloudflare/types/access/users/failed_login_zero_trust_users_get_failed_logins_response.py b/src/cloudflare/types/access/users/failed_login_zero_trust_users_get_failed_logins_response.py index 46c759437b3..76abb6e9665 100644 --- a/src/cloudflare/types/access/users/failed_login_zero_trust_users_get_failed_logins_response.py +++ b/src/cloudflare/types/access/users/failed_login_zero_trust_users_get_failed_logins_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["FailedLoginZeroTrustUsersGetFailedLoginsResponse", "FailedLoginZeroTrustUsersGetFailedLoginsResponseItem"] diff --git a/src/cloudflare/types/access/users/last_seen_identity_get_response.py b/src/cloudflare/types/access/users/last_seen_identity_get_response.py index 638cfade098..0464aed6b00 100644 --- a/src/cloudflare/types/access/users/last_seen_identity_get_response.py +++ b/src/cloudflare/types/access/users/last_seen_identity_get_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ...._models import BaseModel +from ....types import shared __all__ = [ "LastSeenIdentityGetResponse", diff --git a/src/cloudflare/types/access_tag_create_params.py b/src/cloudflare/types/access_tag_create_params.py index 49ce55b3d4f..6548587be18 100644 --- a/src/cloudflare/types/access_tag_create_params.py +++ b/src/cloudflare/types/access_tag_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["AccessTagCreateParams"] diff --git a/src/cloudflare/types/access_tag_create_response.py b/src/cloudflare/types/access_tag_create_response.py index 7053a19ed7f..7b58e7eebec 100644 --- a/src/cloudflare/types/access_tag_create_response.py +++ b/src/cloudflare/types/access_tag_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["AccessTagCreateResponse"] diff --git a/src/cloudflare/types/access_tag_delete_response.py b/src/cloudflare/types/access_tag_delete_response.py index eff71e0df7c..60b7183dbbd 100644 --- a/src/cloudflare/types/access_tag_delete_response.py +++ b/src/cloudflare/types/access_tag_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["AccessTagDeleteResponse"] diff --git a/src/cloudflare/types/access_tag_get_response.py b/src/cloudflare/types/access_tag_get_response.py index 296fa91717a..8871853997e 100644 --- a/src/cloudflare/types/access_tag_get_response.py +++ b/src/cloudflare/types/access_tag_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["AccessTagGetResponse"] diff --git a/src/cloudflare/types/access_tag_update_params.py b/src/cloudflare/types/access_tag_update_params.py index 80df32a03e2..dd0e5d03454 100644 --- a/src/cloudflare/types/access_tag_update_params.py +++ b/src/cloudflare/types/access_tag_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["AccessTagUpdateParams"] diff --git a/src/cloudflare/types/access_tag_update_response.py b/src/cloudflare/types/access_tag_update_response.py index 5029bde7545..e338b8f6751 100644 --- a/src/cloudflare/types/access_tag_update_response.py +++ b/src/cloudflare/types/access_tag_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["AccessTagUpdateResponse"] diff --git a/src/cloudflare/types/account_get_response.py b/src/cloudflare/types/account_get_response.py index 28ed004d82b..c3b87edf83f 100644 --- a/src/cloudflare/types/account_get_response.py +++ b/src/cloudflare/types/account_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["AccountGetResponse"] diff --git a/src/cloudflare/types/account_list_params.py b/src/cloudflare/types/account_list_params.py index fad53b83733..eedd64cb1c9 100644 --- a/src/cloudflare/types/account_list_params.py +++ b/src/cloudflare/types/account_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["AccountListParams"] diff --git a/src/cloudflare/types/account_list_response.py b/src/cloudflare/types/account_list_response.py index 76a719fe2a8..0355d2436b9 100644 --- a/src/cloudflare/types/account_list_response.py +++ b/src/cloudflare/types/account_list_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = ["AccountListResponse"] diff --git a/src/cloudflare/types/account_member_create_params.py b/src/cloudflare/types/account_member_create_params.py index bf93385c429..b84319a3099 100644 --- a/src/cloudflare/types/account_member_create_params.py +++ b/src/cloudflare/types/account_member_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["AccountMemberCreateParams"] diff --git a/src/cloudflare/types/account_member_create_response.py b/src/cloudflare/types/account_member_create_response.py index 1fa7c6f8152..ccb9ed3c2e1 100644 --- a/src/cloudflare/types/account_member_create_response.py +++ b/src/cloudflare/types/account_member_create_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = [ "AccountMemberCreateResponse", diff --git a/src/cloudflare/types/account_member_delete_response.py b/src/cloudflare/types/account_member_delete_response.py index fa2aeb019ee..57aaddc4fe5 100644 --- a/src/cloudflare/types/account_member_delete_response.py +++ b/src/cloudflare/types/account_member_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from .._models import BaseModel +from ..types import shared __all__ = ["AccountMemberDeleteResponse"] diff --git a/src/cloudflare/types/account_member_get_response.py b/src/cloudflare/types/account_member_get_response.py index 1134f158d57..58b779f71e1 100644 --- a/src/cloudflare/types/account_member_get_response.py +++ b/src/cloudflare/types/account_member_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = [ "AccountMemberGetResponse", diff --git a/src/cloudflare/types/account_member_list_params.py b/src/cloudflare/types/account_member_list_params.py index cfd6ff7e96a..a9a646fa40c 100644 --- a/src/cloudflare/types/account_member_list_params.py +++ b/src/cloudflare/types/account_member_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["AccountMemberListParams"] diff --git a/src/cloudflare/types/account_member_list_response.py b/src/cloudflare/types/account_member_list_response.py index a7692fcde9d..d93a10a86a7 100644 --- a/src/cloudflare/types/account_member_list_response.py +++ b/src/cloudflare/types/account_member_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["AccountMemberListResponse", "AccountMemberListResponseItem", "AccountMemberListResponseItemRole"] diff --git a/src/cloudflare/types/account_member_update_params.py b/src/cloudflare/types/account_member_update_params.py index 899a019de61..8234bd4c193 100644 --- a/src/cloudflare/types/account_member_update_params.py +++ b/src/cloudflare/types/account_member_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ..types import shared_params __all__ = ["AccountMemberUpdateParams", "Role"] diff --git a/src/cloudflare/types/account_member_update_response.py b/src/cloudflare/types/account_member_update_response.py index bf8196596cd..4c81f611f7e 100644 --- a/src/cloudflare/types/account_member_update_response.py +++ b/src/cloudflare/types/account_member_update_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = [ "AccountMemberUpdateResponse", diff --git a/src/cloudflare/types/account_update_params.py b/src/cloudflare/types/account_update_params.py index f6c59f4811c..af02bd3b427 100644 --- a/src/cloudflare/types/account_update_params.py +++ b/src/cloudflare/types/account_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["AccountUpdateParams", "Settings"] diff --git a/src/cloudflare/types/account_update_response.py b/src/cloudflare/types/account_update_response.py index ee3306233dc..ed87051b19a 100644 --- a/src/cloudflare/types/account_update_response.py +++ b/src/cloudflare/types/account_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["AccountUpdateResponse"] diff --git a/src/cloudflare/types/acms/__init__.py b/src/cloudflare/types/acms/__init__.py index ccb40d031f0..53cd937de3f 100644 --- a/src/cloudflare/types/acms/__init__.py +++ b/src/cloudflare/types/acms/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .total_tls_update_response import TotalTLSUpdateResponse as TotalTLSUpdateResponse from .total_tls_get_response import TotalTLSGetResponse as TotalTLSGetResponse from .total_tls_update_params import TotalTLSUpdateParams as TotalTLSUpdateParams -from .total_tls_update_response import TotalTLSUpdateResponse as TotalTLSUpdateResponse diff --git a/src/cloudflare/types/acms/total_tls_get_response.py b/src/cloudflare/types/acms/total_tls_get_response.py index 956533c1c3e..04f6080a617 100644 --- a/src/cloudflare/types/acms/total_tls_get_response.py +++ b/src/cloudflare/types/acms/total_tls_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["TotalTLSGetResponse"] diff --git a/src/cloudflare/types/acms/total_tls_update_params.py b/src/cloudflare/types/acms/total_tls_update_params.py index 779b85fc7d1..61a174081fc 100644 --- a/src/cloudflare/types/acms/total_tls_update_params.py +++ b/src/cloudflare/types/acms/total_tls_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TotalTLSUpdateParams"] diff --git a/src/cloudflare/types/acms/total_tls_update_response.py b/src/cloudflare/types/acms/total_tls_update_response.py index 77efe919432..88aade15975 100644 --- a/src/cloudflare/types/acms/total_tls_update_response.py +++ b/src/cloudflare/types/acms/total_tls_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["TotalTLSUpdateResponse"] diff --git a/src/cloudflare/types/activation_check_put_zones_zone_id_activation_check_response.py b/src/cloudflare/types/activation_check_put_zones_zone_id_activation_check_response.py index c383fd70931..63333764e50 100644 --- a/src/cloudflare/types/activation_check_put_zones_zone_id_activation_check_response.py +++ b/src/cloudflare/types/activation_check_put_zones_zone_id_activation_check_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["ActivationCheckPutZonesZoneIDActivationCheckResponse"] diff --git a/src/cloudflare/types/addresses/__init__.py b/src/cloudflare/types/addresses/__init__.py index 961cc75c29c..7d39b13617c 100644 --- a/src/cloudflare/types/addresses/__init__.py +++ b/src/cloudflare/types/addresses/__init__.py @@ -2,29 +2,29 @@ from __future__ import annotations -from .prefix_get_response import PrefixGetResponse as PrefixGetResponse -from .prefix_update_params import PrefixUpdateParams as PrefixUpdateParams -from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse -from .prefix_update_response import PrefixUpdateResponse as PrefixUpdateResponse +from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse +from .address_map_update_response import AddressMapUpdateResponse as AddressMapUpdateResponse +from .address_map_list_response import AddressMapListResponse as AddressMapListResponse +from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse from .address_map_get_response import AddressMapGetResponse as AddressMapGetResponse from .address_map_create_params import AddressMapCreateParams as AddressMapCreateParams -from .address_map_list_response import AddressMapListResponse as AddressMapListResponse from .address_map_update_params import AddressMapUpdateParams as AddressMapUpdateParams -from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse -from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse -from .address_map_update_response import AddressMapUpdateResponse as AddressMapUpdateResponse -from .prefix_ip_address_management_prefixes_add_prefix_params import ( - PrefixIPAddressManagementPrefixesAddPrefixParams as PrefixIPAddressManagementPrefixesAddPrefixParams, +from .loa_document_ip_address_management_prefixes_upload_loa_document_response import ( + LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse as LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse, +) +from .loa_document_ip_address_management_prefixes_upload_loa_document_params import ( + LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentParams as LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentParams, ) +from .prefix_update_response import PrefixUpdateResponse as PrefixUpdateResponse +from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse +from .prefix_get_response import PrefixGetResponse as PrefixGetResponse from .prefix_ip_address_management_prefixes_add_prefix_response import ( PrefixIPAddressManagementPrefixesAddPrefixResponse as PrefixIPAddressManagementPrefixesAddPrefixResponse, ) from .prefix_ip_address_management_prefixes_list_prefixes_response import ( PrefixIPAddressManagementPrefixesListPrefixesResponse as PrefixIPAddressManagementPrefixesListPrefixesResponse, ) -from .loa_document_ip_address_management_prefixes_upload_loa_document_params import ( - LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentParams as LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentParams, -) -from .loa_document_ip_address_management_prefixes_upload_loa_document_response import ( - LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse as LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse, +from .prefix_update_params import PrefixUpdateParams as PrefixUpdateParams +from .prefix_ip_address_management_prefixes_add_prefix_params import ( + PrefixIPAddressManagementPrefixesAddPrefixParams as PrefixIPAddressManagementPrefixesAddPrefixParams, ) diff --git a/src/cloudflare/types/addresses/address_map_create_params.py b/src/cloudflare/types/addresses/address_map_create_params.py index fb52bf19c11..ddec9514f0a 100644 --- a/src/cloudflare/types/addresses/address_map_create_params.py +++ b/src/cloudflare/types/addresses/address_map_create_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Optional 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 ...types import shared_params + __all__ = ["AddressMapCreateParams"] diff --git a/src/cloudflare/types/addresses/address_map_create_response.py b/src/cloudflare/types/addresses/address_map_create_response.py index 35004d7d8c3..e10bff4f58a 100644 --- a/src/cloudflare/types/addresses/address_map_create_response.py +++ b/src/cloudflare/types/addresses/address_map_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = ["AddressMapCreateResponse", "IP", "Membership"] diff --git a/src/cloudflare/types/addresses/address_map_delete_response.py b/src/cloudflare/types/addresses/address_map_delete_response.py index 0636bcf136a..cbceab2d030 100644 --- a/src/cloudflare/types/addresses/address_map_delete_response.py +++ b/src/cloudflare/types/addresses/address_map_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["AddressMapDeleteResponse"] diff --git a/src/cloudflare/types/addresses/address_map_get_response.py b/src/cloudflare/types/addresses/address_map_get_response.py index 08fa517dde0..efa29b0bd15 100644 --- a/src/cloudflare/types/addresses/address_map_get_response.py +++ b/src/cloudflare/types/addresses/address_map_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = ["AddressMapGetResponse", "IP", "Membership"] diff --git a/src/cloudflare/types/addresses/address_map_list_response.py b/src/cloudflare/types/addresses/address_map_list_response.py index 93cc94f71ce..86cb875b63f 100644 --- a/src/cloudflare/types/addresses/address_map_list_response.py +++ b/src/cloudflare/types/addresses/address_map_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["AddressMapListResponse", "AddressMapListResponseItem"] diff --git a/src/cloudflare/types/addresses/address_map_update_params.py b/src/cloudflare/types/addresses/address_map_update_params.py index 01d7547a7fb..a3f3537417e 100644 --- a/src/cloudflare/types/addresses/address_map_update_params.py +++ b/src/cloudflare/types/addresses/address_map_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["AddressMapUpdateParams"] diff --git a/src/cloudflare/types/addresses/address_map_update_response.py b/src/cloudflare/types/addresses/address_map_update_response.py index ee0db87111b..2466268928f 100644 --- a/src/cloudflare/types/addresses/address_map_update_response.py +++ b/src/cloudflare/types/addresses/address_map_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["AddressMapUpdateResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/__init__.py b/src/cloudflare/types/addresses/address_maps/__init__.py index e88287ad583..394f34b6618 100644 --- a/src/cloudflare/types/addresses/address_maps/__init__.py +++ b/src/cloudflare/types/addresses/address_maps/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .ip_delete_response import IPDeleteResponse as IPDeleteResponse +from .account_update_response import AccountUpdateResponse as AccountUpdateResponse +from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse from .ip_update_response import IPUpdateResponse as IPUpdateResponse -from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse +from .ip_delete_response import IPDeleteResponse as IPDeleteResponse from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse -from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse -from .account_update_response import AccountUpdateResponse as AccountUpdateResponse +from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse diff --git a/src/cloudflare/types/addresses/address_maps/account_delete_response.py b/src/cloudflare/types/addresses/address_maps/account_delete_response.py index 8990853c72d..86c4c36fd16 100644 --- a/src/cloudflare/types/addresses/address_maps/account_delete_response.py +++ b/src/cloudflare/types/addresses/address_maps/account_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["AccountDeleteResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/account_update_response.py b/src/cloudflare/types/addresses/address_maps/account_update_response.py index 0645f70677b..903c9d99427 100644 --- a/src/cloudflare/types/addresses/address_maps/account_update_response.py +++ b/src/cloudflare/types/addresses/address_maps/account_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["AccountUpdateResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/ip_delete_response.py b/src/cloudflare/types/addresses/address_maps/ip_delete_response.py index 90ada06041b..2d0da0f0992 100644 --- a/src/cloudflare/types/addresses/address_maps/ip_delete_response.py +++ b/src/cloudflare/types/addresses/address_maps/ip_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["IPDeleteResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/ip_update_response.py b/src/cloudflare/types/addresses/address_maps/ip_update_response.py index b626d7d9c0a..e907e8a794e 100644 --- a/src/cloudflare/types/addresses/address_maps/ip_update_response.py +++ b/src/cloudflare/types/addresses/address_maps/ip_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["IPUpdateResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/zone_delete_response.py b/src/cloudflare/types/addresses/address_maps/zone_delete_response.py index b2045a6bbd0..4a90b614cc7 100644 --- a/src/cloudflare/types/addresses/address_maps/zone_delete_response.py +++ b/src/cloudflare/types/addresses/address_maps/zone_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["ZoneDeleteResponse"] diff --git a/src/cloudflare/types/addresses/address_maps/zone_update_response.py b/src/cloudflare/types/addresses/address_maps/zone_update_response.py index 5e7a1368c03..c56ebc47f92 100644 --- a/src/cloudflare/types/addresses/address_maps/zone_update_response.py +++ b/src/cloudflare/types/addresses/address_maps/zone_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["ZoneUpdateResponse"] diff --git a/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_params.py b/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_params.py index 88ee02221f2..4d3e9ffb698 100644 --- a/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_params.py +++ b/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentParams"] diff --git a/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_response.py b/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_response.py index f3db693ebaa..1577cee7b23 100644 --- a/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_response.py +++ b/src/cloudflare/types/addresses/loa_document_ip_address_management_prefixes_upload_loa_document_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse"] diff --git a/src/cloudflare/types/addresses/prefix_delete_response.py b/src/cloudflare/types/addresses/prefix_delete_response.py index a43a7c3f600..ab335d0f6b5 100644 --- a/src/cloudflare/types/addresses/prefix_delete_response.py +++ b/src/cloudflare/types/addresses/prefix_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["PrefixDeleteResponse"] diff --git a/src/cloudflare/types/addresses/prefix_get_response.py b/src/cloudflare/types/addresses/prefix_get_response.py index d00d16988f8..bf49d436c96 100644 --- a/src/cloudflare/types/addresses/prefix_get_response.py +++ b/src/cloudflare/types/addresses/prefix_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["PrefixGetResponse"] diff --git a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_params.py b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_params.py index 9793123e234..27a932d44c6 100644 --- a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_params.py +++ b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["PrefixIPAddressManagementPrefixesAddPrefixParams"] diff --git a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_response.py b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_response.py index 6e37091bc07..b9230298400 100644 --- a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_response.py +++ b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_add_prefix_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["PrefixIPAddressManagementPrefixesAddPrefixResponse"] diff --git a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_list_prefixes_response.py b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_list_prefixes_response.py index 03e81a5575c..90b4a5beb4a 100644 --- a/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_list_prefixes_response.py +++ b/src/cloudflare/types/addresses/prefix_ip_address_management_prefixes_list_prefixes_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = [ "PrefixIPAddressManagementPrefixesListPrefixesResponse", diff --git a/src/cloudflare/types/addresses/prefix_update_params.py b/src/cloudflare/types/addresses/prefix_update_params.py index a9094aa4cf1..5df0dc9b7d9 100644 --- a/src/cloudflare/types/addresses/prefix_update_params.py +++ b/src/cloudflare/types/addresses/prefix_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PrefixUpdateParams"] diff --git a/src/cloudflare/types/addresses/prefix_update_response.py b/src/cloudflare/types/addresses/prefix_update_response.py index 5e044759169..9cb7562dedb 100644 --- a/src/cloudflare/types/addresses/prefix_update_response.py +++ b/src/cloudflare/types/addresses/prefix_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["PrefixUpdateResponse"] diff --git a/src/cloudflare/types/addresses/prefixes/__init__.py b/src/cloudflare/types/addresses/prefixes/__init__.py index 5edfda676e6..6cc62cb5933 100644 --- a/src/cloudflare/types/addresses/prefixes/__init__.py +++ b/src/cloudflare/types/addresses/prefixes/__init__.py @@ -3,12 +3,12 @@ from __future__ import annotations from .delegation_delete_response import DelegationDeleteResponse as DelegationDeleteResponse -from .delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params import ( - DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationParams as DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationParams, +from .delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response import ( + DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse as DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, ) from .delegation_ip_address_management_prefix_delegation_list_prefix_delegations_response import ( DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse as DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, ) -from .delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response import ( - DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse as DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, +from .delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params import ( + DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationParams as DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationParams, ) diff --git a/src/cloudflare/types/addresses/prefixes/bgps/__init__.py b/src/cloudflare/types/addresses/prefixes/bgps/__init__.py index 7c42dda37fc..2464661f0f2 100644 --- a/src/cloudflare/types/addresses/prefixes/bgps/__init__.py +++ b/src/cloudflare/types/addresses/prefixes/bgps/__init__.py @@ -5,9 +5,9 @@ from .status_ip_address_management_dynamic_advertisement_get_advertisement_status_response import ( StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse as StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, ) -from .status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params import ( - StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusParams as StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusParams, -) from .status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_response import ( StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse as StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, ) +from .status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params import ( + StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusParams as StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusParams, +) diff --git a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_get_advertisement_status_response.py b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_get_advertisement_status_response.py index 553ea9d3a83..c6af239bf91 100644 --- a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_get_advertisement_status_response.py +++ b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_get_advertisement_status_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 .....types import shared __all__ = ["StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse"] diff --git a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params.py b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params.py index e573e68ccc4..9f070beb807 100644 --- a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params.py +++ b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusParams"] diff --git a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_response.py b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_response.py index 32c1e0f2555..bd8203918e1 100644 --- a/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_response.py +++ b/src/cloudflare/types/addresses/prefixes/bgps/status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 .....types import shared __all__ = ["StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse"] diff --git a/src/cloudflare/types/addresses/prefixes/delegation_delete_response.py b/src/cloudflare/types/addresses/prefixes/delegation_delete_response.py index 5c7fc5b5596..89738d5a955 100644 --- a/src/cloudflare/types/addresses/prefixes/delegation_delete_response.py +++ b/src/cloudflare/types/addresses/prefixes/delegation_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["DelegationDeleteResponse"] diff --git a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params.py b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params.py index df1a67a1fe7..1cc418cd220 100644 --- a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params.py +++ b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationParams"] diff --git a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response.py b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response.py index 4a60271f2d2..4d94d6473e2 100644 --- a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response.py +++ b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_create_prefix_delegation_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse"] diff --git a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_list_prefix_delegations_response.py b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_list_prefix_delegations_response.py index f9b42aa81b1..73e031b04c2 100644 --- a/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_list_prefix_delegations_response.py +++ b/src/cloudflare/types/addresses/prefixes/delegation_ip_address_management_prefix_delegation_list_prefix_delegations_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = [ "DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse", diff --git a/src/cloudflare/types/addressing/prefixes/__init__.py b/src/cloudflare/types/addressing/prefixes/__init__.py index e95349b9237..74f8132ba14 100644 --- a/src/cloudflare/types/addressing/prefixes/__init__.py +++ b/src/cloudflare/types/addressing/prefixes/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .binding_get_response import BindingGetResponse as BindingGetResponse -from .binding_create_params import BindingCreateParams as BindingCreateParams -from .binding_list_response import BindingListResponse as BindingListResponse +from .bgp_prefix_update_response import BGPPrefixUpdateResponse as BGPPrefixUpdateResponse +from .bgp_prefix_list_response import BGPPrefixListResponse as BGPPrefixListResponse from .bgp_prefix_get_response import BGPPrefixGetResponse as BGPPrefixGetResponse +from .bgp_prefix_update_params import BGPPrefixUpdateParams as BGPPrefixUpdateParams from .binding_create_response import BindingCreateResponse as BindingCreateResponse +from .binding_list_response import BindingListResponse as BindingListResponse from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse -from .bgp_prefix_list_response import BGPPrefixListResponse as BGPPrefixListResponse -from .bgp_prefix_update_params import BGPPrefixUpdateParams as BGPPrefixUpdateParams -from .bgp_prefix_update_response import BGPPrefixUpdateResponse as BGPPrefixUpdateResponse +from .binding_get_response import BindingGetResponse as BindingGetResponse +from .binding_create_params import BindingCreateParams as BindingCreateParams diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_get_response.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_get_response.py index e37d7c8dcdf..772f58bb8e5 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_get_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["BGPPrefixGetResponse", "BGPSignalOpts", "OnDemand"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_list_response.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_list_response.py index 49f0e4b00b4..08826f885ad 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_list_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = [ "BGPPrefixListResponse", diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_params.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_params.py index 5fbb5c395cf..583983038f5 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_params.py +++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["BGPPrefixUpdateParams", "OnDemand"] diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_response.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_response.py index 02f3291ae41..ad72867c03b 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_response.py +++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["BGPPrefixUpdateResponse", "BGPSignalOpts", "OnDemand"] diff --git a/src/cloudflare/types/addressing/prefixes/binding_create_params.py b/src/cloudflare/types/addressing/prefixes/binding_create_params.py index 851256296ca..a0332d94f92 100644 --- a/src/cloudflare/types/addressing/prefixes/binding_create_params.py +++ b/src/cloudflare/types/addressing/prefixes/binding_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["BindingCreateParams"] diff --git a/src/cloudflare/types/addressing/prefixes/binding_create_response.py b/src/cloudflare/types/addressing/prefixes/binding_create_response.py index d48cea87581..c925bc561f4 100644 --- a/src/cloudflare/types/addressing/prefixes/binding_create_response.py +++ b/src/cloudflare/types/addressing/prefixes/binding_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ....types import shared __all__ = ["BindingCreateResponse", "Provisioning"] diff --git a/src/cloudflare/types/addressing/prefixes/binding_delete_response.py b/src/cloudflare/types/addressing/prefixes/binding_delete_response.py index 3e32a76f832..4ff0fef7dfa 100644 --- a/src/cloudflare/types/addressing/prefixes/binding_delete_response.py +++ b/src/cloudflare/types/addressing/prefixes/binding_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["BindingDeleteResponse"] diff --git a/src/cloudflare/types/addressing/prefixes/binding_get_response.py b/src/cloudflare/types/addressing/prefixes/binding_get_response.py index 32438827e3e..481d9f6ea23 100644 --- a/src/cloudflare/types/addressing/prefixes/binding_get_response.py +++ b/src/cloudflare/types/addressing/prefixes/binding_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ....types import shared __all__ = ["BindingGetResponse", "Provisioning"] diff --git a/src/cloudflare/types/addressing/prefixes/binding_list_response.py b/src/cloudflare/types/addressing/prefixes/binding_list_response.py index df5ed3f1d05..2591dc201d9 100644 --- a/src/cloudflare/types/addressing/prefixes/binding_list_response.py +++ b/src/cloudflare/types/addressing/prefixes/binding_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["BindingListResponse", "BindingListResponseItem", "BindingListResponseItemProvisioning"] diff --git a/src/cloudflare/types/addressing/service_list_response.py b/src/cloudflare/types/addressing/service_list_response.py index 1a313302b14..a17e6cd43b1 100644 --- a/src/cloudflare/types/addressing/service_list_response.py +++ b/src/cloudflare/types/addressing/service_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["ServiceListResponse", "ServiceListResponseItem"] diff --git a/src/cloudflare/types/ai_run_params.py b/src/cloudflare/types/ai_run_params.py index a4380f15f31..786de48cddd 100644 --- a/src/cloudflare/types/ai_run_params.py +++ b/src/cloudflare/types/ai_run_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["AIRunParams"] diff --git a/src/cloudflare/types/alerting/v3/available_alert_list_response.py b/src/cloudflare/types/alerting/v3/available_alert_list_response.py index 20976fae42d..ce86523b78e 100644 --- a/src/cloudflare/types/alerting/v3/available_alert_list_response.py +++ b/src/cloudflare/types/alerting/v3/available_alert_list_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["AvailableAlertListResponse"] diff --git a/src/cloudflare/types/alerting/v3/destinations/__init__.py b/src/cloudflare/types/alerting/v3/destinations/__init__.py index 9a0d1a93d18..dffce09a1ac 100644 --- a/src/cloudflare/types/alerting/v3/destinations/__init__.py +++ b/src/cloudflare/types/alerting/v3/destinations/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations -from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse -from .pagerduty_delete_all_response import PagerdutyDeleteAllResponse as PagerdutyDeleteAllResponse from .pagerduty_create_token_response import PagerdutyCreateTokenResponse as PagerdutyCreateTokenResponse +from .pagerduty_delete_all_response import PagerdutyDeleteAllResponse as PagerdutyDeleteAllResponse +from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse diff --git a/src/cloudflare/types/alerting/v3/destinations/pagerduty_create_token_response.py b/src/cloudflare/types/alerting/v3/destinations/pagerduty_create_token_response.py index d420bcc0878..e41e9a8246c 100644 --- a/src/cloudflare/types/alerting/v3/destinations/pagerduty_create_token_response.py +++ b/src/cloudflare/types/alerting/v3/destinations/pagerduty_create_token_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["PagerdutyCreateTokenResponse"] diff --git a/src/cloudflare/types/alerting/v3/destinations/pagerduty_delete_all_response.py b/src/cloudflare/types/alerting/v3/destinations/pagerduty_delete_all_response.py index 00671896470..f29598379cf 100644 --- a/src/cloudflare/types/alerting/v3/destinations/pagerduty_delete_all_response.py +++ b/src/cloudflare/types/alerting/v3/destinations/pagerduty_delete_all_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["PagerdutyDeleteAllResponse"] diff --git a/src/cloudflare/types/alerting/v3/destinations/pagerduty_link_response.py b/src/cloudflare/types/alerting/v3/destinations/pagerduty_link_response.py index 4b3b63d703a..2888281f3af 100644 --- a/src/cloudflare/types/alerting/v3/destinations/pagerduty_link_response.py +++ b/src/cloudflare/types/alerting/v3/destinations/pagerduty_link_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["PagerdutyLinkResponse"] diff --git a/src/cloudflare/types/alerting/v3s/__init__.py b/src/cloudflare/types/alerting/v3s/__init__.py index 7418381a558..a20fad387b3 100644 --- a/src/cloudflare/types/alerting/v3s/__init__.py +++ b/src/cloudflare/types/alerting/v3s/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .policy_get_response import PolicyGetResponse as PolicyGetResponse -from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse -from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .history_notification_history_list_history_params import ( - HistoryNotificationHistoryListHistoryParams as HistoryNotificationHistoryListHistoryParams, -) from .history_notification_history_list_history_response import ( HistoryNotificationHistoryListHistoryResponse as HistoryNotificationHistoryListHistoryResponse, ) -from .policy_notification_policies_create_a_notification_policy_params import ( - PolicyNotificationPoliciesCreateANotificationPolicyParams as PolicyNotificationPoliciesCreateANotificationPolicyParams, +from .history_notification_history_list_history_params import ( + HistoryNotificationHistoryListHistoryParams as HistoryNotificationHistoryListHistoryParams, +) +from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .policy_get_response import PolicyGetResponse as PolicyGetResponse +from .policy_notification_policies_create_a_notification_policy_response import ( + PolicyNotificationPoliciesCreateANotificationPolicyResponse as PolicyNotificationPoliciesCreateANotificationPolicyResponse, ) from .policy_notification_policies_list_notification_policies_response import ( PolicyNotificationPoliciesListNotificationPoliciesResponse as PolicyNotificationPoliciesListNotificationPoliciesResponse, ) -from .policy_notification_policies_create_a_notification_policy_response import ( - PolicyNotificationPoliciesCreateANotificationPolicyResponse as PolicyNotificationPoliciesCreateANotificationPolicyResponse, +from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams +from .policy_notification_policies_create_a_notification_policy_params import ( + PolicyNotificationPoliciesCreateANotificationPolicyParams as PolicyNotificationPoliciesCreateANotificationPolicyParams, ) diff --git a/src/cloudflare/types/alerting/v3s/destinations/__init__.py b/src/cloudflare/types/alerting/v3s/destinations/__init__.py index 3e0c95ced20..c3ea8b19a1c 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/__init__.py +++ b/src/cloudflare/types/alerting/v3s/destinations/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .webhook_get_response import WebhookGetResponse as WebhookGetResponse -from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams -from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse -from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse -from .webhook_notification_webhooks_list_webhooks_response import ( - WebhookNotificationWebhooksListWebhooksResponse as WebhookNotificationWebhooksListWebhooksResponse, +from .eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response import ( + EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse as EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, ) -from .webhook_notification_webhooks_create_a_webhook_params import ( - WebhookNotificationWebhooksCreateAWebhookParams as WebhookNotificationWebhooksCreateAWebhookParams, +from .pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response import ( + PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse as PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, ) +from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse +from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse +from .webhook_get_response import WebhookGetResponse as WebhookGetResponse from .webhook_notification_webhooks_create_a_webhook_response import ( WebhookNotificationWebhooksCreateAWebhookResponse as WebhookNotificationWebhooksCreateAWebhookResponse, ) -from .pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response import ( - PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse as PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, +from .webhook_notification_webhooks_list_webhooks_response import ( + WebhookNotificationWebhooksListWebhooksResponse as WebhookNotificationWebhooksListWebhooksResponse, ) -from .eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response import ( - EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse as EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, +from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams +from .webhook_notification_webhooks_create_a_webhook_params import ( + WebhookNotificationWebhooksCreateAWebhookParams as WebhookNotificationWebhooksCreateAWebhookParams, ) diff --git a/src/cloudflare/types/alerting/v3s/destinations/eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response.py b/src/cloudflare/types/alerting/v3s/destinations/eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response.py index 0d3376136a7..92784e7e28c 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/eligible_notification_mechanism_eligibility_get_delivery_mechanism_eligibility_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response.py b/src/cloudflare/types/alerting/v3s/destinations/pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response.py index b9c511964f5..b79fe381962 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/pagerduty_notification_destinations_with_pager_duty_list_pager_duty_services_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = [ "PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse", diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_delete_response.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_delete_response.py index 03e80694985..c55662a6054 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_delete_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["WebhookDeleteResponse"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_get_response.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_get_response.py index 36a3d6a9e3d..d98617fff2f 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_get_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 .....types import shared __all__ = ["WebhookGetResponse"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_params.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_params.py index 6df087ef689..06faf1775b0 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_params.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["WebhookNotificationWebhooksCreateAWebhookParams"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_response.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_response.py index 4d861edcc54..b1e301ea7a0 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_create_a_webhook_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["WebhookNotificationWebhooksCreateAWebhookResponse"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_list_webhooks_response.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_list_webhooks_response.py index 8faff8bc4b8..a1515a1d0a0 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_list_webhooks_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_notification_webhooks_list_webhooks_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 .....types import shared __all__ = ["WebhookNotificationWebhooksListWebhooksResponse", "WebhookNotificationWebhooksListWebhooksResponseItem"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_update_params.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_update_params.py index a9d9cbfcc87..f49cb134fa0 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_update_params.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["WebhookUpdateParams"] diff --git a/src/cloudflare/types/alerting/v3s/destinations/webhook_update_response.py b/src/cloudflare/types/alerting/v3s/destinations/webhook_update_response.py index b6afcf1b24c..94d3db0b550 100644 --- a/src/cloudflare/types/alerting/v3s/destinations/webhook_update_response.py +++ b/src/cloudflare/types/alerting/v3s/destinations/webhook_update_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["WebhookUpdateResponse"] diff --git a/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_params.py b/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_params.py index de70b472f6e..6a99d663c76 100644 --- a/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_params.py +++ b/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["HistoryNotificationHistoryListHistoryParams"] diff --git a/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_response.py b/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_response.py index 3adee2b3756..047584df3de 100644 --- a/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_response.py +++ b/src/cloudflare/types/alerting/v3s/history_notification_history_list_history_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ....types import shared __all__ = ["HistoryNotificationHistoryListHistoryResponse", "HistoryNotificationHistoryListHistoryResponseItem"] diff --git a/src/cloudflare/types/alerting/v3s/policy_delete_response.py b/src/cloudflare/types/alerting/v3s/policy_delete_response.py index 73076cf7a3f..09eff128cb9 100644 --- a/src/cloudflare/types/alerting/v3s/policy_delete_response.py +++ b/src/cloudflare/types/alerting/v3s/policy_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["PolicyDeleteResponse"] diff --git a/src/cloudflare/types/alerting/v3s/policy_get_response.py b/src/cloudflare/types/alerting/v3s/policy_get_response.py index a6fac2ec729..d98fc0f9345 100644 --- a/src/cloudflare/types/alerting/v3s/policy_get_response.py +++ b/src/cloudflare/types/alerting/v3s/policy_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union, Dict + 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 +from ....types import shared __all__ = ["PolicyGetResponse", "Filters", "Mechanisms"] diff --git a/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_params.py b/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_params.py index b930ddf8d9e..96eb0918d25 100644 --- a/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_params.py +++ b/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Literal, Required + +from typing import Dict, Iterable, Union, 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 ....types import shared_params __all__ = ["PolicyNotificationPoliciesCreateANotificationPolicyParams", "Mechanisms", "Filters"] diff --git a/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_response.py b/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_response.py index c416a538be9..962a06a3cb6 100644 --- a/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_response.py +++ b/src/cloudflare/types/alerting/v3s/policy_notification_policies_create_a_notification_policy_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["PolicyNotificationPoliciesCreateANotificationPolicyResponse"] diff --git a/src/cloudflare/types/alerting/v3s/policy_notification_policies_list_notification_policies_response.py b/src/cloudflare/types/alerting/v3s/policy_notification_policies_list_notification_policies_response.py index 4e020907419..a3676434905 100644 --- a/src/cloudflare/types/alerting/v3s/policy_notification_policies_list_notification_policies_response.py +++ b/src/cloudflare/types/alerting/v3s/policy_notification_policies_list_notification_policies_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union, Dict + 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 +from ....types import shared __all__ = [ "PolicyNotificationPoliciesListNotificationPoliciesResponse", diff --git a/src/cloudflare/types/alerting/v3s/policy_update_params.py b/src/cloudflare/types/alerting/v3s/policy_update_params.py index f628760aeb9..318fae53dfd 100644 --- a/src/cloudflare/types/alerting/v3s/policy_update_params.py +++ b/src/cloudflare/types/alerting/v3s/policy_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Dict, Iterable, List, 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 ....types import shared_params __all__ = ["PolicyUpdateParams", "Filters", "Mechanisms"] diff --git a/src/cloudflare/types/alerting/v3s/policy_update_response.py b/src/cloudflare/types/alerting/v3s/policy_update_response.py index 9ec71d29edd..0de4997823e 100644 --- a/src/cloudflare/types/alerting/v3s/policy_update_response.py +++ b/src/cloudflare/types/alerting/v3s/policy_update_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/analytics/__init__.py b/src/cloudflare/types/analytics/__init__.py index 63c7ec6de55..8a5e4f9e2b7 100644 --- a/src/cloudflare/types/analytics/__init__.py +++ b/src/cloudflare/types/analytics/__init__.py @@ -2,21 +2,21 @@ from __future__ import annotations -from .dashboard_zone_analytics_deprecated_get_dashboard_params import ( - DashboardZoneAnalyticsDeprecatedGetDashboardParams as DashboardZoneAnalyticsDeprecatedGetDashboardParams, +from .colo_zone_analytics_deprecated_get_analytics_by_co_locations_response import ( + ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse as ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse, +) +from .colo_zone_analytics_deprecated_get_analytics_by_co_locations_params import ( + ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsParams as ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsParams, ) from .dashboard_zone_analytics_deprecated_get_dashboard_response import ( DashboardZoneAnalyticsDeprecatedGetDashboardResponse as DashboardZoneAnalyticsDeprecatedGetDashboardResponse, ) -from .latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params import ( - LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneParams as LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneParams, +from .dashboard_zone_analytics_deprecated_get_dashboard_params import ( + DashboardZoneAnalyticsDeprecatedGetDashboardParams as DashboardZoneAnalyticsDeprecatedGetDashboardParams, ) from .latency_argo_analytics_for_zone_argo_analytics_for_a_zone_response import ( LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse as LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse, ) -from .colo_zone_analytics_deprecated_get_analytics_by_co_locations_params import ( - ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsParams as ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsParams, -) -from .colo_zone_analytics_deprecated_get_analytics_by_co_locations_response import ( - ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse as ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse, +from .latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params import ( + LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneParams as LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneParams, ) diff --git a/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_params.py b/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_params.py index 92733a42888..abf5ae71bcd 100644 --- a/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_params.py +++ b/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict +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 ...types import shared_params + __all__ = ["ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsParams"] diff --git a/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_response.py b/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_response.py index 34b4f59d2e8..10943aeb090 100644 --- a/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_response.py +++ b/src/cloudflare/types/analytics/colo_zone_analytics_deprecated_get_analytics_by_co_locations_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, Dict, Union, 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 ...types import shared __all__ = [ "ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse", diff --git a/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_params.py b/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_params.py index 44a266a659e..0004a6c62a8 100644 --- a/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_params.py +++ b/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Union from typing_extensions import TypedDict +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 ...types import shared_params + __all__ = ["DashboardZoneAnalyticsDeprecatedGetDashboardParams"] diff --git a/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_response.py b/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_response.py index c69be638563..58b0c39f780 100644 --- a/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_response.py +++ b/src/cloudflare/types/analytics/dashboard_zone_analytics_deprecated_get_dashboard_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, Dict, Union, 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 ...types import shared __all__ = [ "DashboardZoneAnalyticsDeprecatedGetDashboardResponse", diff --git a/src/cloudflare/types/analytics/latencies/colo_argo_analytics_for_geolocation_argo_analytics_for_a_zone_at_different_po_ps_response.py b/src/cloudflare/types/analytics/latencies/colo_argo_analytics_for_geolocation_argo_analytics_for_a_zone_at_different_po_ps_response.py index dffbfe0d347..1f778eb1062 100644 --- a/src/cloudflare/types/analytics/latencies/colo_argo_analytics_for_geolocation_argo_analytics_for_a_zone_at_different_po_ps_response.py +++ b/src/cloudflare/types/analytics/latencies/colo_argo_analytics_for_geolocation_argo_analytics_for_a_zone_at_different_po_ps_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ....types import shared __all__ = ["ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse"] diff --git a/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params.py b/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params.py index 0f83d091c23..6d5c71852ec 100644 --- a/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params.py +++ b/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneParams"] diff --git a/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_response.py b/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_response.py index cd3e6f23eda..de25eaa8ab2 100644 --- a/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_response.py +++ b/src/cloudflare/types/analytics/latency_argo_analytics_for_zone_argo_analytics_for_a_zone_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse"] diff --git a/src/cloudflare/types/argo/__init__.py b/src/cloudflare/types/argo/__init__.py index 913290bfefa..3c8e4639223 100644 --- a/src/cloudflare/types/argo/__init__.py +++ b/src/cloudflare/types/argo/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations +from .smart_routing_update_response import SmartRoutingUpdateResponse as SmartRoutingUpdateResponse from .smart_routing_get_response import SmartRoutingGetResponse as SmartRoutingGetResponse from .smart_routing_update_params import SmartRoutingUpdateParams as SmartRoutingUpdateParams -from .smart_routing_update_response import SmartRoutingUpdateResponse as SmartRoutingUpdateResponse from .tiered_caching_tiered_caching_get_tiered_caching_setting_response import ( TieredCachingTieredCachingGetTieredCachingSettingResponse as TieredCachingTieredCachingGetTieredCachingSettingResponse, ) -from .tiered_caching_tiered_caching_patch_tiered_caching_setting_params import ( - TieredCachingTieredCachingPatchTieredCachingSettingParams as TieredCachingTieredCachingPatchTieredCachingSettingParams, -) from .tiered_caching_tiered_caching_patch_tiered_caching_setting_response import ( TieredCachingTieredCachingPatchTieredCachingSettingResponse as TieredCachingTieredCachingPatchTieredCachingSettingResponse, ) +from .tiered_caching_tiered_caching_patch_tiered_caching_setting_params import ( + TieredCachingTieredCachingPatchTieredCachingSettingParams as TieredCachingTieredCachingPatchTieredCachingSettingParams, +) diff --git a/src/cloudflare/types/argo/smart_routing_get_response.py b/src/cloudflare/types/argo/smart_routing_get_response.py index 405500d39c7..5c62c800b82 100644 --- a/src/cloudflare/types/argo/smart_routing_get_response.py +++ b/src/cloudflare/types/argo/smart_routing_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["SmartRoutingGetResponse"] diff --git a/src/cloudflare/types/argo/smart_routing_update_params.py b/src/cloudflare/types/argo/smart_routing_update_params.py index 55b6db9512e..da353bfa450 100644 --- a/src/cloudflare/types/argo/smart_routing_update_params.py +++ b/src/cloudflare/types/argo/smart_routing_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["SmartRoutingUpdateParams"] diff --git a/src/cloudflare/types/argo/smart_routing_update_response.py b/src/cloudflare/types/argo/smart_routing_update_response.py index d5d214ca7ed..365bbb3a7e7 100644 --- a/src/cloudflare/types/argo/smart_routing_update_response.py +++ b/src/cloudflare/types/argo/smart_routing_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["SmartRoutingUpdateResponse"] diff --git a/src/cloudflare/types/argo/tiered_caching_tiered_caching_get_tiered_caching_setting_response.py b/src/cloudflare/types/argo/tiered_caching_tiered_caching_get_tiered_caching_setting_response.py index 6c1b391ddf4..2da30d297e1 100644 --- a/src/cloudflare/types/argo/tiered_caching_tiered_caching_get_tiered_caching_setting_response.py +++ b/src/cloudflare/types/argo/tiered_caching_tiered_caching_get_tiered_caching_setting_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TieredCachingTieredCachingGetTieredCachingSettingResponse"] diff --git a/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_params.py b/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_params.py index 959b07c9de2..c517e7c6e3b 100644 --- a/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_params.py +++ b/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TieredCachingTieredCachingPatchTieredCachingSettingParams"] diff --git a/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_response.py b/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_response.py index 664cc430320..696b8b395c4 100644 --- a/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_response.py +++ b/src/cloudflare/types/argo/tiered_caching_tiered_caching_patch_tiered_caching_setting_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TieredCachingTieredCachingPatchTieredCachingSettingResponse"] diff --git a/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_params.py b/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_params.py index 16fdc480db1..bb9f47710df 100644 --- a/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_params.py +++ b/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["AuditLogAuditLogsGetAccountAuditLogsParams", "Action", "Actor", "Zone"] diff --git a/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_response.py b/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_response.py index f92ade37f1e..3b1f6aeb210 100644 --- a/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_response.py +++ b/src/cloudflare/types/audit_log_audit_logs_get_account_audit_logs_response.py @@ -1,26 +1,18 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared -__all__ = [ - "AuditLogAuditLogsGetAccountAuditLogsResponse", - "UnionMember0", - "UnionMember0Result", - "UnionMember0ResultAction", - "UnionMember0ResultActor", - "UnionMember0ResultOwner", - "UnionMember0ResultResource", - "Q6tjyqK4APIResponseCommon", - "Q6tjyqK4APIResponseCommonError", - "Q6tjyqK4APIResponseCommonMessage", -] - +__all__ = ["AuditLogAuditLogsGetAccountAuditLogsResponse", "UnionMember0", "UnionMember0Result", "UnionMember0ResultAction", "UnionMember0ResultActor", "UnionMember0ResultOwner", "UnionMember0ResultResource", "_9cy76Al9APIResponseCommon", "9cy76Al9APIResponseCommonError", "9cy76Al9APIResponseCommonMessage"] class UnionMember0ResultAction(BaseModel): result: Optional[bool] = None @@ -29,7 +21,6 @@ class UnionMember0ResultAction(BaseModel): type: Optional[str] = None """A short string that describes the action that was performed.""" - class UnionMember0ResultActor(BaseModel): id: Optional[str] = None """The ID of the actor that performed the action. @@ -46,12 +37,10 @@ class UnionMember0ResultActor(BaseModel): type: Optional[Literal["user", "admin", "Cloudflare"]] = None """The type of actor, whether a User, Cloudflare Admin, or an Automated System.""" - class UnionMember0ResultOwner(BaseModel): id: Optional[str] = None """Identifier""" - class UnionMember0ResultResource(BaseModel): id: Optional[str] = None """An identifier for the resource that was affected by the action.""" @@ -59,7 +48,6 @@ class UnionMember0ResultResource(BaseModel): type: Optional[str] = None """A short string that describes the resource that was affected by the action.""" - class UnionMember0Result(BaseModel): id: Optional[str] = None """A string that uniquely identifies the audit log.""" @@ -77,10 +65,10 @@ class UnionMember0Result(BaseModel): This is a flexible value and varies between different actions. """ - new_value: Optional[str] = FieldInfo(alias="newValue", default=None) + new_value: Optional[str] = FieldInfo(alias = "newValue", default = None) """The new value of the resource that was modified.""" - old_value: Optional[str] = FieldInfo(alias="oldValue", default=None) + old_value: Optional[str] = FieldInfo(alias = "oldValue", default = None) """The value of the resource before it was modified.""" owner: Optional[UnionMember0ResultOwner] = None @@ -90,7 +78,6 @@ class UnionMember0Result(BaseModel): when: Optional[datetime] = None """A UTC RFC3339 timestamp that specifies when the action being logged occured.""" - class UnionMember0(BaseModel): errors: Optional[object] = None @@ -100,28 +87,24 @@ class UnionMember0(BaseModel): success: Optional[bool] = None - -class Q6tjyqK4APIResponseCommonError(BaseModel): +class 9cy76Al9APIResponseCommonError(BaseModel): code: int message: str - -class Q6tjyqK4APIResponseCommonMessage(BaseModel): +class 9cy76Al9APIResponseCommonMessage(BaseModel): code: int message: str +class _9cy76Al9APIResponseCommon(BaseModel): + errors: List[9cy76Al9APIResponseCommonError] -class Q6tjyqK4APIResponseCommon(BaseModel): - errors: List[Q6tjyqK4APIResponseCommonError] - - messages: List[Q6tjyqK4APIResponseCommonMessage] + messages: List[9cy76Al9APIResponseCommonMessage] result: Union[object, List[object], str] success: Literal[True] """Whether the API call was successful""" - -AuditLogAuditLogsGetAccountAuditLogsResponse = Union[UnionMember0, Q6tjyqK4APIResponseCommon] +AuditLogAuditLogsGetAccountAuditLogsResponse = Union[UnionMember0, _9cy76Al9APIResponseCommon] \ No newline at end of file diff --git a/src/cloudflare/types/available_plan_get_response.py b/src/cloudflare/types/available_plan_get_response.py index 0f13eaad9b9..2037b04a57b 100644 --- a/src/cloudflare/types/available_plan_get_response.py +++ b/src/cloudflare/types/available_plan_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["AvailablePlanGetResponse"] diff --git a/src/cloudflare/types/available_plan_list_response.py b/src/cloudflare/types/available_plan_list_response.py index 628464eebff..d9a79ad1afe 100644 --- a/src/cloudflare/types/available_plan_list_response.py +++ b/src/cloudflare/types/available_plan_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["AvailablePlanListResponse", "AvailablePlanListResponseItem"] diff --git a/src/cloudflare/types/available_rate_plan_zone_rate_plan_list_available_rate_plans_response.py b/src/cloudflare/types/available_rate_plan_zone_rate_plan_list_available_rate_plans_response.py index 74d58a2fcb7..1805f77960d 100644 --- a/src/cloudflare/types/available_rate_plan_zone_rate_plan_list_available_rate_plans_response.py +++ b/src/cloudflare/types/available_rate_plan_zone_rate_plan_list_available_rate_plans_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = [ "AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse", diff --git a/src/cloudflare/types/billings/profile_account_billing_profile_billing_profile_details_response.py b/src/cloudflare/types/billings/profile_account_billing_profile_billing_profile_details_response.py index 70c542b5b7d..380eb2130c0 100644 --- a/src/cloudflare/types/billings/profile_account_billing_profile_billing_profile_details_response.py +++ b/src/cloudflare/types/billings/profile_account_billing_profile_billing_profile_details_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["ProfileAccountBillingProfileBillingProfileDetailsResponse"] diff --git a/src/cloudflare/types/bot_management_get_response.py b/src/cloudflare/types/bot_management_get_response.py index aecdbe03e66..fcedbe5abe7 100644 --- a/src/cloudflare/types/bot_management_get_response.py +++ b/src/cloudflare/types/bot_management_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = [ "BotManagementGetResponse", diff --git a/src/cloudflare/types/bot_management_update_params.py b/src/cloudflare/types/bot_management_update_params.py index 0fb84782959..e53861d526e 100644 --- a/src/cloudflare/types/bot_management_update_params.py +++ b/src/cloudflare/types/bot_management_update_params.py @@ -2,8 +2,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = [ "BotManagementUpdateParams", diff --git a/src/cloudflare/types/bot_management_update_response.py b/src/cloudflare/types/bot_management_update_response.py index dc1d12497b5..e7490fb93a0 100644 --- a/src/cloudflare/types/bot_management_update_response.py +++ b/src/cloudflare/types/bot_management_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = [ "BotManagementUpdateResponse", diff --git a/src/cloudflare/types/brand_protections/__init__.py b/src/cloudflare/types/brand_protections/__init__.py index 0be4e9b0d37..e0d8e0b1a5b 100644 --- a/src/cloudflare/types/brand_protections/__init__.py +++ b/src/cloudflare/types/brand_protections/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .url_info_phishing_url_information_get_results_for_a_url_scan_params import ( - URLInfoPhishingURLInformationGetResultsForAURLScanParams as URLInfoPhishingURLInformationGetResultsForAURLScanParams, +from .submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response import ( + SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse as SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse, ) from .submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params import ( SubmitPhishingURLScannerSubmitSuspiciousURLForScanningParams as SubmitPhishingURLScannerSubmitSuspiciousURLForScanningParams, @@ -11,6 +11,6 @@ from .url_info_phishing_url_information_get_results_for_a_url_scan_response import ( URLInfoPhishingURLInformationGetResultsForAURLScanResponse as URLInfoPhishingURLInformationGetResultsForAURLScanResponse, ) -from .submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response import ( - SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse as SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse, +from .url_info_phishing_url_information_get_results_for_a_url_scan_params import ( + URLInfoPhishingURLInformationGetResultsForAURLScanParams as URLInfoPhishingURLInformationGetResultsForAURLScanParams, ) diff --git a/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params.py b/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params.py index ec3d7916aa1..c7dab635b8d 100644 --- a/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params.py +++ b/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["SubmitPhishingURLScannerSubmitSuspiciousURLForScanningParams"] diff --git a/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response.py b/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response.py index 2a83d3884a0..8462f8af953 100644 --- a/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response.py +++ b/src/cloudflare/types/brand_protections/submit_phishing_url_scanner_submit_suspicious_url_for_scanning_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse", diff --git a/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_params.py b/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_params.py index 27fd03b571a..f4fa22351af 100644 --- a/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_params.py +++ b/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["URLInfoPhishingURLInformationGetResultsForAURLScanParams", "URLIDParam"] diff --git a/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_response.py b/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_response.py index 239a0f333b2..34953500263 100644 --- a/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_response.py +++ b/src/cloudflare/types/brand_protections/url_info_phishing_url_information_get_results_for_a_url_scan_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "URLInfoPhishingURLInformationGetResultsForAURLScanResponse", diff --git a/src/cloudflare/types/cache_regional_tiered_caches_response.py b/src/cloudflare/types/cache_regional_tiered_caches_response.py index fc80e172cfe..79e17a55113 100644 --- a/src/cloudflare/types/cache_regional_tiered_caches_response.py +++ b/src/cloudflare/types/cache_regional_tiered_caches_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["CacheRegionalTieredCachesResponse", "Value"] diff --git a/src/cloudflare/types/cache_reserve_clear_response.py b/src/cloudflare/types/cache_reserve_clear_response.py index 8b38a5ec699..aca54893adb 100644 --- a/src/cloudflare/types/cache_reserve_clear_response.py +++ b/src/cloudflare/types/cache_reserve_clear_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["CacheReserveClearResponse"] diff --git a/src/cloudflare/types/cache_reserve_create_response.py b/src/cloudflare/types/cache_reserve_create_response.py index 7860e9e4548..b26cf7b05f5 100644 --- a/src/cloudflare/types/cache_reserve_create_response.py +++ b/src/cloudflare/types/cache_reserve_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["CacheReserveCreateResponse"] diff --git a/src/cloudflare/types/cache_update_regional_tiered_cache_params.py b/src/cloudflare/types/cache_update_regional_tiered_cache_params.py index 31a074f1fab..0999aa19ac2 100644 --- a/src/cloudflare/types/cache_update_regional_tiered_cache_params.py +++ b/src/cloudflare/types/cache_update_regional_tiered_cache_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["CacheUpdateRegionalTieredCacheParams"] diff --git a/src/cloudflare/types/cache_update_regional_tiered_cache_response.py b/src/cloudflare/types/cache_update_regional_tiered_cache_response.py index db68b38c314..e6a4e30b33f 100644 --- a/src/cloudflare/types/cache_update_regional_tiered_cache_response.py +++ b/src/cloudflare/types/cache_update_regional_tiered_cache_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["CacheUpdateRegionalTieredCacheResponse", "Value"] diff --git a/src/cloudflare/types/caches/__init__.py b/src/cloudflare/types/caches/__init__.py index 8d0e395e6e0..2c47377b200 100644 --- a/src/cloudflare/types/caches/__init__.py +++ b/src/cloudflare/types/caches/__init__.py @@ -2,30 +2,30 @@ from __future__ import annotations -from .variant_list_response import VariantListResponse as VariantListResponse -from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse from .cache_reserve_list_response import CacheReserveListResponse as CacheReserveListResponse -from .tiered_cache_smart_topology_enable_delete_response import ( - TieredCacheSmartTopologyEnableDeleteResponse as TieredCacheSmartTopologyEnableDeleteResponse, -) -from .variant_zone_cache_settings_change_variants_setting_params import ( - VariantZoneCacheSettingsChangeVariantsSettingParams as VariantZoneCacheSettingsChangeVariantsSettingParams, -) -from .variant_zone_cache_settings_change_variants_setting_response import ( - VariantZoneCacheSettingsChangeVariantsSettingResponse as VariantZoneCacheSettingsChangeVariantsSettingResponse, +from .cache_reserve_zone_cache_settings_change_cache_reserve_setting_response import ( + CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse as CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, ) from .cache_reserve_zone_cache_settings_change_cache_reserve_setting_params import ( CacheReserveZoneCacheSettingsChangeCacheReserveSettingParams as CacheReserveZoneCacheSettingsChangeCacheReserveSettingParams, ) -from .cache_reserve_zone_cache_settings_change_cache_reserve_setting_response import ( - CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse as CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, +from .tiered_cache_smart_topology_enable_delete_response import ( + TieredCacheSmartTopologyEnableDeleteResponse as TieredCacheSmartTopologyEnableDeleteResponse, ) from .tiered_cache_smart_topology_enable_smart_tiered_cache_get_smart_tiered_cache_setting_response import ( TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse as TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, ) +from .tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response import ( + TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse as TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, +) from .tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params import ( TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingParams as TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingParams, ) -from .tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response import ( - TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse as TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, +from .variant_list_response import VariantListResponse as VariantListResponse +from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse +from .variant_zone_cache_settings_change_variants_setting_response import ( + VariantZoneCacheSettingsChangeVariantsSettingResponse as VariantZoneCacheSettingsChangeVariantsSettingResponse, +) +from .variant_zone_cache_settings_change_variants_setting_params import ( + VariantZoneCacheSettingsChangeVariantsSettingParams as VariantZoneCacheSettingsChangeVariantsSettingParams, ) diff --git a/src/cloudflare/types/caches/cache_reserve_list_response.py b/src/cloudflare/types/caches/cache_reserve_list_response.py index b135bae9fc4..0ca59604400 100644 --- a/src/cloudflare/types/caches/cache_reserve_list_response.py +++ b/src/cloudflare/types/caches/cache_reserve_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CacheReserveListResponse"] diff --git a/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_params.py b/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_params.py index 7a42b6c7aa6..5bff3cb3b17 100644 --- a/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_params.py +++ b/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["CacheReserveZoneCacheSettingsChangeCacheReserveSettingParams"] diff --git a/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_response.py b/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_response.py index b0fa8cf279c..1205cb47c73 100644 --- a/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_response.py +++ b/src/cloudflare/types/caches/cache_reserve_zone_cache_settings_change_cache_reserve_setting_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse"] diff --git a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_delete_response.py b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_delete_response.py index a00670171ac..5d44bbc9ad1 100644 --- a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_delete_response.py +++ b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TieredCacheSmartTopologyEnableDeleteResponse"] diff --git a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_get_smart_tiered_cache_setting_response.py b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_get_smart_tiered_cache_setting_response.py index 2fd5322dc29..d37dfa583de 100644 --- a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_get_smart_tiered_cache_setting_response.py +++ b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_get_smart_tiered_cache_setting_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse"] diff --git a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params.py b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params.py index e60f83ea74b..968c25f5e3c 100644 --- a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params.py +++ b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingParams"] diff --git a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response.py b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response.py index 7edb221fed2..8ce88aa612c 100644 --- a/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response.py +++ b/src/cloudflare/types/caches/tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse"] diff --git a/src/cloudflare/types/caches/variant_delete_response.py b/src/cloudflare/types/caches/variant_delete_response.py index cc33ae40a87..9805b58c96e 100644 --- a/src/cloudflare/types/caches/variant_delete_response.py +++ b/src/cloudflare/types/caches/variant_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["VariantDeleteResponse"] diff --git a/src/cloudflare/types/caches/variant_list_response.py b/src/cloudflare/types/caches/variant_list_response.py index 904273e72c5..4fce6b7b529 100644 --- a/src/cloudflare/types/caches/variant_list_response.py +++ b/src/cloudflare/types/caches/variant_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["VariantListResponse", "Value"] diff --git a/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_params.py b/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_params.py index dae14d0ca04..c0a7b1b9dc4 100644 --- a/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_params.py +++ b/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["VariantZoneCacheSettingsChangeVariantsSettingParams", "Value"] diff --git a/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_response.py b/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_response.py index b676e034a08..e469b449f28 100644 --- a/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_response.py +++ b/src/cloudflare/types/caches/variant_zone_cache_settings_change_variants_setting_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["VariantZoneCacheSettingsChangeVariantsSettingResponse", "Value"] diff --git a/src/cloudflare/types/call_create_params.py b/src/cloudflare/types/call_create_params.py index 5e53b187c3a..55b20e8af45 100644 --- a/src/cloudflare/types/call_create_params.py +++ b/src/cloudflare/types/call_create_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["CallCreateParams"] diff --git a/src/cloudflare/types/call_create_response.py b/src/cloudflare/types/call_create_response.py index bc6ee93f28d..901e98237c3 100644 --- a/src/cloudflare/types/call_create_response.py +++ b/src/cloudflare/types/call_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["CallCreateResponse"] diff --git a/src/cloudflare/types/call_delete_response.py b/src/cloudflare/types/call_delete_response.py index b3910c465c0..60c1a2addb5 100644 --- a/src/cloudflare/types/call_delete_response.py +++ b/src/cloudflare/types/call_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["CallDeleteResponse"] diff --git a/src/cloudflare/types/call_get_response.py b/src/cloudflare/types/call_get_response.py index 09346f659e5..08d9953fc20 100644 --- a/src/cloudflare/types/call_get_response.py +++ b/src/cloudflare/types/call_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["CallGetResponse"] diff --git a/src/cloudflare/types/call_list_response.py b/src/cloudflare/types/call_list_response.py index 7067e51df8f..00b373c4776 100644 --- a/src/cloudflare/types/call_list_response.py +++ b/src/cloudflare/types/call_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ..types import shared __all__ = ["CallListResponse", "CallListResponseItem"] diff --git a/src/cloudflare/types/call_update_params.py b/src/cloudflare/types/call_update_params.py index 63759f0a9a0..6b876122b71 100644 --- a/src/cloudflare/types/call_update_params.py +++ b/src/cloudflare/types/call_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["CallUpdateParams"] diff --git a/src/cloudflare/types/call_update_response.py b/src/cloudflare/types/call_update_response.py index b3ac0068337..a3488b49b88 100644 --- a/src/cloudflare/types/call_update_response.py +++ b/src/cloudflare/types/call_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["CallUpdateResponse"] diff --git a/src/cloudflare/types/certificate_authorities/__init__.py b/src/cloudflare/types/certificate_authorities/__init__.py index a920c0c4f90..f3c265128dd 100644 --- a/src/cloudflare/types/certificate_authorities/__init__.py +++ b/src/cloudflare/types/certificate_authorities/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .hostname_association_client_certificate_for_a_zone_put_hostname_associations_params import ( - HostnameAssociationClientCertificateForAZonePutHostnameAssociationsParams as HostnameAssociationClientCertificateForAZonePutHostnameAssociationsParams, -) -from .hostname_association_client_certificate_for_a_zone_list_hostname_associations_params import ( - HostnameAssociationClientCertificateForAZoneListHostnameAssociationsParams as HostnameAssociationClientCertificateForAZoneListHostnameAssociationsParams, +from .hostname_association_client_certificate_for_a_zone_list_hostname_associations_response import ( + HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse as HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, ) from .hostname_association_client_certificate_for_a_zone_put_hostname_associations_response import ( HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse as HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, ) -from .hostname_association_client_certificate_for_a_zone_list_hostname_associations_response import ( - HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse as HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, +from .hostname_association_client_certificate_for_a_zone_list_hostname_associations_params import ( + HostnameAssociationClientCertificateForAZoneListHostnameAssociationsParams as HostnameAssociationClientCertificateForAZoneListHostnameAssociationsParams, +) +from .hostname_association_client_certificate_for_a_zone_put_hostname_associations_params import ( + HostnameAssociationClientCertificateForAZonePutHostnameAssociationsParams as HostnameAssociationClientCertificateForAZonePutHostnameAssociationsParams, ) diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_params.py b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_params.py index bfe173cab7c..1b90149c4df 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_params.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["HostnameAssociationClientCertificateForAZoneListHostnameAssociationsParams"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_response.py b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_response.py index 9dd050a7812..0fe77eb217b 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_response.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_list_hostname_associations_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_params.py b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_params.py index d1884c3186f..1702b951fa9 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_params.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import List from typing_extensions import TypedDict +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 ...types import shared_params + __all__ = ["HostnameAssociationClientCertificateForAZonePutHostnameAssociationsParams"] diff --git a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_response.py b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_response.py index e146c107b94..185583e324e 100644 --- a/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_response.py +++ b/src/cloudflare/types/certificate_authorities/hostname_association_client_certificate_for_a_zone_put_hostname_associations_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse"] diff --git a/src/cloudflare/types/certificate_delete_response.py b/src/cloudflare/types/certificate_delete_response.py index 5fbd398ef6c..0c5416a372b 100644 --- a/src/cloudflare/types/certificate_delete_response.py +++ b/src/cloudflare/types/certificate_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["CertificateDeleteResponse"] diff --git a/src/cloudflare/types/certificate_get_response.py b/src/cloudflare/types/certificate_get_response.py index 758681c7766..078d607ea4d 100644 --- a/src/cloudflare/types/certificate_get_response.py +++ b/src/cloudflare/types/certificate_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["CertificateGetResponse"] diff --git a/src/cloudflare/types/certificate_origin_ca_create_certificate_params.py b/src/cloudflare/types/certificate_origin_ca_create_certificate_params.py index d47d5258e36..45569947524 100644 --- a/src/cloudflare/types/certificate_origin_ca_create_certificate_params.py +++ b/src/cloudflare/types/certificate_origin_ca_create_certificate_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal + from typing import Iterable -from typing_extensions import Literal, 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 ..types import shared_params __all__ = ["CertificateOriginCaCreateCertificateParams"] diff --git a/src/cloudflare/types/certificate_origin_ca_create_certificate_response.py b/src/cloudflare/types/certificate_origin_ca_create_certificate_response.py index ef63084e018..707a826ae6a 100644 --- a/src/cloudflare/types/certificate_origin_ca_create_certificate_response.py +++ b/src/cloudflare/types/certificate_origin_ca_create_certificate_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["CertificateOriginCaCreateCertificateResponse"] diff --git a/src/cloudflare/types/certificate_origin_ca_list_certificates_response.py b/src/cloudflare/types/certificate_origin_ca_list_certificates_response.py index a0ff0253538..f1f6e74d371 100644 --- a/src/cloudflare/types/certificate_origin_ca_list_certificates_response.py +++ b/src/cloudflare/types/certificate_origin_ca_list_certificates_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import List, Optional -from datetime import datetime + 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 +from ..types import shared __all__ = ["CertificateOriginCaListCertificatesResponse", "CertificateOriginCaListCertificatesResponseItem"] diff --git a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params.py b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params.py index e91b090a1f5..7833eecc681 100644 --- a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params.py +++ b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["CfdTunnelCloudflareTunnelCreateACloudflareTunnelParams"] diff --git a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response.py b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response.py index f62050cb1a5..3cbc648b29a 100644 --- a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response.py +++ b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse", diff --git a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params.py b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params.py index a680f6feac8..81403eec7d5 100644 --- a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params.py +++ b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["CfdTunnelCloudflareTunnelListCloudflareTunnelsParams"] diff --git a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_response.py b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_response.py index cbcfeab7f11..2440a09527b 100644 --- a/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_response.py +++ b/src/cloudflare/types/cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse", diff --git a/src/cloudflare/types/cfd_tunnel_delete_params.py b/src/cloudflare/types/cfd_tunnel_delete_params.py index 8cd3b09b7fa..13d69abbcd4 100644 --- a/src/cloudflare/types/cfd_tunnel_delete_params.py +++ b/src/cloudflare/types/cfd_tunnel_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["CfdTunnelDeleteParams"] diff --git a/src/cloudflare/types/cfd_tunnel_delete_response.py b/src/cloudflare/types/cfd_tunnel_delete_response.py index 77219035f19..2712421521a 100644 --- a/src/cloudflare/types/cfd_tunnel_delete_response.py +++ b/src/cloudflare/types/cfd_tunnel_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "CfdTunnelDeleteResponse", diff --git a/src/cloudflare/types/cfd_tunnel_get_response.py b/src/cloudflare/types/cfd_tunnel_get_response.py index 731316a2a28..318871c5f50 100644 --- a/src/cloudflare/types/cfd_tunnel_get_response.py +++ b/src/cloudflare/types/cfd_tunnel_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "CfdTunnelGetResponse", diff --git a/src/cloudflare/types/cfd_tunnel_update_params.py b/src/cloudflare/types/cfd_tunnel_update_params.py index 49557c0fa38..a700a20ec77 100644 --- a/src/cloudflare/types/cfd_tunnel_update_params.py +++ b/src/cloudflare/types/cfd_tunnel_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["CfdTunnelUpdateParams"] diff --git a/src/cloudflare/types/cfd_tunnel_update_response.py b/src/cloudflare/types/cfd_tunnel_update_response.py index 5c0f28dffc5..f4e9fae9ec8 100644 --- a/src/cloudflare/types/cfd_tunnel_update_response.py +++ b/src/cloudflare/types/cfd_tunnel_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "CfdTunnelUpdateResponse", diff --git a/src/cloudflare/types/cfd_tunnels/__init__.py b/src/cloudflare/types/cfd_tunnels/__init__.py index 993aa2c8870..ccfca643305 100644 --- a/src/cloudflare/types/cfd_tunnels/__init__.py +++ b/src/cloudflare/types/cfd_tunnels/__init__.py @@ -2,23 +2,23 @@ from __future__ import annotations -from .connector_get_response import ConnectorGetResponse as ConnectorGetResponse -from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams -from .management_create_params import ManagementCreateParams as ManagementCreateParams -from .connection_delete_response import ConnectionDeleteResponse as ConnectionDeleteResponse -from .management_create_response import ManagementCreateResponse as ManagementCreateResponse -from .token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response import ( - TokenCloudflareTunnelGetACloudflareTunnelTokenResponse as TokenCloudflareTunnelGetACloudflareTunnelTokenResponse, -) -from .configuration_cloudflare_tunnel_configuration_put_configuration_params import ( - ConfigurationCloudflareTunnelConfigurationPutConfigurationParams as ConfigurationCloudflareTunnelConfigurationPutConfigurationParams, -) from .configuration_cloudflare_tunnel_configuration_get_configuration_response import ( ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse as ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, ) from .configuration_cloudflare_tunnel_configuration_put_configuration_response import ( ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse as ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, ) +from .configuration_cloudflare_tunnel_configuration_put_configuration_params import ( + ConfigurationCloudflareTunnelConfigurationPutConfigurationParams as ConfigurationCloudflareTunnelConfigurationPutConfigurationParams, +) +from .connection_delete_response import ConnectionDeleteResponse as ConnectionDeleteResponse from .connection_cloudflare_tunnel_list_cloudflare_tunnel_connections_response import ( ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse as ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse, ) +from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams +from .token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response import ( + TokenCloudflareTunnelGetACloudflareTunnelTokenResponse as TokenCloudflareTunnelGetACloudflareTunnelTokenResponse, +) +from .connector_get_response import ConnectorGetResponse as ConnectorGetResponse +from .management_create_response import ManagementCreateResponse as ManagementCreateResponse +from .management_create_params import ManagementCreateParams as ManagementCreateParams diff --git a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_get_configuration_response.py b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_get_configuration_response.py index 41d3e3593fb..597b70f0a50 100644 --- a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_get_configuration_response.py +++ b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_get_configuration_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse"] diff --git a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_params.py b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_params.py index add947ebc97..751e20476bf 100644 --- a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_params.py +++ b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated +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 +from ...types import shared_params __all__ = [ "ConfigurationCloudflareTunnelConfigurationPutConfigurationParams", diff --git a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_response.py b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_response.py index e10e7242cd0..e07367603fb 100644 --- a/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_response.py +++ b/src/cloudflare/types/cfd_tunnels/configuration_cloudflare_tunnel_configuration_put_configuration_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse"] diff --git a/src/cloudflare/types/cfd_tunnels/connection_cloudflare_tunnel_list_cloudflare_tunnel_connections_response.py b/src/cloudflare/types/cfd_tunnels/connection_cloudflare_tunnel_list_cloudflare_tunnel_connections_response.py index e5ff109690a..ef9b3b3c170 100644 --- a/src/cloudflare/types/cfd_tunnels/connection_cloudflare_tunnel_list_cloudflare_tunnel_connections_response.py +++ b/src/cloudflare/types/cfd_tunnels/connection_cloudflare_tunnel_list_cloudflare_tunnel_connections_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse", diff --git a/src/cloudflare/types/cfd_tunnels/connection_delete_params.py b/src/cloudflare/types/cfd_tunnels/connection_delete_params.py index 55b1e7cf044..eafdc8ff538 100644 --- a/src/cloudflare/types/cfd_tunnels/connection_delete_params.py +++ b/src/cloudflare/types/cfd_tunnels/connection_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ConnectionDeleteParams"] diff --git a/src/cloudflare/types/cfd_tunnels/connection_delete_response.py b/src/cloudflare/types/cfd_tunnels/connection_delete_response.py index 79c7b3e9db6..f529a60a2a8 100644 --- a/src/cloudflare/types/cfd_tunnels/connection_delete_response.py +++ b/src/cloudflare/types/cfd_tunnels/connection_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ConnectionDeleteResponse"] diff --git a/src/cloudflare/types/cfd_tunnels/connector_get_response.py b/src/cloudflare/types/cfd_tunnels/connector_get_response.py index 700ac912472..7c3a2c584e1 100644 --- a/src/cloudflare/types/cfd_tunnels/connector_get_response.py +++ b/src/cloudflare/types/cfd_tunnels/connector_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ConnectorGetResponse", "Conn"] diff --git a/src/cloudflare/types/cfd_tunnels/management_create_params.py b/src/cloudflare/types/cfd_tunnels/management_create_params.py index d036104b019..366b0df35cb 100644 --- a/src/cloudflare/types/cfd_tunnels/management_create_params.py +++ b/src/cloudflare/types/cfd_tunnels/management_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["ManagementCreateParams"] diff --git a/src/cloudflare/types/cfd_tunnels/management_create_response.py b/src/cloudflare/types/cfd_tunnels/management_create_response.py index 72c037570c2..91a2b255345 100644 --- a/src/cloudflare/types/cfd_tunnels/management_create_response.py +++ b/src/cloudflare/types/cfd_tunnels/management_create_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ManagementCreateResponse"] diff --git a/src/cloudflare/types/cfd_tunnels/token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response.py b/src/cloudflare/types/cfd_tunnels/token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response.py index a89ebf96d67..15eae553139 100644 --- a/src/cloudflare/types/cfd_tunnels/token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response.py +++ b/src/cloudflare/types/cfd_tunnels/token_cloudflare_tunnel_get_a_cloudflare_tunnel_token_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["TokenCloudflareTunnelGetACloudflareTunnelTokenResponse"] diff --git a/src/cloudflare/types/challenges/__init__.py b/src/cloudflare/types/challenges/__init__.py index 2456da531f5..f122dc142e6 100644 --- a/src/cloudflare/types/challenges/__init__.py +++ b/src/cloudflare/types/challenges/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .widget_list_params import WidgetListParams as WidgetListParams +from .widget_create_response import WidgetCreateResponse as WidgetCreateResponse +from .widget_update_response import WidgetUpdateResponse as WidgetUpdateResponse +from .widget_list_response import WidgetListResponse as WidgetListResponse +from .widget_delete_response import WidgetDeleteResponse as WidgetDeleteResponse from .widget_get_response import WidgetGetResponse as WidgetGetResponse +from .widget_rotate_secret_response import WidgetRotateSecretResponse as WidgetRotateSecretResponse 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_create_response import WidgetCreateResponse as WidgetCreateResponse -from .widget_delete_response import WidgetDeleteResponse as WidgetDeleteResponse -from .widget_update_response import WidgetUpdateResponse as WidgetUpdateResponse +from .widget_list_params import WidgetListParams as WidgetListParams from .widget_rotate_secret_params import WidgetRotateSecretParams as WidgetRotateSecretParams -from .widget_rotate_secret_response import WidgetRotateSecretResponse as WidgetRotateSecretResponse diff --git a/src/cloudflare/types/challenges/widget_create_params.py b/src/cloudflare/types/challenges/widget_create_params.py index 3544874849e..68274e835f5 100644 --- a/src/cloudflare/types/challenges/widget_create_params.py +++ b/src/cloudflare/types/challenges/widget_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["WidgetCreateParams"] diff --git a/src/cloudflare/types/challenges/widget_create_response.py b/src/cloudflare/types/challenges/widget_create_response.py index abcee7cfa9a..1b711341baa 100644 --- a/src/cloudflare/types/challenges/widget_create_response.py +++ b/src/cloudflare/types/challenges/widget_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetCreateResponse"] diff --git a/src/cloudflare/types/challenges/widget_delete_response.py b/src/cloudflare/types/challenges/widget_delete_response.py index fd2b67ead40..53e884b3344 100644 --- a/src/cloudflare/types/challenges/widget_delete_response.py +++ b/src/cloudflare/types/challenges/widget_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetDeleteResponse"] diff --git a/src/cloudflare/types/challenges/widget_get_response.py b/src/cloudflare/types/challenges/widget_get_response.py index 42d08ef1618..20574d0ff32 100644 --- a/src/cloudflare/types/challenges/widget_get_response.py +++ b/src/cloudflare/types/challenges/widget_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetGetResponse"] diff --git a/src/cloudflare/types/challenges/widget_list_params.py b/src/cloudflare/types/challenges/widget_list_params.py index c778058fe0d..147494176fb 100644 --- a/src/cloudflare/types/challenges/widget_list_params.py +++ b/src/cloudflare/types/challenges/widget_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["WidgetListParams"] diff --git a/src/cloudflare/types/challenges/widget_list_response.py b/src/cloudflare/types/challenges/widget_list_response.py index 27a583f3716..595d3717499 100644 --- a/src/cloudflare/types/challenges/widget_list_response.py +++ b/src/cloudflare/types/challenges/widget_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetListResponse", "WidgetListResponseItem"] diff --git a/src/cloudflare/types/challenges/widget_rotate_secret_params.py b/src/cloudflare/types/challenges/widget_rotate_secret_params.py index c520e69c5ea..c45f9e50e13 100644 --- a/src/cloudflare/types/challenges/widget_rotate_secret_params.py +++ b/src/cloudflare/types/challenges/widget_rotate_secret_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["WidgetRotateSecretParams"] diff --git a/src/cloudflare/types/challenges/widget_rotate_secret_response.py b/src/cloudflare/types/challenges/widget_rotate_secret_response.py index 5763d053320..4764df8e8ac 100644 --- a/src/cloudflare/types/challenges/widget_rotate_secret_response.py +++ b/src/cloudflare/types/challenges/widget_rotate_secret_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetRotateSecretResponse"] diff --git a/src/cloudflare/types/challenges/widget_update_params.py b/src/cloudflare/types/challenges/widget_update_params.py index 599911906e9..dfe9ecfe486 100644 --- a/src/cloudflare/types/challenges/widget_update_params.py +++ b/src/cloudflare/types/challenges/widget_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["WidgetUpdateParams"] diff --git a/src/cloudflare/types/challenges/widget_update_response.py b/src/cloudflare/types/challenges/widget_update_response.py index d12b905f06c..792add1bea5 100644 --- a/src/cloudflare/types/challenges/widget_update_response.py +++ b/src/cloudflare/types/challenges/widget_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List -from datetime import datetime from typing_extensions import Literal +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 +from ...types import shared __all__ = ["WidgetUpdateResponse"] diff --git a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_params.py b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_params.py index 0f42a83b267..428617765c8 100644 --- a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_params.py +++ b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["ClientCertificateClientCertificateForAZoneCreateClientCertificateParams"] diff --git a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_response.py b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_response.py index ed42fc8f61d..9b680afe0b5 100644 --- a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_response.py +++ b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_create_client_certificate_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse", "CertificateAuthority"] diff --git a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_params.py b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_params.py index 9f5c9f161e6..56f07c444ed 100644 --- a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_params.py +++ b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["ClientCertificateClientCertificateForAZoneListClientCertificatesParams"] diff --git a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_response.py b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_response.py index fdfbd7d4729..db0bfa877a9 100644 --- a/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_response.py +++ b/src/cloudflare/types/client_certificate_client_certificate_for_a_zone_list_client_certificates_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = [ "ClientCertificateClientCertificateForAZoneListClientCertificatesResponse", diff --git a/src/cloudflare/types/client_certificate_delete_response.py b/src/cloudflare/types/client_certificate_delete_response.py index c01748c8d44..21cbed3c041 100644 --- a/src/cloudflare/types/client_certificate_delete_response.py +++ b/src/cloudflare/types/client_certificate_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["ClientCertificateDeleteResponse", "CertificateAuthority"] diff --git a/src/cloudflare/types/client_certificate_get_response.py b/src/cloudflare/types/client_certificate_get_response.py index fff142af9a3..dd83c35458b 100644 --- a/src/cloudflare/types/client_certificate_get_response.py +++ b/src/cloudflare/types/client_certificate_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["ClientCertificateGetResponse", "CertificateAuthority"] diff --git a/src/cloudflare/types/client_certificate_update_response.py b/src/cloudflare/types/client_certificate_update_response.py index 7d3a7f051d1..e22344623e4 100644 --- a/src/cloudflare/types/client_certificate_update_response.py +++ b/src/cloudflare/types/client_certificate_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["ClientCertificateUpdateResponse", "CertificateAuthority"] diff --git a/src/cloudflare/types/custom_certificate_create_params.py b/src/cloudflare/types/custom_certificate_create_params.py index 3ca6f17f943..02fd6e49a44 100644 --- a/src/cloudflare/types/custom_certificate_create_params.py +++ b/src/cloudflare/types/custom_certificate_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["CustomCertificateCreateParams", "GeoRestrictions"] diff --git a/src/cloudflare/types/custom_certificate_create_response.py b/src/cloudflare/types/custom_certificate_create_response.py index 7bf2cd40984..52d39b841e3 100644 --- a/src/cloudflare/types/custom_certificate_create_response.py +++ b/src/cloudflare/types/custom_certificate_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["CustomCertificateCreateResponse"] diff --git a/src/cloudflare/types/custom_certificate_delete_response.py b/src/cloudflare/types/custom_certificate_delete_response.py index 504faf2a72b..3b0f5050f75 100644 --- a/src/cloudflare/types/custom_certificate_delete_response.py +++ b/src/cloudflare/types/custom_certificate_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["CustomCertificateDeleteResponse"] diff --git a/src/cloudflare/types/custom_certificate_get_response.py b/src/cloudflare/types/custom_certificate_get_response.py index cd1e7b3bec7..ba093868f63 100644 --- a/src/cloudflare/types/custom_certificate_get_response.py +++ b/src/cloudflare/types/custom_certificate_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["CustomCertificateGetResponse"] diff --git a/src/cloudflare/types/custom_certificate_list_params.py b/src/cloudflare/types/custom_certificate_list_params.py index 1554e5897db..e38356a6da7 100644 --- a/src/cloudflare/types/custom_certificate_list_params.py +++ b/src/cloudflare/types/custom_certificate_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["CustomCertificateListParams"] diff --git a/src/cloudflare/types/custom_certificate_list_response.py b/src/cloudflare/types/custom_certificate_list_response.py index 4a8fc20324c..b12ad0deb0a 100644 --- a/src/cloudflare/types/custom_certificate_list_response.py +++ b/src/cloudflare/types/custom_certificate_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "CustomCertificateListResponse", diff --git a/src/cloudflare/types/custom_certificate_update_params.py b/src/cloudflare/types/custom_certificate_update_params.py index 678f21ec467..9dee1487dd2 100644 --- a/src/cloudflare/types/custom_certificate_update_params.py +++ b/src/cloudflare/types/custom_certificate_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["CustomCertificateUpdateParams", "GeoRestrictions"] diff --git a/src/cloudflare/types/custom_certificate_update_response.py b/src/cloudflare/types/custom_certificate_update_response.py index af494fe0753..c02d9ace264 100644 --- a/src/cloudflare/types/custom_certificate_update_response.py +++ b/src/cloudflare/types/custom_certificate_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["CustomCertificateUpdateResponse"] diff --git a/src/cloudflare/types/custom_certificates/__init__.py b/src/cloudflare/types/custom_certificates/__init__.py index 7ed52298ffc..9643c34b397 100644 --- a/src/cloudflare/types/custom_certificates/__init__.py +++ b/src/cloudflare/types/custom_certificates/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params import ( - PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesParams as PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesParams, -) from .prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_response import ( PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse as PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse, ) +from .prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params import ( + PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesParams as PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesParams, +) diff --git a/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params.py b/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params.py index 7e0b8b0e588..f9765a467c1 100644 --- a/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params.py +++ b/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesParams", "Certificate"] diff --git a/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_response.py b/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_response.py index 1d6318422bd..11a18bbc2e1 100644 --- a/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_response.py +++ b/src/cloudflare/types/custom_certificates/prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse", diff --git a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params.py b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params.py index 6eb069cc198..487c05d106d 100644 --- a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params.py +++ b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["CustomHostnameCustomHostnameForAZoneCreateCustomHostnameParams", "SSL", "SSLSettings", "CustomMetadata"] diff --git a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response.py b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response.py index cbd6f023b61..4f397ebb343 100644 --- a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response.py +++ b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse", diff --git a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params.py b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params.py index f08c12e5fd6..6f1e300c0ed 100644 --- a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params.py +++ b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["CustomHostnameCustomHostnameForAZoneListCustomHostnamesParams"] diff --git a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response.py b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response.py index b7d6eef534e..ab9ecec4703 100644 --- a/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response.py +++ b/src/cloudflare/types/custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse", diff --git a/src/cloudflare/types/custom_hostname_delete_response.py b/src/cloudflare/types/custom_hostname_delete_response.py index cb75a0fb1fe..95df4bfd71a 100644 --- a/src/cloudflare/types/custom_hostname_delete_response.py +++ b/src/cloudflare/types/custom_hostname_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["CustomHostnameDeleteResponse"] diff --git a/src/cloudflare/types/custom_hostname_get_response.py b/src/cloudflare/types/custom_hostname_get_response.py index 3a2eae59d34..6c71eded850 100644 --- a/src/cloudflare/types/custom_hostname_get_response.py +++ b/src/cloudflare/types/custom_hostname_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["CustomHostnameGetResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"] diff --git a/src/cloudflare/types/custom_hostname_update_params.py b/src/cloudflare/types/custom_hostname_update_params.py index b1bd3b2442b..bf77095cf40 100644 --- a/src/cloudflare/types/custom_hostname_update_params.py +++ b/src/cloudflare/types/custom_hostname_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["CustomHostnameUpdateParams", "CustomMetadata", "SSL", "SSLSettings"] diff --git a/src/cloudflare/types/custom_hostname_update_response.py b/src/cloudflare/types/custom_hostname_update_response.py index 57129833a35..ebdded4112d 100644 --- a/src/cloudflare/types/custom_hostname_update_response.py +++ b/src/cloudflare/types/custom_hostname_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["CustomHostnameUpdateResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"] diff --git a/src/cloudflare/types/custom_hostnames/__init__.py b/src/cloudflare/types/custom_hostnames/__init__.py index f93601bc68f..d513b0c2df0 100644 --- a/src/cloudflare/types/custom_hostnames/__init__.py +++ b/src/cloudflare/types/custom_hostnames/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations +from .fallback_origin_update_response import FallbackOriginUpdateResponse as FallbackOriginUpdateResponse +from .fallback_origin_delete_response import FallbackOriginDeleteResponse as FallbackOriginDeleteResponse from .fallback_origin_get_response import FallbackOriginGetResponse as FallbackOriginGetResponse from .fallback_origin_update_params import FallbackOriginUpdateParams as FallbackOriginUpdateParams -from .fallback_origin_delete_response import FallbackOriginDeleteResponse as FallbackOriginDeleteResponse -from .fallback_origin_update_response import FallbackOriginUpdateResponse as FallbackOriginUpdateResponse diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py index 09db322eeff..7ca95b82e17 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __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 8ec63255464..d7f19c9b2f6 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __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 d2934e32fe6..b0900d7a54e 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __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 25710e06ca0..4acc093a67d 100644 --- a/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py +++ b/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["FallbackOriginUpdateResponse"] diff --git a/src/cloudflare/types/custom_n_create_params.py b/src/cloudflare/types/custom_n_create_params.py index 3c2f65bc59f..684da2fc404 100644 --- a/src/cloudflare/types/custom_n_create_params.py +++ b/src/cloudflare/types/custom_n_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["CustomNCreateParams"] diff --git a/src/cloudflare/types/custom_n_create_response.py b/src/cloudflare/types/custom_n_create_response.py index 5fcd0429bef..0988952debb 100644 --- a/src/cloudflare/types/custom_n_create_response.py +++ b/src/cloudflare/types/custom_n_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["CustomNCreateResponse", "DNSRecord"] diff --git a/src/cloudflare/types/custom_n_delete_response.py b/src/cloudflare/types/custom_n_delete_response.py index 39bc576660a..43e80b05402 100644 --- a/src/cloudflare/types/custom_n_delete_response.py +++ b/src/cloudflare/types/custom_n_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ..types import shared __all__ = ["CustomNDeleteResponse"] diff --git a/src/cloudflare/types/custom_n_list_response.py b/src/cloudflare/types/custom_n_list_response.py index d6ebbfeb6db..563356ae6b5 100644 --- a/src/cloudflare/types/custom_n_list_response.py +++ b/src/cloudflare/types/custom_n_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["CustomNListResponse", "CustomNListResponseItem", "CustomNListResponseItemDNSRecord"] diff --git a/src/cloudflare/types/custom_ns/__init__.py b/src/cloudflare/types/custom_ns/__init__.py index d759686dfd7..030d8c6fbe9 100644 --- a/src/cloudflare/types/custom_ns/__init__.py +++ b/src/cloudflare/types/custom_ns/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .verify_update_response import VerifyUpdateResponse as VerifyUpdateResponse from .availability_get_response import AvailabilityGetResponse as AvailabilityGetResponse +from .verify_update_response import VerifyUpdateResponse as VerifyUpdateResponse diff --git a/src/cloudflare/types/custom_ns/availability_get_response.py b/src/cloudflare/types/custom_ns/availability_get_response.py index 788cd8d4c43..92b09c99b5e 100644 --- a/src/cloudflare/types/custom_ns/availability_get_response.py +++ b/src/cloudflare/types/custom_ns/availability_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["AvailabilityGetResponse"] diff --git a/src/cloudflare/types/custom_ns/verify_update_response.py b/src/cloudflare/types/custom_ns/verify_update_response.py index 4fa38003ae4..795d74ad743 100644 --- a/src/cloudflare/types/custom_ns/verify_update_response.py +++ b/src/cloudflare/types/custom_ns/verify_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["VerifyUpdateResponse", "VerifyUpdateResponseItem", "VerifyUpdateResponseItemDNSRecord"] diff --git a/src/cloudflare/types/d1/__init__.py b/src/cloudflare/types/d1/__init__.py index 9f57670c99b..ae8cfd610a1 100644 --- a/src/cloudflare/types/d1/__init__.py +++ b/src/cloudflare/types/d1/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations +from .database_create_response import DatabaseCreateResponse as DatabaseCreateResponse +from .database_list_response import DatabaseListResponse as DatabaseListResponse +from .database_create_params import DatabaseCreateParams as DatabaseCreateParams from .database_list_params import DatabaseListParams as DatabaseListParams +from .database_delete_response import DatabaseDeleteResponse as DatabaseDeleteResponse from .database_get_response import DatabaseGetResponse as DatabaseGetResponse -from .database_query_params import DatabaseQueryParams as DatabaseQueryParams -from .database_create_params import DatabaseCreateParams as DatabaseCreateParams -from .database_list_response import DatabaseListResponse as DatabaseListResponse from .database_query_response import DatabaseQueryResponse as DatabaseQueryResponse -from .database_create_response import DatabaseCreateResponse as DatabaseCreateResponse -from .database_delete_response import DatabaseDeleteResponse as DatabaseDeleteResponse +from .database_query_params import DatabaseQueryParams as DatabaseQueryParams diff --git a/src/cloudflare/types/d1/database_create_params.py b/src/cloudflare/types/d1/database_create_params.py index ac96358d983..8111e14d279 100644 --- a/src/cloudflare/types/d1/database_create_params.py +++ b/src/cloudflare/types/d1/database_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["DatabaseCreateParams"] diff --git a/src/cloudflare/types/d1/database_create_response.py b/src/cloudflare/types/d1/database_create_response.py index 55579fa9faa..bf688a136b5 100644 --- a/src/cloudflare/types/d1/database_create_response.py +++ b/src/cloudflare/types/d1/database_create_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DatabaseCreateResponse"] diff --git a/src/cloudflare/types/d1/database_delete_response.py b/src/cloudflare/types/d1/database_delete_response.py index 991d7a6ef35..4191ee2aa0c 100644 --- a/src/cloudflare/types/d1/database_delete_response.py +++ b/src/cloudflare/types/d1/database_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["DatabaseDeleteResponse"] diff --git a/src/cloudflare/types/d1/database_get_response.py b/src/cloudflare/types/d1/database_get_response.py index 01fa190537b..8d4248a2deb 100644 --- a/src/cloudflare/types/d1/database_get_response.py +++ b/src/cloudflare/types/d1/database_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DatabaseGetResponse"] diff --git a/src/cloudflare/types/d1/database_list_params.py b/src/cloudflare/types/d1/database_list_params.py index 052cb42a514..c64cb592d1c 100644 --- a/src/cloudflare/types/d1/database_list_params.py +++ b/src/cloudflare/types/d1/database_list_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["DatabaseListParams"] diff --git a/src/cloudflare/types/d1/database_list_response.py b/src/cloudflare/types/d1/database_list_response.py index 982acea14b4..9ad7d5dd6b7 100644 --- a/src/cloudflare/types/d1/database_list_response.py +++ b/src/cloudflare/types/d1/database_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["DatabaseListResponse", "DatabaseListResponseItem"] diff --git a/src/cloudflare/types/d1/database_query_params.py b/src/cloudflare/types/d1/database_query_params.py index 9de43ffd2fb..b7f99fa7d3d 100644 --- a/src/cloudflare/types/d1/database_query_params.py +++ b/src/cloudflare/types/d1/database_query_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["DatabaseQueryParams"] diff --git a/src/cloudflare/types/d1/database_query_response.py b/src/cloudflare/types/d1/database_query_response.py index 86c588d5523..942cbfa6ef1 100644 --- a/src/cloudflare/types/d1/database_query_response.py +++ b/src/cloudflare/types/d1/database_query_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["DatabaseQueryResponse", "DatabaseQueryResponseItem", "DatabaseQueryResponseItemMeta"] diff --git a/src/cloudflare/types/dcv_delegation/uuid_get_response.py b/src/cloudflare/types/dcv_delegation/uuid_get_response.py index 351cee788af..62ad67d50c4 100644 --- a/src/cloudflare/types/dcv_delegation/uuid_get_response.py +++ b/src/cloudflare/types/dcv_delegation/uuid_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["UuidGetResponse"] diff --git a/src/cloudflare/types/device_devices_list_devices_response.py b/src/cloudflare/types/device_devices_list_devices_response.py index 20d25627a08..9ba4eded226 100644 --- a/src/cloudflare/types/device_devices_list_devices_response.py +++ b/src/cloudflare/types/device_devices_list_devices_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ..types import shared __all__ = [ "DeviceDevicesListDevicesResponse", diff --git a/src/cloudflare/types/device_get_response.py b/src/cloudflare/types/device_get_response.py index 2d41f25f050..09ad4a027b8 100644 --- a/src/cloudflare/types/device_get_response.py +++ b/src/cloudflare/types/device_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["DeviceGetResponse"] diff --git a/src/cloudflare/types/devices/__init__.py b/src/cloudflare/types/devices/__init__.py index d290a6b26ce..e6c3d09e947 100644 --- a/src/cloudflare/types/devices/__init__.py +++ b/src/cloudflare/types/devices/__init__.py @@ -2,86 +2,86 @@ from __future__ import annotations -from .policy_get_response import PolicyGetResponse as PolicyGetResponse -from .network_get_response import NetworkGetResponse as NetworkGetResponse -from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams -from .posture_get_response import PostureGetResponse as PostureGetResponse -from .dex_test_get_response import DEXTestGetResponse as DEXTestGetResponse -from .network_update_params import NetworkUpdateParams as NetworkUpdateParams -from .posture_update_params import PostureUpdateParams as PostureUpdateParams -from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams -from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse -from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse -from .network_update_response import NetworkUpdateResponse as NetworkUpdateResponse -from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse -from .posture_update_response import PostureUpdateResponse as PostureUpdateResponse -from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse from .dex_test_update_response import DEXTestUpdateResponse as DEXTestUpdateResponse -from .revoke_devices_revoke_devices_params import RevokeDevicesRevokeDevicesParams as RevokeDevicesRevokeDevicesParams -from .revoke_devices_revoke_devices_response import ( - RevokeDevicesRevokeDevicesResponse as RevokeDevicesRevokeDevicesResponse, -) -from .unrevoke_devices_unrevoke_devices_params import ( - UnrevokeDevicesUnrevokeDevicesParams as UnrevokeDevicesUnrevokeDevicesParams, +from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse +from .dex_test_device_dex_test_create_device_dex_test_response import ( + DEXTestDeviceDEXTestCreateDeviceDEXTestResponse as DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, ) from .dex_test_device_dex_test_details_response import ( DEXTestDeviceDEXTestDetailsResponse as DEXTestDeviceDEXTestDetailsResponse, ) -from .unrevoke_devices_unrevoke_devices_response import ( - UnrevokeDevicesUnrevokeDevicesResponse as UnrevokeDevicesUnrevokeDevicesResponse, -) -from .policy_devices_create_device_settings_policy_params import ( - PolicyDevicesCreateDeviceSettingsPolicyParams as PolicyDevicesCreateDeviceSettingsPolicyParams, +from .dex_test_get_response import DEXTestGetResponse as DEXTestGetResponse +from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams +from .dex_test_device_dex_test_create_device_dex_test_params import ( + DEXTestDeviceDEXTestCreateDeviceDEXTestParams as DEXTestDeviceDEXTestCreateDeviceDEXTestParams, ) -from .policy_devices_create_device_settings_policy_response import ( - PolicyDevicesCreateDeviceSettingsPolicyResponse as PolicyDevicesCreateDeviceSettingsPolicyResponse, +from .network_update_response import NetworkUpdateResponse as NetworkUpdateResponse +from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse +from .network_device_managed_networks_create_device_managed_network_response import ( + NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse as NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, ) -from .policy_devices_list_device_settings_policies_response import ( - PolicyDevicesListDeviceSettingsPoliciesResponse as PolicyDevicesListDeviceSettingsPoliciesResponse, +from .network_device_managed_networks_list_device_managed_networks_response import ( + NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse as NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, ) -from .dex_test_device_dex_test_create_device_dex_test_params import ( - DEXTestDeviceDEXTestCreateDeviceDEXTestParams as DEXTestDeviceDEXTestCreateDeviceDEXTestParams, +from .network_get_response import NetworkGetResponse as NetworkGetResponse +from .network_update_params import NetworkUpdateParams as NetworkUpdateParams +from .network_device_managed_networks_create_device_managed_network_params import ( + NetworkDeviceManagedNetworksCreateDeviceManagedNetworkParams as NetworkDeviceManagedNetworksCreateDeviceManagedNetworkParams, ) -from .dex_test_device_dex_test_create_device_dex_test_response import ( - DEXTestDeviceDEXTestCreateDeviceDEXTestResponse as DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, +from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse +from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse +from .policy_devices_create_device_settings_policy_response import ( + PolicyDevicesCreateDeviceSettingsPolicyResponse as PolicyDevicesCreateDeviceSettingsPolicyResponse, ) from .policy_devices_get_default_device_settings_policy_response import ( PolicyDevicesGetDefaultDeviceSettingsPolicyResponse as PolicyDevicesGetDefaultDeviceSettingsPolicyResponse, ) -from .policy_devices_update_default_device_settings_policy_params import ( - PolicyDevicesUpdateDefaultDeviceSettingsPolicyParams as PolicyDevicesUpdateDefaultDeviceSettingsPolicyParams, +from .policy_devices_list_device_settings_policies_response import ( + PolicyDevicesListDeviceSettingsPoliciesResponse as PolicyDevicesListDeviceSettingsPoliciesResponse, ) from .policy_devices_update_default_device_settings_policy_response import ( PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse as PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse, ) -from .posture_device_posture_rules_create_device_posture_rule_params import ( - PostureDevicePostureRulesCreateDevicePostureRuleParams as PostureDevicePostureRulesCreateDevicePostureRuleParams, +from .policy_get_response import PolicyGetResponse as PolicyGetResponse +from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams +from .policy_devices_create_device_settings_policy_params import ( + PolicyDevicesCreateDeviceSettingsPolicyParams as PolicyDevicesCreateDeviceSettingsPolicyParams, ) -from .posture_device_posture_rules_list_device_posture_rules_response import ( - PostureDevicePostureRulesListDevicePostureRulesResponse as PostureDevicePostureRulesListDevicePostureRulesResponse, +from .policy_devices_update_default_device_settings_policy_params import ( + PolicyDevicesUpdateDefaultDeviceSettingsPolicyParams as PolicyDevicesUpdateDefaultDeviceSettingsPolicyParams, ) +from .posture_update_response import PostureUpdateResponse as PostureUpdateResponse +from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse from .posture_device_posture_rules_create_device_posture_rule_response import ( PostureDevicePostureRulesCreateDevicePostureRuleResponse as PostureDevicePostureRulesCreateDevicePostureRuleResponse, ) -from .override_code_devices_list_admin_override_code_for_device_response import ( - OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse as OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse, -) -from .network_device_managed_networks_create_device_managed_network_params import ( - NetworkDeviceManagedNetworksCreateDeviceManagedNetworkParams as NetworkDeviceManagedNetworksCreateDeviceManagedNetworkParams, +from .posture_device_posture_rules_list_device_posture_rules_response import ( + PostureDevicePostureRulesListDevicePostureRulesResponse as PostureDevicePostureRulesListDevicePostureRulesResponse, ) -from .network_device_managed_networks_list_device_managed_networks_response import ( - NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse as NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, +from .posture_get_response import PostureGetResponse as PostureGetResponse +from .posture_update_params import PostureUpdateParams as PostureUpdateParams +from .posture_device_posture_rules_create_device_posture_rule_params import ( + PostureDevicePostureRulesCreateDevicePostureRuleParams as PostureDevicePostureRulesCreateDevicePostureRuleParams, ) -from .network_device_managed_networks_create_device_managed_network_response import ( - NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse as NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, +from .revoke_devices_revoke_devices_response import ( + RevokeDevicesRevokeDevicesResponse as RevokeDevicesRevokeDevicesResponse, ) +from .revoke_devices_revoke_devices_params import RevokeDevicesRevokeDevicesParams as RevokeDevicesRevokeDevicesParams from .setting_zero_trust_accounts_get_device_settings_for_zero_trust_account_response import ( SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse as SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, ) +from .setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response import ( + SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse as SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, +) from .setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params import ( SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountParams as SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountParams, ) -from .setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response import ( - SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse as SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, +from .unrevoke_devices_unrevoke_devices_response import ( + UnrevokeDevicesUnrevokeDevicesResponse as UnrevokeDevicesUnrevokeDevicesResponse, +) +from .unrevoke_devices_unrevoke_devices_params import ( + UnrevokeDevicesUnrevokeDevicesParams as UnrevokeDevicesUnrevokeDevicesParams, +) +from .override_code_devices_list_admin_override_code_for_device_response import ( + OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse as OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse, ) diff --git a/src/cloudflare/types/devices/dex_test_delete_response.py b/src/cloudflare/types/devices/dex_test_delete_response.py index 4ec393cf129..3612ac6b522 100644 --- a/src/cloudflare/types/devices/dex_test_delete_response.py +++ b/src/cloudflare/types/devices/dex_test_delete_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["DEXTestDeleteResponse", "DEXTestDeleteResponseItem", "DEXTestDeleteResponseItemData"] diff --git a/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_params.py b/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_params.py index 8e1b6cd35ce..fad376a7300 100644 --- a/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_params.py +++ b/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["DEXTestDeviceDEXTestCreateDeviceDEXTestParams", "Data"] diff --git a/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_response.py b/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_response.py index 0b7370b4fbe..198e1e72358 100644 --- a/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_response.py +++ b/src/cloudflare/types/devices/dex_test_device_dex_test_create_device_dex_test_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DEXTestDeviceDEXTestCreateDeviceDEXTestResponse", "Data"] diff --git a/src/cloudflare/types/devices/dex_test_device_dex_test_details_response.py b/src/cloudflare/types/devices/dex_test_device_dex_test_details_response.py index ff3b4238b78..6859153f79f 100644 --- a/src/cloudflare/types/devices/dex_test_device_dex_test_details_response.py +++ b/src/cloudflare/types/devices/dex_test_device_dex_test_details_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "DEXTestDeviceDEXTestDetailsResponse", diff --git a/src/cloudflare/types/devices/dex_test_get_response.py b/src/cloudflare/types/devices/dex_test_get_response.py index c53ad870ef8..a3778ee5ed3 100644 --- a/src/cloudflare/types/devices/dex_test_get_response.py +++ b/src/cloudflare/types/devices/dex_test_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DEXTestGetResponse", "Data"] diff --git a/src/cloudflare/types/devices/dex_test_update_params.py b/src/cloudflare/types/devices/dex_test_update_params.py index 4009e87756a..3609537053f 100644 --- a/src/cloudflare/types/devices/dex_test_update_params.py +++ b/src/cloudflare/types/devices/dex_test_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["DEXTestUpdateParams", "Data"] diff --git a/src/cloudflare/types/devices/dex_test_update_response.py b/src/cloudflare/types/devices/dex_test_update_response.py index 23f66ed2271..1de4e765b3c 100644 --- a/src/cloudflare/types/devices/dex_test_update_response.py +++ b/src/cloudflare/types/devices/dex_test_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DEXTestUpdateResponse", "Data"] diff --git a/src/cloudflare/types/devices/network_delete_response.py b/src/cloudflare/types/devices/network_delete_response.py index bea65e5b278..5625db2f094 100644 --- a/src/cloudflare/types/devices/network_delete_response.py +++ b/src/cloudflare/types/devices/network_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["NetworkDeleteResponse", "NetworkDeleteResponseItem", "NetworkDeleteResponseItemConfig"] diff --git a/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_params.py b/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_params.py index 1e52fbd8df1..c911137014a 100644 --- a/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_params.py +++ b/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["NetworkDeviceManagedNetworksCreateDeviceManagedNetworkParams", "Config"] diff --git a/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_response.py b/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_response.py index be0479c841b..665f47701c5 100644 --- a/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_response.py +++ b/src/cloudflare/types/devices/network_device_managed_networks_create_device_managed_network_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse", "Config"] diff --git a/src/cloudflare/types/devices/network_device_managed_networks_list_device_managed_networks_response.py b/src/cloudflare/types/devices/network_device_managed_networks_list_device_managed_networks_response.py index b726fac4f8d..32b615ba2f9 100644 --- a/src/cloudflare/types/devices/network_device_managed_networks_list_device_managed_networks_response.py +++ b/src/cloudflare/types/devices/network_device_managed_networks_list_device_managed_networks_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse", diff --git a/src/cloudflare/types/devices/network_get_response.py b/src/cloudflare/types/devices/network_get_response.py index cef4a8c2f70..4e734dcc8fc 100644 --- a/src/cloudflare/types/devices/network_get_response.py +++ b/src/cloudflare/types/devices/network_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["NetworkGetResponse", "Config"] diff --git a/src/cloudflare/types/devices/network_update_params.py b/src/cloudflare/types/devices/network_update_params.py index 8d3ca491309..fa133441ff7 100644 --- a/src/cloudflare/types/devices/network_update_params.py +++ b/src/cloudflare/types/devices/network_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["NetworkUpdateParams", "Config"] diff --git a/src/cloudflare/types/devices/network_update_response.py b/src/cloudflare/types/devices/network_update_response.py index 877ea6f17b8..9ff5449333e 100644 --- a/src/cloudflare/types/devices/network_update_response.py +++ b/src/cloudflare/types/devices/network_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["NetworkUpdateResponse", "Config"] diff --git a/src/cloudflare/types/devices/override_code_devices_list_admin_override_code_for_device_response.py b/src/cloudflare/types/devices/override_code_devices_list_admin_override_code_for_device_response.py index fade3d3c59c..e5ba5dc3ba1 100644 --- a/src/cloudflare/types/devices/override_code_devices_list_admin_override_code_for_device_response.py +++ b/src/cloudflare/types/devices/override_code_devices_list_admin_override_code_for_device_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = ["OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse", "DisableForTime"] diff --git a/src/cloudflare/types/devices/policies/__init__.py b/src/cloudflare/types/devices/policies/__init__.py index e7f5d8a4483..1cc995aed36 100644 --- a/src/cloudflare/types/devices/policies/__init__.py +++ b/src/cloudflare/types/devices/policies/__init__.py @@ -2,57 +2,57 @@ from __future__ import annotations -from .exclude_devices_set_split_tunnel_exclude_list_params import ( - ExcludeDevicesSetSplitTunnelExcludeListParams as ExcludeDevicesSetSplitTunnelExcludeListParams, -) -from .include_devices_set_split_tunnel_include_list_params import ( - IncludeDevicesSetSplitTunnelIncludeListParams as IncludeDevicesSetSplitTunnelIncludeListParams, -) from .exclude_devices_get_split_tunnel_exclude_list_response import ( ExcludeDevicesGetSplitTunnelExcludeListResponse as ExcludeDevicesGetSplitTunnelExcludeListResponse, ) +from .exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response import ( + ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse as ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, +) from .exclude_devices_set_split_tunnel_exclude_list_response import ( ExcludeDevicesSetSplitTunnelExcludeListResponse as ExcludeDevicesSetSplitTunnelExcludeListResponse, ) -from .include_devices_get_split_tunnel_include_list_response import ( - IncludeDevicesGetSplitTunnelIncludeListResponse as IncludeDevicesGetSplitTunnelIncludeListResponse, +from .exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response import ( + ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse as ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, ) -from .include_devices_set_split_tunnel_include_list_response import ( - IncludeDevicesSetSplitTunnelIncludeListResponse as IncludeDevicesSetSplitTunnelIncludeListResponse, +from .exclude_devices_set_split_tunnel_exclude_list_params import ( + ExcludeDevicesSetSplitTunnelExcludeListParams as ExcludeDevicesSetSplitTunnelExcludeListParams, ) -from .fallback_domain_devices_set_local_domain_fallback_list_params import ( - FallbackDomainDevicesSetLocalDomainFallbackListParams as FallbackDomainDevicesSetLocalDomainFallbackListParams, +from .exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params import ( + ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyParams as ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyParams, ) from .fallback_domain_devices_get_local_domain_fallback_list_response import ( FallbackDomainDevicesGetLocalDomainFallbackListResponse as FallbackDomainDevicesGetLocalDomainFallbackListResponse, ) +from .fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response import ( + FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse as FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, +) from .fallback_domain_devices_set_local_domain_fallback_list_response import ( FallbackDomainDevicesSetLocalDomainFallbackListResponse as FallbackDomainDevicesSetLocalDomainFallbackListResponse, ) -from .exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params import ( - ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyParams as ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyParams, +from .fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response import ( + FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse as FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, ) -from .include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params import ( - IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyParams as IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyParams, +from .fallback_domain_devices_set_local_domain_fallback_list_params import ( + FallbackDomainDevicesSetLocalDomainFallbackListParams as FallbackDomainDevicesSetLocalDomainFallbackListParams, ) -from .exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response import ( - ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse as ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, +from .fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params import ( + FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyParams as FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyParams, ) -from .exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response import ( - ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse as ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, +from .include_devices_get_split_tunnel_include_list_response import ( + IncludeDevicesGetSplitTunnelIncludeListResponse as IncludeDevicesGetSplitTunnelIncludeListResponse, ) from .include_devices_get_split_tunnel_include_list_for_a_device_settings_policy_response import ( IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse as IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, ) +from .include_devices_set_split_tunnel_include_list_response import ( + IncludeDevicesSetSplitTunnelIncludeListResponse as IncludeDevicesSetSplitTunnelIncludeListResponse, +) from .include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_response import ( IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse as IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, ) -from .fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params import ( - FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyParams as FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyParams, -) -from .fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response import ( - FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse as FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, +from .include_devices_set_split_tunnel_include_list_params import ( + IncludeDevicesSetSplitTunnelIncludeListParams as IncludeDevicesSetSplitTunnelIncludeListParams, ) -from .fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response import ( - FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse as FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, +from .include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params import ( + IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyParams as IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyParams, ) diff --git a/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response.py index 59c71359cf2..17d4e9117ca 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_response.py b/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_response.py index 023c3031175..8a9567cfc76 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_response.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_get_split_tunnel_exclude_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["ExcludeDevicesGetSplitTunnelExcludeListResponse", "ExcludeDevicesGetSplitTunnelExcludeListResponseItem"] diff --git a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params.py b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params.py index 42bfccd2da8..69fb698b8dd 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response.py index e08cff4e66d..941eb840797 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_params.py b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_params.py index 5cb12e0c6c7..3efb53eeda5 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_params.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["ExcludeDevicesSetSplitTunnelExcludeListParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_response.py b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_response.py index 02ebd2f85c5..d03d2f2541f 100644 --- a/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_response.py +++ b/src/cloudflare/types/devices/policies/exclude_devices_set_split_tunnel_exclude_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["ExcludeDevicesSetSplitTunnelExcludeListResponse", "ExcludeDevicesSetSplitTunnelExcludeListResponseItem"] diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response.py index cfc1013a73c..aacd1f0bef4 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_response.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_response.py index 0cca20b13d2..c4c15939025 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_response.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_get_local_domain_fallback_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "FallbackDomainDevicesGetLocalDomainFallbackListResponse", diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params.py index 2621e4aae4e..0234200d653 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response.py index b19613bb6af..e021067e18f 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_params.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_params.py index 80c8b824cfc..fd6e526ba56 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_params.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["FallbackDomainDevicesSetLocalDomainFallbackListParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_response.py b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_response.py index 1fbede698b4..530ae40256a 100644 --- a/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_response.py +++ b/src/cloudflare/types/devices/policies/fallback_domain_devices_set_local_domain_fallback_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "FallbackDomainDevicesSetLocalDomainFallbackListResponse", diff --git a/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_for_a_device_settings_policy_response.py index 1ce8198e934..602a5f95eee 100644 --- a/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_response.py b/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_response.py index 27d2ba24f85..0e3c75cd7fb 100644 --- a/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_response.py +++ b/src/cloudflare/types/devices/policies/include_devices_get_split_tunnel_include_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["IncludeDevicesGetSplitTunnelIncludeListResponse", "IncludeDevicesGetSplitTunnelIncludeListResponseItem"] diff --git a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params.py b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params.py index a13bc5d0120..dca66ae9f13 100644 --- a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params.py +++ b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_response.py b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_response.py index e70e98835a0..23ca46ea7f6 100644 --- a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse", diff --git a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_params.py b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_params.py index e9e47d9fcb9..dca49ef44b6 100644 --- a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_params.py +++ b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["IncludeDevicesSetSplitTunnelIncludeListParams", "Body"] diff --git a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_response.py b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_response.py index bdf55692d1c..783c39f8cc6 100644 --- a/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_response.py +++ b/src/cloudflare/types/devices/policies/include_devices_set_split_tunnel_include_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["IncludeDevicesSetSplitTunnelIncludeListResponse", "IncludeDevicesSetSplitTunnelIncludeListResponseItem"] diff --git a/src/cloudflare/types/devices/policy_delete_response.py b/src/cloudflare/types/devices/policy_delete_response.py index 528e02658d8..8c62fc53356 100644 --- a/src/cloudflare/types/devices/policy_delete_response.py +++ b/src/cloudflare/types/devices/policy_delete_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "PolicyDeleteResponse", diff --git a/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_params.py b/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_params.py index d409d00ff71..b6a457b9cef 100644 --- a/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_params.py +++ b/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PolicyDevicesCreateDeviceSettingsPolicyParams", "ServiceModeV2"] diff --git a/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_response.py b/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_response.py index 148e8e7053a..17c1dda8fd0 100644 --- a/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policy_devices_create_device_settings_policy_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["PolicyDevicesCreateDeviceSettingsPolicyResponse"] diff --git a/src/cloudflare/types/devices/policy_devices_get_default_device_settings_policy_response.py b/src/cloudflare/types/devices/policy_devices_get_default_device_settings_policy_response.py index 3ff2356b05f..89cf99f63a7 100644 --- a/src/cloudflare/types/devices/policy_devices_get_default_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policy_devices_get_default_device_settings_policy_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["PolicyDevicesGetDefaultDeviceSettingsPolicyResponse"] diff --git a/src/cloudflare/types/devices/policy_devices_list_device_settings_policies_response.py b/src/cloudflare/types/devices/policy_devices_list_device_settings_policies_response.py index 409073d9158..a17d2ae051c 100644 --- a/src/cloudflare/types/devices/policy_devices_list_device_settings_policies_response.py +++ b/src/cloudflare/types/devices/policy_devices_list_device_settings_policies_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "PolicyDevicesListDeviceSettingsPoliciesResponse", diff --git a/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_params.py b/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_params.py index 4e5d3b8ca5f..4d0e25c0c6f 100644 --- a/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_params.py +++ b/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["PolicyDevicesUpdateDefaultDeviceSettingsPolicyParams", "ServiceModeV2"] diff --git a/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_response.py b/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_response.py index cebcc4d2f71..d77324eb39d 100644 --- a/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_response.py +++ b/src/cloudflare/types/devices/policy_devices_update_default_device_settings_policy_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse"] diff --git a/src/cloudflare/types/devices/policy_get_response.py b/src/cloudflare/types/devices/policy_get_response.py index 22ded00013f..4d944d7a34f 100644 --- a/src/cloudflare/types/devices/policy_get_response.py +++ b/src/cloudflare/types/devices/policy_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["PolicyGetResponse"] diff --git a/src/cloudflare/types/devices/policy_update_params.py b/src/cloudflare/types/devices/policy_update_params.py index 9b2f5184570..9ce449ffa8d 100644 --- a/src/cloudflare/types/devices/policy_update_params.py +++ b/src/cloudflare/types/devices/policy_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PolicyUpdateParams", "ServiceModeV2"] diff --git a/src/cloudflare/types/devices/policy_update_response.py b/src/cloudflare/types/devices/policy_update_response.py index 0f25eb0d7f8..c45f2954a64 100644 --- a/src/cloudflare/types/devices/policy_update_response.py +++ b/src/cloudflare/types/devices/policy_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/devices/posture_delete_response.py b/src/cloudflare/types/devices/posture_delete_response.py index e12e478dd9d..f2f6a7ec53d 100644 --- a/src/cloudflare/types/devices/posture_delete_response.py +++ b/src/cloudflare/types/devices/posture_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PostureDeleteResponse"] diff --git a/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_params.py b/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_params.py index 90a0001d59d..976609faa5c 100644 --- a/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_params.py +++ b/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, List, Union + +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 ...types import shared_params __all__ = [ "PostureDevicePostureRulesCreateDevicePostureRuleParams", diff --git a/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_response.py b/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_response.py index 8bcad23b0ff..4a6ad4098b6 100644 --- a/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_response.py +++ b/src/cloudflare/types/devices/posture_device_posture_rules_create_device_posture_rule_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PostureDevicePostureRulesCreateDevicePostureRuleResponse", diff --git a/src/cloudflare/types/devices/posture_device_posture_rules_list_device_posture_rules_response.py b/src/cloudflare/types/devices/posture_device_posture_rules_list_device_posture_rules_response.py index ffb6dc22794..0e3b1a4f2a2 100644 --- a/src/cloudflare/types/devices/posture_device_posture_rules_list_device_posture_rules_response.py +++ b/src/cloudflare/types/devices/posture_device_posture_rules_list_device_posture_rules_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PostureDevicePostureRulesListDevicePostureRulesResponse", diff --git a/src/cloudflare/types/devices/posture_get_response.py b/src/cloudflare/types/devices/posture_get_response.py index 61165b2d19f..bbdae0b5ca0 100644 --- a/src/cloudflare/types/devices/posture_get_response.py +++ b/src/cloudflare/types/devices/posture_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PostureGetResponse", diff --git a/src/cloudflare/types/devices/posture_update_params.py b/src/cloudflare/types/devices/posture_update_params.py index 5b9b4e348fd..177dcae5d23 100644 --- a/src/cloudflare/types/devices/posture_update_params.py +++ b/src/cloudflare/types/devices/posture_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, List, Union + +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 ...types import shared_params __all__ = [ "PostureUpdateParams", diff --git a/src/cloudflare/types/devices/posture_update_response.py b/src/cloudflare/types/devices/posture_update_response.py index 593e059a33c..8f9ae350ef5 100644 --- a/src/cloudflare/types/devices/posture_update_response.py +++ b/src/cloudflare/types/devices/posture_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PostureUpdateResponse", diff --git a/src/cloudflare/types/devices/postures/__init__.py b/src/cloudflare/types/devices/postures/__init__.py index 3bfc539de5c..124bdde424a 100644 --- a/src/cloudflare/types/devices/postures/__init__.py +++ b/src/cloudflare/types/devices/postures/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .integration_get_response import IntegrationGetResponse as IntegrationGetResponse -from .integration_update_params import IntegrationUpdateParams as IntegrationUpdateParams -from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse from .integration_update_response import IntegrationUpdateResponse as IntegrationUpdateResponse -from .integration_device_posture_integrations_create_device_posture_integration_params import ( - IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationParams as IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationParams, +from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse +from .integration_device_posture_integrations_create_device_posture_integration_response import ( + IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse as IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, ) from .integration_device_posture_integrations_list_device_posture_integrations_response import ( IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse as IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, ) -from .integration_device_posture_integrations_create_device_posture_integration_response import ( - IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse as IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, +from .integration_get_response import IntegrationGetResponse as IntegrationGetResponse +from .integration_update_params import IntegrationUpdateParams as IntegrationUpdateParams +from .integration_device_posture_integrations_create_device_posture_integration_params import ( + IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationParams as IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationParams, ) diff --git a/src/cloudflare/types/devices/postures/integration_delete_response.py b/src/cloudflare/types/devices/postures/integration_delete_response.py index 359f164e0b1..f733dd297d8 100644 --- a/src/cloudflare/types/devices/postures/integration_delete_response.py +++ b/src/cloudflare/types/devices/postures/integration_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["IntegrationDeleteResponse"] diff --git a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_params.py b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_params.py index 88b2e129a7b..efea8db9c36 100644 --- a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_params.py +++ b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = [ "IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationParams", diff --git a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_response.py b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_response.py index 9a2d12a5e53..237322e2108 100644 --- a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_response.py +++ b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_create_device_posture_integration_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ....types import shared __all__ = ["IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse", "Config"] diff --git a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_list_device_posture_integrations_response.py b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_list_device_posture_integrations_response.py index 2a275e22227..9cb04ad3aee 100644 --- a/src/cloudflare/types/devices/postures/integration_device_posture_integrations_list_device_posture_integrations_response.py +++ b/src/cloudflare/types/devices/postures/integration_device_posture_integrations_list_device_posture_integrations_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse", diff --git a/src/cloudflare/types/devices/postures/integration_get_response.py b/src/cloudflare/types/devices/postures/integration_get_response.py index 2c08b79dc3b..1c18cdd6715 100644 --- a/src/cloudflare/types/devices/postures/integration_get_response.py +++ b/src/cloudflare/types/devices/postures/integration_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ....types import shared __all__ = ["IntegrationGetResponse", "Config"] diff --git a/src/cloudflare/types/devices/postures/integration_update_params.py b/src/cloudflare/types/devices/postures/integration_update_params.py index b777be79dd2..dcae9f4a2a2 100644 --- a/src/cloudflare/types/devices/postures/integration_update_params.py +++ b/src/cloudflare/types/devices/postures/integration_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = [ "IntegrationUpdateParams", diff --git a/src/cloudflare/types/devices/postures/integration_update_response.py b/src/cloudflare/types/devices/postures/integration_update_response.py index e8a27f0ce6f..14d4dc951ac 100644 --- a/src/cloudflare/types/devices/postures/integration_update_response.py +++ b/src/cloudflare/types/devices/postures/integration_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ....types import shared __all__ = ["IntegrationUpdateResponse", "Config"] diff --git a/src/cloudflare/types/devices/revoke_devices_revoke_devices_params.py b/src/cloudflare/types/devices/revoke_devices_revoke_devices_params.py index f10ccac0821..ae36e980cd1 100644 --- a/src/cloudflare/types/devices/revoke_devices_revoke_devices_params.py +++ b/src/cloudflare/types/devices/revoke_devices_revoke_devices_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["RevokeDevicesRevokeDevicesParams"] diff --git a/src/cloudflare/types/devices/revoke_devices_revoke_devices_response.py b/src/cloudflare/types/devices/revoke_devices_revoke_devices_response.py index 21a5ab407df..dd63a5aa354 100644 --- a/src/cloudflare/types/devices/revoke_devices_revoke_devices_response.py +++ b/src/cloudflare/types/devices/revoke_devices_revoke_devices_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["RevokeDevicesRevokeDevicesResponse"] diff --git a/src/cloudflare/types/devices/setting_zero_trust_accounts_get_device_settings_for_zero_trust_account_response.py b/src/cloudflare/types/devices/setting_zero_trust_accounts_get_device_settings_for_zero_trust_account_response.py index 2a089f993f5..f9d356c291d 100644 --- a/src/cloudflare/types/devices/setting_zero_trust_accounts_get_device_settings_for_zero_trust_account_response.py +++ b/src/cloudflare/types/devices/setting_zero_trust_accounts_get_device_settings_for_zero_trust_account_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse"] diff --git a/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params.py b/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params.py index cee520be4e6..2d9953e6c28 100644 --- a/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params.py +++ b/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountParams"] diff --git a/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response.py b/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response.py index 1f3e3e236be..d5782adce33 100644 --- a/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response.py +++ b/src/cloudflare/types/devices/setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse"] diff --git a/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_params.py b/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_params.py index 8915bb55842..3640eb8ce88 100644 --- a/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_params.py +++ b/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["UnrevokeDevicesUnrevokeDevicesParams"] diff --git a/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_response.py b/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_response.py index 5f5495bbd66..6f927cbedd6 100644 --- a/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_response.py +++ b/src/cloudflare/types/devices/unrevoke_devices_unrevoke_devices_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["UnrevokeDevicesUnrevokeDevicesResponse"] diff --git a/src/cloudflare/types/dex/__init__.py b/src/cloudflare/types/dex/__init__.py index 81d3da82c8c..165dde42cc8 100644 --- a/src/cloudflare/types/dex/__init__.py +++ b/src/cloudflare/types/dex/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .colo_list_params import ColoListParams as ColoListParams -from .test_list_params import TestListParams as TestListParams from .colo_list_response import ColoListResponse as ColoListResponse -from .test_list_response import TestListResponse as TestListResponse -from .http_test_get_params import HTTPTestGetParams as HTTPTestGetParams +from .colo_list_params import ColoListParams as ColoListParams from .http_test_get_response import HTTPTestGetResponse as HTTPTestGetResponse -from .traceroute_test_get_params import TracerouteTestGetParams as TracerouteTestGetParams +from .http_test_get_params import HTTPTestGetParams as HTTPTestGetParams +from .test_list_response import TestListResponse as TestListResponse +from .test_list_params import TestListParams as TestListParams from .traceroute_test_get_response import TracerouteTestGetResponse as TracerouteTestGetResponse -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 from .traceroute_test_network_path_response import ( TracerouteTestNetworkPathResponse as TracerouteTestNetworkPathResponse, ) +from .traceroute_test_percentiles_response import TracerouteTestPercentilesResponse as TracerouteTestPercentilesResponse +from .traceroute_test_get_params import TracerouteTestGetParams as TracerouteTestGetParams +from .traceroute_test_network_path_params import TracerouteTestNetworkPathParams as TracerouteTestNetworkPathParams +from .traceroute_test_percentiles_params import TracerouteTestPercentilesParams as TracerouteTestPercentilesParams diff --git a/src/cloudflare/types/dex/colo_list_params.py b/src/cloudflare/types/dex/colo_list_params.py index 1441b010de7..4b1ff569263 100644 --- a/src/cloudflare/types/dex/colo_list_params.py +++ b/src/cloudflare/types/dex/colo_list_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Annotated, Required, 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 +from ...types import shared_params + __all__ = ["ColoListParams"] diff --git a/src/cloudflare/types/dex/colo_list_response.py b/src/cloudflare/types/dex/colo_list_response.py index 48fb7f7fe56..9b3858c8379 100644 --- a/src/cloudflare/types/dex/colo_list_response.py +++ b/src/cloudflare/types/dex/colo_list_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ColoListResponse"] diff --git a/src/cloudflare/types/dex/fleet_status/__init__.py b/src/cloudflare/types/dex/fleet_status/__init__.py index 5c7e9119f63..c04d4389960 100644 --- a/src/cloudflare/types/dex/fleet_status/__init__.py +++ b/src/cloudflare/types/dex/fleet_status/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .live_list_params import LiveListParams as LiveListParams +from .device_list_response import DeviceListResponse as DeviceListResponse from .device_list_params import DeviceListParams as DeviceListParams from .live_list_response import LiveListResponse as LiveListResponse -from .device_list_response import DeviceListResponse as DeviceListResponse +from .live_list_params import LiveListParams as LiveListParams from .over_time_list_params import OverTimeListParams as OverTimeListParams diff --git a/src/cloudflare/types/dex/fleet_status/device_list_params.py b/src/cloudflare/types/dex/fleet_status/device_list_params.py index 0f0f8dc3a0f..28124f71b1b 100644 --- a/src/cloudflare/types/dex/fleet_status/device_list_params.py +++ b/src/cloudflare/types/dex/fleet_status/device_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ....types import shared_params __all__ = ["DeviceListParams"] diff --git a/src/cloudflare/types/dex/fleet_status/device_list_response.py b/src/cloudflare/types/dex/fleet_status/device_list_response.py index 6947215167d..3d64fc50bc0 100644 --- a/src/cloudflare/types/dex/fleet_status/device_list_response.py +++ b/src/cloudflare/types/dex/fleet_status/device_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["DeviceListResponse", "DeviceListResponseItem"] diff --git a/src/cloudflare/types/dex/fleet_status/live_list_params.py b/src/cloudflare/types/dex/fleet_status/live_list_params.py index f27cfa2e3cc..711ffeebb80 100644 --- a/src/cloudflare/types/dex/fleet_status/live_list_params.py +++ b/src/cloudflare/types/dex/fleet_status/live_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["LiveListParams"] diff --git a/src/cloudflare/types/dex/fleet_status/live_list_response.py b/src/cloudflare/types/dex/fleet_status/live_list_response.py index 998adf5e3d7..46453806777 100644 --- a/src/cloudflare/types/dex/fleet_status/live_list_response.py +++ b/src/cloudflare/types/dex/fleet_status/live_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "LiveListResponse", diff --git a/src/cloudflare/types/dex/fleet_status/over_time_list_params.py b/src/cloudflare/types/dex/fleet_status/over_time_list_params.py index 37b0ef6d856..74052c4db29 100644 --- a/src/cloudflare/types/dex/fleet_status/over_time_list_params.py +++ b/src/cloudflare/types/dex/fleet_status/over_time_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["OverTimeListParams"] diff --git a/src/cloudflare/types/dex/http_test_get_params.py b/src/cloudflare/types/dex/http_test_get_params.py index f3ae6c2b01a..e0c4e0cdf44 100644 --- a/src/cloudflare/types/dex/http_test_get_params.py +++ b/src/cloudflare/types/dex/http_test_get_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal, Annotated + +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 +from ...types import shared_params __all__ = ["HTTPTestGetParams"] diff --git a/src/cloudflare/types/dex/http_test_get_response.py b/src/cloudflare/types/dex/http_test_get_response.py index 07cd8155f66..f6fbb663908 100644 --- a/src/cloudflare/types/dex/http_test_get_response.py +++ b/src/cloudflare/types/dex/http_test_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = [ "HTTPTestGetResponse", diff --git a/src/cloudflare/types/dex/http_tests/__init__.py b/src/cloudflare/types/dex/http_tests/__init__.py index 76d49d61550..d2e994f1054 100644 --- a/src/cloudflare/types/dex/http_tests/__init__.py +++ b/src/cloudflare/types/dex/http_tests/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .percentile_list_params import PercentileListParams as PercentileListParams from .percentile_list_response import PercentileListResponse as PercentileListResponse +from .percentile_list_params import PercentileListParams as PercentileListParams diff --git a/src/cloudflare/types/dex/http_tests/percentile_list_params.py b/src/cloudflare/types/dex/http_tests/percentile_list_params.py index 9eb8dea4166..c6ed5381003 100644 --- a/src/cloudflare/types/dex/http_tests/percentile_list_params.py +++ b/src/cloudflare/types/dex/http_tests/percentile_list_params.py @@ -2,10 +2,17 @@ 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 +from ....types import shared_params __all__ = ["PercentileListParams"] diff --git a/src/cloudflare/types/dex/http_tests/percentile_list_response.py b/src/cloudflare/types/dex/http_tests/percentile_list_response.py index 48d20462e01..a9c3c42df15 100644 --- a/src/cloudflare/types/dex/http_tests/percentile_list_response.py +++ b/src/cloudflare/types/dex/http_tests/percentile_list_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["PercentileListResponse", "DNSResponseTimeMs", "ResourceFetchTimeMs", "ServerResponseTimeMs"] diff --git a/src/cloudflare/types/dex/test_list_params.py b/src/cloudflare/types/dex/test_list_params.py index 9ac66257072..8cf51d6d1ff 100644 --- a/src/cloudflare/types/dex/test_list_params.py +++ b/src/cloudflare/types/dex/test_list_params.py @@ -2,11 +2,18 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated + from typing import List -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 +from ...types import shared_params + __all__ = ["TestListParams"] diff --git a/src/cloudflare/types/dex/test_list_response.py b/src/cloudflare/types/dex/test_list_response.py index ee68d226f69..8fabc0dd5bb 100644 --- a/src/cloudflare/types/dex/test_list_response.py +++ b/src/cloudflare/types/dex/test_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "TestListResponse", diff --git a/src/cloudflare/types/dex/tests/__init__.py b/src/cloudflare/types/dex/tests/__init__.py index 1d73213f0db..2ce3b8661ac 100644 --- a/src/cloudflare/types/dex/tests/__init__.py +++ b/src/cloudflare/types/dex/tests/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .unique_device_list_params import UniqueDeviceListParams as UniqueDeviceListParams from .unique_device_list_response import UniqueDeviceListResponse as UniqueDeviceListResponse +from .unique_device_list_params import UniqueDeviceListParams as UniqueDeviceListParams diff --git a/src/cloudflare/types/dex/tests/unique_device_list_params.py b/src/cloudflare/types/dex/tests/unique_device_list_params.py index 2b1c2cc2aa0..13440036c6f 100644 --- a/src/cloudflare/types/dex/tests/unique_device_list_params.py +++ b/src/cloudflare/types/dex/tests/unique_device_list_params.py @@ -2,11 +2,18 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated + from typing import List -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 +from ....types import shared_params + __all__ = ["UniqueDeviceListParams"] diff --git a/src/cloudflare/types/dex/tests/unique_device_list_response.py b/src/cloudflare/types/dex/tests/unique_device_list_response.py index 702333dc56b..f16a67cba95 100644 --- a/src/cloudflare/types/dex/tests/unique_device_list_response.py +++ b/src/cloudflare/types/dex/tests/unique_device_list_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal from pydantic import Field as FieldInfo - from ...._models import BaseModel +from ....types import shared __all__ = ["UniqueDeviceListResponse"] diff --git a/src/cloudflare/types/dex/traceroute_test_get_params.py b/src/cloudflare/types/dex/traceroute_test_get_params.py index db22219f859..b9f2db11487 100644 --- a/src/cloudflare/types/dex/traceroute_test_get_params.py +++ b/src/cloudflare/types/dex/traceroute_test_get_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal, Annotated + +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 +from ...types import shared_params __all__ = ["TracerouteTestGetParams"] diff --git a/src/cloudflare/types/dex/traceroute_test_get_response.py b/src/cloudflare/types/dex/traceroute_test_get_response.py index 0c0354d4708..f1f200ed04f 100644 --- a/src/cloudflare/types/dex/traceroute_test_get_response.py +++ b/src/cloudflare/types/dex/traceroute_test_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = [ "TracerouteTestGetResponse", diff --git a/src/cloudflare/types/dex/traceroute_test_network_path_params.py b/src/cloudflare/types/dex/traceroute_test_network_path_params.py index c87512e36e9..6406999a010 100644 --- a/src/cloudflare/types/dex/traceroute_test_network_path_params.py +++ b/src/cloudflare/types/dex/traceroute_test_network_path_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ...types import shared_params + __all__ = ["TracerouteTestNetworkPathParams"] diff --git a/src/cloudflare/types/dex/traceroute_test_network_path_response.py b/src/cloudflare/types/dex/traceroute_test_network_path_response.py index 185729ae081..250b97c5761 100644 --- a/src/cloudflare/types/dex/traceroute_test_network_path_response.py +++ b/src/cloudflare/types/dex/traceroute_test_network_path_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["TracerouteTestNetworkPathResponse", "NetworkPath", "NetworkPathSlot", "NetworkPathSampling"] diff --git a/src/cloudflare/types/dex/traceroute_test_percentiles_params.py b/src/cloudflare/types/dex/traceroute_test_percentiles_params.py index 73990e8b76f..62926891801 100644 --- a/src/cloudflare/types/dex/traceroute_test_percentiles_params.py +++ b/src/cloudflare/types/dex/traceroute_test_percentiles_params.py @@ -2,10 +2,17 @@ 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 +from ...types import shared_params __all__ = ["TracerouteTestPercentilesParams"] diff --git a/src/cloudflare/types/dex/traceroute_test_percentiles_response.py b/src/cloudflare/types/dex/traceroute_test_percentiles_response.py index 2537b38b792..b8e9c3d819f 100644 --- a/src/cloudflare/types/dex/traceroute_test_percentiles_response.py +++ b/src/cloudflare/types/dex/traceroute_test_percentiles_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = ["TracerouteTestPercentilesResponse", "HopsCount", "PacketLossPct", "RoundTripTimeMs"] diff --git a/src/cloudflare/types/dex/traceroute_test_results/network_path_list_response.py b/src/cloudflare/types/dex/traceroute_test_results/network_path_list_response.py index e9be67ece50..ef525db898b 100644 --- a/src/cloudflare/types/dex/traceroute_test_results/network_path_list_response.py +++ b/src/cloudflare/types/dex/traceroute_test_results/network_path_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["NetworkPathListResponse", "Hop", "HopLocation"] diff --git a/src/cloudflare/types/dispatchers/__init__.py b/src/cloudflare/types/dispatchers/__init__.py index fc27379f5ad..356067afb87 100644 --- a/src/cloudflare/types/dispatchers/__init__.py +++ b/src/cloudflare/types/dispatchers/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations +from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse from .script_get_response import ScriptGetResponse as ScriptGetResponse -from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams from .script_update_params import ScriptUpdateParams as ScriptUpdateParams -from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse +from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams diff --git a/src/cloudflare/types/dispatchers/script_delete_params.py b/src/cloudflare/types/dispatchers/script_delete_params.py index e9eb8853c44..d78045af58f 100644 --- a/src/cloudflare/types/dispatchers/script_delete_params.py +++ b/src/cloudflare/types/dispatchers/script_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ScriptDeleteParams"] diff --git a/src/cloudflare/types/dispatchers/script_get_response.py b/src/cloudflare/types/dispatchers/script_get_response.py index 63722be3b9c..c3348b460a4 100644 --- a/src/cloudflare/types/dispatchers/script_get_response.py +++ b/src/cloudflare/types/dispatchers/script_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ScriptGetResponse", "Script", "ScriptTailConsumer"] diff --git a/src/cloudflare/types/dispatchers/script_update_params.py b/src/cloudflare/types/dispatchers/script_update_params.py index aed15c46409..635575b52f1 100644 --- a/src/cloudflare/types/dispatchers/script_update_params.py +++ b/src/cloudflare/types/dispatchers/script_update_params.py @@ -2,11 +2,19 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated, Literal +from typing import List, Iterable, Union + +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 +from ...types import shared_params __all__ = [ "ScriptUpdateParams", diff --git a/src/cloudflare/types/dispatchers/script_update_response.py b/src/cloudflare/types/dispatchers/script_update_response.py index 98be45339df..626e9e7fa5e 100644 --- a/src/cloudflare/types/dispatchers/script_update_response.py +++ b/src/cloudflare/types/dispatchers/script_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ScriptUpdateResponse", "TailConsumer"] diff --git a/src/cloudflare/types/dlp/__init__.py b/src/cloudflare/types/dlp/__init__.py index 662d887e497..cc15e8fa112 100644 --- a/src/cloudflare/types/dlp/__init__.py +++ b/src/cloudflare/types/dlp/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .dataset_get_response import DatasetGetResponse as DatasetGetResponse -from .dataset_create_params import DatasetCreateParams as DatasetCreateParams -from .dataset_list_response import DatasetListResponse as DatasetListResponse -from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams from .dataset_create_response import DatasetCreateResponse as DatasetCreateResponse from .dataset_update_response import DatasetUpdateResponse as DatasetUpdateResponse +from .dataset_list_response import DatasetListResponse as DatasetListResponse +from .dataset_get_response import DatasetGetResponse as DatasetGetResponse from .dataset_upload_response import DatasetUploadResponse as DatasetUploadResponse from .dataset_upload_prepare_response import DatasetUploadPrepareResponse as DatasetUploadPrepareResponse +from .dataset_create_params import DatasetCreateParams as DatasetCreateParams +from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams diff --git a/src/cloudflare/types/dlp/dataset_create_params.py b/src/cloudflare/types/dlp/dataset_create_params.py index ff9c09bc8ed..19f3148f59e 100644 --- a/src/cloudflare/types/dlp/dataset_create_params.py +++ b/src/cloudflare/types/dlp/dataset_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["DatasetCreateParams"] diff --git a/src/cloudflare/types/dlp/dataset_create_response.py b/src/cloudflare/types/dlp/dataset_create_response.py index 94ebbef4146..1e5264b3fd0 100644 --- a/src/cloudflare/types/dlp/dataset_create_response.py +++ b/src/cloudflare/types/dlp/dataset_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime from typing_extensions import Literal +from datetime import datetime + +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 +from ...types import shared __all__ = ["DatasetCreateResponse", "Dataset", "DatasetUpload"] diff --git a/src/cloudflare/types/dlp/dataset_get_response.py b/src/cloudflare/types/dlp/dataset_get_response.py index e021837e14c..d8ed869fe8a 100644 --- a/src/cloudflare/types/dlp/dataset_get_response.py +++ b/src/cloudflare/types/dlp/dataset_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime from typing_extensions import Literal +from datetime import datetime + +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 +from ...types import shared __all__ = ["DatasetGetResponse", "Upload"] diff --git a/src/cloudflare/types/dlp/dataset_list_response.py b/src/cloudflare/types/dlp/dataset_list_response.py index 8f6ab75d37c..d9d19f4d66f 100644 --- a/src/cloudflare/types/dlp/dataset_list_response.py +++ b/src/cloudflare/types/dlp/dataset_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime from typing_extensions import Literal +from datetime import datetime + +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 +from ...types import shared __all__ = ["DatasetListResponse", "DatasetListResponseItem", "DatasetListResponseItemUpload"] diff --git a/src/cloudflare/types/dlp/dataset_update_params.py b/src/cloudflare/types/dlp/dataset_update_params.py index ecf364ad8fc..1f03f67ba87 100644 --- a/src/cloudflare/types/dlp/dataset_update_params.py +++ b/src/cloudflare/types/dlp/dataset_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["DatasetUpdateParams"] diff --git a/src/cloudflare/types/dlp/dataset_update_response.py b/src/cloudflare/types/dlp/dataset_update_response.py index 4b3d61f5fe3..63704e7f35d 100644 --- a/src/cloudflare/types/dlp/dataset_update_response.py +++ b/src/cloudflare/types/dlp/dataset_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime from typing_extensions import Literal +from datetime import datetime + +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 +from ...types import shared __all__ = ["DatasetUpdateResponse", "Upload"] diff --git a/src/cloudflare/types/dlp/dataset_upload_prepare_response.py b/src/cloudflare/types/dlp/dataset_upload_prepare_response.py index de6d1210154..4e4c9761b85 100644 --- a/src/cloudflare/types/dlp/dataset_upload_prepare_response.py +++ b/src/cloudflare/types/dlp/dataset_upload_prepare_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DatasetUploadPrepareResponse"] diff --git a/src/cloudflare/types/dlp/dataset_upload_response.py b/src/cloudflare/types/dlp/dataset_upload_response.py index 1ec5e24a29e..c6d19e39888 100644 --- a/src/cloudflare/types/dlp/dataset_upload_response.py +++ b/src/cloudflare/types/dlp/dataset_upload_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime from typing_extensions import Literal +from datetime import datetime + +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 +from ...types import shared __all__ = ["DatasetUploadResponse", "Upload"] diff --git a/src/cloudflare/types/dlps/__init__.py b/src/cloudflare/types/dlps/__init__.py index 862d712d914..8af8e842117 100644 --- a/src/cloudflare/types/dlps/__init__.py +++ b/src/cloudflare/types/dlps/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .profile_get_response import ProfileGetResponse as ProfileGetResponse -from .profile_dlp_profiles_list_all_profiles_response import ( - ProfileDLPProfilesListAllProfilesResponse as ProfileDLPProfilesListAllProfilesResponse, -) from .payload_log_dlp_payload_log_settings_get_settings_response import ( PayloadLogDLPPayloadLogSettingsGetSettingsResponse as PayloadLogDLPPayloadLogSettingsGetSettingsResponse, ) +from .payload_log_dlp_payload_log_settings_update_settings_response import ( + PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse as PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, +) from .payload_log_dlp_payload_log_settings_update_settings_params import ( PayloadLogDLPPayloadLogSettingsUpdateSettingsParams as PayloadLogDLPPayloadLogSettingsUpdateSettingsParams, ) -from .payload_log_dlp_payload_log_settings_update_settings_response import ( - PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse as PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, +from .profile_dlp_profiles_list_all_profiles_response import ( + ProfileDLPProfilesListAllProfilesResponse as ProfileDLPProfilesListAllProfilesResponse, ) +from .profile_get_response import ProfileGetResponse as ProfileGetResponse diff --git a/src/cloudflare/types/dlps/patterns/__init__.py b/src/cloudflare/types/dlps/patterns/__init__.py index 49c97b7fe1c..e7f1c45ad28 100644 --- a/src/cloudflare/types/dlps/patterns/__init__.py +++ b/src/cloudflare/types/dlps/patterns/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .validate_dlp_pattern_validation_validate_pattern_params import ( - ValidateDLPPatternValidationValidatePatternParams as ValidateDLPPatternValidationValidatePatternParams, -) from .validate_dlp_pattern_validation_validate_pattern_response import ( ValidateDLPPatternValidationValidatePatternResponse as ValidateDLPPatternValidationValidatePatternResponse, ) +from .validate_dlp_pattern_validation_validate_pattern_params import ( + ValidateDLPPatternValidationValidatePatternParams as ValidateDLPPatternValidationValidatePatternParams, +) diff --git a/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_params.py b/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_params.py index 89d49049d17..c62ebb09f69 100644 --- a/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_params.py +++ b/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ValidateDLPPatternValidationValidatePatternParams"] diff --git a/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_response.py b/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_response.py index a3cab63af08..9c40678375e 100644 --- a/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_response.py +++ b/src/cloudflare/types/dlps/patterns/validate_dlp_pattern_validation_validate_pattern_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ValidateDLPPatternValidationValidatePatternResponse"] diff --git a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_get_settings_response.py b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_get_settings_response.py index c6d182406dd..037cf90e8db 100644 --- a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_get_settings_response.py +++ b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_get_settings_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PayloadLogDLPPayloadLogSettingsGetSettingsResponse"] diff --git a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_params.py b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_params.py index fb4274a4fc8..491666d4d83 100644 --- a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_params.py +++ b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["PayloadLogDLPPayloadLogSettingsUpdateSettingsParams"] diff --git a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_response.py b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_response.py index 44e05869d95..a43eb707c17 100644 --- a/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_response.py +++ b/src/cloudflare/types/dlps/payload_log_dlp_payload_log_settings_update_settings_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse"] diff --git a/src/cloudflare/types/dlps/profile_dlp_profiles_list_all_profiles_response.py b/src/cloudflare/types/dlps/profile_dlp_profiles_list_all_profiles_response.py index 9db79c3febc..f8ad408e88b 100644 --- a/src/cloudflare/types/dlps/profile_dlp_profiles_list_all_profiles_response.py +++ b/src/cloudflare/types/dlps/profile_dlp_profiles_list_all_profiles_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "ProfileDLPProfilesListAllProfilesResponse", diff --git a/src/cloudflare/types/dlps/profile_get_response.py b/src/cloudflare/types/dlps/profile_get_response.py index e6a1e6b4cf9..f876ab63e2e 100644 --- a/src/cloudflare/types/dlps/profile_get_response.py +++ b/src/cloudflare/types/dlps/profile_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "ProfileGetResponse", diff --git a/src/cloudflare/types/dlps/profiles/__init__.py b/src/cloudflare/types/dlps/profiles/__init__.py index 1660d9bcd6d..c427abf0d4b 100644 --- a/src/cloudflare/types/dlps/profiles/__init__.py +++ b/src/cloudflare/types/dlps/profiles/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations +from .custom_update_response import CustomUpdateResponse as CustomUpdateResponse +from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse +from .custom_dlp_profiles_create_custom_profiles_response import ( + CustomDLPProfilesCreateCustomProfilesResponse as CustomDLPProfilesCreateCustomProfilesResponse, +) from .custom_get_response import CustomGetResponse as CustomGetResponse from .custom_update_params import CustomUpdateParams as CustomUpdateParams -from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse -from .custom_update_response import CustomUpdateResponse as CustomUpdateResponse -from .predefined_get_response import PredefinedGetResponse as PredefinedGetResponse -from .predefined_update_params import PredefinedUpdateParams as PredefinedUpdateParams -from .predefined_update_response import PredefinedUpdateResponse as PredefinedUpdateResponse from .custom_dlp_profiles_create_custom_profiles_params import ( CustomDLPProfilesCreateCustomProfilesParams as CustomDLPProfilesCreateCustomProfilesParams, ) -from .custom_dlp_profiles_create_custom_profiles_response import ( - CustomDLPProfilesCreateCustomProfilesResponse as CustomDLPProfilesCreateCustomProfilesResponse, -) +from .predefined_update_response import PredefinedUpdateResponse as PredefinedUpdateResponse +from .predefined_get_response import PredefinedGetResponse as PredefinedGetResponse +from .predefined_update_params import PredefinedUpdateParams as PredefinedUpdateParams diff --git a/src/cloudflare/types/dlps/profiles/custom_delete_response.py b/src/cloudflare/types/dlps/profiles/custom_delete_response.py index f01bc4f39c7..31868ccc09d 100644 --- a/src/cloudflare/types/dlps/profiles/custom_delete_response.py +++ b/src/cloudflare/types/dlps/profiles/custom_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ....types import shared __all__ = ["CustomDeleteResponse"] diff --git a/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_params.py b/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_params.py index 80372cd6e20..d48f14cef62 100644 --- a/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_params.py +++ b/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = ["CustomDLPProfilesCreateCustomProfilesParams", "Profile", "ProfileEntry", "ProfileEntryPattern"] diff --git a/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_response.py b/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_response.py index c5ee349406d..8b5bff67b9e 100644 --- a/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_response.py +++ b/src/cloudflare/types/dlps/profiles/custom_dlp_profiles_create_custom_profiles_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ....types import shared __all__ = [ "CustomDLPProfilesCreateCustomProfilesResponse", diff --git a/src/cloudflare/types/dlps/profiles/custom_get_response.py b/src/cloudflare/types/dlps/profiles/custom_get_response.py index fa80b126cc3..adf54bf6d5c 100644 --- a/src/cloudflare/types/dlps/profiles/custom_get_response.py +++ b/src/cloudflare/types/dlps/profiles/custom_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ....types import shared __all__ = ["CustomGetResponse", "Entry", "EntryPattern"] diff --git a/src/cloudflare/types/dlps/profiles/custom_update_params.py b/src/cloudflare/types/dlps/profiles/custom_update_params.py index 09dad163c6c..ad0964f2bc6 100644 --- a/src/cloudflare/types/dlps/profiles/custom_update_params.py +++ b/src/cloudflare/types/dlps/profiles/custom_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +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 ....types import shared_params __all__ = [ "CustomUpdateParams", diff --git a/src/cloudflare/types/dlps/profiles/custom_update_response.py b/src/cloudflare/types/dlps/profiles/custom_update_response.py index 1de9d1f99cb..0701a0f919a 100644 --- a/src/cloudflare/types/dlps/profiles/custom_update_response.py +++ b/src/cloudflare/types/dlps/profiles/custom_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ....types import shared __all__ = ["CustomUpdateResponse", "Entry", "EntryPattern"] diff --git a/src/cloudflare/types/dlps/profiles/predefined_get_response.py b/src/cloudflare/types/dlps/profiles/predefined_get_response.py index 2f1390806b5..93c6ef7c366 100644 --- a/src/cloudflare/types/dlps/profiles/predefined_get_response.py +++ b/src/cloudflare/types/dlps/profiles/predefined_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["PredefinedGetResponse", "Entry"] diff --git a/src/cloudflare/types/dlps/profiles/predefined_update_params.py b/src/cloudflare/types/dlps/profiles/predefined_update_params.py index f6608857e7e..c4236ed6a81 100644 --- a/src/cloudflare/types/dlps/profiles/predefined_update_params.py +++ b/src/cloudflare/types/dlps/profiles/predefined_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["PredefinedUpdateParams", "Entry"] diff --git a/src/cloudflare/types/dlps/profiles/predefined_update_response.py b/src/cloudflare/types/dlps/profiles/predefined_update_response.py index 7c0ce90cf12..0e40f7d3392 100644 --- a/src/cloudflare/types/dlps/profiles/predefined_update_response.py +++ b/src/cloudflare/types/dlps/profiles/predefined_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["PredefinedUpdateResponse", "Entry"] diff --git a/src/cloudflare/types/dns_analytics/__init__.py b/src/cloudflare/types/dns_analytics/__init__.py index e5056de4b52..57f2c398f9f 100644 --- a/src/cloudflare/types/dns_analytics/__init__.py +++ b/src/cloudflare/types/dns_analytics/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .report_list_params import ReportListParams as ReportListParams from .report_list_response import ReportListResponse as ReportListResponse +from .report_list_params import ReportListParams as ReportListParams diff --git a/src/cloudflare/types/dns_analytics/report_list_params.py b/src/cloudflare/types/dns_analytics/report_list_params.py index cb0279cb230..243d755aa16 100644 --- a/src/cloudflare/types/dns_analytics/report_list_params.py +++ b/src/cloudflare/types/dns_analytics/report_list_params.py @@ -2,12 +2,20 @@ 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 +from ...types import shared_params + __all__ = ["ReportListParams"] diff --git a/src/cloudflare/types/dns_analytics/report_list_response.py b/src/cloudflare/types/dns_analytics/report_list_response.py index 24c6eee88cd..f7d0f0336c4 100644 --- a/src/cloudflare/types/dns_analytics/report_list_response.py +++ b/src/cloudflare/types/dns_analytics/report_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ReportListResponse", "Data", "Query"] diff --git a/src/cloudflare/types/dns_analytics/reports/__init__.py b/src/cloudflare/types/dns_analytics/reports/__init__.py index 5b8178698e8..906cb6d649c 100644 --- a/src/cloudflare/types/dns_analytics/reports/__init__.py +++ b/src/cloudflare/types/dns_analytics/reports/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .bytime_list_params import BytimeListParams as BytimeListParams from .bytime_list_response import BytimeListResponse as BytimeListResponse +from .bytime_list_params import BytimeListParams as BytimeListParams diff --git a/src/cloudflare/types/dns_analytics/reports/bytime_list_params.py b/src/cloudflare/types/dns_analytics/reports/bytime_list_params.py index 431f276666b..a1e855ff2b7 100644 --- a/src/cloudflare/types/dns_analytics/reports/bytime_list_params.py +++ b/src/cloudflare/types/dns_analytics/reports/bytime_list_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["BytimeListParams"] diff --git a/src/cloudflare/types/dns_analytics/reports/bytime_list_response.py b/src/cloudflare/types/dns_analytics/reports/bytime_list_response.py index d59f12d3613..0cbfbcb8e82 100644 --- a/src/cloudflare/types/dns_analytics/reports/bytime_list_response.py +++ b/src/cloudflare/types/dns_analytics/reports/bytime_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["BytimeListResponse", "Data", "Query"] diff --git a/src/cloudflare/types/dns_firewall_create_params.py b/src/cloudflare/types/dns_firewall_create_params.py index 4e5af00184d..dc41d62135e 100644 --- a/src/cloudflare/types/dns_firewall_create_params.py +++ b/src/cloudflare/types/dns_firewall_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List, Union, Optional -from typing_extensions import Required, 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 ..types import shared_params __all__ = ["DNSFirewallCreateParams", "AttackMitigation"] diff --git a/src/cloudflare/types/dns_firewall_create_response.py b/src/cloudflare/types/dns_firewall_create_response.py index 901de0e88ff..ea156e23cba 100644 --- a/src/cloudflare/types/dns_firewall_create_response.py +++ b/src/cloudflare/types/dns_firewall_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ..types import shared __all__ = ["DNSFirewallCreateResponse", "AttackMitigation"] diff --git a/src/cloudflare/types/dns_firewall_delete_response.py b/src/cloudflare/types/dns_firewall_delete_response.py index f01e7ca25e8..791b12ea395 100644 --- a/src/cloudflare/types/dns_firewall_delete_response.py +++ b/src/cloudflare/types/dns_firewall_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["DNSFirewallDeleteResponse"] diff --git a/src/cloudflare/types/dns_firewall_get_response.py b/src/cloudflare/types/dns_firewall_get_response.py index 8bebfbad6f3..035dbd8b737 100644 --- a/src/cloudflare/types/dns_firewall_get_response.py +++ b/src/cloudflare/types/dns_firewall_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ..types import shared __all__ = ["DNSFirewallGetResponse", "AttackMitigation"] diff --git a/src/cloudflare/types/dns_firewall_list_params.py b/src/cloudflare/types/dns_firewall_list_params.py index 06f2e3a57f3..b068de24e0c 100644 --- a/src/cloudflare/types/dns_firewall_list_params.py +++ b/src/cloudflare/types/dns_firewall_list_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["DNSFirewallListParams"] diff --git a/src/cloudflare/types/dns_firewall_list_response.py b/src/cloudflare/types/dns_firewall_list_response.py index 85e9bea78c8..c736b2361fa 100644 --- a/src/cloudflare/types/dns_firewall_list_response.py +++ b/src/cloudflare/types/dns_firewall_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ..types import shared __all__ = ["DNSFirewallListResponse", "DNSFirewallListResponseItem", "DNSFirewallListResponseItemAttackMitigation"] diff --git a/src/cloudflare/types/dns_firewall_update_params.py b/src/cloudflare/types/dns_firewall_update_params.py index 6702e11119f..e91f84eb033 100644 --- a/src/cloudflare/types/dns_firewall_update_params.py +++ b/src/cloudflare/types/dns_firewall_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List, Union, Optional -from typing_extensions import Required, 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 ..types import shared_params __all__ = ["DNSFirewallUpdateParams", "AttackMitigation"] diff --git a/src/cloudflare/types/dns_firewall_update_response.py b/src/cloudflare/types/dns_firewall_update_response.py index c41c73fa0cd..af88d281c3b 100644 --- a/src/cloudflare/types/dns_firewall_update_response.py +++ b/src/cloudflare/types/dns_firewall_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ..types import shared __all__ = ["DNSFirewallUpdateResponse", "AttackMitigation"] diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/__init__.py b/src/cloudflare/types/dns_firewalls/dns_analytics/__init__.py index e5056de4b52..57f2c398f9f 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/__init__.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .report_list_params import ReportListParams as ReportListParams from .report_list_response import ReportListResponse as ReportListResponse +from .report_list_params import ReportListParams as ReportListParams diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_params.py b/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_params.py index e7d148dc61f..2b1bebc343a 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_params.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["ReportListParams"] diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_response.py b/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_response.py index 6023e1ca434..5ed3f4cf817 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_response.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/report_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["ReportListResponse", "Data", "Query"] diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/__init__.py b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/__init__.py index 5b8178698e8..906cb6d649c 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/__init__.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .bytime_list_params import BytimeListParams as BytimeListParams from .bytime_list_response import BytimeListResponse as BytimeListResponse +from .bytime_list_params import BytimeListParams as BytimeListParams diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_params.py b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_params.py index fd8cebdbcdb..06bb8d2548a 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_params.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["BytimeListParams"] diff --git a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_response.py b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_response.py index 293e6d0ccb7..fa2dd1e58a0 100644 --- a/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_response.py +++ b/src/cloudflare/types/dns_firewalls/dns_analytics/reports/bytime_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 .....types import shared __all__ = ["BytimeListResponse", "Data", "Query"] diff --git a/src/cloudflare/types/dns_record_create_params.py b/src/cloudflare/types/dns_record_create_params.py index 0ec025f74be..890ed2f7bb3 100644 --- a/src/cloudflare/types/dns_record_create_params.py +++ b/src/cloudflare/types/dns_record_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List, Union -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = [ "DNSRecordCreateParams", diff --git a/src/cloudflare/types/dns_record_create_response.py b/src/cloudflare/types/dns_record_create_response.py index 9703d5d83d6..ab652790fa5 100644 --- a/src/cloudflare/types/dns_record_create_response.py +++ b/src/cloudflare/types/dns_record_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ..types import shared __all__ = [ "DNSRecordCreateResponse", diff --git a/src/cloudflare/types/dns_record_delete_response.py b/src/cloudflare/types/dns_record_delete_response.py index 8a2f4631722..20033099b41 100644 --- a/src/cloudflare/types/dns_record_delete_response.py +++ b/src/cloudflare/types/dns_record_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["DNSRecordDeleteResponse"] diff --git a/src/cloudflare/types/dns_record_export_response.py b/src/cloudflare/types/dns_record_export_response.py index 1c57be08eab..13879d7a768 100644 --- a/src/cloudflare/types/dns_record_export_response.py +++ b/src/cloudflare/types/dns_record_export_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["DNSRecordExportResponse"] diff --git a/src/cloudflare/types/dns_record_get_response.py b/src/cloudflare/types/dns_record_get_response.py index f1a7df2433d..8abd3015d65 100644 --- a/src/cloudflare/types/dns_record_get_response.py +++ b/src/cloudflare/types/dns_record_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ..types import shared __all__ = [ "DNSRecordGetResponse", diff --git a/src/cloudflare/types/dns_record_import_params.py b/src/cloudflare/types/dns_record_import_params.py index a9d504d392e..5b07b5da386 100644 --- a/src/cloudflare/types/dns_record_import_params.py +++ b/src/cloudflare/types/dns_record_import_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["DNSRecordImportParams"] diff --git a/src/cloudflare/types/dns_record_import_response.py b/src/cloudflare/types/dns_record_import_response.py index 5bd1d3ed1d5..9ca5d430ce5 100644 --- a/src/cloudflare/types/dns_record_import_response.py +++ b/src/cloudflare/types/dns_record_import_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["DNSRecordImportResponse"] diff --git a/src/cloudflare/types/dns_record_list_params.py b/src/cloudflare/types/dns_record_list_params.py index b996595da54..8f5eb77c582 100644 --- a/src/cloudflare/types/dns_record_list_params.py +++ b/src/cloudflare/types/dns_record_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["DNSRecordListParams", "Comment", "Tag"] diff --git a/src/cloudflare/types/dns_record_list_response.py b/src/cloudflare/types/dns_record_list_response.py index cb0da7bee8a..157d6c16cc0 100644 --- a/src/cloudflare/types/dns_record_list_response.py +++ b/src/cloudflare/types/dns_record_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ..types import shared __all__ = [ "DNSRecordListResponse", diff --git a/src/cloudflare/types/dns_record_scan_response.py b/src/cloudflare/types/dns_record_scan_response.py index d03873b7593..384384bb5a8 100644 --- a/src/cloudflare/types/dns_record_scan_response.py +++ b/src/cloudflare/types/dns_record_scan_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["DNSRecordScanResponse"] diff --git a/src/cloudflare/types/dns_record_update_params.py b/src/cloudflare/types/dns_record_update_params.py index 3bd0fa09bdf..d188f76a867 100644 --- a/src/cloudflare/types/dns_record_update_params.py +++ b/src/cloudflare/types/dns_record_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List, Union -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = [ "DNSRecordUpdateParams", diff --git a/src/cloudflare/types/dns_record_update_response.py b/src/cloudflare/types/dns_record_update_response.py index 05b9547917f..67986bbf21a 100644 --- a/src/cloudflare/types/dns_record_update_response.py +++ b/src/cloudflare/types/dns_record_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ..types import shared __all__ = [ "DNSRecordUpdateResponse", diff --git a/src/cloudflare/types/dnssec_get_response.py b/src/cloudflare/types/dnssec_get_response.py index a023eec3e75..59ff82d7352 100644 --- a/src/cloudflare/types/dnssec_get_response.py +++ b/src/cloudflare/types/dnssec_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["DNSSECGetResponse"] diff --git a/src/cloudflare/types/dnssec_update_params.py b/src/cloudflare/types/dnssec_update_params.py index 425cb4861ed..07542caada4 100644 --- a/src/cloudflare/types/dnssec_update_params.py +++ b/src/cloudflare/types/dnssec_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["DNSSECUpdateParams"] diff --git a/src/cloudflare/types/dnssec_update_response.py b/src/cloudflare/types/dnssec_update_response.py index e39e7ee93f1..eb686dea614 100644 --- a/src/cloudflare/types/dnssec_update_response.py +++ b/src/cloudflare/types/dnssec_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["DNSSECUpdateResponse"] diff --git a/src/cloudflare/types/emails/routing_email_routing_settings_get_email_routing_settings_response.py b/src/cloudflare/types/emails/routing_email_routing_settings_get_email_routing_settings_response.py index 3e8e8478c0a..233745624c3 100644 --- a/src/cloudflare/types/emails/routing_email_routing_settings_get_email_routing_settings_response.py +++ b/src/cloudflare/types/emails/routing_email_routing_settings_get_email_routing_settings_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["RoutingEmailRoutingSettingsGetEmailRoutingSettingsResponse"] diff --git a/src/cloudflare/types/emails/routings/__init__.py b/src/cloudflare/types/emails/routings/__init__.py index 60823af7a22..c7b3258b911 100644 --- a/src/cloudflare/types/emails/routings/__init__.py +++ b/src/cloudflare/types/emails/routings/__init__.py @@ -2,42 +2,42 @@ from __future__ import annotations -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .address_get_response import AddressGetResponse as AddressGetResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .address_delete_response import AddressDeleteResponse as AddressDeleteResponse -from .rule_email_routing_routing_rules_list_routing_rules_params import ( - RuleEmailRoutingRoutingRulesListRoutingRulesParams as RuleEmailRoutingRoutingRulesListRoutingRulesParams, +from .disable_email_routing_settings_disable_email_routing_response import ( + DisableEmailRoutingSettingsDisableEmailRoutingResponse as DisableEmailRoutingSettingsDisableEmailRoutingResponse, +) +from .dns_email_routing_settings_email_routing_dns_settings_response import ( + DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse as DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse, ) from .enable_email_routing_settings_enable_email_routing_response import ( EnableEmailRoutingSettingsEnableEmailRoutingResponse as EnableEmailRoutingSettingsEnableEmailRoutingResponse, ) -from .rule_email_routing_routing_rules_create_routing_rule_params import ( - RuleEmailRoutingRoutingRulesCreateRoutingRuleParams as RuleEmailRoutingRoutingRulesCreateRoutingRuleParams, +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_email_routing_routing_rules_create_routing_rule_response import ( + RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse as RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, ) from .rule_email_routing_routing_rules_list_routing_rules_response import ( RuleEmailRoutingRoutingRulesListRoutingRulesResponse as RuleEmailRoutingRoutingRulesListRoutingRulesResponse, ) -from .disable_email_routing_settings_disable_email_routing_response import ( - DisableEmailRoutingSettingsDisableEmailRoutingResponse as DisableEmailRoutingSettingsDisableEmailRoutingResponse, +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_email_routing_routing_rules_create_routing_rule_params import ( + RuleEmailRoutingRoutingRulesCreateRoutingRuleParams as RuleEmailRoutingRoutingRulesCreateRoutingRuleParams, ) -from .rule_email_routing_routing_rules_create_routing_rule_response import ( - RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse as RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, +from .rule_email_routing_routing_rules_list_routing_rules_params import ( + RuleEmailRoutingRoutingRulesListRoutingRulesParams as RuleEmailRoutingRoutingRulesListRoutingRulesParams, ) -from .dns_email_routing_settings_email_routing_dns_settings_response import ( - DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse as DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse, +from .address_delete_response import AddressDeleteResponse as AddressDeleteResponse +from .address_email_routing_destination_addresses_create_a_destination_address_response import ( + AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse as AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, ) -from .address_email_routing_destination_addresses_list_destination_addresses_params import ( - AddressEmailRoutingDestinationAddressesListDestinationAddressesParams as AddressEmailRoutingDestinationAddressesListDestinationAddressesParams, +from .address_email_routing_destination_addresses_list_destination_addresses_response import ( + AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse as AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, ) +from .address_get_response import AddressGetResponse as AddressGetResponse from .address_email_routing_destination_addresses_create_a_destination_address_params import ( AddressEmailRoutingDestinationAddressesCreateADestinationAddressParams as AddressEmailRoutingDestinationAddressesCreateADestinationAddressParams, ) -from .address_email_routing_destination_addresses_list_destination_addresses_response import ( - AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse as AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, -) -from .address_email_routing_destination_addresses_create_a_destination_address_response import ( - AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse as AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, +from .address_email_routing_destination_addresses_list_destination_addresses_params import ( + AddressEmailRoutingDestinationAddressesListDestinationAddressesParams as AddressEmailRoutingDestinationAddressesListDestinationAddressesParams, ) diff --git a/src/cloudflare/types/emails/routings/address_delete_response.py b/src/cloudflare/types/emails/routings/address_delete_response.py index b6be9f48caa..3f590c0720b 100644 --- a/src/cloudflare/types/emails/routings/address_delete_response.py +++ b/src/cloudflare/types/emails/routings/address_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["AddressDeleteResponse"] diff --git a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_params.py b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_params.py index b244cbfc96b..4f101d7dbad 100644 --- a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_params.py +++ b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["AddressEmailRoutingDestinationAddressesCreateADestinationAddressParams"] diff --git a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_response.py b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_response.py index da195f926ec..2b54110d046 100644 --- a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_response.py +++ b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_create_a_destination_address_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse"] diff --git a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_params.py b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_params.py index 2db67e694e6..4361c57cf1c 100644 --- a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_params.py +++ b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["AddressEmailRoutingDestinationAddressesListDestinationAddressesParams"] diff --git a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_response.py b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_response.py index 5ab71e37bf3..8d31fce1458 100644 --- a/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_response.py +++ b/src/cloudflare/types/emails/routings/address_email_routing_destination_addresses_list_destination_addresses_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = [ "AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse", diff --git a/src/cloudflare/types/emails/routings/address_get_response.py b/src/cloudflare/types/emails/routings/address_get_response.py index 31d3c448f65..b9b65ae9a54 100644 --- a/src/cloudflare/types/emails/routings/address_get_response.py +++ b/src/cloudflare/types/emails/routings/address_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["AddressGetResponse"] diff --git a/src/cloudflare/types/emails/routings/disable_email_routing_settings_disable_email_routing_response.py b/src/cloudflare/types/emails/routings/disable_email_routing_settings_disable_email_routing_response.py index 5ed03aa3219..3c02c0bce3e 100644 --- a/src/cloudflare/types/emails/routings/disable_email_routing_settings_disable_email_routing_response.py +++ b/src/cloudflare/types/emails/routings/disable_email_routing_settings_disable_email_routing_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["DisableEmailRoutingSettingsDisableEmailRoutingResponse"] diff --git a/src/cloudflare/types/emails/routings/dns_email_routing_settings_email_routing_dns_settings_response.py b/src/cloudflare/types/emails/routings/dns_email_routing_settings_email_routing_dns_settings_response.py index 218a3fa59c4..c040f71117a 100644 --- a/src/cloudflare/types/emails/routings/dns_email_routing_settings_email_routing_dns_settings_response.py +++ b/src/cloudflare/types/emails/routings/dns_email_routing_settings_email_routing_dns_settings_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 from ...._models import BaseModel +from ....types import shared __all__ = [ "DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse", diff --git a/src/cloudflare/types/emails/routings/enable_email_routing_settings_enable_email_routing_response.py b/src/cloudflare/types/emails/routings/enable_email_routing_settings_enable_email_routing_response.py index c2cea2d6949..308b5d441a2 100644 --- a/src/cloudflare/types/emails/routings/enable_email_routing_settings_enable_email_routing_response.py +++ b/src/cloudflare/types/emails/routings/enable_email_routing_settings_enable_email_routing_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["EnableEmailRoutingSettingsEnableEmailRoutingResponse"] diff --git a/src/cloudflare/types/emails/routings/rule_delete_response.py b/src/cloudflare/types/emails/routings/rule_delete_response.py index 8994f24b208..1a06bae99ff 100644 --- a/src/cloudflare/types/emails/routings/rule_delete_response.py +++ b/src/cloudflare/types/emails/routings/rule_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from typing_extensions import Literal +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 +from ....types import shared __all__ = ["RuleDeleteResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_params.py b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_params.py index 8d1358f208e..4bd7e1ec3fd 100644 --- a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_params.py +++ b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, Required, TypedDict +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 ....types import shared_params __all__ = ["RuleEmailRoutingRoutingRulesCreateRoutingRuleParams", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_response.py b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_response.py index 16a166334eb..346127da728 100644 --- a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_response.py +++ b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_create_routing_rule_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from typing_extensions import Literal +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 +from ....types import shared __all__ = ["RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_params.py b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_params.py index d10d65437af..3613e6d8fbd 100644 --- a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_params.py +++ b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["RuleEmailRoutingRoutingRulesListRoutingRulesParams"] diff --git a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_response.py b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_response.py index c39a9d9827e..c1ee3f4523e 100644 --- a/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_response.py +++ b/src/cloudflare/types/emails/routings/rule_email_routing_routing_rules_list_routing_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from typing_extensions import Literal +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 +from ....types import shared __all__ = [ "RuleEmailRoutingRoutingRulesListRoutingRulesResponse", diff --git a/src/cloudflare/types/emails/routings/rule_get_response.py b/src/cloudflare/types/emails/routings/rule_get_response.py index 26480126a1f..c4834d9d800 100644 --- a/src/cloudflare/types/emails/routings/rule_get_response.py +++ b/src/cloudflare/types/emails/routings/rule_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from typing_extensions import Literal +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 +from ....types import shared __all__ = ["RuleGetResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rule_update_params.py b/src/cloudflare/types/emails/routings/rule_update_params.py index 21c791115c9..ee6c5078b3c 100644 --- a/src/cloudflare/types/emails/routings/rule_update_params.py +++ b/src/cloudflare/types/emails/routings/rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, Required, TypedDict +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 ....types import shared_params __all__ = ["RuleUpdateParams", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rule_update_response.py b/src/cloudflare/types/emails/routings/rule_update_response.py index 7420f637653..06d74c39eec 100644 --- a/src/cloudflare/types/emails/routings/rule_update_response.py +++ b/src/cloudflare/types/emails/routings/rule_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from typing_extensions import Literal +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 +from ....types import shared __all__ = ["RuleUpdateResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rules/__init__.py b/src/cloudflare/types/emails/routings/rules/__init__.py index e81159094a4..7a2922de15f 100644 --- a/src/cloudflare/types/emails/routings/rules/__init__.py +++ b/src/cloudflare/types/emails/routings/rules/__init__.py @@ -5,9 +5,9 @@ from .catch_all_email_routing_routing_rules_get_catch_all_rule_response import ( CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse as CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, ) -from .catch_all_email_routing_routing_rules_update_catch_all_rule_params import ( - CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleParams as CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleParams, -) from .catch_all_email_routing_routing_rules_update_catch_all_rule_response import ( CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse as CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, ) +from .catch_all_email_routing_routing_rules_update_catch_all_rule_params import ( + CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleParams as CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleParams, +) diff --git a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_get_catch_all_rule_response.py b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_get_catch_all_rule_response.py index 74ac9fe3f2b..c2cb891b28b 100644 --- a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_get_catch_all_rule_response.py +++ b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_get_catch_all_rule_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -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 +from .....types import shared __all__ = ["CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_params.py b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_params.py index bb700522441..2a9f5fdf8f1 100644 --- a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_params.py +++ b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleParams", "Action", "Matcher"] diff --git a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_response.py b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_response.py index 48f607f85d1..3962a05db8c 100644 --- a/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_response.py +++ b/src/cloudflare/types/emails/routings/rules/catch_all_email_routing_routing_rules_update_catch_all_rule_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -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 +from .....types import shared __all__ = ["CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse", "Action", "Matcher"] diff --git a/src/cloudflare/types/filter_delete_response.py b/src/cloudflare/types/filter_delete_response.py index 44ed8d4242f..7c74e3bc996 100644 --- a/src/cloudflare/types/filter_delete_response.py +++ b/src/cloudflare/types/filter_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["FilterDeleteResponse"] diff --git a/src/cloudflare/types/filter_filters_create_filters_params.py b/src/cloudflare/types/filter_filters_create_filters_params.py index 679e339466e..e1a74c5485c 100644 --- a/src/cloudflare/types/filter_filters_create_filters_params.py +++ b/src/cloudflare/types/filter_filters_create_filters_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["FilterFiltersCreateFiltersParams"] diff --git a/src/cloudflare/types/filter_filters_create_filters_response.py b/src/cloudflare/types/filter_filters_create_filters_response.py index f8d0c4fe158..f1458bd7a43 100644 --- a/src/cloudflare/types/filter_filters_create_filters_response.py +++ b/src/cloudflare/types/filter_filters_create_filters_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["FilterFiltersCreateFiltersResponse", "FilterFiltersCreateFiltersResponseItem"] diff --git a/src/cloudflare/types/filter_filters_list_filters_params.py b/src/cloudflare/types/filter_filters_list_filters_params.py index 94db7adf4d3..76a28291a33 100644 --- a/src/cloudflare/types/filter_filters_list_filters_params.py +++ b/src/cloudflare/types/filter_filters_list_filters_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["FilterFiltersListFiltersParams"] diff --git a/src/cloudflare/types/filter_filters_list_filters_response.py b/src/cloudflare/types/filter_filters_list_filters_response.py index e7cbf5b2e82..8c374213e37 100644 --- a/src/cloudflare/types/filter_filters_list_filters_response.py +++ b/src/cloudflare/types/filter_filters_list_filters_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["FilterFiltersListFiltersResponse", "FilterFiltersListFiltersResponseItem"] diff --git a/src/cloudflare/types/filter_filters_update_filters_params.py b/src/cloudflare/types/filter_filters_update_filters_params.py index bd4d89cd4f7..7ab52853926 100644 --- a/src/cloudflare/types/filter_filters_update_filters_params.py +++ b/src/cloudflare/types/filter_filters_update_filters_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["FilterFiltersUpdateFiltersParams"] diff --git a/src/cloudflare/types/filter_filters_update_filters_response.py b/src/cloudflare/types/filter_filters_update_filters_response.py index e771c72f286..4322bedc16a 100644 --- a/src/cloudflare/types/filter_filters_update_filters_response.py +++ b/src/cloudflare/types/filter_filters_update_filters_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["FilterFiltersUpdateFiltersResponse", "FilterFiltersUpdateFiltersResponseItem"] diff --git a/src/cloudflare/types/filter_get_response.py b/src/cloudflare/types/filter_get_response.py index 629a1ccb442..9799a271955 100644 --- a/src/cloudflare/types/filter_get_response.py +++ b/src/cloudflare/types/filter_get_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["FilterGetResponse"] diff --git a/src/cloudflare/types/filter_update_params.py b/src/cloudflare/types/filter_update_params.py index 5b6a1b3d150..2df38dba79e 100644 --- a/src/cloudflare/types/filter_update_params.py +++ b/src/cloudflare/types/filter_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["FilterUpdateParams"] diff --git a/src/cloudflare/types/filter_update_response.py b/src/cloudflare/types/filter_update_response.py index 0cf3058f17c..2941c5fc9ac 100644 --- a/src/cloudflare/types/filter_update_response.py +++ b/src/cloudflare/types/filter_update_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["FilterUpdateResponse"] diff --git a/src/cloudflare/types/firewall/waf/packages/__init__.py b/src/cloudflare/types/firewall/waf/packages/__init__.py index 75ce9d8060d..5a23628ac14 100644 --- a/src/cloudflare/types/firewall/waf/packages/__init__.py +++ b/src/cloudflare/types/firewall/waf/packages/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -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_update_params import RuleUpdateParams as RuleUpdateParams +from .group_update_response import GroupUpdateResponse as GroupUpdateResponse from .group_list_response import GroupListResponse as GroupListResponse +from .group_get_response import GroupGetResponse as GroupGetResponse from .group_update_params import GroupUpdateParams as GroupUpdateParams +from .group_list_params import GroupListParams as GroupListParams from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .group_update_response import GroupUpdateResponse as GroupUpdateResponse +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams 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 22c408ce5cc..c81ef7a8453 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["GroupGetResponse"] 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 9ee9a2fa38d..7d711baa800 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_list_params.py +++ b/src/cloudflare/types/firewall/waf/packages/group_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["GroupListParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/group_list_response.py b/src/cloudflare/types/firewall/waf/packages/group_list_response.py index 74c0eeb6de2..3a537720e5a 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_list_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = ["GroupListResponse", "GroupListResponseItem"] diff --git a/src/cloudflare/types/firewall/waf/packages/group_update_params.py b/src/cloudflare/types/firewall/waf/packages/group_update_params.py index 060354c0e08..289164481ca 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_update_params.py +++ b/src/cloudflare/types/firewall/waf/packages/group_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["GroupUpdateParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/group_update_response.py b/src/cloudflare/types/firewall/waf/packages/group_update_response.py index 2cb6b49d706..bc6f71ca7d5 100644 --- a/src/cloudflare/types/firewall/waf/packages/group_update_response.py +++ b/src/cloudflare/types/firewall/waf/packages/group_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["GroupUpdateResponse"] 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 f72f8dae2c8..cbe0e699534 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["RuleGetResponse"] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_update_params.py b/src/cloudflare/types/firewall/waf/packages/rule_update_params.py index 0cbb0ca80e4..0bc912281ab 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_update_params.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/firewall/waf/packages/rule_update_response.py b/src/cloudflare/types/firewall/waf/packages/rule_update_response.py index 7862c61f213..7afa1e54927 100644 --- a/src/cloudflare/types/firewall/waf/packages/rule_update_response.py +++ b/src/cloudflare/types/firewall/waf/packages/rule_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from .....types import shared __all__ = [ "RuleUpdateResponse", diff --git a/src/cloudflare/types/firewalls/__init__.py b/src/cloudflare/types/firewalls/__init__.py index 69c97e7c0b0..d881922154d 100644 --- a/src/cloudflare/types/firewalls/__init__.py +++ b/src/cloudflare/types/firewalls/__init__.py @@ -2,72 +2,72 @@ from __future__ import annotations -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .rule_delete_params import RuleDeleteParams as RuleDeleteParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .ua_rule_get_response import UaRuleGetResponse as UaRuleGetResponse -from .lockdown_get_response import LockdownGetResponse as LockdownGetResponse -from .ua_rule_update_params import UaRuleUpdateParams as UaRuleUpdateParams -from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams -from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams -from .ua_rule_delete_response import UaRuleDeleteResponse as UaRuleDeleteResponse -from .ua_rule_update_response import UaRuleUpdateResponse as UaRuleUpdateResponse -from .access_rule_get_response import AccessRuleGetResponse as AccessRuleGetResponse -from .lockdown_delete_response import LockdownDeleteResponse as LockdownDeleteResponse from .lockdown_update_response import LockdownUpdateResponse as LockdownUpdateResponse -from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams -from .access_rule_list_response import AccessRuleListResponse as AccessRuleListResponse -from .access_rule_update_params import AccessRuleUpdateParams as AccessRuleUpdateParams -from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse -from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse -from .access_rule_update_response import AccessRuleUpdateResponse as AccessRuleUpdateResponse -from .rule_firewall_rules_list_firewall_rules_params import ( - RuleFirewallRulesListFirewallRulesParams as RuleFirewallRulesListFirewallRulesParams, +from .lockdown_delete_response import LockdownDeleteResponse as LockdownDeleteResponse +from .lockdown_get_response import LockdownGetResponse as LockdownGetResponse +from .lockdown_zone_lockdown_create_a_zone_lockdown_rule_response import ( + LockdownZoneLockdownCreateAZoneLockdownRuleResponse as LockdownZoneLockdownCreateAZoneLockdownRuleResponse, ) -from .rule_firewall_rules_create_firewall_rules_params import ( - RuleFirewallRulesCreateFirewallRulesParams as RuleFirewallRulesCreateFirewallRulesParams, +from .lockdown_zone_lockdown_list_zone_lockdown_rules_response import ( + LockdownZoneLockdownListZoneLockdownRulesResponse as LockdownZoneLockdownListZoneLockdownRulesResponse, ) -from .rule_firewall_rules_list_firewall_rules_response import ( - RuleFirewallRulesListFirewallRulesResponse as RuleFirewallRulesListFirewallRulesResponse, +from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams +from .lockdown_zone_lockdown_create_a_zone_lockdown_rule_params import ( + LockdownZoneLockdownCreateAZoneLockdownRuleParams as LockdownZoneLockdownCreateAZoneLockdownRuleParams, ) -from .rule_firewall_rules_update_firewall_rules_params import ( - RuleFirewallRulesUpdateFirewallRulesParams as RuleFirewallRulesUpdateFirewallRulesParams, +from .lockdown_zone_lockdown_list_zone_lockdown_rules_params import ( + LockdownZoneLockdownListZoneLockdownRulesParams as LockdownZoneLockdownListZoneLockdownRulesParams, ) +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse from .rule_firewall_rules_create_firewall_rules_response import ( RuleFirewallRulesCreateFirewallRulesResponse as RuleFirewallRulesCreateFirewallRulesResponse, ) +from .rule_firewall_rules_list_firewall_rules_response import ( + RuleFirewallRulesListFirewallRulesResponse as RuleFirewallRulesListFirewallRulesResponse, +) from .rule_firewall_rules_update_firewall_rules_response import ( RuleFirewallRulesUpdateFirewallRulesResponse as RuleFirewallRulesUpdateFirewallRulesResponse, ) -from .lockdown_zone_lockdown_list_zone_lockdown_rules_params import ( - LockdownZoneLockdownListZoneLockdownRulesParams as LockdownZoneLockdownListZoneLockdownRulesParams, +from .rule_firewall_rules_update_priority_of_firewall_rules_response import ( + RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse as RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, ) -from .lockdown_zone_lockdown_list_zone_lockdown_rules_response import ( - LockdownZoneLockdownListZoneLockdownRulesResponse as LockdownZoneLockdownListZoneLockdownRulesResponse, +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_delete_params import RuleDeleteParams as RuleDeleteParams +from .rule_firewall_rules_create_firewall_rules_params import ( + RuleFirewallRulesCreateFirewallRulesParams as RuleFirewallRulesCreateFirewallRulesParams, ) -from .lockdown_zone_lockdown_create_a_zone_lockdown_rule_params import ( - LockdownZoneLockdownCreateAZoneLockdownRuleParams as LockdownZoneLockdownCreateAZoneLockdownRuleParams, +from .rule_firewall_rules_list_firewall_rules_params import ( + RuleFirewallRulesListFirewallRulesParams as RuleFirewallRulesListFirewallRulesParams, ) -from .lockdown_zone_lockdown_create_a_zone_lockdown_rule_response import ( - LockdownZoneLockdownCreateAZoneLockdownRuleResponse as LockdownZoneLockdownCreateAZoneLockdownRuleResponse, +from .rule_firewall_rules_update_firewall_rules_params import ( + RuleFirewallRulesUpdateFirewallRulesParams as RuleFirewallRulesUpdateFirewallRulesParams, ) from .rule_firewall_rules_update_priority_of_firewall_rules_params import ( RuleFirewallRulesUpdatePriorityOfFirewallRulesParams as RuleFirewallRulesUpdatePriorityOfFirewallRulesParams, ) -from .rule_firewall_rules_update_priority_of_firewall_rules_response import ( - RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse as RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, -) -from .ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params import ( - UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesParams as UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesParams, +from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse +from .access_rule_update_response import AccessRuleUpdateResponse as AccessRuleUpdateResponse +from .access_rule_list_response import AccessRuleListResponse as AccessRuleListResponse +from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse +from .access_rule_get_response import AccessRuleGetResponse as AccessRuleGetResponse +from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams +from .access_rule_update_params import AccessRuleUpdateParams as AccessRuleUpdateParams +from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams +from .ua_rule_update_response import UaRuleUpdateResponse as UaRuleUpdateResponse +from .ua_rule_delete_response import UaRuleDeleteResponse as UaRuleDeleteResponse +from .ua_rule_get_response import UaRuleGetResponse as UaRuleGetResponse +from .ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response import ( + UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse as UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, ) from .ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_response import ( UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse as UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, ) +from .ua_rule_update_params import UaRuleUpdateParams as UaRuleUpdateParams from .ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params import ( UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleParams as UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleParams, ) -from .ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response import ( - UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse as UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, +from .ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params import ( + UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesParams as UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesParams, ) diff --git a/src/cloudflare/types/firewalls/access_rule_create_params.py b/src/cloudflare/types/firewalls/access_rule_create_params.py index 35b02d09742..43c7cfdd1af 100644 --- a/src/cloudflare/types/firewalls/access_rule_create_params.py +++ b/src/cloudflare/types/firewalls/access_rule_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = [ "AccessRuleCreateParams", diff --git a/src/cloudflare/types/firewalls/access_rule_create_response.py b/src/cloudflare/types/firewalls/access_rule_create_response.py index b58f431dbfa..84ea72b4868 100644 --- a/src/cloudflare/types/firewalls/access_rule_create_response.py +++ b/src/cloudflare/types/firewalls/access_rule_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AccessRuleCreateResponse"] diff --git a/src/cloudflare/types/firewalls/access_rule_delete_response.py b/src/cloudflare/types/firewalls/access_rule_delete_response.py index 563e99af06b..1396d82d83c 100644 --- a/src/cloudflare/types/firewalls/access_rule_delete_response.py +++ b/src/cloudflare/types/firewalls/access_rule_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["AccessRuleDeleteResponse"] diff --git a/src/cloudflare/types/firewalls/access_rule_get_response.py b/src/cloudflare/types/firewalls/access_rule_get_response.py index ecaf5820f35..515e113db17 100644 --- a/src/cloudflare/types/firewalls/access_rule_get_response.py +++ b/src/cloudflare/types/firewalls/access_rule_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AccessRuleGetResponse"] diff --git a/src/cloudflare/types/firewalls/access_rule_list_params.py b/src/cloudflare/types/firewalls/access_rule_list_params.py index 2038298943e..193b240a742 100644 --- a/src/cloudflare/types/firewalls/access_rule_list_params.py +++ b/src/cloudflare/types/firewalls/access_rule_list_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated 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 ...types import shared_params + __all__ = ["AccessRuleListParams", "EgsPagination", "EgsPaginationJson", "Filters"] diff --git a/src/cloudflare/types/firewalls/access_rule_list_response.py b/src/cloudflare/types/firewalls/access_rule_list_response.py index e0a34c1a375..203e9a19045 100644 --- a/src/cloudflare/types/firewalls/access_rule_list_response.py +++ b/src/cloudflare/types/firewalls/access_rule_list_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["AccessRuleListResponse"] diff --git a/src/cloudflare/types/firewalls/access_rule_update_params.py b/src/cloudflare/types/firewalls/access_rule_update_params.py index 7bd7d9573bd..7be4270bbc6 100644 --- a/src/cloudflare/types/firewalls/access_rule_update_params.py +++ b/src/cloudflare/types/firewalls/access_rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = [ "AccessRuleUpdateParams", diff --git a/src/cloudflare/types/firewalls/access_rule_update_response.py b/src/cloudflare/types/firewalls/access_rule_update_response.py index 02018b31799..c00ccd9ec3a 100644 --- a/src/cloudflare/types/firewalls/access_rule_update_response.py +++ b/src/cloudflare/types/firewalls/access_rule_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AccessRuleUpdateResponse"] diff --git a/src/cloudflare/types/firewalls/lockdown_delete_response.py b/src/cloudflare/types/firewalls/lockdown_delete_response.py index aeb3e859b66..1bc7a1c3448 100644 --- a/src/cloudflare/types/firewalls/lockdown_delete_response.py +++ b/src/cloudflare/types/firewalls/lockdown_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["LockdownDeleteResponse"] diff --git a/src/cloudflare/types/firewalls/lockdown_get_response.py b/src/cloudflare/types/firewalls/lockdown_get_response.py index c7930e96f32..75f7085e567 100644 --- a/src/cloudflare/types/firewalls/lockdown_get_response.py +++ b/src/cloudflare/types/firewalls/lockdown_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "LockdownGetResponse", diff --git a/src/cloudflare/types/firewalls/lockdown_update_params.py b/src/cloudflare/types/firewalls/lockdown_update_params.py index cb098a89c2e..7736f5f2934 100644 --- a/src/cloudflare/types/firewalls/lockdown_update_params.py +++ b/src/cloudflare/types/firewalls/lockdown_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["LockdownUpdateParams"] diff --git a/src/cloudflare/types/firewalls/lockdown_update_response.py b/src/cloudflare/types/firewalls/lockdown_update_response.py index 9331da0cfa1..028f5653233 100644 --- a/src/cloudflare/types/firewalls/lockdown_update_response.py +++ b/src/cloudflare/types/firewalls/lockdown_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "LockdownUpdateResponse", diff --git a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_params.py b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_params.py index 27a6055ab0d..39a38733c00 100644 --- a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_params.py +++ b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["LockdownZoneLockdownCreateAZoneLockdownRuleParams"] diff --git a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_response.py b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_response.py index 7e4a8ad812d..1df496b8186 100644 --- a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_response.py +++ b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_create_a_zone_lockdown_rule_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "LockdownZoneLockdownCreateAZoneLockdownRuleResponse", diff --git a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_params.py b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_params.py index 3224b7aeb23..09f46452ae5 100644 --- a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_params.py +++ b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["LockdownZoneLockdownListZoneLockdownRulesParams"] diff --git a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_response.py b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_response.py index e73eb129083..3191229022e 100644 --- a/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_response.py +++ b/src/cloudflare/types/firewalls/lockdown_zone_lockdown_list_zone_lockdown_rules_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "LockdownZoneLockdownListZoneLockdownRulesResponse", diff --git a/src/cloudflare/types/firewalls/rule_delete_params.py b/src/cloudflare/types/firewalls/rule_delete_params.py index 4f2100b0aa8..8fd239b46e4 100644 --- a/src/cloudflare/types/firewalls/rule_delete_params.py +++ b/src/cloudflare/types/firewalls/rule_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RuleDeleteParams"] diff --git a/src/cloudflare/types/firewalls/rule_delete_response.py b/src/cloudflare/types/firewalls/rule_delete_response.py index 6de98c5a29b..b3201b8f8ee 100644 --- a/src/cloudflare/types/firewalls/rule_delete_response.py +++ b/src/cloudflare/types/firewalls/rule_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = ["RuleDeleteResponse", "Filter", "FilterLegacyJhsFilter", "FilterLegacyJhsDeletedFilter"] diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_params.py b/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_params.py index df71161b799..299737e91fd 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_params.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RuleFirewallRulesCreateFirewallRulesParams"] diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_response.py b/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_response.py index 7270d40c8ec..e655b9492ff 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_response.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_create_firewall_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "RuleFirewallRulesCreateFirewallRulesResponse", diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_params.py b/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_params.py index e4d41d80437..49beb180ad2 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_params.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["RuleFirewallRulesListFirewallRulesParams"] diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_response.py b/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_response.py index c7b2264eeeb..569d34ff74d 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_response.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_list_firewall_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "RuleFirewallRulesListFirewallRulesResponse", diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_params.py b/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_params.py index 1bd15ec9116..29fc3e75b52 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_params.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RuleFirewallRulesUpdateFirewallRulesParams"] diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_response.py b/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_response.py index 0e391529187..99ea876ea1e 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_response.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_update_firewall_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "RuleFirewallRulesUpdateFirewallRulesResponse", diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_params.py b/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_params.py index 5b9e756eb04..9cd31f2644e 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_params.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RuleFirewallRulesUpdatePriorityOfFirewallRulesParams"] diff --git a/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_response.py b/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_response.py index 793e884fd53..c8b670bbb0d 100644 --- a/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_response.py +++ b/src/cloudflare/types/firewalls/rule_firewall_rules_update_priority_of_firewall_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = [ "RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse", diff --git a/src/cloudflare/types/firewalls/rule_get_response.py b/src/cloudflare/types/firewalls/rule_get_response.py index 8abf36f8de0..e17a67bf0ce 100644 --- a/src/cloudflare/types/firewalls/rule_get_response.py +++ b/src/cloudflare/types/firewalls/rule_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = ["RuleGetResponse", "Filter", "FilterLegacyJhsFilter", "FilterLegacyJhsDeletedFilter"] diff --git a/src/cloudflare/types/firewalls/rule_update_params.py b/src/cloudflare/types/firewalls/rule_update_params.py index 2ce5aaef8b9..a8886d4217d 100644 --- a/src/cloudflare/types/firewalls/rule_update_params.py +++ b/src/cloudflare/types/firewalls/rule_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/firewalls/rule_update_response.py b/src/cloudflare/types/firewalls/rule_update_response.py index ef0763cda38..0f2d2ac00a9 100644 --- a/src/cloudflare/types/firewalls/rule_update_response.py +++ b/src/cloudflare/types/firewalls/rule_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ...types import shared __all__ = ["RuleUpdateResponse", "Filter", "FilterLegacyJhsFilter", "FilterLegacyJhsDeletedFilter"] diff --git a/src/cloudflare/types/firewalls/ua_rule_delete_response.py b/src/cloudflare/types/firewalls/ua_rule_delete_response.py index 1ef1a4e5347..e1b2d8b1a84 100644 --- a/src/cloudflare/types/firewalls/ua_rule_delete_response.py +++ b/src/cloudflare/types/firewalls/ua_rule_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["UaRuleDeleteResponse"] diff --git a/src/cloudflare/types/firewalls/ua_rule_get_response.py b/src/cloudflare/types/firewalls/ua_rule_get_response.py index db9408f2857..c626b902b02 100644 --- a/src/cloudflare/types/firewalls/ua_rule_get_response.py +++ b/src/cloudflare/types/firewalls/ua_rule_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["UaRuleGetResponse"] diff --git a/src/cloudflare/types/firewalls/ua_rule_update_params.py b/src/cloudflare/types/firewalls/ua_rule_update_params.py index bb43cd1b434..94e87fc025d 100644 --- a/src/cloudflare/types/firewalls/ua_rule_update_params.py +++ b/src/cloudflare/types/firewalls/ua_rule_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["UaRuleUpdateParams"] diff --git a/src/cloudflare/types/firewalls/ua_rule_update_response.py b/src/cloudflare/types/firewalls/ua_rule_update_response.py index a4b00913f1a..fab7730b3c7 100644 --- a/src/cloudflare/types/firewalls/ua_rule_update_response.py +++ b/src/cloudflare/types/firewalls/ua_rule_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["UaRuleUpdateResponse"] diff --git a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params.py b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params.py index ef99949f25f..9b0dce6c353 100644 --- a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params.py +++ b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleParams"] diff --git a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response.py b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response.py index bc8dd44d6ec..8de7ff260c8 100644 --- a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response.py +++ b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse"] diff --git a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params.py b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params.py index 79fbc77acfb..c82e6ae095a 100644 --- a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params.py +++ b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesParams"] diff --git a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_response.py b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_response.py index 45feb60e16b..c05afb6442f 100644 --- a/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_response.py +++ b/src/cloudflare/types/firewalls/ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse", diff --git a/src/cloudflare/types/firewalls/waf/__init__.py b/src/cloudflare/types/firewalls/waf/__init__.py index b6c4c01a0c5..9a397e3a004 100644 --- a/src/cloudflare/types/firewalls/waf/__init__.py +++ b/src/cloudflare/types/firewalls/waf/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .package_list_params import PackageListParams as PackageListParams -from .package_get_response import PackageGetResponse as PackageGetResponse -from .override_get_response import OverrideGetResponse as OverrideGetResponse -from .package_list_response import PackageListResponse as PackageListResponse -from .override_update_params import OverrideUpdateParams as OverrideUpdateParams -from .override_delete_response import OverrideDeleteResponse as OverrideDeleteResponse from .override_update_response import OverrideUpdateResponse as OverrideUpdateResponse -from .override_waf_overrides_list_waf_overrides_params import ( - OverrideWAFOverridesListWAFOverridesParams as OverrideWAFOverridesListWAFOverridesParams, +from .override_delete_response import OverrideDeleteResponse as OverrideDeleteResponse +from .override_get_response import OverrideGetResponse as OverrideGetResponse +from .override_waf_overrides_create_a_waf_override_response import ( + OverrideWAFOverridesCreateAWAFOverrideResponse as OverrideWAFOverridesCreateAWAFOverrideResponse, ) from .override_waf_overrides_list_waf_overrides_response import ( OverrideWAFOverridesListWAFOverridesResponse as OverrideWAFOverridesListWAFOverridesResponse, ) +from .override_update_params import OverrideUpdateParams as OverrideUpdateParams from .override_waf_overrides_create_a_waf_override_params import ( OverrideWAFOverridesCreateAWAFOverrideParams as OverrideWAFOverridesCreateAWAFOverrideParams, ) -from .override_waf_overrides_create_a_waf_override_response import ( - OverrideWAFOverridesCreateAWAFOverrideResponse as OverrideWAFOverridesCreateAWAFOverrideResponse, +from .override_waf_overrides_list_waf_overrides_params import ( + OverrideWAFOverridesListWAFOverridesParams as OverrideWAFOverridesListWAFOverridesParams, ) +from .package_list_response import PackageListResponse as PackageListResponse +from .package_get_response import PackageGetResponse as PackageGetResponse +from .package_list_params import PackageListParams as PackageListParams diff --git a/src/cloudflare/types/firewalls/waf/override_delete_response.py b/src/cloudflare/types/firewalls/waf/override_delete_response.py index fe7bd402dad..9a82599dcb0 100644 --- a/src/cloudflare/types/firewalls/waf/override_delete_response.py +++ b/src/cloudflare/types/firewalls/waf/override_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["OverrideDeleteResponse"] diff --git a/src/cloudflare/types/firewalls/waf/override_get_response.py b/src/cloudflare/types/firewalls/waf/override_get_response.py index 26066617544..827c7c3c277 100644 --- a/src/cloudflare/types/firewalls/waf/override_get_response.py +++ b/src/cloudflare/types/firewalls/waf/override_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +from typing import Optional, Dict, 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 +from ....types import shared __all__ = ["OverrideGetResponse", "RewriteAction"] diff --git a/src/cloudflare/types/firewalls/waf/override_update_params.py b/src/cloudflare/types/firewalls/waf/override_update_params.py index b14219ff2cb..e15220e9344 100644 --- a/src/cloudflare/types/firewalls/waf/override_update_params.py +++ b/src/cloudflare/types/firewalls/waf/override_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["OverrideUpdateParams"] diff --git a/src/cloudflare/types/firewalls/waf/override_update_response.py b/src/cloudflare/types/firewalls/waf/override_update_response.py index bdfb268d4ac..fc6cd0812d3 100644 --- a/src/cloudflare/types/firewalls/waf/override_update_response.py +++ b/src/cloudflare/types/firewalls/waf/override_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +from typing import Optional, Dict, 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 +from ....types import shared __all__ = ["OverrideUpdateResponse", "RewriteAction"] diff --git a/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_params.py b/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_params.py index 7d0750bc10a..f72ef64066c 100644 --- a/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_params.py +++ b/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["OverrideWAFOverridesCreateAWAFOverrideParams"] diff --git a/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_response.py b/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_response.py index f0ee5d18e7f..abd3203ce07 100644 --- a/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_response.py +++ b/src/cloudflare/types/firewalls/waf/override_waf_overrides_create_a_waf_override_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +from typing import Optional, Dict, 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 +from ....types import shared __all__ = ["OverrideWAFOverridesCreateAWAFOverrideResponse", "RewriteAction"] diff --git a/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_params.py b/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_params.py index 0fec6660a19..c5237543d81 100644 --- a/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_params.py +++ b/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_params.py @@ -4,6 +4,12 @@ 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 +from ....types import shared_params + __all__ = ["OverrideWAFOverridesListWAFOverridesParams"] diff --git a/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_response.py b/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_response.py index 9b9079e2e73..55114ade6f9 100644 --- a/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_response.py +++ b/src/cloudflare/types/firewalls/waf/override_waf_overrides_list_waf_overrides_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +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 from ...._models import BaseModel +from ....types import shared __all__ = [ "OverrideWAFOverridesListWAFOverridesResponse", diff --git a/src/cloudflare/types/firewalls/waf/package_get_response.py b/src/cloudflare/types/firewalls/waf/package_get_response.py index 4424c3f7421..995f2c447b6 100644 --- a/src/cloudflare/types/firewalls/waf/package_get_response.py +++ b/src/cloudflare/types/firewalls/waf/package_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. from typing import List, Union, 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 +from ....types import shared __all__ = [ "PackageGetResponse", diff --git a/src/cloudflare/types/firewalls/waf/package_list_params.py b/src/cloudflare/types/firewalls/waf/package_list_params.py index 5a930c700c6..d749a73ccbe 100644 --- a/src/cloudflare/types/firewalls/waf/package_list_params.py +++ b/src/cloudflare/types/firewalls/waf/package_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["PackageListParams"] diff --git a/src/cloudflare/types/firewalls/waf/package_list_response.py b/src/cloudflare/types/firewalls/waf/package_list_response.py index f7c127a5071..fd01eefdb7d 100644 --- a/src/cloudflare/types/firewalls/waf/package_list_response.py +++ b/src/cloudflare/types/firewalls/waf/package_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, 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 from ...._models import BaseModel +from ....types import shared __all__ = [ "PackageListResponse", diff --git a/src/cloudflare/types/firewalls/waf/packages/__init__.py b/src/cloudflare/types/firewalls/waf/packages/__init__.py index 3370c82980b..d7a9eac5b65 100644 --- a/src/cloudflare/types/firewalls/waf/packages/__init__.py +++ b/src/cloudflare/types/firewalls/waf/packages/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .rule_get_response import RuleGetResponse as RuleGetResponse +from .group_update_response import GroupUpdateResponse as GroupUpdateResponse from .group_get_response import GroupGetResponse as GroupGetResponse -from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .group_waf_rule_groups_list_waf_rule_groups_response import ( + GroupWAFRuleGroupsListWAFRuleGroupsResponse as GroupWAFRuleGroupsListWAFRuleGroupsResponse, +) from .group_update_params import GroupUpdateParams as GroupUpdateParams -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .group_update_response import GroupUpdateResponse as GroupUpdateResponse -from .rule_waf_rules_list_waf_rules_params import RuleWAFRulesListWAFRulesParams as RuleWAFRulesListWAFRulesParams -from .rule_waf_rules_list_waf_rules_response import RuleWAFRulesListWAFRulesResponse as RuleWAFRulesListWAFRulesResponse from .group_waf_rule_groups_list_waf_rule_groups_params import ( GroupWAFRuleGroupsListWAFRuleGroupsParams as GroupWAFRuleGroupsListWAFRuleGroupsParams, ) -from .group_waf_rule_groups_list_waf_rule_groups_response import ( - GroupWAFRuleGroupsListWAFRuleGroupsResponse as GroupWAFRuleGroupsListWAFRuleGroupsResponse, -) +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_waf_rules_list_waf_rules_response import RuleWAFRulesListWAFRulesResponse as RuleWAFRulesListWAFRulesResponse +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_waf_rules_list_waf_rules_params import RuleWAFRulesListWAFRulesParams as RuleWAFRulesListWAFRulesParams diff --git a/src/cloudflare/types/firewalls/waf/packages/group_get_response.py b/src/cloudflare/types/firewalls/waf/packages/group_get_response.py index 22c408ce5cc..c81ef7a8453 100644 --- a/src/cloudflare/types/firewalls/waf/packages/group_get_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/group_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["GroupGetResponse"] diff --git a/src/cloudflare/types/firewalls/waf/packages/group_update_params.py b/src/cloudflare/types/firewalls/waf/packages/group_update_params.py index 060354c0e08..289164481ca 100644 --- a/src/cloudflare/types/firewalls/waf/packages/group_update_params.py +++ b/src/cloudflare/types/firewalls/waf/packages/group_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["GroupUpdateParams"] diff --git a/src/cloudflare/types/firewalls/waf/packages/group_update_response.py b/src/cloudflare/types/firewalls/waf/packages/group_update_response.py index 2cb6b49d706..bc6f71ca7d5 100644 --- a/src/cloudflare/types/firewalls/waf/packages/group_update_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/group_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["GroupUpdateResponse"] diff --git a/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_params.py b/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_params.py index 5c82ba48da0..cf8770bb932 100644 --- a/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_params.py +++ b/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["GroupWAFRuleGroupsListWAFRuleGroupsParams"] diff --git a/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_response.py b/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_response.py index 779cdb140bf..a6535b5eae8 100644 --- a/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/group_waf_rule_groups_list_waf_rule_groups_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = ["GroupWAFRuleGroupsListWAFRuleGroupsResponse", "GroupWAFRuleGroupsListWAFRuleGroupsResponseItem"] diff --git a/src/cloudflare/types/firewalls/waf/packages/rule_get_response.py b/src/cloudflare/types/firewalls/waf/packages/rule_get_response.py index f72f8dae2c8..cbe0e699534 100644 --- a/src/cloudflare/types/firewalls/waf/packages/rule_get_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/rule_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["RuleGetResponse"] diff --git a/src/cloudflare/types/firewalls/waf/packages/rule_update_params.py b/src/cloudflare/types/firewalls/waf/packages/rule_update_params.py index 0cbb0ca80e4..0bc912281ab 100644 --- a/src/cloudflare/types/firewalls/waf/packages/rule_update_params.py +++ b/src/cloudflare/types/firewalls/waf/packages/rule_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/firewalls/waf/packages/rule_update_response.py b/src/cloudflare/types/firewalls/waf/packages/rule_update_response.py index 7862c61f213..7afa1e54927 100644 --- a/src/cloudflare/types/firewalls/waf/packages/rule_update_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/rule_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from .....types import shared __all__ = [ "RuleUpdateResponse", diff --git a/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_params.py b/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_params.py index 41689ba8d63..76a5dad26bb 100644 --- a/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_params.py +++ b/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 .....types import shared_params __all__ = ["RuleWAFRulesListWAFRulesParams"] diff --git a/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_response.py b/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_response.py index 90c3c277b73..ead0e94449f 100644 --- a/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_response.py +++ b/src/cloudflare/types/firewalls/waf/packages/rule_waf_rules_list_waf_rules_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from .....types import shared __all__ = [ "RuleWAFRulesListWAFRulesResponse", diff --git a/src/cloudflare/types/font_setting_get_response.py b/src/cloudflare/types/font_setting_get_response.py index 34937ac80b1..9ed6b6e76e6 100644 --- a/src/cloudflare/types/font_setting_get_response.py +++ b/src/cloudflare/types/font_setting_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["FontSettingGetResponse"] diff --git a/src/cloudflare/types/font_setting_update_params.py b/src/cloudflare/types/font_setting_update_params.py index 443414975ba..da00015be59 100644 --- a/src/cloudflare/types/font_setting_update_params.py +++ b/src/cloudflare/types/font_setting_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["FontSettingUpdateParams"] diff --git a/src/cloudflare/types/font_setting_update_response.py b/src/cloudflare/types/font_setting_update_response.py index db7043cf172..f6a9320851a 100644 --- a/src/cloudflare/types/font_setting_update_response.py +++ b/src/cloudflare/types/font_setting_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ..types import shared __all__ = ["FontSettingUpdateResponse"] diff --git a/src/cloudflare/types/gateway/__init__.py b/src/cloudflare/types/gateway/__init__.py index 78c4973857f..d44a2d113ee 100644 --- a/src/cloudflare/types/gateway/__init__.py +++ b/src/cloudflare/types/gateway/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .audit_ssh_setting_update_response import AuditSSHSettingUpdateResponse as AuditSSHSettingUpdateResponse from .audit_ssh_setting_get_response import AuditSSHSettingGetResponse as AuditSSHSettingGetResponse from .audit_ssh_setting_update_params import AuditSSHSettingUpdateParams as AuditSSHSettingUpdateParams -from .audit_ssh_setting_update_response import AuditSSHSettingUpdateResponse as AuditSSHSettingUpdateResponse diff --git a/src/cloudflare/types/gateway/audit_ssh_setting_get_response.py b/src/cloudflare/types/gateway/audit_ssh_setting_get_response.py index 4867d58fa4a..54fcbdae5ff 100644 --- a/src/cloudflare/types/gateway/audit_ssh_setting_get_response.py +++ b/src/cloudflare/types/gateway/audit_ssh_setting_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["AuditSSHSettingGetResponse"] diff --git a/src/cloudflare/types/gateway/audit_ssh_setting_update_params.py b/src/cloudflare/types/gateway/audit_ssh_setting_update_params.py index 619bbe214dc..e047b56356c 100644 --- a/src/cloudflare/types/gateway/audit_ssh_setting_update_params.py +++ b/src/cloudflare/types/gateway/audit_ssh_setting_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["AuditSSHSettingUpdateParams"] diff --git a/src/cloudflare/types/gateway/audit_ssh_setting_update_response.py b/src/cloudflare/types/gateway/audit_ssh_setting_update_response.py index 09c7fb0e57a..294c5361ff8 100644 --- a/src/cloudflare/types/gateway/audit_ssh_setting_update_response.py +++ b/src/cloudflare/types/gateway/audit_ssh_setting_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["AuditSSHSettingUpdateResponse"] diff --git a/src/cloudflare/types/gateway_zero_trust_accounts_create_zero_trust_account_response.py b/src/cloudflare/types/gateway_zero_trust_accounts_create_zero_trust_account_response.py index 61f491f8964..1f22089e034 100644 --- a/src/cloudflare/types/gateway_zero_trust_accounts_create_zero_trust_account_response.py +++ b/src/cloudflare/types/gateway_zero_trust_accounts_create_zero_trust_account_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["GatewayZeroTrustAccountsCreateZeroTrustAccountResponse"] diff --git a/src/cloudflare/types/gateway_zero_trust_accounts_get_zero_trust_account_information_response.py b/src/cloudflare/types/gateway_zero_trust_accounts_get_zero_trust_account_information_response.py index cce35880877..5cfd3d085aa 100644 --- a/src/cloudflare/types/gateway_zero_trust_accounts_get_zero_trust_account_information_response.py +++ b/src/cloudflare/types/gateway_zero_trust_accounts_get_zero_trust_account_information_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse"] diff --git a/src/cloudflare/types/gateways/__init__.py b/src/cloudflare/types/gateways/__init__.py index d69148ef1c1..ccc1c276a9b 100644 --- a/src/cloudflare/types/gateways/__init__.py +++ b/src/cloudflare/types/gateways/__init__.py @@ -2,86 +2,86 @@ from __future__ import annotations -from .list_get_response import ListGetResponse as ListGetResponse -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .list_update_params import ListUpdateParams as ListUpdateParams -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .list_delete_response import ListDeleteResponse as ListDeleteResponse -from .list_update_response import ListUpdateResponse as ListUpdateResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .location_get_response import LocationGetResponse as LocationGetResponse -from .location_update_params import LocationUpdateParams as LocationUpdateParams -from .location_delete_response import LocationDeleteResponse as LocationDeleteResponse -from .location_update_response import LocationUpdateResponse as LocationUpdateResponse -from .proxy_endpoint_get_response import ProxyEndpointGetResponse as ProxyEndpointGetResponse -from .proxy_endpoint_list_response import ProxyEndpointListResponse as ProxyEndpointListResponse -from .proxy_endpoint_update_params import ProxyEndpointUpdateParams as ProxyEndpointUpdateParams -from .proxy_endpoint_delete_response import ProxyEndpointDeleteResponse as ProxyEndpointDeleteResponse -from .proxy_endpoint_update_response import ProxyEndpointUpdateResponse as ProxyEndpointUpdateResponse -from .list_zero_trust_lists_create_zero_trust_list_params import ( - ListZeroTrustListsCreateZeroTrustListParams as ListZeroTrustListsCreateZeroTrustListParams, -) -from .list_zero_trust_lists_list_zero_trust_lists_response import ( - ListZeroTrustListsListZeroTrustListsResponse as ListZeroTrustListsListZeroTrustListsResponse, -) -from .list_zero_trust_lists_create_zero_trust_list_response import ( - ListZeroTrustListsCreateZeroTrustListResponse as ListZeroTrustListsCreateZeroTrustListResponse, -) from .category_zero_trust_gateway_categories_list_categories_response import ( CategoryZeroTrustGatewayCategoriesListCategoriesResponse as CategoryZeroTrustGatewayCategoriesListCategoriesResponse, ) -from .rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params import ( - RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleParams as RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleParams, -) -from .rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response import ( - RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse as RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, -) -from .rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response import ( - RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse as RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, -) -from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params import ( - ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointParams as ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointParams, +from .app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response import ( + AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse as AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, ) from .configuration_zero_trust_accounts_get_zero_trust_account_configuration_response import ( ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse as ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, ) -from .configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params import ( - ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationParams as ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationParams, +from .configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response import ( + ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse as ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, ) -from .location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params import ( - LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationParams as LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationParams, +from .configuration_zero_trust_accounts_update_zero_trust_account_configuration_response import ( + ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse as ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, ) -from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response import ( - ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse as ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, +from .configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params import ( + ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationParams as ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationParams, ) from .configuration_zero_trust_accounts_update_zero_trust_account_configuration_params import ( ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationParams as ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationParams, ) -from .location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response import ( - LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse as LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, +from .list_update_response import ListUpdateResponse as ListUpdateResponse +from .list_delete_response import ListDeleteResponse as ListDeleteResponse +from .list_get_response import ListGetResponse as ListGetResponse +from .list_zero_trust_lists_create_zero_trust_list_response import ( + ListZeroTrustListsCreateZeroTrustListResponse as ListZeroTrustListsCreateZeroTrustListResponse, ) -from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response import ( - ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse as ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, +from .list_zero_trust_lists_list_zero_trust_lists_response import ( + ListZeroTrustListsListZeroTrustListsResponse as ListZeroTrustListsListZeroTrustListsResponse, ) -from .configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response import ( - ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse as ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, +from .list_update_params import ListUpdateParams as ListUpdateParams +from .list_zero_trust_lists_create_zero_trust_list_params import ( + ListZeroTrustListsCreateZeroTrustListParams as ListZeroTrustListsCreateZeroTrustListParams, ) +from .location_update_response import LocationUpdateResponse as LocationUpdateResponse +from .location_delete_response import LocationDeleteResponse as LocationDeleteResponse +from .location_get_response import LocationGetResponse as LocationGetResponse from .location_zero_trust_gateway_locations_create_zero_trust_gateway_location_response import ( LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse as LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, ) -from .configuration_zero_trust_accounts_update_zero_trust_account_configuration_response import ( - ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse as ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, +from .location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response import ( + LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse as LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, +) +from .location_update_params import LocationUpdateParams as LocationUpdateParams +from .location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params import ( + LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationParams as LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationParams, ) from .logging_zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_response import ( LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse as LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, ) +from .logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response import ( + LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse as LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, +) from .logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params import ( LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountParams as LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountParams, ) -from .logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response import ( - LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse as LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, +from .proxy_endpoint_update_response import ProxyEndpointUpdateResponse as ProxyEndpointUpdateResponse +from .proxy_endpoint_list_response import ProxyEndpointListResponse as ProxyEndpointListResponse +from .proxy_endpoint_delete_response import ProxyEndpointDeleteResponse as ProxyEndpointDeleteResponse +from .proxy_endpoint_get_response import ProxyEndpointGetResponse as ProxyEndpointGetResponse +from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response import ( + ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse as ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, ) -from .app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response import ( - AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse as AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, +from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response import ( + ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse as ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, +) +from .proxy_endpoint_update_params import ProxyEndpointUpdateParams as ProxyEndpointUpdateParams +from .proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params import ( + ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointParams as ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointParams, +) +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response import ( + RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse as RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, +) +from .rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response import ( + RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse as RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, +) +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params import ( + RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleParams as RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleParams, ) diff --git a/src/cloudflare/types/gateways/app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response.py b/src/cloudflare/types/gateways/app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response.py index 282c9d81ac4..b2592e58bce 100644 --- a/src/cloudflare/types/gateways/app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response.py +++ b/src/cloudflare/types/gateways/app_type_zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 ...types import shared __all__ = [ "AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse", diff --git a/src/cloudflare/types/gateways/category_zero_trust_gateway_categories_list_categories_response.py b/src/cloudflare/types/gateways/category_zero_trust_gateway_categories_list_categories_response.py index 37f02bab76f..8546155d393 100644 --- a/src/cloudflare/types/gateways/category_zero_trust_gateway_categories_list_categories_response.py +++ b/src/cloudflare/types/gateways/category_zero_trust_gateway_categories_list_categories_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "CategoryZeroTrustGatewayCategoriesListCategoriesResponse", diff --git a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_get_zero_trust_account_configuration_response.py b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_get_zero_trust_account_configuration_response.py index d3e67c7f480..52255166e63 100644 --- a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_get_zero_trust_account_configuration_response.py +++ b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_get_zero_trust_account_configuration_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = [ "ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse", diff --git a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params.py b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params.py index 85358f2a377..dbe8eec0c46 100644 --- a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params.py +++ b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = [ "ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationParams", diff --git a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response.py b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response.py index 57b5c1d1d0c..237c77c0d95 100644 --- a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response.py +++ b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_patch_zero_trust_account_configuration_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = [ "ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse", diff --git a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_params.py b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_params.py index 7e8683e5fa6..e002156c824 100644 --- a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_params.py +++ b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = [ "ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationParams", diff --git a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_response.py b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_response.py index f8aed361b9e..5eea1d5f209 100644 --- a/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_response.py +++ b/src/cloudflare/types/gateways/configuration_zero_trust_accounts_update_zero_trust_account_configuration_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = [ "ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse", diff --git a/src/cloudflare/types/gateways/list_delete_response.py b/src/cloudflare/types/gateways/list_delete_response.py index 34bd0ac9708..e920954fdaf 100644 --- a/src/cloudflare/types/gateways/list_delete_response.py +++ b/src/cloudflare/types/gateways/list_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ListDeleteResponse"] diff --git a/src/cloudflare/types/gateways/list_get_response.py b/src/cloudflare/types/gateways/list_get_response.py index 3efa6804137..7ad37f9ad9e 100644 --- a/src/cloudflare/types/gateways/list_get_response.py +++ b/src/cloudflare/types/gateways/list_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ListGetResponse"] diff --git a/src/cloudflare/types/gateways/list_update_params.py b/src/cloudflare/types/gateways/list_update_params.py index a7ba2cf8061..c67274fb8a6 100644 --- a/src/cloudflare/types/gateways/list_update_params.py +++ b/src/cloudflare/types/gateways/list_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ListUpdateParams"] diff --git a/src/cloudflare/types/gateways/list_update_response.py b/src/cloudflare/types/gateways/list_update_response.py index 1b903879718..650b0ae9f88 100644 --- a/src/cloudflare/types/gateways/list_update_response.py +++ b/src/cloudflare/types/gateways/list_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["ListUpdateResponse"] diff --git a/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_params.py b/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_params.py index d3832087389..d56badf1cd6 100644 --- a/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_params.py +++ b/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["ListZeroTrustListsCreateZeroTrustListParams", "Item"] diff --git a/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_response.py b/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_response.py index d96cfe7448f..e8b32574711 100644 --- a/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_response.py +++ b/src/cloudflare/types/gateways/list_zero_trust_lists_create_zero_trust_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = ["ListZeroTrustListsCreateZeroTrustListResponse", "Item"] diff --git a/src/cloudflare/types/gateways/list_zero_trust_lists_list_zero_trust_lists_response.py b/src/cloudflare/types/gateways/list_zero_trust_lists_list_zero_trust_lists_response.py index 3984e644d48..143d97a26dd 100644 --- a/src/cloudflare/types/gateways/list_zero_trust_lists_list_zero_trust_lists_response.py +++ b/src/cloudflare/types/gateways/list_zero_trust_lists_list_zero_trust_lists_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["ListZeroTrustListsListZeroTrustListsResponse", "ListZeroTrustListsListZeroTrustListsResponseItem"] diff --git a/src/cloudflare/types/gateways/lists/item_zero_trust_lists_zero_trust_list_items_response.py b/src/cloudflare/types/gateways/lists/item_zero_trust_lists_zero_trust_list_items_response.py index 37f77b13a0d..7a7eddbfe89 100644 --- a/src/cloudflare/types/gateways/lists/item_zero_trust_lists_zero_trust_list_items_response.py +++ b/src/cloudflare/types/gateways/lists/item_zero_trust_lists_zero_trust_list_items_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ....types import shared __all__ = ["ItemZeroTrustListsZeroTrustListItemsResponse", "ItemZeroTrustListsZeroTrustListItemsResponseItem"] diff --git a/src/cloudflare/types/gateways/location_delete_response.py b/src/cloudflare/types/gateways/location_delete_response.py index df4b5859eed..76bc277274a 100644 --- a/src/cloudflare/types/gateways/location_delete_response.py +++ b/src/cloudflare/types/gateways/location_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["LocationDeleteResponse"] diff --git a/src/cloudflare/types/gateways/location_get_response.py b/src/cloudflare/types/gateways/location_get_response.py index f559334cae8..fdb1840d854 100644 --- a/src/cloudflare/types/gateways/location_get_response.py +++ b/src/cloudflare/types/gateways/location_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["LocationGetResponse", "Network"] diff --git a/src/cloudflare/types/gateways/location_update_params.py b/src/cloudflare/types/gateways/location_update_params.py index 0c246e8c548..8da50583d4e 100644 --- a/src/cloudflare/types/gateways/location_update_params.py +++ b/src/cloudflare/types/gateways/location_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["LocationUpdateParams", "Network"] diff --git a/src/cloudflare/types/gateways/location_update_response.py b/src/cloudflare/types/gateways/location_update_response.py index caec32c8379..bd95d45b57e 100644 --- a/src/cloudflare/types/gateways/location_update_response.py +++ b/src/cloudflare/types/gateways/location_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["LocationUpdateResponse", "Network"] diff --git a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params.py b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params.py index fa387947a4b..e53cab2a573 100644 --- a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params.py +++ b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationParams", "Network"] diff --git a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_response.py b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_response.py index 49730588590..bbfba4267a5 100644 --- a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_response.py +++ b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_create_zero_trust_gateway_location_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse", "Network"] diff --git a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response.py b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response.py index f07c794f798..b2a8c3f42e5 100644 --- a/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response.py +++ b/src/cloudflare/types/gateways/location_zero_trust_gateway_locations_list_zero_trust_gateway_locations_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse", diff --git a/src/cloudflare/types/gateways/logging_zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_response.py b/src/cloudflare/types/gateways/logging_zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_response.py index 8866cd6ad8f..f7dfd5e440b 100644 --- a/src/cloudflare/types/gateways/logging_zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_response.py +++ b/src/cloudflare/types/gateways/logging_zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse", "SettingsByRuleType"] diff --git a/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params.py b/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params.py index 05109cff0f5..3709a251546 100644 --- a/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params.py +++ b/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountParams", "SettingsByRuleType"] diff --git a/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response.py b/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response.py index d468afda29f..63603095a92 100644 --- a/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response.py +++ b/src/cloudflare/types/gateways/logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse", "SettingsByRuleType"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_delete_response.py b/src/cloudflare/types/gateways/proxy_endpoint_delete_response.py index e23515f1dda..bbbcb4ef4c8 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_delete_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ProxyEndpointDeleteResponse"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_get_response.py b/src/cloudflare/types/gateways/proxy_endpoint_get_response.py index c42878f8835..6e6ffaab592 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_get_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ProxyEndpointGetResponse"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_list_response.py b/src/cloudflare/types/gateways/proxy_endpoint_list_response.py index 9a9e7eb15f7..0774fa99ca3 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_list_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ProxyEndpointListResponse"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_update_params.py b/src/cloudflare/types/gateways/proxy_endpoint_update_params.py index 4ee0f879db2..db1bcdcf274 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_update_params.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["ProxyEndpointUpdateParams"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_update_response.py b/src/cloudflare/types/gateways/proxy_endpoint_update_response.py index 7f4b0a44830..1e3ee9ddc1a 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_update_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ProxyEndpointUpdateResponse"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params.py b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params.py index 2f4e3a41ba4..93052f726c9 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointParams"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response.py b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response.py index 0177690268b..98fe6fa4be4 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse"] diff --git a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response.py b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response.py index f283da879bc..f7316e3b550 100644 --- a/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response.py +++ b/src/cloudflare/types/gateways/proxy_endpoint_zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse", diff --git a/src/cloudflare/types/gateways/rule_delete_response.py b/src/cloudflare/types/gateways/rule_delete_response.py index 0e5b2189cb2..f81139e1dcd 100644 --- a/src/cloudflare/types/gateways/rule_delete_response.py +++ b/src/cloudflare/types/gateways/rule_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/gateways/rule_get_response.py b/src/cloudflare/types/gateways/rule_get_response.py index afadc5beefc..7c1ca6c25c6 100644 --- a/src/cloudflare/types/gateways/rule_get_response.py +++ b/src/cloudflare/types/gateways/rule_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "RuleGetResponse", diff --git a/src/cloudflare/types/gateways/rule_update_params.py b/src/cloudflare/types/gateways/rule_update_params.py index 5415f5fa3b4..53012f825a6 100644 --- a/src/cloudflare/types/gateways/rule_update_params.py +++ b/src/cloudflare/types/gateways/rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List, Iterable -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = [ "RuleUpdateParams", diff --git a/src/cloudflare/types/gateways/rule_update_response.py b/src/cloudflare/types/gateways/rule_update_response.py index 953a452c0e1..956182638d9 100644 --- a/src/cloudflare/types/gateways/rule_update_response.py +++ b/src/cloudflare/types/gateways/rule_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "RuleUpdateResponse", diff --git a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params.py b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params.py index f8ceae87dee..b3eb835d232 100644 --- a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params.py +++ b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Required + from typing import List, Iterable -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = [ "RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleParams", diff --git a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response.py b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response.py index 77726b7667a..a3b1a3fccc8 100644 --- a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response.py +++ b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse", diff --git a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response.py b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response.py index a6dad2b3bff..4e1282b9276 100644 --- a/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response.py +++ b/src/cloudflare/types/gateways/rule_zero_trust_gateway_rules_list_zero_trust_gateway_rules_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse", diff --git a/src/cloudflare/types/healthcheck_delete_response.py b/src/cloudflare/types/healthcheck_delete_response.py index 50484322844..27fa3955ecf 100644 --- a/src/cloudflare/types/healthcheck_delete_response.py +++ b/src/cloudflare/types/healthcheck_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["HealthcheckDeleteResponse"] diff --git a/src/cloudflare/types/healthcheck_get_response.py b/src/cloudflare/types/healthcheck_get_response.py index 8a8e818a86e..3b49c86a984 100644 --- a/src/cloudflare/types/healthcheck_get_response.py +++ b/src/cloudflare/types/healthcheck_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["HealthcheckGetResponse", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthcheck_health_checks_create_health_check_params.py b/src/cloudflare/types/healthcheck_health_checks_create_health_check_params.py index de731264676..cbfd81f07e0 100644 --- a/src/cloudflare/types/healthcheck_health_checks_create_health_check_params.py +++ b/src/cloudflare/types/healthcheck_health_checks_create_health_check_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, 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 +from ..types import shared_params __all__ = ["HealthcheckHealthChecksCreateHealthCheckParams", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthcheck_health_checks_create_health_check_response.py b/src/cloudflare/types/healthcheck_health_checks_create_health_check_response.py index 621ddb0d950..0dd14b4141f 100644 --- a/src/cloudflare/types/healthcheck_health_checks_create_health_check_response.py +++ b/src/cloudflare/types/healthcheck_health_checks_create_health_check_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["HealthcheckHealthChecksCreateHealthCheckResponse", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthcheck_health_checks_list_health_checks_response.py b/src/cloudflare/types/healthcheck_health_checks_list_health_checks_response.py index 257e71db053..2f2c1a89497 100644 --- a/src/cloudflare/types/healthcheck_health_checks_list_health_checks_response.py +++ b/src/cloudflare/types/healthcheck_health_checks_list_health_checks_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "HealthcheckHealthChecksListHealthChecksResponse", diff --git a/src/cloudflare/types/healthcheck_update_params.py b/src/cloudflare/types/healthcheck_update_params.py index 474c3ef95ca..08c3bbb8492 100644 --- a/src/cloudflare/types/healthcheck_update_params.py +++ b/src/cloudflare/types/healthcheck_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, 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 +from ..types import shared_params __all__ = ["HealthcheckUpdateParams", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthcheck_update_response.py b/src/cloudflare/types/healthcheck_update_response.py index f606d57d6b0..aa124a97f72 100644 --- a/src/cloudflare/types/healthcheck_update_response.py +++ b/src/cloudflare/types/healthcheck_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["HealthcheckUpdateResponse", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthchecks/__init__.py b/src/cloudflare/types/healthchecks/__init__.py index 800b8c6d0f0..dfcf9592389 100644 --- a/src/cloudflare/types/healthchecks/__init__.py +++ b/src/cloudflare/types/healthchecks/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .preview_get_response import PreviewGetResponse as PreviewGetResponse from .preview_delete_response import PreviewDeleteResponse as PreviewDeleteResponse -from .preview_health_checks_create_preview_health_check_params import ( - PreviewHealthChecksCreatePreviewHealthCheckParams as PreviewHealthChecksCreatePreviewHealthCheckParams, -) +from .preview_get_response import PreviewGetResponse as PreviewGetResponse from .preview_health_checks_create_preview_health_check_response import ( PreviewHealthChecksCreatePreviewHealthCheckResponse as PreviewHealthChecksCreatePreviewHealthCheckResponse, ) +from .preview_health_checks_create_preview_health_check_params import ( + PreviewHealthChecksCreatePreviewHealthCheckParams as PreviewHealthChecksCreatePreviewHealthCheckParams, +) diff --git a/src/cloudflare/types/healthchecks/preview_delete_response.py b/src/cloudflare/types/healthchecks/preview_delete_response.py index 49c2e3f0e24..c8daf3eab38 100644 --- a/src/cloudflare/types/healthchecks/preview_delete_response.py +++ b/src/cloudflare/types/healthchecks/preview_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PreviewDeleteResponse"] diff --git a/src/cloudflare/types/healthchecks/preview_get_response.py b/src/cloudflare/types/healthchecks/preview_get_response.py index 0c2462a34a4..9bc201688d0 100644 --- a/src/cloudflare/types/healthchecks/preview_get_response.py +++ b/src/cloudflare/types/healthchecks/preview_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["PreviewGetResponse", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_params.py b/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_params.py index 81233133df0..1a41ae75328 100644 --- a/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_params.py +++ b/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, 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 +from ...types import shared_params __all__ = ["PreviewHealthChecksCreatePreviewHealthCheckParams", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_response.py b/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_response.py index de04ce872f2..805d9f04576 100644 --- a/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_response.py +++ b/src/cloudflare/types/healthchecks/preview_health_checks_create_preview_health_check_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["PreviewHealthChecksCreatePreviewHealthCheckResponse", "HTTPConfig", "TcpConfig"] diff --git a/src/cloudflare/types/hostnames/settings/__init__.py b/src/cloudflare/types/hostnames/settings/__init__.py index ce4b4ba1b0d..917532f7c7c 100644 --- a/src/cloudflare/types/hostnames/settings/__init__.py +++ b/src/cloudflare/types/hostnames/settings/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations +from .tls_update_response import TLSUpdateResponse as TLSUpdateResponse +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 .tls_delete_response import TLSDeleteResponse as TLSDeleteResponse -from .tls_update_response import TLSUpdateResponse as TLSUpdateResponse diff --git a/src/cloudflare/types/hostnames/settings/tls_delete_response.py b/src/cloudflare/types/hostnames/settings/tls_delete_response.py index 82a5e990411..28d41141cb1 100644 --- a/src/cloudflare/types/hostnames/settings/tls_delete_response.py +++ b/src/cloudflare/types/hostnames/settings/tls_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __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 f73694e507f..0d2d9fae4ea 100644 --- a/src/cloudflare/types/hostnames/settings/tls_get_response.py +++ b/src/cloudflare/types/hostnames/settings/tls_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, Union, 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 +from ....types import shared __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 dd19672b93f..32ed4a291f4 100644 --- a/src/cloudflare/types/hostnames/settings/tls_update_params.py +++ b/src/cloudflare/types/hostnames/settings/tls_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Union, 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 ....types import shared_params __all__ = ["TLSUpdateParams"] diff --git a/src/cloudflare/types/hostnames/settings/tls_update_response.py b/src/cloudflare/types/hostnames/settings/tls_update_response.py index 93a9f3630a5..52a1140974b 100644 --- a/src/cloudflare/types/hostnames/settings/tls_update_response.py +++ b/src/cloudflare/types/hostnames/settings/tls_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, Union, 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 +from ....types import shared __all__ = ["TLSUpdateResponse"] diff --git a/src/cloudflare/types/hyperdrive/__init__.py b/src/cloudflare/types/hyperdrive/__init__.py index 4d49689fa31..4a4a8c7ded7 100644 --- a/src/cloudflare/types/hyperdrive/__init__.py +++ b/src/cloudflare/types/hyperdrive/__init__.py @@ -2,10 +2,10 @@ from __future__ import annotations +from .config_create_response import ConfigCreateResponse as ConfigCreateResponse +from .config_update_response import ConfigUpdateResponse as ConfigUpdateResponse +from .config_list_response import ConfigListResponse as ConfigListResponse +from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse from .config_get_response import ConfigGetResponse as ConfigGetResponse from .config_create_params import ConfigCreateParams as ConfigCreateParams -from .config_list_response import ConfigListResponse as ConfigListResponse from .config_update_params import ConfigUpdateParams as ConfigUpdateParams -from .config_create_response import ConfigCreateResponse as ConfigCreateResponse -from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse -from .config_update_response import ConfigUpdateResponse as ConfigUpdateResponse diff --git a/src/cloudflare/types/hyperdrive/config_create_params.py b/src/cloudflare/types/hyperdrive/config_create_params.py index 999f0870c4d..ddd7f49bd73 100644 --- a/src/cloudflare/types/hyperdrive/config_create_params.py +++ b/src/cloudflare/types/hyperdrive/config_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ConfigCreateParams", "Origin"] diff --git a/src/cloudflare/types/hyperdrive/config_create_response.py b/src/cloudflare/types/hyperdrive/config_create_response.py index 3592e57d6de..1979d2dcff7 100644 --- a/src/cloudflare/types/hyperdrive/config_create_response.py +++ b/src/cloudflare/types/hyperdrive/config_create_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigCreateResponse"] diff --git a/src/cloudflare/types/hyperdrive/config_delete_response.py b/src/cloudflare/types/hyperdrive/config_delete_response.py index 46c64dc751a..b79d637608d 100644 --- a/src/cloudflare/types/hyperdrive/config_delete_response.py +++ b/src/cloudflare/types/hyperdrive/config_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ConfigDeleteResponse"] diff --git a/src/cloudflare/types/hyperdrive/config_get_response.py b/src/cloudflare/types/hyperdrive/config_get_response.py index 038a5ea5d61..7e48a3d1ab2 100644 --- a/src/cloudflare/types/hyperdrive/config_get_response.py +++ b/src/cloudflare/types/hyperdrive/config_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigGetResponse"] diff --git a/src/cloudflare/types/hyperdrive/config_list_response.py b/src/cloudflare/types/hyperdrive/config_list_response.py index 0db48b14447..4129325258b 100644 --- a/src/cloudflare/types/hyperdrive/config_list_response.py +++ b/src/cloudflare/types/hyperdrive/config_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["ConfigListResponse", "ConfigListResponseItem"] diff --git a/src/cloudflare/types/hyperdrive/config_update_params.py b/src/cloudflare/types/hyperdrive/config_update_params.py index 31d646eca0f..1713e72f56c 100644 --- a/src/cloudflare/types/hyperdrive/config_update_params.py +++ b/src/cloudflare/types/hyperdrive/config_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ConfigUpdateParams", "Origin"] diff --git a/src/cloudflare/types/hyperdrive/config_update_response.py b/src/cloudflare/types/hyperdrive/config_update_response.py index 0e83e9a8a7d..16c66ba4695 100644 --- a/src/cloudflare/types/hyperdrive/config_update_response.py +++ b/src/cloudflare/types/hyperdrive/config_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigUpdateResponse"] diff --git a/src/cloudflare/types/images/__init__.py b/src/cloudflare/types/images/__init__.py index 75baa5e3b31..22ea00ff464 100644 --- a/src/cloudflare/types/images/__init__.py +++ b/src/cloudflare/types/images/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .v2_list_params import V2ListParams as V2ListParams +from .v1_update_response import V1UpdateResponse as V1UpdateResponse +from .v1_delete_response import V1DeleteResponse as V1DeleteResponse +from .v1_cloudflare_images_list_images_response import ( + V1CloudflareImagesListImagesResponse as V1CloudflareImagesListImagesResponse, +) +from .v1_cloudflare_images_upload_an_image_via_url_response import ( + V1CloudflareImagesUploadAnImageViaURLResponse as V1CloudflareImagesUploadAnImageViaURLResponse, +) from .v1_get_response import V1GetResponse as V1GetResponse from .v1_update_params import V1UpdateParams as V1UpdateParams -from .v2_list_response import V2ListResponse as V2ListResponse -from .v1_delete_response import V1DeleteResponse as V1DeleteResponse -from .v1_update_response import V1UpdateResponse as V1UpdateResponse -from .images_images_list_response_v2 import ImagesImagesListResponseV2 as ImagesImagesListResponseV2 from .v1_cloudflare_images_list_images_params import ( V1CloudflareImagesListImagesParams as V1CloudflareImagesListImagesParams, ) -from .v1_cloudflare_images_list_images_response import ( - V1CloudflareImagesListImagesResponse as V1CloudflareImagesListImagesResponse, -) from .v1_cloudflare_images_upload_an_image_via_url_params import ( V1CloudflareImagesUploadAnImageViaURLParams as V1CloudflareImagesUploadAnImageViaURLParams, ) -from .v1_cloudflare_images_upload_an_image_via_url_response import ( - V1CloudflareImagesUploadAnImageViaURLResponse as V1CloudflareImagesUploadAnImageViaURLResponse, -) +from .images_images_list_response_v2 import ImagesImagesListResponseV2 as ImagesImagesListResponseV2 +from .v2_list_response import V2ListResponse as V2ListResponse +from .v2_list_params import V2ListParams as V2ListParams diff --git a/src/cloudflare/types/images/images_images_list_response_v2.py b/src/cloudflare/types/images/images_images_list_response_v2.py index 35163b97b10..67884cb4d7a 100644 --- a/src/cloudflare/types/images/images_images_list_response_v2.py +++ b/src/cloudflare/types/images/images_images_list_response_v2.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["ImagesImagesListResponseV2", "Error", "Message", "Result", "ResultImage"] diff --git a/src/cloudflare/types/images/v1_cloudflare_images_list_images_params.py b/src/cloudflare/types/images/v1_cloudflare_images_list_images_params.py index cc80063b8ad..972202b2100 100644 --- a/src/cloudflare/types/images/v1_cloudflare_images_list_images_params.py +++ b/src/cloudflare/types/images/v1_cloudflare_images_list_images_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["V1CloudflareImagesListImagesParams"] diff --git a/src/cloudflare/types/images/v1_cloudflare_images_list_images_response.py b/src/cloudflare/types/images/v1_cloudflare_images_list_images_response.py index 434cb14527a..cac96360141 100644 --- a/src/cloudflare/types/images/v1_cloudflare_images_list_images_response.py +++ b/src/cloudflare/types/images/v1_cloudflare_images_list_images_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["V1CloudflareImagesListImagesResponse", "Image"] diff --git a/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_params.py b/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_params.py index affe73d524d..aae94c03b3c 100644 --- a/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_params.py +++ b/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_params.py @@ -2,8 +2,13 @@ from __future__ import annotations -from typing import Union -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["V1CloudflareImagesUploadAnImageViaURLParams", "ImagesImageUploadViaFile", "ImagesImageUploadViaURL"] diff --git a/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_response.py b/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_response.py index 225e2d9537b..f30a0bb52a8 100644 --- a/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_response.py +++ b/src/cloudflare/types/images/v1_cloudflare_images_upload_an_image_via_url_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["V1CloudflareImagesUploadAnImageViaURLResponse"] diff --git a/src/cloudflare/types/images/v1_delete_response.py b/src/cloudflare/types/images/v1_delete_response.py index 09a2838e150..1023ca1f440 100644 --- a/src/cloudflare/types/images/v1_delete_response.py +++ b/src/cloudflare/types/images/v1_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["V1DeleteResponse"] diff --git a/src/cloudflare/types/images/v1_get_response.py b/src/cloudflare/types/images/v1_get_response.py index 9c3b95fa5ff..c5fbedc0e7a 100644 --- a/src/cloudflare/types/images/v1_get_response.py +++ b/src/cloudflare/types/images/v1_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["V1GetResponse"] diff --git a/src/cloudflare/types/images/v1_update_params.py b/src/cloudflare/types/images/v1_update_params.py index bfd94458f8f..19e02238639 100644 --- a/src/cloudflare/types/images/v1_update_params.py +++ b/src/cloudflare/types/images/v1_update_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated 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 ...types import shared_params + __all__ = ["V1UpdateParams"] diff --git a/src/cloudflare/types/images/v1_update_response.py b/src/cloudflare/types/images/v1_update_response.py index 0d9fa22ee07..a9f6162ac2d 100644 --- a/src/cloudflare/types/images/v1_update_response.py +++ b/src/cloudflare/types/images/v1_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["V1UpdateResponse"] diff --git a/src/cloudflare/types/images/v1s/__init__.py b/src/cloudflare/types/images/v1s/__init__.py index cd6f2e349bc..284f51d32d5 100644 --- a/src/cloudflare/types/images/v1s/__init__.py +++ b/src/cloudflare/types/images/v1s/__init__.py @@ -2,22 +2,22 @@ from __future__ import annotations -from .variant_get_response import VariantGetResponse as VariantGetResponse -from .variant_update_params import VariantUpdateParams as VariantUpdateParams -from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse -from .variant_update_response import VariantUpdateResponse as VariantUpdateResponse from .key_cloudflare_images_keys_list_signing_keys_response import ( KeyCloudflareImagesKeysListSigningKeysResponse as KeyCloudflareImagesKeysListSigningKeysResponse, ) from .stat_cloudflare_images_images_usage_statistics_response import ( StatCloudflareImagesImagesUsageStatisticsResponse as StatCloudflareImagesImagesUsageStatisticsResponse, ) +from .variant_update_response import VariantUpdateResponse as VariantUpdateResponse +from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse +from .variant_cloudflare_images_variants_create_a_variant_response import ( + VariantCloudflareImagesVariantsCreateAVariantResponse as VariantCloudflareImagesVariantsCreateAVariantResponse, +) from .variant_cloudflare_images_variants_list_variants_response import ( VariantCloudflareImagesVariantsListVariantsResponse as VariantCloudflareImagesVariantsListVariantsResponse, ) +from .variant_get_response import VariantGetResponse as VariantGetResponse +from .variant_update_params import VariantUpdateParams as VariantUpdateParams from .variant_cloudflare_images_variants_create_a_variant_params import ( VariantCloudflareImagesVariantsCreateAVariantParams as VariantCloudflareImagesVariantsCreateAVariantParams, ) -from .variant_cloudflare_images_variants_create_a_variant_response import ( - VariantCloudflareImagesVariantsCreateAVariantResponse as VariantCloudflareImagesVariantsCreateAVariantResponse, -) diff --git a/src/cloudflare/types/images/v1s/key_cloudflare_images_keys_list_signing_keys_response.py b/src/cloudflare/types/images/v1s/key_cloudflare_images_keys_list_signing_keys_response.py index e4d4c1569cd..39be420d522 100644 --- a/src/cloudflare/types/images/v1s/key_cloudflare_images_keys_list_signing_keys_response.py +++ b/src/cloudflare/types/images/v1s/key_cloudflare_images_keys_list_signing_keys_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["KeyCloudflareImagesKeysListSigningKeysResponse", "Key"] diff --git a/src/cloudflare/types/images/v1s/stat_cloudflare_images_images_usage_statistics_response.py b/src/cloudflare/types/images/v1s/stat_cloudflare_images_images_usage_statistics_response.py index 8c0e30a5bcd..1682e7e562e 100644 --- a/src/cloudflare/types/images/v1s/stat_cloudflare_images_images_usage_statistics_response.py +++ b/src/cloudflare/types/images/v1s/stat_cloudflare_images_images_usage_statistics_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["StatCloudflareImagesImagesUsageStatisticsResponse", "Count"] diff --git a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_params.py b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_params.py index 34dced88358..810de035dd1 100644 --- a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_params.py +++ b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["VariantCloudflareImagesVariantsCreateAVariantParams", "Options"] diff --git a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_response.py b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_response.py index a558ba939f3..d38e50a44d3 100644 --- a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_response.py +++ b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_create_a_variant_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 +from ....types import shared __all__ = ["VariantCloudflareImagesVariantsCreateAVariantResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_list_variants_response.py b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_list_variants_response.py index 3bf73d3d0c2..49ffa5e054a 100644 --- a/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_list_variants_response.py +++ b/src/cloudflare/types/images/v1s/variant_cloudflare_images_variants_list_variants_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 +from ....types import shared __all__ = ["VariantCloudflareImagesVariantsListVariantsResponse", "Variants", "VariantsHero", "VariantsHeroOptions"] diff --git a/src/cloudflare/types/images/v1s/variant_delete_response.py b/src/cloudflare/types/images/v1s/variant_delete_response.py index 0e8030102a6..f732049b320 100644 --- a/src/cloudflare/types/images/v1s/variant_delete_response.py +++ b/src/cloudflare/types/images/v1s/variant_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["VariantDeleteResponse"] diff --git a/src/cloudflare/types/images/v1s/variant_get_response.py b/src/cloudflare/types/images/v1s/variant_get_response.py index f502a84597d..4b4ad96af29 100644 --- a/src/cloudflare/types/images/v1s/variant_get_response.py +++ b/src/cloudflare/types/images/v1s/variant_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 +from ....types import shared __all__ = ["VariantGetResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v1s/variant_update_params.py b/src/cloudflare/types/images/v1s/variant_update_params.py index 6a6a1120bbc..93df5c2c4fc 100644 --- a/src/cloudflare/types/images/v1s/variant_update_params.py +++ b/src/cloudflare/types/images/v1s/variant_update_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["VariantUpdateParams", "Options"] diff --git a/src/cloudflare/types/images/v1s/variant_update_response.py b/src/cloudflare/types/images/v1s/variant_update_response.py index 68fe94bc3ae..6610fb2f3a6 100644 --- a/src/cloudflare/types/images/v1s/variant_update_response.py +++ b/src/cloudflare/types/images/v1s/variant_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 +from ....types import shared __all__ = ["VariantUpdateResponse", "Variant", "VariantOptions"] diff --git a/src/cloudflare/types/images/v2_list_params.py b/src/cloudflare/types/images/v2_list_params.py index 9ad67b4a7b6..7564cfa7ecf 100644 --- a/src/cloudflare/types/images/v2_list_params.py +++ b/src/cloudflare/types/images/v2_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal + from typing import Optional -from typing_extensions import Literal, 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 ...types import shared_params __all__ = ["V2ListParams"] diff --git a/src/cloudflare/types/images/v2_list_response.py b/src/cloudflare/types/images/v2_list_response.py index b3208972824..e696224cbcb 100644 --- a/src/cloudflare/types/images/v2_list_response.py +++ b/src/cloudflare/types/images/v2_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List, Union + 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 ...types import shared __all__ = ["V2ListResponse", "Image"] diff --git a/src/cloudflare/types/images/v2s/__init__.py b/src/cloudflare/types/images/v2s/__init__.py index fef8457550c..f3b1f69d19b 100644 --- a/src/cloudflare/types/images/v2s/__init__.py +++ b/src/cloudflare/types/images/v2s/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params import ( - DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Params as DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Params, -) from .direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_response import ( DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response as DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response, ) +from .direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params import ( + DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Params as DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Params, +) diff --git a/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params.py b/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params.py index f93b481f8e6..0d7538aeb37 100644 --- a/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params.py +++ b/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Params"] diff --git a/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_response.py b/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_response.py index 862c5dbfcc2..e5ddf17d398 100644 --- a/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_response.py +++ b/src/cloudflare/types/images/v2s/direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response"] diff --git a/src/cloudflare/types/intel/__init__.py b/src/cloudflare/types/intel/__init__.py index 6b69afcda3d..4cecea1c90d 100644 --- a/src/cloudflare/types/intel/__init__.py +++ b/src/cloudflare/types/intel/__init__.py @@ -2,26 +2,26 @@ from __future__ import annotations -from .sinkhole_list_response import SinkholeListResponse as SinkholeListResponse -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_create_response import IndicatorFeedCreateResponse as IndicatorFeedCreateResponse -from .indicator_feed_snapshot_params import IndicatorFeedSnapshotParams as IndicatorFeedSnapshotParams -from .indicator_feed_snapshot_response import IndicatorFeedSnapshotResponse as IndicatorFeedSnapshotResponse -from .indicator_feed_permissions_add_params import ( - IndicatorFeedPermissionsAddParams as IndicatorFeedPermissionsAddParams, -) +from .indicator_feed_list_response import IndicatorFeedListResponse as IndicatorFeedListResponse +from .indicator_feed_data_response import IndicatorFeedDataResponse as IndicatorFeedDataResponse +from .indicator_feed_get_response import IndicatorFeedGetResponse as IndicatorFeedGetResponse from .indicator_feed_permissions_add_response import ( IndicatorFeedPermissionsAddResponse as IndicatorFeedPermissionsAddResponse, ) -from .indicator_feed_permissions_remove_params import ( - IndicatorFeedPermissionsRemoveParams as IndicatorFeedPermissionsRemoveParams, +from .indicator_feed_permissions_remove_response import ( + IndicatorFeedPermissionsRemoveResponse as IndicatorFeedPermissionsRemoveResponse, ) from .indicator_feed_permissions_view_response import ( IndicatorFeedPermissionsViewResponse as IndicatorFeedPermissionsViewResponse, ) -from .indicator_feed_permissions_remove_response import ( - IndicatorFeedPermissionsRemoveResponse as IndicatorFeedPermissionsRemoveResponse, +from .indicator_feed_snapshot_response import IndicatorFeedSnapshotResponse as IndicatorFeedSnapshotResponse +from .indicator_feed_create_params import IndicatorFeedCreateParams as IndicatorFeedCreateParams +from .indicator_feed_permissions_add_params import ( + IndicatorFeedPermissionsAddParams as IndicatorFeedPermissionsAddParams, ) +from .indicator_feed_permissions_remove_params import ( + IndicatorFeedPermissionsRemoveParams as IndicatorFeedPermissionsRemoveParams, +) +from .indicator_feed_snapshot_params import IndicatorFeedSnapshotParams as IndicatorFeedSnapshotParams +from .sinkhole_list_response import SinkholeListResponse as SinkholeListResponse diff --git a/src/cloudflare/types/intel/indicator_feed_create_params.py b/src/cloudflare/types/intel/indicator_feed_create_params.py index 275f24fa164..0007e8bbeb4 100644 --- a/src/cloudflare/types/intel/indicator_feed_create_params.py +++ b/src/cloudflare/types/intel/indicator_feed_create_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __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 bbb8550c2c5..c833c4349e2 100644 --- a/src/cloudflare/types/intel/indicator_feed_create_response.py +++ b/src/cloudflare/types/intel/indicator_feed_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __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 6b5a1e1939f..56ea5ce12d7 100644 --- a/src/cloudflare/types/intel/indicator_feed_data_response.py +++ b/src/cloudflare/types/intel/indicator_feed_data_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["IndicatorFeedDataResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_get_response.py b/src/cloudflare/types/intel/indicator_feed_get_response.py index 03b5ba33ad9..9342648c16d 100644 --- a/src/cloudflare/types/intel/indicator_feed_get_response.py +++ b/src/cloudflare/types/intel/indicator_feed_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __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 e6409722a8a..0b3ac9d74a8 100644 --- a/src/cloudflare/types/intel/indicator_feed_list_response.py +++ b/src/cloudflare/types/intel/indicator_feed_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["IndicatorFeedListResponse", "IndicatorFeedListResponseItem"] diff --git a/src/cloudflare/types/intel/indicator_feed_permissions_add_params.py b/src/cloudflare/types/intel/indicator_feed_permissions_add_params.py index ebdf90d3275..f22036f7fa6 100644 --- a/src/cloudflare/types/intel/indicator_feed_permissions_add_params.py +++ b/src/cloudflare/types/intel/indicator_feed_permissions_add_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["IndicatorFeedPermissionsAddParams"] diff --git a/src/cloudflare/types/intel/indicator_feed_permissions_add_response.py b/src/cloudflare/types/intel/indicator_feed_permissions_add_response.py index 88207e1015f..c37b7bc851d 100644 --- a/src/cloudflare/types/intel/indicator_feed_permissions_add_response.py +++ b/src/cloudflare/types/intel/indicator_feed_permissions_add_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IndicatorFeedPermissionsAddResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_permissions_remove_params.py b/src/cloudflare/types/intel/indicator_feed_permissions_remove_params.py index a2483b905fb..21981be4feb 100644 --- a/src/cloudflare/types/intel/indicator_feed_permissions_remove_params.py +++ b/src/cloudflare/types/intel/indicator_feed_permissions_remove_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["IndicatorFeedPermissionsRemoveParams"] diff --git a/src/cloudflare/types/intel/indicator_feed_permissions_remove_response.py b/src/cloudflare/types/intel/indicator_feed_permissions_remove_response.py index 9070fa35580..88b9cfe2655 100644 --- a/src/cloudflare/types/intel/indicator_feed_permissions_remove_response.py +++ b/src/cloudflare/types/intel/indicator_feed_permissions_remove_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IndicatorFeedPermissionsRemoveResponse"] diff --git a/src/cloudflare/types/intel/indicator_feed_permissions_view_response.py b/src/cloudflare/types/intel/indicator_feed_permissions_view_response.py index 908328ca420..984f65d8c98 100644 --- a/src/cloudflare/types/intel/indicator_feed_permissions_view_response.py +++ b/src/cloudflare/types/intel/indicator_feed_permissions_view_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["IndicatorFeedPermissionsViewResponse", "IndicatorFeedPermissionsViewResponseItem"] diff --git a/src/cloudflare/types/intel/indicator_feed_snapshot_params.py b/src/cloudflare/types/intel/indicator_feed_snapshot_params.py index 7434478beda..3980e14445f 100644 --- a/src/cloudflare/types/intel/indicator_feed_snapshot_params.py +++ b/src/cloudflare/types/intel/indicator_feed_snapshot_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["IndicatorFeedSnapshotParams"] diff --git a/src/cloudflare/types/intel/indicator_feed_snapshot_response.py b/src/cloudflare/types/intel/indicator_feed_snapshot_response.py index e7ac00dd0a0..243299472eb 100644 --- a/src/cloudflare/types/intel/indicator_feed_snapshot_response.py +++ b/src/cloudflare/types/intel/indicator_feed_snapshot_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IndicatorFeedSnapshotResponse"] diff --git a/src/cloudflare/types/intel/sinkhole_list_response.py b/src/cloudflare/types/intel/sinkhole_list_response.py index 12b668f6208..b8fbfd48236 100644 --- a/src/cloudflare/types/intel/sinkhole_list_response.py +++ b/src/cloudflare/types/intel/sinkhole_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["SinkholeListResponse", "SinkholeListResponseItem"] diff --git a/src/cloudflare/types/intels/__init__.py b/src/cloudflare/types/intels/__init__.py index 06c2f55708a..fd5dc77ab44 100644 --- a/src/cloudflare/types/intels/__init__.py +++ b/src/cloudflare/types/intels/__init__.py @@ -3,36 +3,36 @@ from __future__ import annotations from .asn_get_response import AsnGetResponse as AsnGetResponse -from .domain_history_list_params import DomainHistoryListParams as DomainHistoryListParams -from .domain_history_list_response import DomainHistoryListResponse as DomainHistoryListResponse -from .ip_list_ip_list_get_ip_lists_response import IPListIPListGetIPListsResponse as IPListIPListGetIPListsResponse -from .ip_ip_intelligence_get_ip_overview_params import ( - IPIPIntelligenceGetIPOverviewParams as IPIPIntelligenceGetIPOverviewParams, -) -from .whois_whois_record_get_whois_record_params import ( - WhoisWhoisRecordGetWhoisRecordParams as WhoisWhoisRecordGetWhoisRecordParams, -) -from .ip_ip_intelligence_get_ip_overview_response import ( - IPIPIntelligenceGetIPOverviewResponse as IPIPIntelligenceGetIPOverviewResponse, -) -from .whois_whois_record_get_whois_record_response import ( - WhoisWhoisRecordGetWhoisRecordResponse as WhoisWhoisRecordGetWhoisRecordResponse, +from .dns_passive_dns_by_ip_get_passive_dns_by_ip_response import ( + DNSPassiveDNSByIPGetPassiveDNSByIPResponse as DNSPassiveDNSByIPGetPassiveDNSByIPResponse, ) from .dns_passive_dns_by_ip_get_passive_dns_by_ip_params import ( DNSPassiveDNSByIPGetPassiveDNSByIPParams as DNSPassiveDNSByIPGetPassiveDNSByIPParams, ) -from .dns_passive_dns_by_ip_get_passive_dns_by_ip_response import ( - DNSPassiveDNSByIPGetPassiveDNSByIPResponse as DNSPassiveDNSByIPGetPassiveDNSByIPResponse, +from .domain_domain_intelligence_get_domain_details_response import ( + DomainDomainIntelligenceGetDomainDetailsResponse as DomainDomainIntelligenceGetDomainDetailsResponse, ) from .domain_domain_intelligence_get_domain_details_params import ( DomainDomainIntelligenceGetDomainDetailsParams as DomainDomainIntelligenceGetDomainDetailsParams, ) -from .domain_domain_intelligence_get_domain_details_response import ( - DomainDomainIntelligenceGetDomainDetailsResponse as DomainDomainIntelligenceGetDomainDetailsResponse, +from .domain_history_list_response import DomainHistoryListResponse as DomainHistoryListResponse +from .domain_history_list_params import DomainHistoryListParams as DomainHistoryListParams +from .ip_ip_intelligence_get_ip_overview_response import ( + IPIPIntelligenceGetIPOverviewResponse as IPIPIntelligenceGetIPOverviewResponse, ) -from .miscategorization_miscategorization_create_miscategorization_params import ( - MiscategorizationMiscategorizationCreateMiscategorizationParams as MiscategorizationMiscategorizationCreateMiscategorizationParams, +from .ip_ip_intelligence_get_ip_overview_params import ( + IPIPIntelligenceGetIPOverviewParams as IPIPIntelligenceGetIPOverviewParams, ) +from .ip_list_ip_list_get_ip_lists_response import IPListIPListGetIPListsResponse as IPListIPListGetIPListsResponse from .miscategorization_miscategorization_create_miscategorization_response import ( MiscategorizationMiscategorizationCreateMiscategorizationResponse as MiscategorizationMiscategorizationCreateMiscategorizationResponse, ) +from .miscategorization_miscategorization_create_miscategorization_params import ( + MiscategorizationMiscategorizationCreateMiscategorizationParams as MiscategorizationMiscategorizationCreateMiscategorizationParams, +) +from .whois_whois_record_get_whois_record_response import ( + WhoisWhoisRecordGetWhoisRecordResponse as WhoisWhoisRecordGetWhoisRecordResponse, +) +from .whois_whois_record_get_whois_record_params import ( + WhoisWhoisRecordGetWhoisRecordParams as WhoisWhoisRecordGetWhoisRecordParams, +) diff --git a/src/cloudflare/types/intels/asn/subnet_list_response.py b/src/cloudflare/types/intels/asn/subnet_list_response.py index f31375b4230..4e16c0eb547 100644 --- a/src/cloudflare/types/intels/asn/subnet_list_response.py +++ b/src/cloudflare/types/intels/asn/subnet_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["SubnetListResponse"] diff --git a/src/cloudflare/types/intels/asn_get_response.py b/src/cloudflare/types/intels/asn_get_response.py index 865f7100f60..a0f0dd6eb63 100644 --- a/src/cloudflare/types/intels/asn_get_response.py +++ b/src/cloudflare/types/intels/asn_get_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AsnGetResponse"] diff --git a/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_params.py b/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_params.py index 5d0d5cf2157..36f9863fac4 100644 --- a/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_params.py +++ b/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_params.py @@ -2,12 +2,20 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated + from typing import Union + from datetime import date -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 +from ...types import shared_params + __all__ = ["DNSPassiveDNSByIPGetPassiveDNSByIPParams", "StartEndParams"] diff --git a/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_response.py b/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_response.py index aca8fc10549..4350a534b4a 100644 --- a/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_response.py +++ b/src/cloudflare/types/intels/dns_passive_dns_by_ip_get_passive_dns_by_ip_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 +from ...types import shared __all__ = ["DNSPassiveDNSByIPGetPassiveDNSByIPResponse", "ReverseRecord"] diff --git a/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_params.py b/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_params.py index 511dda52cb6..3acfe947721 100644 --- a/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_params.py +++ b/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["DomainDomainIntelligenceGetDomainDetailsParams"] diff --git a/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_response.py b/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_response.py index 8ce11fbe633..d9d5a500f43 100644 --- a/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_response.py +++ b/src/cloudflare/types/intels/domain_domain_intelligence_get_domain_details_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "DomainDomainIntelligenceGetDomainDetailsResponse", diff --git a/src/cloudflare/types/intels/domain_history_list_params.py b/src/cloudflare/types/intels/domain_history_list_params.py index ba9b7b3b235..3c01a38488c 100644 --- a/src/cloudflare/types/intels/domain_history_list_params.py +++ b/src/cloudflare/types/intels/domain_history_list_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["DomainHistoryListParams"] diff --git a/src/cloudflare/types/intels/domain_history_list_response.py b/src/cloudflare/types/intels/domain_history_list_response.py index ad64ac628d3..5320d2571d2 100644 --- a/src/cloudflare/types/intels/domain_history_list_response.py +++ b/src/cloudflare/types/intels/domain_history_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 +from ...types import shared __all__ = ["DomainHistoryListResponse", "DomainHistoryListResponseItem", "DomainHistoryListResponseItemCategorization"] diff --git a/src/cloudflare/types/intels/domains/__init__.py b/src/cloudflare/types/intels/domains/__init__.py index 701211f0f0e..bd2f45fe4c8 100644 --- a/src/cloudflare/types/intels/domains/__init__.py +++ b/src/cloudflare/types/intels/domains/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .bulk_domain_intelligence_get_multiple_domain_details_params import ( - BulkDomainIntelligenceGetMultipleDomainDetailsParams as BulkDomainIntelligenceGetMultipleDomainDetailsParams, -) from .bulk_domain_intelligence_get_multiple_domain_details_response import ( BulkDomainIntelligenceGetMultipleDomainDetailsResponse as BulkDomainIntelligenceGetMultipleDomainDetailsResponse, ) +from .bulk_domain_intelligence_get_multiple_domain_details_params import ( + BulkDomainIntelligenceGetMultipleDomainDetailsParams as BulkDomainIntelligenceGetMultipleDomainDetailsParams, +) diff --git a/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_params.py b/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_params.py index 66f8a2a825c..460c6d23bb5 100644 --- a/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_params.py +++ b/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_params.py @@ -4,6 +4,12 @@ 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 +from ....types import shared_params + __all__ = ["BulkDomainIntelligenceGetMultipleDomainDetailsParams"] diff --git a/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_response.py b/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_response.py index 2cb5a17b704..c3afd53ec63 100644 --- a/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_response.py +++ b/src/cloudflare/types/intels/domains/bulk_domain_intelligence_get_multiple_domain_details_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "BulkDomainIntelligenceGetMultipleDomainDetailsResponse", diff --git a/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_params.py b/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_params.py index 958dfe1577e..02c4ed0fca9 100644 --- a/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_params.py +++ b/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["IPIPIntelligenceGetIPOverviewParams"] diff --git a/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_response.py b/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_response.py index 47ae1e2ab67..e9c74318f28 100644 --- a/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_response.py +++ b/src/cloudflare/types/intels/ip_ip_intelligence_get_ip_overview_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 from ..._models import BaseModel +from ...types import shared __all__ = [ "IPIPIntelligenceGetIPOverviewResponse", diff --git a/src/cloudflare/types/intels/ip_list_ip_list_get_ip_lists_response.py b/src/cloudflare/types/intels/ip_list_ip_list_get_ip_lists_response.py index ed3e8f92944..d6cfb0ad769 100644 --- a/src/cloudflare/types/intels/ip_list_ip_list_get_ip_lists_response.py +++ b/src/cloudflare/types/intels/ip_list_ip_list_get_ip_lists_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["IPListIPListGetIPListsResponse", "IPListIPListGetIPListsResponseItem"] diff --git a/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_params.py b/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_params.py index 7cad7fda5f8..378980241db 100644 --- a/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_params.py +++ b/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["MiscategorizationMiscategorizationCreateMiscategorizationParams"] diff --git a/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_response.py b/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_response.py index ff02eb22f95..296960c82c9 100644 --- a/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_response.py +++ b/src/cloudflare/types/intels/miscategorization_miscategorization_create_miscategorization_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["MiscategorizationMiscategorizationCreateMiscategorizationResponse"] diff --git a/src/cloudflare/types/intels/whois_whois_record_get_whois_record_params.py b/src/cloudflare/types/intels/whois_whois_record_get_whois_record_params.py index 2c6f7116f02..0acd7918e77 100644 --- a/src/cloudflare/types/intels/whois_whois_record_get_whois_record_params.py +++ b/src/cloudflare/types/intels/whois_whois_record_get_whois_record_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["WhoisWhoisRecordGetWhoisRecordParams"] diff --git a/src/cloudflare/types/intels/whois_whois_record_get_whois_record_response.py b/src/cloudflare/types/intels/whois_whois_record_get_whois_record_response.py index f27931e1f57..faaa97d968b 100644 --- a/src/cloudflare/types/intels/whois_whois_record_get_whois_record_response.py +++ b/src/cloudflare/types/intels/whois_whois_record_get_whois_record_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 +from ...types import shared __all__ = ["WhoisWhoisRecordGetWhoisRecordResponse"] diff --git a/src/cloudflare/types/ip_list_params.py b/src/cloudflare/types/ip_list_params.py index f4b5d1807b7..d36dcb2ae8a 100644 --- a/src/cloudflare/types/ip_list_params.py +++ b/src/cloudflare/types/ip_list_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["IPListParams"] diff --git a/src/cloudflare/types/ip_list_response.py b/src/cloudflare/types/ip_list_response.py index 7e7838163af..ee58abbbc4e 100644 --- a/src/cloudflare/types/ip_list_response.py +++ b/src/cloudflare/types/ip_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, 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 +from ..types import shared __all__ = ["IPListResponse", "AddressingIPs", "AddressingIPsJdcloud"] diff --git a/src/cloudflare/types/keyless_certificate_create_params.py b/src/cloudflare/types/keyless_certificate_create_params.py index 78f95dece6d..e566c2aaec5 100644 --- a/src/cloudflare/types/keyless_certificate_create_params.py +++ b/src/cloudflare/types/keyless_certificate_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["KeylessCertificateCreateParams", "Tunnel"] diff --git a/src/cloudflare/types/keyless_certificate_create_response.py b/src/cloudflare/types/keyless_certificate_create_response.py index 23e98b26ca6..c41c9969983 100644 --- a/src/cloudflare/types/keyless_certificate_create_response.py +++ b/src/cloudflare/types/keyless_certificate_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime + +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 +from ..types import shared __all__ = ["KeylessCertificateCreateResponse", "Tunnel"] diff --git a/src/cloudflare/types/keyless_certificate_delete_response.py b/src/cloudflare/types/keyless_certificate_delete_response.py index 9f6e854768d..545adb926f6 100644 --- a/src/cloudflare/types/keyless_certificate_delete_response.py +++ b/src/cloudflare/types/keyless_certificate_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["KeylessCertificateDeleteResponse"] diff --git a/src/cloudflare/types/keyless_certificate_get_response.py b/src/cloudflare/types/keyless_certificate_get_response.py index 793a91fec3b..1308fc4f23d 100644 --- a/src/cloudflare/types/keyless_certificate_get_response.py +++ b/src/cloudflare/types/keyless_certificate_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime + +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 +from ..types import shared __all__ = ["KeylessCertificateGetResponse", "Tunnel"] diff --git a/src/cloudflare/types/keyless_certificate_list_response.py b/src/cloudflare/types/keyless_certificate_list_response.py index f33423a1e73..4b01faa08c4 100644 --- a/src/cloudflare/types/keyless_certificate_list_response.py +++ b/src/cloudflare/types/keyless_certificate_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime + +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 +from ..types import shared __all__ = [ "KeylessCertificateListResponse", diff --git a/src/cloudflare/types/keyless_certificate_update_params.py b/src/cloudflare/types/keyless_certificate_update_params.py index f8761d6da9a..c2f1fcee67d 100644 --- a/src/cloudflare/types/keyless_certificate_update_params.py +++ b/src/cloudflare/types/keyless_certificate_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["KeylessCertificateUpdateParams", "Tunnel"] diff --git a/src/cloudflare/types/keyless_certificate_update_response.py b/src/cloudflare/types/keyless_certificate_update_response.py index 26dda881965..cd6f86994a2 100644 --- a/src/cloudflare/types/keyless_certificate_update_response.py +++ b/src/cloudflare/types/keyless_certificate_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime + +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 +from ..types import shared __all__ = ["KeylessCertificateUpdateResponse", "Tunnel"] diff --git a/src/cloudflare/types/load_balancer_create_params.py b/src/cloudflare/types/load_balancer_create_params.py index 33ee90133af..04ea09d00db 100644 --- a/src/cloudflare/types/load_balancer_create_params.py +++ b/src/cloudflare/types/load_balancer_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List, Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = [ "LoadBalancerCreateParams", diff --git a/src/cloudflare/types/load_balancer_create_response.py b/src/cloudflare/types/load_balancer_create_response.py index 3aae46deb39..5615ead6b97 100644 --- a/src/cloudflare/types/load_balancer_create_response.py +++ b/src/cloudflare/types/load_balancer_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "LoadBalancerCreateResponse", diff --git a/src/cloudflare/types/load_balancer_delete_response.py b/src/cloudflare/types/load_balancer_delete_response.py index 7a9d68e6555..3b1596ff898 100644 --- a/src/cloudflare/types/load_balancer_delete_response.py +++ b/src/cloudflare/types/load_balancer_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["LoadBalancerDeleteResponse"] diff --git a/src/cloudflare/types/load_balancer_get_response.py b/src/cloudflare/types/load_balancer_get_response.py index 30e58fc97b1..871c7c15756 100644 --- a/src/cloudflare/types/load_balancer_get_response.py +++ b/src/cloudflare/types/load_balancer_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "LoadBalancerGetResponse", diff --git a/src/cloudflare/types/load_balancer_list_response.py b/src/cloudflare/types/load_balancer_list_response.py index 5e323f4446d..4eb75adaf6f 100644 --- a/src/cloudflare/types/load_balancer_list_response.py +++ b/src/cloudflare/types/load_balancer_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "LoadBalancerListResponse", diff --git a/src/cloudflare/types/load_balancer_update_params.py b/src/cloudflare/types/load_balancer_update_params.py index 7d2726677ff..d8aeae8a4f6 100644 --- a/src/cloudflare/types/load_balancer_update_params.py +++ b/src/cloudflare/types/load_balancer_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import List, Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = [ "LoadBalancerUpdateParams", diff --git a/src/cloudflare/types/load_balancer_update_response.py b/src/cloudflare/types/load_balancer_update_response.py index f07b52ad637..b04c850fbd0 100644 --- a/src/cloudflare/types/load_balancer_update_response.py +++ b/src/cloudflare/types/load_balancer_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "LoadBalancerUpdateResponse", diff --git a/src/cloudflare/types/load_balancers/__init__.py b/src/cloudflare/types/load_balancers/__init__.py index b1eb38506ca..5ace89fa0a3 100644 --- a/src/cloudflare/types/load_balancers/__init__.py +++ b/src/cloudflare/types/load_balancers/__init__.py @@ -2,28 +2,28 @@ from __future__ import annotations -from .pool_list_params import PoolListParams as PoolListParams -from .pool_get_response import PoolGetResponse as PoolGetResponse -from .pool_create_params import PoolCreateParams as PoolCreateParams -from .pool_list_response import PoolListResponse as PoolListResponse -from .pool_update_params import PoolUpdateParams as PoolUpdateParams -from .search_list_params import SearchListParams as SearchListParams -from .region_get_response import RegionGetResponse as RegionGetResponse +from .monitor_create_response import MonitorCreateResponse as MonitorCreateResponse +from .monitor_update_response import MonitorUpdateResponse as MonitorUpdateResponse +from .monitor_list_response import MonitorListResponse as MonitorListResponse +from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse from .monitor_get_response import MonitorGetResponse as MonitorGetResponse +from .monitor_create_params import MonitorCreateParams as MonitorCreateParams +from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams from .pool_create_response import PoolCreateResponse as PoolCreateResponse -from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse from .pool_update_response import PoolUpdateResponse as PoolUpdateResponse +from .pool_list_response import PoolListResponse as PoolListResponse +from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse +from .pool_get_response import PoolGetResponse as PoolGetResponse +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 .preview_get_response import PreviewGetResponse as PreviewGetResponse -from .search_list_response import SearchListResponse as SearchListResponse -from .monitor_create_params import MonitorCreateParams as MonitorCreateParams -from .monitor_list_response import MonitorListResponse as MonitorListResponse -from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams -from .monitor_create_response import MonitorCreateResponse as MonitorCreateResponse -from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse -from .monitor_update_response import MonitorUpdateResponse as MonitorUpdateResponse -from .region_load_balancer_regions_list_regions_params import ( - RegionLoadBalancerRegionsListRegionsParams as RegionLoadBalancerRegionsListRegionsParams, -) +from .region_get_response import RegionGetResponse as RegionGetResponse from .region_load_balancer_regions_list_regions_response import ( RegionLoadBalancerRegionsListRegionsResponse as RegionLoadBalancerRegionsListRegionsResponse, ) +from .region_load_balancer_regions_list_regions_params import ( + RegionLoadBalancerRegionsListRegionsParams as RegionLoadBalancerRegionsListRegionsParams, +) +from .search_list_response import SearchListResponse as SearchListResponse +from .search_list_params import SearchListParams as SearchListParams diff --git a/src/cloudflare/types/load_balancers/monitor_create_params.py b/src/cloudflare/types/load_balancers/monitor_create_params.py index f0938eff12b..60389c9a1a1 100644 --- a/src/cloudflare/types/load_balancers/monitor_create_params.py +++ b/src/cloudflare/types/load_balancers/monitor_create_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ...types import shared_params + __all__ = ["MonitorCreateParams"] diff --git a/src/cloudflare/types/load_balancers/monitor_create_response.py b/src/cloudflare/types/load_balancers/monitor_create_response.py index bef8852d6d3..5e8d90ad672 100644 --- a/src/cloudflare/types/load_balancers/monitor_create_response.py +++ b/src/cloudflare/types/load_balancers/monitor_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["MonitorCreateResponse"] diff --git a/src/cloudflare/types/load_balancers/monitor_delete_response.py b/src/cloudflare/types/load_balancers/monitor_delete_response.py index a7b56c5ec2b..d35fa71db42 100644 --- a/src/cloudflare/types/load_balancers/monitor_delete_response.py +++ b/src/cloudflare/types/load_balancers/monitor_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["MonitorDeleteResponse"] diff --git a/src/cloudflare/types/load_balancers/monitor_get_response.py b/src/cloudflare/types/load_balancers/monitor_get_response.py index f4f880a2efb..4056b2667f7 100644 --- a/src/cloudflare/types/load_balancers/monitor_get_response.py +++ b/src/cloudflare/types/load_balancers/monitor_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["MonitorGetResponse"] diff --git a/src/cloudflare/types/load_balancers/monitor_list_response.py b/src/cloudflare/types/load_balancers/monitor_list_response.py index 67ed4efed04..5d46f045c95 100644 --- a/src/cloudflare/types/load_balancers/monitor_list_response.py +++ b/src/cloudflare/types/load_balancers/monitor_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["MonitorListResponse", "MonitorListResponseItem"] diff --git a/src/cloudflare/types/load_balancers/monitor_update_params.py b/src/cloudflare/types/load_balancers/monitor_update_params.py index 3a7eebe9292..5360e585ad1 100644 --- a/src/cloudflare/types/load_balancers/monitor_update_params.py +++ b/src/cloudflare/types/load_balancers/monitor_update_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ...types import shared_params + __all__ = ["MonitorUpdateParams"] diff --git a/src/cloudflare/types/load_balancers/monitor_update_response.py b/src/cloudflare/types/load_balancers/monitor_update_response.py index dcd706f290c..6913ff48a7d 100644 --- a/src/cloudflare/types/load_balancers/monitor_update_response.py +++ b/src/cloudflare/types/load_balancers/monitor_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["MonitorUpdateResponse"] diff --git a/src/cloudflare/types/load_balancers/monitors/__init__.py b/src/cloudflare/types/load_balancers/monitors/__init__.py index ee24365f8e4..4e39bdc5fa3 100644 --- a/src/cloudflare/types/load_balancers/monitors/__init__.py +++ b/src/cloudflare/types/load_balancers/monitors/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .preview_account_load_balancer_monitors_preview_monitor_params import ( - PreviewAccountLoadBalancerMonitorsPreviewMonitorParams as PreviewAccountLoadBalancerMonitorsPreviewMonitorParams, -) from .preview_account_load_balancer_monitors_preview_monitor_response import ( PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse as PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse, ) +from .preview_account_load_balancer_monitors_preview_monitor_params import ( + PreviewAccountLoadBalancerMonitorsPreviewMonitorParams as PreviewAccountLoadBalancerMonitorsPreviewMonitorParams, +) from .reference_account_load_balancer_monitors_list_monitor_references_response import ( ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse as ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse, ) diff --git a/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_params.py b/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_params.py index 3b2c3547771..14075c56e88 100644 --- a/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_params.py +++ b/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["PreviewAccountLoadBalancerMonitorsPreviewMonitorParams"] diff --git a/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_response.py b/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_response.py index 4ea4a69fe0d..8fd47976176 100644 --- a/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_response.py +++ b/src/cloudflare/types/load_balancers/monitors/preview_account_load_balancer_monitors_preview_monitor_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ...._models import BaseModel +from ....types import shared __all__ = ["PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse"] diff --git a/src/cloudflare/types/load_balancers/monitors/reference_account_load_balancer_monitors_list_monitor_references_response.py b/src/cloudflare/types/load_balancers/monitors/reference_account_load_balancer_monitors_list_monitor_references_response.py index c396d094358..5d9b53c45d7 100644 --- a/src/cloudflare/types/load_balancers/monitors/reference_account_load_balancer_monitors_list_monitor_references_response.py +++ b/src/cloudflare/types/load_balancers/monitors/reference_account_load_balancer_monitors_list_monitor_references_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse", diff --git a/src/cloudflare/types/load_balancers/pool_create_params.py b/src/cloudflare/types/load_balancers/pool_create_params.py index b880f46f821..4c1d9ed0e20 100644 --- a/src/cloudflare/types/load_balancers/pool_create_params.py +++ b/src/cloudflare/types/load_balancers/pool_create_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated, Literal +from typing import Iterable, Optional, 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 +from ...types import shared_params __all__ = [ "PoolCreateParams", diff --git a/src/cloudflare/types/load_balancers/pool_create_response.py b/src/cloudflare/types/load_balancers/pool_create_response.py index bda9c56b5ae..cd7118f5db2 100644 --- a/src/cloudflare/types/load_balancers/pool_create_response.py +++ b/src/cloudflare/types/load_balancers/pool_create_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PoolCreateResponse", diff --git a/src/cloudflare/types/load_balancers/pool_delete_response.py b/src/cloudflare/types/load_balancers/pool_delete_response.py index b30d5838903..fca03d94ce2 100644 --- a/src/cloudflare/types/load_balancers/pool_delete_response.py +++ b/src/cloudflare/types/load_balancers/pool_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PoolDeleteResponse"] diff --git a/src/cloudflare/types/load_balancers/pool_get_response.py b/src/cloudflare/types/load_balancers/pool_get_response.py index 3cb4873ca14..3cc9080fb37 100644 --- a/src/cloudflare/types/load_balancers/pool_get_response.py +++ b/src/cloudflare/types/load_balancers/pool_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PoolGetResponse", diff --git a/src/cloudflare/types/load_balancers/pool_list_params.py b/src/cloudflare/types/load_balancers/pool_list_params.py index b55c1a4801d..22a8f1e1505 100644 --- a/src/cloudflare/types/load_balancers/pool_list_params.py +++ b/src/cloudflare/types/load_balancers/pool_list_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["PoolListParams"] diff --git a/src/cloudflare/types/load_balancers/pool_list_response.py b/src/cloudflare/types/load_balancers/pool_list_response.py index 23654f93bfe..2dcd8d5585b 100644 --- a/src/cloudflare/types/load_balancers/pool_list_response.py +++ b/src/cloudflare/types/load_balancers/pool_list_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PoolListResponse", diff --git a/src/cloudflare/types/load_balancers/pool_update_params.py b/src/cloudflare/types/load_balancers/pool_update_params.py index 4e1f8202db8..245fe2ee2e2 100644 --- a/src/cloudflare/types/load_balancers/pool_update_params.py +++ b/src/cloudflare/types/load_balancers/pool_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, List, Iterable + +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 ...types import shared_params __all__ = [ "PoolUpdateParams", diff --git a/src/cloudflare/types/load_balancers/pool_update_response.py b/src/cloudflare/types/load_balancers/pool_update_response.py index dd4c05a3b38..3a87dbc8182 100644 --- a/src/cloudflare/types/load_balancers/pool_update_response.py +++ b/src/cloudflare/types/load_balancers/pool_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "PoolUpdateResponse", diff --git a/src/cloudflare/types/load_balancers/pools/__init__.py b/src/cloudflare/types/load_balancers/pools/__init__.py index 52fc3f61ee2..0693eeab187 100644 --- a/src/cloudflare/types/load_balancers/pools/__init__.py +++ b/src/cloudflare/types/load_balancers/pools/__init__.py @@ -3,6 +3,6 @@ from __future__ import annotations from .health_get_response import HealthGetResponse as HealthGetResponse -from .health_preview_params import HealthPreviewParams as HealthPreviewParams from .health_preview_response import HealthPreviewResponse as HealthPreviewResponse +from .health_preview_params import HealthPreviewParams as HealthPreviewParams from .reference_list_response import ReferenceListResponse as ReferenceListResponse 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 ba5d01f3aad..bd6dba1e7d7 100644 --- a/src/cloudflare/types/load_balancers/pools/health_get_response.py +++ b/src/cloudflare/types/load_balancers/pools/health_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ....types import shared __all__ = ["HealthGetResponse"] diff --git a/src/cloudflare/types/load_balancers/pools/health_preview_params.py b/src/cloudflare/types/load_balancers/pools/health_preview_params.py index 5902856400b..23195ee30c8 100644 --- a/src/cloudflare/types/load_balancers/pools/health_preview_params.py +++ b/src/cloudflare/types/load_balancers/pools/health_preview_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["HealthPreviewParams"] diff --git a/src/cloudflare/types/load_balancers/pools/health_preview_response.py b/src/cloudflare/types/load_balancers/pools/health_preview_response.py index e74c8d2b422..f97c4c8e6e0 100644 --- a/src/cloudflare/types/load_balancers/pools/health_preview_response.py +++ b/src/cloudflare/types/load_balancers/pools/health_preview_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ...._models import BaseModel +from ....types import shared __all__ = ["HealthPreviewResponse"] diff --git a/src/cloudflare/types/load_balancers/pools/reference_list_response.py b/src/cloudflare/types/load_balancers/pools/reference_list_response.py index 28995211ff2..99eaa46290b 100644 --- a/src/cloudflare/types/load_balancers/pools/reference_list_response.py +++ b/src/cloudflare/types/load_balancers/pools/reference_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["ReferenceListResponse", "ReferenceListResponseItem"] diff --git a/src/cloudflare/types/load_balancers/preview_get_response.py b/src/cloudflare/types/load_balancers/preview_get_response.py index a86a9638634..8db86447f19 100644 --- a/src/cloudflare/types/load_balancers/preview_get_response.py +++ b/src/cloudflare/types/load_balancers/preview_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +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 +from ...types import shared __all__ = [ "PreviewGetResponse", diff --git a/src/cloudflare/types/load_balancers/region_get_response.py b/src/cloudflare/types/load_balancers/region_get_response.py index f4046e1a045..02021b361fe 100644 --- a/src/cloudflare/types/load_balancers/region_get_response.py +++ b/src/cloudflare/types/load_balancers/region_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["RegionGetResponse"] diff --git a/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_params.py b/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_params.py index ccaa9626bba..2e3700d3fa7 100644 --- a/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_params.py +++ b/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["RegionLoadBalancerRegionsListRegionsParams"] diff --git a/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_response.py b/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_response.py index 8fa25a24020..02a15f48271 100644 --- a/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_response.py +++ b/src/cloudflare/types/load_balancers/region_load_balancer_regions_list_regions_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["RegionLoadBalancerRegionsListRegionsResponse"] diff --git a/src/cloudflare/types/load_balancers/search_list_params.py b/src/cloudflare/types/load_balancers/search_list_params.py index abc40f36ed8..580c58e832e 100644 --- a/src/cloudflare/types/load_balancers/search_list_params.py +++ b/src/cloudflare/types/load_balancers/search_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["SearchListParams", "SearchParams"] diff --git a/src/cloudflare/types/load_balancers/search_list_response.py b/src/cloudflare/types/load_balancers/search_list_response.py index f6e20941be2..79d79801dc8 100644 --- a/src/cloudflare/types/load_balancers/search_list_response.py +++ b/src/cloudflare/types/load_balancers/search_list_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["SearchListResponse"] diff --git a/src/cloudflare/types/logpush/__init__.py b/src/cloudflare/types/logpush/__init__.py index 4e7d46595ce..83b515b3328 100644 --- a/src/cloudflare/types/logpush/__init__.py +++ b/src/cloudflare/types/logpush/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .job_get_response import JobGetResponse as JobGetResponse +from .edge_update_response import EdgeUpdateResponse as EdgeUpdateResponse from .edge_get_response import EdgeGetResponse as EdgeGetResponse -from .job_create_params import JobCreateParams as JobCreateParams -from .job_list_response import JobListResponse as JobListResponse -from .job_update_params import JobUpdateParams as JobUpdateParams from .edge_update_params import EdgeUpdateParams as EdgeUpdateParams from .job_create_response import JobCreateResponse as JobCreateResponse -from .job_delete_response import JobDeleteResponse as JobDeleteResponse from .job_update_response import JobUpdateResponse as JobUpdateResponse -from .edge_update_response import EdgeUpdateResponse as EdgeUpdateResponse -from .ownership_post_accounts_account_identifier_logpush_ownership_params import ( - OwnershipPostAccountsAccountIdentifierLogpushOwnershipParams as OwnershipPostAccountsAccountIdentifierLogpushOwnershipParams, -) +from .job_list_response import JobListResponse as JobListResponse +from .job_delete_response import JobDeleteResponse as JobDeleteResponse +from .job_get_response import JobGetResponse as JobGetResponse +from .job_create_params import JobCreateParams as JobCreateParams +from .job_update_params import JobUpdateParams as JobUpdateParams from .ownership_post_accounts_account_identifier_logpush_ownership_response import ( OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse as OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse, ) +from .ownership_post_accounts_account_identifier_logpush_ownership_params import ( + OwnershipPostAccountsAccountIdentifierLogpushOwnershipParams as OwnershipPostAccountsAccountIdentifierLogpushOwnershipParams, +) diff --git a/src/cloudflare/types/logpush/datasets/job_list_response.py b/src/cloudflare/types/logpush/datasets/job_list_response.py index 71ae41ad6c3..7027f73e995 100644 --- a/src/cloudflare/types/logpush/datasets/job_list_response.py +++ b/src/cloudflare/types/logpush/datasets/job_list_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = ["JobListResponse", "JobListResponseItem", "JobListResponseItemOutputOptions"] diff --git a/src/cloudflare/types/logpush/edge_get_response.py b/src/cloudflare/types/logpush/edge_get_response.py index a3043257705..fdfa8823f6d 100644 --- a/src/cloudflare/types/logpush/edge_get_response.py +++ b/src/cloudflare/types/logpush/edge_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["EdgeGetResponse", "EdgeGetResponseItem"] diff --git a/src/cloudflare/types/logpush/edge_update_params.py b/src/cloudflare/types/logpush/edge_update_params.py index 105cfa53587..81ef31cb80c 100644 --- a/src/cloudflare/types/logpush/edge_update_params.py +++ b/src/cloudflare/types/logpush/edge_update_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["EdgeUpdateParams"] diff --git a/src/cloudflare/types/logpush/edge_update_response.py b/src/cloudflare/types/logpush/edge_update_response.py index cb57619e8eb..5141a86d865 100644 --- a/src/cloudflare/types/logpush/edge_update_response.py +++ b/src/cloudflare/types/logpush/edge_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["EdgeUpdateResponse"] diff --git a/src/cloudflare/types/logpush/job_create_params.py b/src/cloudflare/types/logpush/job_create_params.py index f2bd9f6b68f..b151a870cbc 100644 --- a/src/cloudflare/types/logpush/job_create_params.py +++ b/src/cloudflare/types/logpush/job_create_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, 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 +from ...types import shared_params __all__ = ["JobCreateParams", "OutputOptions"] diff --git a/src/cloudflare/types/logpush/job_create_response.py b/src/cloudflare/types/logpush/job_create_response.py index ae9942205ce..c540e70f53f 100644 --- a/src/cloudflare/types/logpush/job_create_response.py +++ b/src/cloudflare/types/logpush/job_create_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = ["JobCreateResponse", "OutputOptions"] diff --git a/src/cloudflare/types/logpush/job_delete_response.py b/src/cloudflare/types/logpush/job_delete_response.py index 3bfbbf80565..a86525b0964 100644 --- a/src/cloudflare/types/logpush/job_delete_response.py +++ b/src/cloudflare/types/logpush/job_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["JobDeleteResponse"] diff --git a/src/cloudflare/types/logpush/job_get_response.py b/src/cloudflare/types/logpush/job_get_response.py index 44cd1b6c465..8ffbd321b22 100644 --- a/src/cloudflare/types/logpush/job_get_response.py +++ b/src/cloudflare/types/logpush/job_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = ["JobGetResponse", "OutputOptions"] diff --git a/src/cloudflare/types/logpush/job_list_response.py b/src/cloudflare/types/logpush/job_list_response.py index aeea417507e..9d4fba1c939 100644 --- a/src/cloudflare/types/logpush/job_list_response.py +++ b/src/cloudflare/types/logpush/job_list_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = ["JobListResponse", "JobListResponseItem", "JobListResponseItemOutputOptions"] diff --git a/src/cloudflare/types/logpush/job_update_params.py b/src/cloudflare/types/logpush/job_update_params.py index f184dce8b0f..0120a089b91 100644 --- a/src/cloudflare/types/logpush/job_update_params.py +++ b/src/cloudflare/types/logpush/job_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Optional, 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 +from ...types import shared_params __all__ = ["JobUpdateParams", "OutputOptions"] diff --git a/src/cloudflare/types/logpush/job_update_response.py b/src/cloudflare/types/logpush/job_update_response.py index 83500f83218..82362bce118 100644 --- a/src/cloudflare/types/logpush/job_update_response.py +++ b/src/cloudflare/types/logpush/job_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = ["JobUpdateResponse", "OutputOptions"] diff --git a/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_params.py b/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_params.py index 23039df7fce..cc669fa36ce 100644 --- a/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_params.py +++ b/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["OwnershipPostAccountsAccountIdentifierLogpushOwnershipParams"] diff --git a/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_response.py b/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_response.py index 3d59f6d19fb..a2e46226b46 100644 --- a/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_response.py +++ b/src/cloudflare/types/logpush/ownership_post_accounts_account_identifier_logpush_ownership_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse"] diff --git a/src/cloudflare/types/logpush/ownerships/__init__.py b/src/cloudflare/types/logpush/ownerships/__init__.py index 61d78989401..7e6f75bb27d 100644 --- a/src/cloudflare/types/logpush/ownerships/__init__.py +++ b/src/cloudflare/types/logpush/ownerships/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .validate_post_accounts_account_identifier_logpush_ownership_validate_params import ( - ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateParams as ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateParams, -) from .validate_post_accounts_account_identifier_logpush_ownership_validate_response import ( ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse as ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse, ) +from .validate_post_accounts_account_identifier_logpush_ownership_validate_params import ( + ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateParams as ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateParams, +) diff --git a/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_params.py b/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_params.py index 363429cc4d5..7b862f478b6 100644 --- a/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_params.py +++ b/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateParams"] diff --git a/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_response.py b/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_response.py index 19df24fcab5..9f46ec9f065 100644 --- a/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_response.py +++ b/src/cloudflare/types/logpush/ownerships/validate_post_accounts_account_identifier_logpush_ownership_validate_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse"] diff --git a/src/cloudflare/types/logpush/validates/__init__.py b/src/cloudflare/types/logpush/validates/__init__.py index 0be30fa00e1..521556bfcae 100644 --- a/src/cloudflare/types/logpush/validates/__init__.py +++ b/src/cloudflare/types/logpush/validates/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .origin_post_accounts_account_identifier_logpush_validate_origin_params import ( - OriginPostAccountsAccountIdentifierLogpushValidateOriginParams as OriginPostAccountsAccountIdentifierLogpushValidateOriginParams, -) from .origin_post_accounts_account_identifier_logpush_validate_origin_response import ( OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse as OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse, ) +from .origin_post_accounts_account_identifier_logpush_validate_origin_params import ( + OriginPostAccountsAccountIdentifierLogpushValidateOriginParams as OriginPostAccountsAccountIdentifierLogpushValidateOriginParams, +) diff --git a/src/cloudflare/types/logpush/validates/destinations/__init__.py b/src/cloudflare/types/logpush/validates/destinations/__init__.py index 37422f6db53..4cd8cf70104 100644 --- a/src/cloudflare/types/logpush/validates/destinations/__init__.py +++ b/src/cloudflare/types/logpush/validates/destinations/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params import ( - ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsParams as ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsParams, -) from .exist_delete_accounts_account_identifier_logpush_validate_destination_exists_response import ( ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse as ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, ) +from .exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params import ( + ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsParams as ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsParams, +) diff --git a/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params.py b/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params.py index 95379e87384..77949bcfbb7 100644 --- a/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params.py +++ b/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsParams"] diff --git a/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_response.py b/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_response.py index 8d3b7c81d07..55fc02afa57 100644 --- a/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_response.py +++ b/src/cloudflare/types/logpush/validates/destinations/exist_delete_accounts_account_identifier_logpush_validate_destination_exists_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse"] diff --git a/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_params.py b/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_params.py index e280f3dfa8e..51900c3be1f 100644 --- a/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_params.py +++ b/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["OriginPostAccountsAccountIdentifierLogpushValidateOriginParams"] diff --git a/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_response.py b/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_response.py index 2d69e45e00d..76fa723df5f 100644 --- a/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_response.py +++ b/src/cloudflare/types/logpush/validates/origin_post_accounts_account_identifier_logpush_validate_origin_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse"] diff --git a/src/cloudflare/types/logs/__init__.py b/src/cloudflare/types/logs/__init__.py index abac0307e36..b416bea59e4 100644 --- a/src/cloudflare/types/logs/__init__.py +++ b/src/cloudflare/types/logs/__init__.py @@ -2,11 +2,11 @@ from __future__ import annotations -from .rayid_get_params import RayidGetParams as RayidGetParams from .rayid_get_response import RayidGetResponse as RayidGetResponse -from .received_received_get_logs_received_params import ( - ReceivedReceivedGetLogsReceivedParams as ReceivedReceivedGetLogsReceivedParams, -) +from .rayid_get_params import RayidGetParams as RayidGetParams from .received_received_get_logs_received_response import ( ReceivedReceivedGetLogsReceivedResponse as ReceivedReceivedGetLogsReceivedResponse, ) +from .received_received_get_logs_received_params import ( + ReceivedReceivedGetLogsReceivedParams as ReceivedReceivedGetLogsReceivedParams, +) diff --git a/src/cloudflare/types/logs/controls/cmb/__init__.py b/src/cloudflare/types/logs/controls/cmb/__init__.py index 30f2944ca17..0c14fc581fc 100644 --- a/src/cloudflare/types/logs/controls/cmb/__init__.py +++ b/src/cloudflare/types/logs/controls/cmb/__init__.py @@ -3,12 +3,12 @@ from __future__ import annotations from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse -from .config_put_accounts_account_identifier_logs_control_cmb_config_params import ( - ConfigPutAccountsAccountIdentifierLogsControlCmbConfigParams as ConfigPutAccountsAccountIdentifierLogsControlCmbConfigParams, -) from .config_get_accounts_account_identifier_logs_control_cmb_config_response import ( ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse as ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, ) from .config_put_accounts_account_identifier_logs_control_cmb_config_response import ( ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse as ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse, ) +from .config_put_accounts_account_identifier_logs_control_cmb_config_params import ( + ConfigPutAccountsAccountIdentifierLogsControlCmbConfigParams as ConfigPutAccountsAccountIdentifierLogsControlCmbConfigParams, +) diff --git a/src/cloudflare/types/logs/controls/cmb/config_delete_response.py b/src/cloudflare/types/logs/controls/cmb/config_delete_response.py index 8ca3c7a2d16..d180f7293b0 100644 --- a/src/cloudflare/types/logs/controls/cmb/config_delete_response.py +++ b/src/cloudflare/types/logs/controls/cmb/config_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from .....types import shared __all__ = ["ConfigDeleteResponse"] diff --git a/src/cloudflare/types/logs/controls/cmb/config_get_accounts_account_identifier_logs_control_cmb_config_response.py b/src/cloudflare/types/logs/controls/cmb/config_get_accounts_account_identifier_logs_control_cmb_config_response.py index 520babc8249..a16dfeb1309 100644 --- a/src/cloudflare/types/logs/controls/cmb/config_get_accounts_account_identifier_logs_control_cmb_config_response.py +++ b/src/cloudflare/types/logs/controls/cmb/config_get_accounts_account_identifier_logs_control_cmb_config_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse"] diff --git a/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_params.py b/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_params.py index 6c0be00004f..e77347c3574 100644 --- a/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_params.py +++ b/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_params.py @@ -4,6 +4,12 @@ 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 +from .....types import shared_params + __all__ = ["ConfigPutAccountsAccountIdentifierLogsControlCmbConfigParams"] diff --git a/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_response.py b/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_response.py index 17d9aaa78d2..c746bd8ef70 100644 --- a/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_response.py +++ b/src/cloudflare/types/logs/controls/cmb/config_put_accounts_account_identifier_logs_control_cmb_config_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse"] diff --git a/src/cloudflare/types/logs/controls/retentions/__init__.py b/src/cloudflare/types/logs/controls/retentions/__init__.py index 2da5cdb0899..21ac021924e 100644 --- a/src/cloudflare/types/logs/controls/retentions/__init__.py +++ b/src/cloudflare/types/logs/controls/retentions/__init__.py @@ -5,9 +5,9 @@ from .flag_logs_received_get_log_retention_flag_response import ( FlagLogsReceivedGetLogRetentionFlagResponse as FlagLogsReceivedGetLogRetentionFlagResponse, ) -from .flag_logs_received_update_log_retention_flag_params import ( - FlagLogsReceivedUpdateLogRetentionFlagParams as FlagLogsReceivedUpdateLogRetentionFlagParams, -) from .flag_logs_received_update_log_retention_flag_response import ( FlagLogsReceivedUpdateLogRetentionFlagResponse as FlagLogsReceivedUpdateLogRetentionFlagResponse, ) +from .flag_logs_received_update_log_retention_flag_params import ( + FlagLogsReceivedUpdateLogRetentionFlagParams as FlagLogsReceivedUpdateLogRetentionFlagParams, +) diff --git a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_get_log_retention_flag_response.py b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_get_log_retention_flag_response.py index 81c1bd1cf30..080b5aecb68 100644 --- a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_get_log_retention_flag_response.py +++ b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_get_log_retention_flag_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["FlagLogsReceivedGetLogRetentionFlagResponse"] diff --git a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_params.py b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_params.py index ef9cf54b239..1ad2a2c2825 100644 --- a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_params.py +++ b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["FlagLogsReceivedUpdateLogRetentionFlagParams"] diff --git a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_response.py b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_response.py index 03562edaa3f..e60f3b92a02 100644 --- a/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_response.py +++ b/src/cloudflare/types/logs/controls/retentions/flag_logs_received_update_log_retention_flag_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["FlagLogsReceivedUpdateLogRetentionFlagResponse"] diff --git a/src/cloudflare/types/logs/rayid_get_params.py b/src/cloudflare/types/logs/rayid_get_params.py index bad4cb05caa..b67c3ad6c28 100644 --- a/src/cloudflare/types/logs/rayid_get_params.py +++ b/src/cloudflare/types/logs/rayid_get_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["RayidGetParams"] diff --git a/src/cloudflare/types/logs/rayid_get_response.py b/src/cloudflare/types/logs/rayid_get_response.py index 1b2edd900d3..401cb3d9782 100644 --- a/src/cloudflare/types/logs/rayid_get_response.py +++ b/src/cloudflare/types/logs/rayid_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["RayidGetResponse"] diff --git a/src/cloudflare/types/logs/received_received_get_logs_received_params.py b/src/cloudflare/types/logs/received_received_get_logs_received_params.py index 1c013a6160d..9b1940ef910 100644 --- a/src/cloudflare/types/logs/received_received_get_logs_received_params.py +++ b/src/cloudflare/types/logs/received_received_get_logs_received_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["ReceivedReceivedGetLogsReceivedParams"] diff --git a/src/cloudflare/types/logs/received_received_get_logs_received_response.py b/src/cloudflare/types/logs/received_received_get_logs_received_response.py index 6013b62d519..1681cdd62c6 100644 --- a/src/cloudflare/types/logs/received_received_get_logs_received_response.py +++ b/src/cloudflare/types/logs/received_received_get_logs_received_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ReceivedReceivedGetLogsReceivedResponse"] diff --git a/src/cloudflare/types/logs/receiveds/field_logs_received_list_fields_response.py b/src/cloudflare/types/logs/receiveds/field_logs_received_list_fields_response.py index efdbfd474cb..8123acca89f 100644 --- a/src/cloudflare/types/logs/receiveds/field_logs_received_list_fields_response.py +++ b/src/cloudflare/types/logs/receiveds/field_logs_received_list_fields_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["FieldLogsReceivedListFieldsResponse"] diff --git a/src/cloudflare/types/magics/__init__.py b/src/cloudflare/types/magics/__init__.py index 63f591797d9..08dcca800f5 100644 --- a/src/cloudflare/types/magics/__init__.py +++ b/src/cloudflare/types/magics/__init__.py @@ -2,72 +2,72 @@ from __future__ import annotations -from .route_get_response import RouteGetResponse as RouteGetResponse -from .route_update_params import RouteUpdateParams as RouteUpdateParams -from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse -from .route_update_response import RouteUpdateResponse as RouteUpdateResponse -from .gre_tunnel_get_response import GreTunnelGetResponse as GreTunnelGetResponse -from .gre_tunnel_update_params import GreTunnelUpdateParams as GreTunnelUpdateParams -from .ipsec_tunnel_get_response import IpsecTunnelGetResponse as IpsecTunnelGetResponse -from .gre_tunnel_delete_response import GreTunnelDeleteResponse as GreTunnelDeleteResponse -from .gre_tunnel_update_response import GreTunnelUpdateResponse as GreTunnelUpdateResponse -from .ipsec_tunnel_update_params import IpsecTunnelUpdateParams as IpsecTunnelUpdateParams -from .cf_interconnect_get_response import CfInterconnectGetResponse as CfInterconnectGetResponse -from .ipsec_tunnel_delete_response import IpsecTunnelDeleteResponse as IpsecTunnelDeleteResponse -from .ipsec_tunnel_update_response import IpsecTunnelUpdateResponse as IpsecTunnelUpdateResponse -from .cf_interconnect_update_params import CfInterconnectUpdateParams as CfInterconnectUpdateParams from .cf_interconnect_update_response import CfInterconnectUpdateResponse as CfInterconnectUpdateResponse -from .route_magic_static_routes_create_routes_params import ( - RouteMagicStaticRoutesCreateRoutesParams as RouteMagicStaticRoutesCreateRoutesParams, -) -from .route_magic_static_routes_list_routes_response import ( - RouteMagicStaticRoutesListRoutesResponse as RouteMagicStaticRoutesListRoutesResponse, -) -from .route_magic_static_routes_create_routes_response import ( - RouteMagicStaticRoutesCreateRoutesResponse as RouteMagicStaticRoutesCreateRoutesResponse, -) -from .route_magic_static_routes_update_many_routes_params import ( - RouteMagicStaticRoutesUpdateManyRoutesParams as RouteMagicStaticRoutesUpdateManyRoutesParams, -) -from .route_magic_static_routes_update_many_routes_response import ( - RouteMagicStaticRoutesUpdateManyRoutesResponse as RouteMagicStaticRoutesUpdateManyRoutesResponse, +from .cf_interconnect_get_response import CfInterconnectGetResponse as CfInterconnectGetResponse +from .cf_interconnect_magic_interconnects_list_interconnects_response import ( + CfInterconnectMagicInterconnectsListInterconnectsResponse as CfInterconnectMagicInterconnectsListInterconnectsResponse, ) -from .gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params import ( - GreTunnelMagicGreTunnelsCreateGreTunnelsParams as GreTunnelMagicGreTunnelsCreateGreTunnelsParams, +from .cf_interconnect_magic_interconnects_update_multiple_interconnects_response import ( + CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse as CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, ) -from .gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response import ( - GreTunnelMagicGreTunnelsListGreTunnelsResponse as GreTunnelMagicGreTunnelsListGreTunnelsResponse, +from .cf_interconnect_update_params import CfInterconnectUpdateParams as CfInterconnectUpdateParams +from .cf_interconnect_magic_interconnects_update_multiple_interconnects_params import ( + CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsParams as CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsParams, ) +from .gre_tunnel_update_response import GreTunnelUpdateResponse as GreTunnelUpdateResponse +from .gre_tunnel_delete_response import GreTunnelDeleteResponse as GreTunnelDeleteResponse +from .gre_tunnel_get_response import GreTunnelGetResponse as GreTunnelGetResponse from .gre_tunnel_magic_gre_tunnels_create_gre_tunnels_response import ( GreTunnelMagicGreTunnelsCreateGreTunnelsResponse as GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, ) -from .ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params import ( - IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsParams as IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsParams, +from .gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response import ( + GreTunnelMagicGreTunnelsListGreTunnelsResponse as GreTunnelMagicGreTunnelsListGreTunnelsResponse, ) -from .ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response import ( - IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse as IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, +from .gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response import ( + GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse as GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, ) -from .cf_interconnect_magic_interconnects_list_interconnects_response import ( - CfInterconnectMagicInterconnectsListInterconnectsResponse as CfInterconnectMagicInterconnectsListInterconnectsResponse, +from .gre_tunnel_update_params import GreTunnelUpdateParams as GreTunnelUpdateParams +from .gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params import ( + GreTunnelMagicGreTunnelsCreateGreTunnelsParams as GreTunnelMagicGreTunnelsCreateGreTunnelsParams, ) from .gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params import ( GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsParams as GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsParams, ) +from .ipsec_tunnel_update_response import IpsecTunnelUpdateResponse as IpsecTunnelUpdateResponse +from .ipsec_tunnel_delete_response import IpsecTunnelDeleteResponse as IpsecTunnelDeleteResponse +from .ipsec_tunnel_get_response import IpsecTunnelGetResponse as IpsecTunnelGetResponse from .ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_response import ( IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse as IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, ) -from .gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response import ( - GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse as GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, +from .ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response import ( + IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse as IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, +) +from .ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response import ( + IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse as IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, +) +from .ipsec_tunnel_update_params import IpsecTunnelUpdateParams as IpsecTunnelUpdateParams +from .ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params import ( + IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsParams as IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsParams, ) from .ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params import ( IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsParams as IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsParams, ) -from .cf_interconnect_magic_interconnects_update_multiple_interconnects_params import ( - CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsParams as CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsParams, +from .route_update_response import RouteUpdateResponse as RouteUpdateResponse +from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse +from .route_get_response import RouteGetResponse as RouteGetResponse +from .route_magic_static_routes_create_routes_response import ( + RouteMagicStaticRoutesCreateRoutesResponse as RouteMagicStaticRoutesCreateRoutesResponse, ) -from .ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response import ( - IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse as IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, +from .route_magic_static_routes_list_routes_response import ( + RouteMagicStaticRoutesListRoutesResponse as RouteMagicStaticRoutesListRoutesResponse, ) -from .cf_interconnect_magic_interconnects_update_multiple_interconnects_response import ( - CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse as CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, +from .route_magic_static_routes_update_many_routes_response import ( + RouteMagicStaticRoutesUpdateManyRoutesResponse as RouteMagicStaticRoutesUpdateManyRoutesResponse, +) +from .route_update_params import RouteUpdateParams as RouteUpdateParams +from .route_magic_static_routes_create_routes_params import ( + RouteMagicStaticRoutesCreateRoutesParams as RouteMagicStaticRoutesCreateRoutesParams, +) +from .route_magic_static_routes_update_many_routes_params import ( + RouteMagicStaticRoutesUpdateManyRoutesParams as RouteMagicStaticRoutesUpdateManyRoutesParams, ) diff --git a/src/cloudflare/types/magics/cf_interconnect_get_response.py b/src/cloudflare/types/magics/cf_interconnect_get_response.py index 50f3567cad6..1e0aba892c4 100644 --- a/src/cloudflare/types/magics/cf_interconnect_get_response.py +++ b/src/cloudflare/types/magics/cf_interconnect_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["CfInterconnectGetResponse"] diff --git a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_list_interconnects_response.py b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_list_interconnects_response.py index 528d3f61cb0..84839e9a92a 100644 --- a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_list_interconnects_response.py +++ b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_list_interconnects_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "CfInterconnectMagicInterconnectsListInterconnectsResponse", diff --git a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_params.py b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_params.py index 837df171a7a..7af6d0d5e70 100644 --- a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_params.py +++ b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsParams"] diff --git a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_response.py b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_response.py index d79225deb28..88e3e6c5ca4 100644 --- a/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_response.py +++ b/src/cloudflare/types/magics/cf_interconnect_magic_interconnects_update_multiple_interconnects_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse", diff --git a/src/cloudflare/types/magics/cf_interconnect_update_params.py b/src/cloudflare/types/magics/cf_interconnect_update_params.py index a9797a60a23..3ebc9936300 100644 --- a/src/cloudflare/types/magics/cf_interconnect_update_params.py +++ b/src/cloudflare/types/magics/cf_interconnect_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["CfInterconnectUpdateParams", "Gre", "HealthCheck"] diff --git a/src/cloudflare/types/magics/cf_interconnect_update_response.py b/src/cloudflare/types/magics/cf_interconnect_update_response.py index 8ae6f0eec6a..79e33cd54ee 100644 --- a/src/cloudflare/types/magics/cf_interconnect_update_response.py +++ b/src/cloudflare/types/magics/cf_interconnect_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["CfInterconnectUpdateResponse"] diff --git a/src/cloudflare/types/magics/gre_tunnel_delete_response.py b/src/cloudflare/types/magics/gre_tunnel_delete_response.py index b747306a227..fe1b412b389 100644 --- a/src/cloudflare/types/magics/gre_tunnel_delete_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["GreTunnelDeleteResponse"] diff --git a/src/cloudflare/types/magics/gre_tunnel_get_response.py b/src/cloudflare/types/magics/gre_tunnel_get_response.py index 65c311244d9..8231f7e8004 100644 --- a/src/cloudflare/types/magics/gre_tunnel_get_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["GreTunnelGetResponse"] diff --git a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params.py b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params.py index ab9cf021347..0aadb6d40ae 100644 --- a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params.py +++ b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["GreTunnelMagicGreTunnelsCreateGreTunnelsParams"] diff --git a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_response.py b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_response.py index d197976f387..4db6564cfea 100644 --- a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_create_gre_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["GreTunnelMagicGreTunnelsCreateGreTunnelsResponse", "GreTunnel", "GreTunnelHealthCheck"] diff --git a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response.py b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response.py index 16279f97e04..7d2e0518efc 100644 --- a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_list_gre_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = ["GreTunnelMagicGreTunnelsListGreTunnelsResponse", "GreTunnel", "GreTunnelHealthCheck"] diff --git a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params.py b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params.py index c8b8cc15e27..11b5a7e315c 100644 --- a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params.py +++ b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsParams"] diff --git a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response.py b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response.py index 63325de9454..ef4c45c6cb0 100644 --- a/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ...types import shared __all__ = [ "GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse", diff --git a/src/cloudflare/types/magics/gre_tunnel_update_params.py b/src/cloudflare/types/magics/gre_tunnel_update_params.py index ad2ea2dad9a..b2770a49429 100644 --- a/src/cloudflare/types/magics/gre_tunnel_update_params.py +++ b/src/cloudflare/types/magics/gre_tunnel_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["GreTunnelUpdateParams", "HealthCheck"] diff --git a/src/cloudflare/types/magics/gre_tunnel_update_response.py b/src/cloudflare/types/magics/gre_tunnel_update_response.py index 9608274556b..267c91f60b2 100644 --- a/src/cloudflare/types/magics/gre_tunnel_update_response.py +++ b/src/cloudflare/types/magics/gre_tunnel_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["GreTunnelUpdateResponse"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_delete_response.py b/src/cloudflare/types/magics/ipsec_tunnel_delete_response.py index 7d5c03ccb14..a0903213b93 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_delete_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IpsecTunnelDeleteResponse"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_get_response.py b/src/cloudflare/types/magics/ipsec_tunnel_get_response.py index b02900ceeb1..ea41d3368a4 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_get_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IpsecTunnelGetResponse"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params.py b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params.py index 40dc692cf72..3ca56e0b031 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsParams"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_response.py b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_response.py index 6dec13639d3..dc04dea2245 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = [ "IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse", diff --git a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response.py b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response.py index f9183721267..43878cf73f9 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_list_i_psec_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = [ "IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse", diff --git a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params.py b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params.py index 7a1787d9387..7dfb6e33fcb 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsParams"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response.py b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response.py index 7a1e90dc533..d812b33fe80 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = [ "IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse", diff --git a/src/cloudflare/types/magics/ipsec_tunnel_update_params.py b/src/cloudflare/types/magics/ipsec_tunnel_update_params.py index 41d76e4efc1..70bd1ad53ad 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_update_params.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["IpsecTunnelUpdateParams"] diff --git a/src/cloudflare/types/magics/ipsec_tunnel_update_response.py b/src/cloudflare/types/magics/ipsec_tunnel_update_response.py index 3d7e9eb4929..c960275ef3e 100644 --- a/src/cloudflare/types/magics/ipsec_tunnel_update_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnel_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IpsecTunnelUpdateResponse"] diff --git a/src/cloudflare/types/magics/ipsec_tunnels/psk_generate_magic_i_psec_tunnels_generate_pre_shared_key_psk_for_i_psec_tunnels_response.py b/src/cloudflare/types/magics/ipsec_tunnels/psk_generate_magic_i_psec_tunnels_generate_pre_shared_key_psk_for_i_psec_tunnels_response.py index e20c1c49388..3a8abc65a11 100644 --- a/src/cloudflare/types/magics/ipsec_tunnels/psk_generate_magic_i_psec_tunnels_generate_pre_shared_key_psk_for_i_psec_tunnels_response.py +++ b/src/cloudflare/types/magics/ipsec_tunnels/psk_generate_magic_i_psec_tunnels_generate_pre_shared_key_psk_for_i_psec_tunnels_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse", "PskMetadata"] diff --git a/src/cloudflare/types/magics/route_delete_response.py b/src/cloudflare/types/magics/route_delete_response.py index 5654310acb5..68a5867d882 100644 --- a/src/cloudflare/types/magics/route_delete_response.py +++ b/src/cloudflare/types/magics/route_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["RouteDeleteResponse"] diff --git a/src/cloudflare/types/magics/route_get_response.py b/src/cloudflare/types/magics/route_get_response.py index 572f3e2a01d..88a55d1d19d 100644 --- a/src/cloudflare/types/magics/route_get_response.py +++ b/src/cloudflare/types/magics/route_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["RouteGetResponse"] diff --git a/src/cloudflare/types/magics/route_magic_static_routes_create_routes_params.py b/src/cloudflare/types/magics/route_magic_static_routes_create_routes_params.py index 288d090b087..1b7568967e4 100644 --- a/src/cloudflare/types/magics/route_magic_static_routes_create_routes_params.py +++ b/src/cloudflare/types/magics/route_magic_static_routes_create_routes_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RouteMagicStaticRoutesCreateRoutesParams"] diff --git a/src/cloudflare/types/magics/route_magic_static_routes_create_routes_response.py b/src/cloudflare/types/magics/route_magic_static_routes_create_routes_response.py index 84df0219453..4bb9ddc77bb 100644 --- a/src/cloudflare/types/magics/route_magic_static_routes_create_routes_response.py +++ b/src/cloudflare/types/magics/route_magic_static_routes_create_routes_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RouteMagicStaticRoutesCreateRoutesResponse", "Route", "RouteScope"] diff --git a/src/cloudflare/types/magics/route_magic_static_routes_list_routes_response.py b/src/cloudflare/types/magics/route_magic_static_routes_list_routes_response.py index 6f553f237f4..4643c80604e 100644 --- a/src/cloudflare/types/magics/route_magic_static_routes_list_routes_response.py +++ b/src/cloudflare/types/magics/route_magic_static_routes_list_routes_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RouteMagicStaticRoutesListRoutesResponse", "Route", "RouteScope"] diff --git a/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_params.py b/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_params.py index ffec238b8bb..7d2057eaf28 100644 --- a/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_params.py +++ b/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Required, TypedDict +from typing_extensions import TypedDict, Required + +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 ...types import shared_params __all__ = ["RouteMagicStaticRoutesUpdateManyRoutesParams", "Route", "RouteScope"] diff --git a/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_response.py b/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_response.py index 29994d16709..98fdb6a7e55 100644 --- a/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_response.py +++ b/src/cloudflare/types/magics/route_magic_static_routes_update_many_routes_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RouteMagicStaticRoutesUpdateManyRoutesResponse", "ModifiedRoute", "ModifiedRouteScope"] diff --git a/src/cloudflare/types/magics/route_update_params.py b/src/cloudflare/types/magics/route_update_params.py index 8eff098148c..4305c526044 100644 --- a/src/cloudflare/types/magics/route_update_params.py +++ b/src/cloudflare/types/magics/route_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["RouteUpdateParams", "Scope"] diff --git a/src/cloudflare/types/magics/route_update_response.py b/src/cloudflare/types/magics/route_update_response.py index a2af8740288..f1d1377d01c 100644 --- a/src/cloudflare/types/magics/route_update_response.py +++ b/src/cloudflare/types/magics/route_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["RouteUpdateResponse"] diff --git a/src/cloudflare/types/managed_header_list_response.py b/src/cloudflare/types/managed_header_list_response.py index 835922abf73..3c7a6e66d29 100644 --- a/src/cloudflare/types/managed_header_list_response.py +++ b/src/cloudflare/types/managed_header_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = ["ManagedHeaderListResponse", "ManagedRequestHeader", "ManagedResponseHeader"] diff --git a/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_params.py b/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_params.py index 1533e63835f..da9ef4b366e 100644 --- a/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_params.py +++ b/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ..types import shared_params __all__ = [ "ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsParams", diff --git a/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_response.py b/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_response.py index 4460dbc4f9d..f7a5ddc7b4e 100644 --- a/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_response.py +++ b/src/cloudflare/types/managed_header_managed_transforms_update_status_of_managed_transforms_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = [ "ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse", diff --git a/src/cloudflare/types/membership_delete_response.py b/src/cloudflare/types/membership_delete_response.py index 19d55395b41..24cc3e7cb0a 100644 --- a/src/cloudflare/types/membership_delete_response.py +++ b/src/cloudflare/types/membership_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["MembershipDeleteResponse"] diff --git a/src/cloudflare/types/membership_get_response.py b/src/cloudflare/types/membership_get_response.py index ac086d62588..3a39a6f4a73 100644 --- a/src/cloudflare/types/membership_get_response.py +++ b/src/cloudflare/types/membership_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["MembershipGetResponse"] diff --git a/src/cloudflare/types/membership_list_params.py b/src/cloudflare/types/membership_list_params.py index 1bc311bf0f7..be67432fb4e 100644 --- a/src/cloudflare/types/membership_list_params.py +++ b/src/cloudflare/types/membership_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["MembershipListParams", "Account"] diff --git a/src/cloudflare/types/membership_list_response.py b/src/cloudflare/types/membership_list_response.py index ebfbc77cff2..fe5b616455c 100644 --- a/src/cloudflare/types/membership_list_response.py +++ b/src/cloudflare/types/membership_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "MembershipListResponse", diff --git a/src/cloudflare/types/membership_update_params.py b/src/cloudflare/types/membership_update_params.py index 1528a9f31c3..4c9a904b055 100644 --- a/src/cloudflare/types/membership_update_params.py +++ b/src/cloudflare/types/membership_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["MembershipUpdateParams"] diff --git a/src/cloudflare/types/membership_update_response.py b/src/cloudflare/types/membership_update_response.py index c8b8bb89502..a8adf10a37d 100644 --- a/src/cloudflare/types/membership_update_response.py +++ b/src/cloudflare/types/membership_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["MembershipUpdateResponse"] diff --git a/src/cloudflare/types/mnms/__init__.py b/src/cloudflare/types/mnms/__init__.py index f889b880682..3c1e9c11f93 100644 --- a/src/cloudflare/types/mnms/__init__.py +++ b/src/cloudflare/types/mnms/__init__.py @@ -2,28 +2,28 @@ from __future__ import annotations -from .rule_get_response import RuleGetResponse as RuleGetResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse -from .rule_magic_network_monitoring_rules_list_rules_response import ( - RuleMagicNetworkMonitoringRulesListRulesResponse as RuleMagicNetworkMonitoringRulesListRulesResponse, -) -from .rule_magic_network_monitoring_rules_create_rules_response import ( - RuleMagicNetworkMonitoringRulesCreateRulesResponse as RuleMagicNetworkMonitoringRulesCreateRulesResponse, -) -from .rule_magic_network_monitoring_rules_update_rules_response import ( - RuleMagicNetworkMonitoringRulesUpdateRulesResponse as RuleMagicNetworkMonitoringRulesUpdateRulesResponse, +from .config_magic_network_monitoring_configuration_create_account_configuration_response import ( + ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse as ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, ) from .config_magic_network_monitoring_configuration_list_account_configuration_response import ( ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse as ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ) -from .config_magic_network_monitoring_configuration_create_account_configuration_response import ( - ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse as ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, -) from .config_magic_network_monitoring_configuration_update_account_configuration_fields_response import ( ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse as ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse, ) from .config_magic_network_monitoring_configuration_update_an_entire_account_configuration_response import ( ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse as ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse, ) +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_get_response import RuleGetResponse as RuleGetResponse +from .rule_magic_network_monitoring_rules_create_rules_response import ( + RuleMagicNetworkMonitoringRulesCreateRulesResponse as RuleMagicNetworkMonitoringRulesCreateRulesResponse, +) +from .rule_magic_network_monitoring_rules_list_rules_response import ( + RuleMagicNetworkMonitoringRulesListRulesResponse as RuleMagicNetworkMonitoringRulesListRulesResponse, +) +from .rule_magic_network_monitoring_rules_update_rules_response import ( + RuleMagicNetworkMonitoringRulesUpdateRulesResponse as RuleMagicNetworkMonitoringRulesUpdateRulesResponse, +) diff --git a/src/cloudflare/types/mnms/config_delete_response.py b/src/cloudflare/types/mnms/config_delete_response.py index 4e9d2804f6f..fbb56dee887 100644 --- a/src/cloudflare/types/mnms/config_delete_response.py +++ b/src/cloudflare/types/mnms/config_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigDeleteResponse"] diff --git a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_create_account_configuration_response.py b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_create_account_configuration_response.py index d67e0e9c699..6049f7f60e8 100644 --- a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_create_account_configuration_response.py +++ b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_create_account_configuration_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse"] diff --git a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_list_account_configuration_response.py b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_list_account_configuration_response.py index a30a315bd0a..f23ea3997f7 100644 --- a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_list_account_configuration_response.py +++ b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_list_account_configuration_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse"] diff --git a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_account_configuration_fields_response.py b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_account_configuration_fields_response.py index bd5cc87703a..d8cf9004fd7 100644 --- a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_account_configuration_fields_response.py +++ b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_account_configuration_fields_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse"] diff --git a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_an_entire_account_configuration_response.py b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_an_entire_account_configuration_response.py index 543904bdfd7..f6394b47154 100644 --- a/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_an_entire_account_configuration_response.py +++ b/src/cloudflare/types/mnms/config_magic_network_monitoring_configuration_update_an_entire_account_configuration_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse"] diff --git a/src/cloudflare/types/mnms/configs/full_magic_network_monitoring_configuration_list_rules_and_account_configuration_response.py b/src/cloudflare/types/mnms/configs/full_magic_network_monitoring_configuration_list_rules_and_account_configuration_response.py index ee04ed9726d..a6ede302887 100644 --- a/src/cloudflare/types/mnms/configs/full_magic_network_monitoring_configuration_list_rules_and_account_configuration_response.py +++ b/src/cloudflare/types/mnms/configs/full_magic_network_monitoring_configuration_list_rules_and_account_configuration_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse"] diff --git a/src/cloudflare/types/mnms/rule_delete_response.py b/src/cloudflare/types/mnms/rule_delete_response.py index cb8ecf05986..7720e8f5c72 100644 --- a/src/cloudflare/types/mnms/rule_delete_response.py +++ b/src/cloudflare/types/mnms/rule_delete_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/mnms/rule_get_response.py b/src/cloudflare/types/mnms/rule_get_response.py index 2e2f9a38c91..24f9f3059aa 100644 --- a/src/cloudflare/types/mnms/rule_get_response.py +++ b/src/cloudflare/types/mnms/rule_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleGetResponse"] diff --git a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_create_rules_response.py b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_create_rules_response.py index b261f61354e..229774681ff 100644 --- a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_create_rules_response.py +++ b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_create_rules_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleMagicNetworkMonitoringRulesCreateRulesResponse"] diff --git a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_list_rules_response.py b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_list_rules_response.py index a165f1bb109..94072b8d691 100644 --- a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_list_rules_response.py +++ b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_list_rules_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleMagicNetworkMonitoringRulesListRulesResponse", "RuleMagicNetworkMonitoringRulesListRulesResponseItem"] diff --git a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_update_rules_response.py b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_update_rules_response.py index 0e10adef02d..16a6fd4ddcd 100644 --- a/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_update_rules_response.py +++ b/src/cloudflare/types/mnms/rule_magic_network_monitoring_rules_update_rules_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleMagicNetworkMonitoringRulesUpdateRulesResponse"] diff --git a/src/cloudflare/types/mnms/rule_update_response.py b/src/cloudflare/types/mnms/rule_update_response.py index c7008831c37..5c344827e78 100644 --- a/src/cloudflare/types/mnms/rule_update_response.py +++ b/src/cloudflare/types/mnms/rule_update_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RuleUpdateResponse"] diff --git a/src/cloudflare/types/mnms/rules/advertisement_magic_network_monitoring_rules_update_advertisement_for_rule_response.py b/src/cloudflare/types/mnms/rules/advertisement_magic_network_monitoring_rules_update_advertisement_for_rule_response.py index f2d5a79caf8..4f9138a69bc 100644 --- a/src/cloudflare/types/mnms/rules/advertisement_magic_network_monitoring_rules_update_advertisement_for_rule_response.py +++ b/src/cloudflare/types/mnms/rules/advertisement_magic_network_monitoring_rules_update_advertisement_for_rule_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse"] diff --git a/src/cloudflare/types/mtls_certificate_delete_response.py b/src/cloudflare/types/mtls_certificate_delete_response.py index a148c940cd9..7d0ee72c0b5 100644 --- a/src/cloudflare/types/mtls_certificate_delete_response.py +++ b/src/cloudflare/types/mtls_certificate_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["MtlsCertificateDeleteResponse"] diff --git a/src/cloudflare/types/mtls_certificate_get_response.py b/src/cloudflare/types/mtls_certificate_get_response.py index 1377c31763b..23b2357c47e 100644 --- a/src/cloudflare/types/mtls_certificate_get_response.py +++ b/src/cloudflare/types/mtls_certificate_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["MtlsCertificateGetResponse"] diff --git a/src/cloudflare/types/mtls_certificate_list_response.py b/src/cloudflare/types/mtls_certificate_list_response.py index 361ea4b07fb..f85fe1f4461 100644 --- a/src/cloudflare/types/mtls_certificate_list_response.py +++ b/src/cloudflare/types/mtls_certificate_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ..types import shared __all__ = ["MtlsCertificateListResponse", "MtlsCertificateListResponseItem"] diff --git a/src/cloudflare/types/mtls_certificate_update_params.py b/src/cloudflare/types/mtls_certificate_update_params.py index 00700ca9b7d..65632948179 100644 --- a/src/cloudflare/types/mtls_certificate_update_params.py +++ b/src/cloudflare/types/mtls_certificate_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["MtlsCertificateUpdateParams"] diff --git a/src/cloudflare/types/mtls_certificate_update_response.py b/src/cloudflare/types/mtls_certificate_update_response.py index 02aa2577ecc..de274164899 100644 --- a/src/cloudflare/types/mtls_certificate_update_response.py +++ b/src/cloudflare/types/mtls_certificate_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ..types import shared __all__ = ["MtlsCertificateUpdateResponse"] diff --git a/src/cloudflare/types/mtls_certificates/association_list_response.py b/src/cloudflare/types/mtls_certificates/association_list_response.py index e7d2adab57e..113e84d6a84 100644 --- a/src/cloudflare/types/mtls_certificates/association_list_response.py +++ b/src/cloudflare/types/mtls_certificates/association_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["AssociationListResponse", "AssociationListResponseItem"] diff --git a/src/cloudflare/types/origin_post_quantum_encryption_get_response.py b/src/cloudflare/types/origin_post_quantum_encryption_get_response.py index c398cde9166..3715e2f38a3 100644 --- a/src/cloudflare/types/origin_post_quantum_encryption_get_response.py +++ b/src/cloudflare/types/origin_post_quantum_encryption_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["OriginPostQuantumEncryptionGetResponse"] diff --git a/src/cloudflare/types/origin_post_quantum_encryption_update_params.py b/src/cloudflare/types/origin_post_quantum_encryption_update_params.py index 87c04c4c60e..afce313dfe8 100644 --- a/src/cloudflare/types/origin_post_quantum_encryption_update_params.py +++ b/src/cloudflare/types/origin_post_quantum_encryption_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["OriginPostQuantumEncryptionUpdateParams"] diff --git a/src/cloudflare/types/origin_post_quantum_encryption_update_response.py b/src/cloudflare/types/origin_post_quantum_encryption_update_response.py index b1d2a44fd2e..f0a7845b8e9 100644 --- a/src/cloudflare/types/origin_post_quantum_encryption_update_response.py +++ b/src/cloudflare/types/origin_post_quantum_encryption_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["OriginPostQuantumEncryptionUpdateResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/__init__.py b/src/cloudflare/types/origin_tls_client_auth/__init__.py index e1236554ecb..945a475cccc 100644 --- a/src/cloudflare/types/origin_tls_client_auth/__init__.py +++ b/src/cloudflare/types/origin_tls_client_auth/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations +from .hostname_update_response import HostnameUpdateResponse as HostnameUpdateResponse from .hostname_get_response import HostnameGetResponse as HostnameGetResponse from .hostname_update_params import HostnameUpdateParams as HostnameUpdateParams -from .hostname_update_response import HostnameUpdateResponse as HostnameUpdateResponse -from .setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params import ( - SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneParams as SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneParams, +from .setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response import ( + SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse as SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, ) from .setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_response import ( SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse as SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, ) -from .setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response import ( - SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse as SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, +from .setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params import ( + SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneParams as SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneParams, ) diff --git a/src/cloudflare/types/origin_tls_client_auth/hostname_get_response.py b/src/cloudflare/types/origin_tls_client_auth/hostname_get_response.py index b1789586c90..e0fba5b4558 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostname_get_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostname_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["HostnameGetResponse"] 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 21cdd1d71ec..7df9d8a72a4 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,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable, Optional -from typing_extensions import Required, 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 ...types import shared_params __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 db89d820b7c..834c47df514 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,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["HostnameUpdateResponse", "HostnameUpdateResponseItem"] 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 d15320dfe8e..66d0dc35380 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .certificate_get_response import CertificateGetResponse as CertificateGetResponse -from .certificate_create_params import CertificateCreateParams as CertificateCreateParams -from .certificate_list_response import CertificateListResponse as CertificateListResponse 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_get_response import CertificateGetResponse as CertificateGetResponse +from .certificate_create_params import CertificateCreateParams as CertificateCreateParams 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 cc51c67ae89..47b0921c9ec 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,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __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 922ad473777..59b2521bc41 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,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __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 fc680daa4d0..b0bbbb6dd04 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,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __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 eed6f0a1e6f..a8ae368f5d7 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,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["CertificateGetResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_list_response.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_list_response.py index 69702083e1f..0d7dd489625 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_list_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["CertificateListResponse", "CertificateListResponseItem"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response.py b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response.py index f221cfbe7e1..b0225483ef5 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_get_enablement_setting_for_zone_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params.py b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params.py index 2c22d599eff..8ec8887a65c 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_response.py b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_response.py index 6b2a22f2c45..69ce1bef330 100644 --- a/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_response.py +++ b/src/cloudflare/types/origin_tls_client_auth/setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth_create_params.py b/src/cloudflare/types/origin_tls_client_auth_create_params.py index fd2565b03b8..51d7e6248ce 100644 --- a/src/cloudflare/types/origin_tls_client_auth_create_params.py +++ b/src/cloudflare/types/origin_tls_client_auth_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["OriginTLSClientAuthCreateParams"] diff --git a/src/cloudflare/types/origin_tls_client_auth_create_response.py b/src/cloudflare/types/origin_tls_client_auth_create_response.py index 4ed55766802..a55c78fde2b 100644 --- a/src/cloudflare/types/origin_tls_client_auth_create_response.py +++ b/src/cloudflare/types/origin_tls_client_auth_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["OriginTLSClientAuthCreateResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth_delete_response.py b/src/cloudflare/types/origin_tls_client_auth_delete_response.py index ae2a4d3bd62..8ad8b63a5a8 100644 --- a/src/cloudflare/types/origin_tls_client_auth_delete_response.py +++ b/src/cloudflare/types/origin_tls_client_auth_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["OriginTLSClientAuthDeleteResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth_get_response.py b/src/cloudflare/types/origin_tls_client_auth_get_response.py index 2375daa0a82..3e242c043ce 100644 --- a/src/cloudflare/types/origin_tls_client_auth_get_response.py +++ b/src/cloudflare/types/origin_tls_client_auth_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["OriginTLSClientAuthGetResponse"] diff --git a/src/cloudflare/types/origin_tls_client_auth_list_response.py b/src/cloudflare/types/origin_tls_client_auth_list_response.py index 1b33764dbc3..96258d6ac6c 100644 --- a/src/cloudflare/types/origin_tls_client_auth_list_response.py +++ b/src/cloudflare/types/origin_tls_client_auth_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["OriginTLSClientAuthListResponse", "OriginTLSClientAuthListResponseItem"] diff --git a/src/cloudflare/types/page_shield/__init__.py b/src/cloudflare/types/page_shield/__init__.py index 80bdcbe12f3..f9d22fa8fde 100644 --- a/src/cloudflare/types/page_shield/__init__.py +++ b/src/cloudflare/types/page_shield/__init__.py @@ -2,10 +2,10 @@ from __future__ import annotations +from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse +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_list_response import PolicyListResponse as PolicyListResponse from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams -from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse -from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse -from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse diff --git a/src/cloudflare/types/page_shield/connection_get_response.py b/src/cloudflare/types/page_shield/connection_get_response.py index 75231a73aaa..4f1c608f16a 100644 --- a/src/cloudflare/types/page_shield/connection_get_response.py +++ b/src/cloudflare/types/page_shield/connection_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConnectionGetResponse"] diff --git a/src/cloudflare/types/page_shield/policy_create_params.py b/src/cloudflare/types/page_shield/policy_create_params.py index f4b1eab5e35..f7a5b57b858 100644 --- a/src/cloudflare/types/page_shield/policy_create_params.py +++ b/src/cloudflare/types/page_shield/policy_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __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 f95c8831b71..6bf5f9e8492 100644 --- a/src/cloudflare/types/page_shield/policy_create_response.py +++ b/src/cloudflare/types/page_shield/policy_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __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 0a725696316..e2198e892c7 100644 --- a/src/cloudflare/types/page_shield/policy_get_response.py +++ b/src/cloudflare/types/page_shield/policy_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __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 f944ab31ffa..05a3dbfe2c7 100644 --- a/src/cloudflare/types/page_shield/policy_list_response.py +++ b/src/cloudflare/types/page_shield/policy_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["PolicyListResponse", "PolicyListResponseItem"] diff --git a/src/cloudflare/types/page_shield/policy_update_params.py b/src/cloudflare/types/page_shield/policy_update_params.py index 56cf58d9b03..1423ba89023 100644 --- a/src/cloudflare/types/page_shield/policy_update_params.py +++ b/src/cloudflare/types/page_shield/policy_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __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 b2859ce3dd6..0baeb132339 100644 --- a/src/cloudflare/types/page_shield/policy_update_response.py +++ b/src/cloudflare/types/page_shield/policy_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["PolicyUpdateResponse"] diff --git a/src/cloudflare/types/page_shield_list_response.py b/src/cloudflare/types/page_shield_list_response.py index b7f012f4838..5d21704caaa 100644 --- a/src/cloudflare/types/page_shield_list_response.py +++ b/src/cloudflare/types/page_shield_list_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["PageShieldListResponse"] diff --git a/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_params.py b/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_params.py index 1d5dc2b05b3..5d5fd60e3ad 100644 --- a/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_params.py +++ b/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["PageShieldPageShieldUpdatePageShieldSettingsParams"] diff --git a/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_response.py b/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_response.py index d3d174fc818..2b8ede3943d 100644 --- a/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_response.py +++ b/src/cloudflare/types/page_shield_page_shield_update_page_shield_settings_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["PageShieldPageShieldUpdatePageShieldSettingsResponse"] diff --git a/src/cloudflare/types/page_shields/__init__.py b/src/cloudflare/types/page_shields/__init__.py index 9fbc1035b3b..078e7646ec3 100644 --- a/src/cloudflare/types/page_shields/__init__.py +++ b/src/cloudflare/types/page_shields/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .script_get_response import ScriptGetResponse as ScriptGetResponse from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse -from .script_page_shield_list_page_shield_scripts_params import ( - ScriptPageShieldListPageShieldScriptsParams as ScriptPageShieldListPageShieldScriptsParams, -) -from .script_page_shield_list_page_shield_scripts_response import ( - ScriptPageShieldListPageShieldScriptsResponse as ScriptPageShieldListPageShieldScriptsResponse, +from .connection_page_shield_list_page_shield_connections_response import ( + ConnectionPageShieldListPageShieldConnectionsResponse as ConnectionPageShieldListPageShieldConnectionsResponse, ) from .connection_page_shield_list_page_shield_connections_params import ( ConnectionPageShieldListPageShieldConnectionsParams as ConnectionPageShieldListPageShieldConnectionsParams, ) -from .connection_page_shield_list_page_shield_connections_response import ( - ConnectionPageShieldListPageShieldConnectionsResponse as ConnectionPageShieldListPageShieldConnectionsResponse, +from .script_get_response import ScriptGetResponse as ScriptGetResponse +from .script_page_shield_list_page_shield_scripts_response import ( + ScriptPageShieldListPageShieldScriptsResponse as ScriptPageShieldListPageShieldScriptsResponse, +) +from .script_page_shield_list_page_shield_scripts_params import ( + ScriptPageShieldListPageShieldScriptsParams as ScriptPageShieldListPageShieldScriptsParams, ) diff --git a/src/cloudflare/types/page_shields/connection_get_response.py b/src/cloudflare/types/page_shields/connection_get_response.py index 75231a73aaa..4f1c608f16a 100644 --- a/src/cloudflare/types/page_shields/connection_get_response.py +++ b/src/cloudflare/types/page_shields/connection_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConnectionGetResponse"] diff --git a/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_params.py b/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_params.py index e2c64dbb2f1..8927775c87f 100644 --- a/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_params.py +++ b/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["ConnectionPageShieldListPageShieldConnectionsParams"] diff --git a/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_response.py b/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_response.py index 51bd6887334..229d537b70a 100644 --- a/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_response.py +++ b/src/cloudflare/types/page_shields/connection_page_shield_list_page_shield_connections_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "ConnectionPageShieldListPageShieldConnectionsResponse", diff --git a/src/cloudflare/types/page_shields/script_get_response.py b/src/cloudflare/types/page_shields/script_get_response.py index bbd309ddd1e..647b90b5cb9 100644 --- a/src/cloudflare/types/page_shields/script_get_response.py +++ b/src/cloudflare/types/page_shields/script_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ScriptGetResponse", "Version"] diff --git a/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_params.py b/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_params.py index 9f3700888d1..86841080bbe 100644 --- a/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_params.py +++ b/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["ScriptPageShieldListPageShieldScriptsParams"] diff --git a/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_response.py b/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_response.py index 43fdff0087f..98558d3e45e 100644 --- a/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_response.py +++ b/src/cloudflare/types/page_shields/script_page_shield_list_page_shield_scripts_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["ScriptPageShieldListPageShieldScriptsResponse", "ScriptPageShieldListPageShieldScriptsResponseItem"] diff --git a/src/cloudflare/types/pagerule_create_params.py b/src/cloudflare/types/pagerule_create_params.py index b0115380185..2dd2bba2bdd 100644 --- a/src/cloudflare/types/pagerule_create_params.py +++ b/src/cloudflare/types/pagerule_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["PageruleCreateParams", "Action", "ActionValue", "Target", "TargetConstraint"] diff --git a/src/cloudflare/types/pagerule_create_response.py b/src/cloudflare/types/pagerule_create_response.py index d37fcc601a4..23833bd240e 100644 --- a/src/cloudflare/types/pagerule_create_response.py +++ b/src/cloudflare/types/pagerule_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["PageruleCreateResponse"] diff --git a/src/cloudflare/types/pagerule_delete_response.py b/src/cloudflare/types/pagerule_delete_response.py index 1bf601cf41d..741d7babee8 100644 --- a/src/cloudflare/types/pagerule_delete_response.py +++ b/src/cloudflare/types/pagerule_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from .._models import BaseModel +from ..types import shared __all__ = ["PageruleDeleteResponse"] diff --git a/src/cloudflare/types/pagerule_get_response.py b/src/cloudflare/types/pagerule_get_response.py index 26e57024f1a..d8262b78f28 100644 --- a/src/cloudflare/types/pagerule_get_response.py +++ b/src/cloudflare/types/pagerule_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["PageruleGetResponse"] diff --git a/src/cloudflare/types/pagerule_list_params.py b/src/cloudflare/types/pagerule_list_params.py index 565c2138053..5a6c09ca5f6 100644 --- a/src/cloudflare/types/pagerule_list_params.py +++ b/src/cloudflare/types/pagerule_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["PageruleListParams"] diff --git a/src/cloudflare/types/pagerule_list_response.py b/src/cloudflare/types/pagerule_list_response.py index 10fddb0bba7..cf0b682af71 100644 --- a/src/cloudflare/types/pagerule_list_response.py +++ b/src/cloudflare/types/pagerule_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "PageruleListResponse", diff --git a/src/cloudflare/types/pagerule_update_params.py b/src/cloudflare/types/pagerule_update_params.py index 21a27abde07..4db7b6ad8f9 100644 --- a/src/cloudflare/types/pagerule_update_params.py +++ b/src/cloudflare/types/pagerule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["PageruleUpdateParams", "Action", "ActionValue", "Target", "TargetConstraint"] diff --git a/src/cloudflare/types/pagerule_update_response.py b/src/cloudflare/types/pagerule_update_response.py index 4b3c023cda5..96e67d69b4e 100644 --- a/src/cloudflare/types/pagerule_update_response.py +++ b/src/cloudflare/types/pagerule_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["PageruleUpdateResponse"] diff --git a/src/cloudflare/types/pagerules/setting_available_page_rules_settings_list_available_page_rules_settings_response.py b/src/cloudflare/types/pagerules/setting_available_page_rules_settings_list_available_page_rules_settings_response.py index 6ee69c7f538..5c2da3356c7 100644 --- a/src/cloudflare/types/pagerules/setting_available_page_rules_settings_list_available_page_rules_settings_response.py +++ b/src/cloudflare/types/pagerules/setting_available_page_rules_settings_list_available_page_rules_settings_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse"] diff --git a/src/cloudflare/types/pages/__init__.py b/src/cloudflare/types/pages/__init__.py index b6d524bf2fd..42932c0efad 100644 --- a/src/cloudflare/types/pages/__init__.py +++ b/src/cloudflare/types/pages/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations +from .project_create_response import ProjectCreateResponse as ProjectCreateResponse +from .project_update_response import ProjectUpdateResponse as ProjectUpdateResponse +from .project_list_response import ProjectListResponse as ProjectListResponse from .project_get_response import ProjectGetResponse as ProjectGetResponse from .project_create_params import ProjectCreateParams as ProjectCreateParams -from .project_list_response import ProjectListResponse as ProjectListResponse from .project_update_params import ProjectUpdateParams as ProjectUpdateParams -from .project_create_response import ProjectCreateResponse as ProjectCreateResponse -from .project_update_response import ProjectUpdateResponse as ProjectUpdateResponse diff --git a/src/cloudflare/types/pages/project_create_params.py b/src/cloudflare/types/pages/project_create_params.py index 4ddfbd232dc..d71f79a011b 100644 --- a/src/cloudflare/types/pages/project_create_params.py +++ b/src/cloudflare/types/pages/project_create_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import Iterable, Optional -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Annotated, Literal +from typing import Optional, Iterable + +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 ...types import shared_params __all__ = [ "ProjectCreateParams", diff --git a/src/cloudflare/types/pages/project_create_response.py b/src/cloudflare/types/pages/project_create_response.py index c75f4b5c626..67a4139a31c 100644 --- a/src/cloudflare/types/pages/project_create_response.py +++ b/src/cloudflare/types/pages/project_create_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ProjectCreateResponse"] diff --git a/src/cloudflare/types/pages/project_get_response.py b/src/cloudflare/types/pages/project_get_response.py index 1be5084d31c..256d175a419 100644 --- a/src/cloudflare/types/pages/project_get_response.py +++ b/src/cloudflare/types/pages/project_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = [ "ProjectGetResponse", diff --git a/src/cloudflare/types/pages/project_list_response.py b/src/cloudflare/types/pages/project_list_response.py index c0cd321fdc9..9f9bb1700bb 100644 --- a/src/cloudflare/types/pages/project_list_response.py +++ b/src/cloudflare/types/pages/project_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "ProjectListResponse", diff --git a/src/cloudflare/types/pages/project_update_params.py b/src/cloudflare/types/pages/project_update_params.py index 39d0fe615bc..27fae47ff2d 100644 --- a/src/cloudflare/types/pages/project_update_params.py +++ b/src/cloudflare/types/pages/project_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ProjectUpdateParams"] diff --git a/src/cloudflare/types/pages/project_update_response.py b/src/cloudflare/types/pages/project_update_response.py index 4a8b7b2976b..73c150b5624 100644 --- a/src/cloudflare/types/pages/project_update_response.py +++ b/src/cloudflare/types/pages/project_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ProjectUpdateResponse"] diff --git a/src/cloudflare/types/pages/projects/__init__.py b/src/cloudflare/types/pages/projects/__init__.py index dc1ce9dc811..21ab1f66cf8 100644 --- a/src/cloudflare/types/pages/projects/__init__.py +++ b/src/cloudflare/types/pages/projects/__init__.py @@ -2,18 +2,18 @@ from __future__ import annotations -from .domain_get_response import DomainGetResponse as DomainGetResponse -from .domain_update_response import DomainUpdateResponse as DomainUpdateResponse +from .deployment_create_response import DeploymentCreateResponse as DeploymentCreateResponse +from .deployment_list_response import DeploymentListResponse as DeploymentListResponse from .deployment_get_response import DeploymentGetResponse as DeploymentGetResponse from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams -from .deployment_list_response import DeploymentListResponse as DeploymentListResponse -from .deployment_create_response import DeploymentCreateResponse as DeploymentCreateResponse -from .domain_pages_domains_add_domain_params import ( - DomainPagesDomainsAddDomainParams as DomainPagesDomainsAddDomainParams, -) +from .domain_update_response import DomainUpdateResponse as DomainUpdateResponse +from .domain_get_response import DomainGetResponse as DomainGetResponse from .domain_pages_domains_add_domain_response import ( DomainPagesDomainsAddDomainResponse as DomainPagesDomainsAddDomainResponse, ) from .domain_pages_domains_get_domains_response import ( DomainPagesDomainsGetDomainsResponse as DomainPagesDomainsGetDomainsResponse, ) +from .domain_pages_domains_add_domain_params import ( + DomainPagesDomainsAddDomainParams as DomainPagesDomainsAddDomainParams, +) diff --git a/src/cloudflare/types/pages/projects/deployment_create_params.py b/src/cloudflare/types/pages/projects/deployment_create_params.py index 85e09f5c691..3d66412cb31 100644 --- a/src/cloudflare/types/pages/projects/deployment_create_params.py +++ b/src/cloudflare/types/pages/projects/deployment_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["DeploymentCreateParams"] diff --git a/src/cloudflare/types/pages/projects/deployment_create_response.py b/src/cloudflare/types/pages/projects/deployment_create_response.py index 083d8b15191..084e4b503ce 100644 --- a/src/cloudflare/types/pages/projects/deployment_create_response.py +++ b/src/cloudflare/types/pages/projects/deployment_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ....types import shared __all__ = ["DeploymentCreateResponse", "DeploymentTrigger", "DeploymentTriggerMetadata", "Stage"] diff --git a/src/cloudflare/types/pages/projects/deployment_get_response.py b/src/cloudflare/types/pages/projects/deployment_get_response.py index 7465b2bab8e..f80b7fffbe7 100644 --- a/src/cloudflare/types/pages/projects/deployment_get_response.py +++ b/src/cloudflare/types/pages/projects/deployment_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ....types import shared __all__ = ["DeploymentGetResponse", "DeploymentTrigger", "DeploymentTriggerMetadata", "Stage"] diff --git a/src/cloudflare/types/pages/projects/deployment_list_response.py b/src/cloudflare/types/pages/projects/deployment_list_response.py index 8dd446eddf4..4e3662b2493 100644 --- a/src/cloudflare/types/pages/projects/deployment_list_response.py +++ b/src/cloudflare/types/pages/projects/deployment_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ....types import shared __all__ = [ "DeploymentListResponse", diff --git a/src/cloudflare/types/pages/projects/deployments/histories/log_pages_deployment_get_deployment_logs_response.py b/src/cloudflare/types/pages/projects/deployments/histories/log_pages_deployment_get_deployment_logs_response.py index 5de1bd07370..300b1c030dd 100644 --- a/src/cloudflare/types/pages/projects/deployments/histories/log_pages_deployment_get_deployment_logs_response.py +++ b/src/cloudflare/types/pages/projects/deployments/histories/log_pages_deployment_get_deployment_logs_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ......types import shared __all__ = ["LogPagesDeploymentGetDeploymentLogsResponse"] diff --git a/src/cloudflare/types/pages/projects/deployments/retry_pages_deployment_retry_deployment_response.py b/src/cloudflare/types/pages/projects/deployments/retry_pages_deployment_retry_deployment_response.py index ee3df923db6..bc22e2d780f 100644 --- a/src/cloudflare/types/pages/projects/deployments/retry_pages_deployment_retry_deployment_response.py +++ b/src/cloudflare/types/pages/projects/deployments/retry_pages_deployment_retry_deployment_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from .....types import shared __all__ = ["RetryPagesDeploymentRetryDeploymentResponse", "DeploymentTrigger", "DeploymentTriggerMetadata", "Stage"] diff --git a/src/cloudflare/types/pages/projects/deployments/rollback_pages_deployment_rollback_deployment_response.py b/src/cloudflare/types/pages/projects/deployments/rollback_pages_deployment_rollback_deployment_response.py index 781f8961e30..24ef72aa37b 100644 --- a/src/cloudflare/types/pages/projects/deployments/rollback_pages_deployment_rollback_deployment_response.py +++ b/src/cloudflare/types/pages/projects/deployments/rollback_pages_deployment_rollback_deployment_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from .....types import shared __all__ = [ "RollbackPagesDeploymentRollbackDeploymentResponse", diff --git a/src/cloudflare/types/pages/projects/domain_get_response.py b/src/cloudflare/types/pages/projects/domain_get_response.py index 019f56121e8..22d1a69c989 100644 --- a/src/cloudflare/types/pages/projects/domain_get_response.py +++ b/src/cloudflare/types/pages/projects/domain_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["DomainGetResponse"] diff --git a/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_params.py b/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_params.py index b0e48641375..b12996dbdbb 100644 --- a/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_params.py +++ b/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["DomainPagesDomainsAddDomainParams"] diff --git a/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_response.py b/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_response.py index 115ed5e2ab4..70e8ab7ebe3 100644 --- a/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_response.py +++ b/src/cloudflare/types/pages/projects/domain_pages_domains_add_domain_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["DomainPagesDomainsAddDomainResponse"] diff --git a/src/cloudflare/types/pages/projects/domain_pages_domains_get_domains_response.py b/src/cloudflare/types/pages/projects/domain_pages_domains_get_domains_response.py index 01ea1ddc94c..e434a6d167f 100644 --- a/src/cloudflare/types/pages/projects/domain_pages_domains_get_domains_response.py +++ b/src/cloudflare/types/pages/projects/domain_pages_domains_get_domains_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["DomainPagesDomainsGetDomainsResponse"] diff --git a/src/cloudflare/types/pages/projects/domain_update_response.py b/src/cloudflare/types/pages/projects/domain_update_response.py index 762310e9e93..64bf724c8ec 100644 --- a/src/cloudflare/types/pages/projects/domain_update_response.py +++ b/src/cloudflare/types/pages/projects/domain_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["DomainUpdateResponse"] diff --git a/src/cloudflare/types/pcap_get_response.py b/src/cloudflare/types/pcap_get_response.py index 7df3d72f900..d5b4e51c768 100644 --- a/src/cloudflare/types/pcap_get_response.py +++ b/src/cloudflare/types/pcap_get_response.py @@ -1,20 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = [ "PcapGetResponse", - "_803RfBvJPcapsResponseSimple", - "_803RfBvJPcapsResponseSimpleFilterV1", - "_803RfBvJPcapsResponseFull", - "_803RfBvJPcapsResponseFullFilterV1", + "FZsXwDu1PcapsResponseSimple", + "FZsXwDu1PcapsResponseSimpleFilterV1", + "FZsXwDu1PcapsResponseFull", + "FZsXwDu1PcapsResponseFullFilterV1", ] -class _803RfBvJPcapsResponseSimpleFilterV1(BaseModel): +class FZsXwDu1PcapsResponseSimpleFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -31,11 +36,11 @@ class _803RfBvJPcapsResponseSimpleFilterV1(BaseModel): """The source port of the packet.""" -class _803RfBvJPcapsResponseSimple(BaseModel): +class FZsXwDu1PcapsResponseSimple(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" - filter_v1: Optional[_803RfBvJPcapsResponseSimpleFilterV1] = None + filter_v1: Optional[FZsXwDu1PcapsResponseSimpleFilterV1] = None """The packet capture filter. When this field is empty, all packets are captured.""" status: Optional[ @@ -62,7 +67,7 @@ class _803RfBvJPcapsResponseSimple(BaseModel): """ -class _803RfBvJPcapsResponseFullFilterV1(BaseModel): +class FZsXwDu1PcapsResponseFullFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -79,7 +84,7 @@ class _803RfBvJPcapsResponseFullFilterV1(BaseModel): """The source port of the packet.""" -class _803RfBvJPcapsResponseFull(BaseModel): +class FZsXwDu1PcapsResponseFull(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" @@ -105,7 +110,7 @@ class _803RfBvJPcapsResponseFull(BaseModel): This field only applies to `full` packet captures. """ - filter_v1: Optional[_803RfBvJPcapsResponseFullFilterV1] = None + filter_v1: Optional[FZsXwDu1PcapsResponseFullFilterV1] = None """The packet capture filter. When this field is empty, all packets are captured.""" status: Optional[ @@ -132,4 +137,4 @@ class _803RfBvJPcapsResponseFull(BaseModel): """ -PcapGetResponse = Union[_803RfBvJPcapsResponseSimple, _803RfBvJPcapsResponseFull] +PcapGetResponse = Union[FZsXwDu1PcapsResponseSimple, FZsXwDu1PcapsResponseFull] diff --git a/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_params.py b/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_params.py index e1e9bae6667..e83c54f9b48 100644 --- a/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_params.py +++ b/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_params.py @@ -2,19 +2,24 @@ from __future__ import annotations -from typing import Union -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = [ "PcapMagicPcapCollectionCreatePcapRequestParams", - "_803RfBvJPcapsRequestSimple", - "_803RfBvJPcapsRequestSimpleFilterV1", - "_803RfBvJPcapsRequestFull", - "_803RfBvJPcapsRequestFullFilterV1", + "FZsXwDu1PcapsRequestSimple", + "FZsXwDu1PcapsRequestSimpleFilterV1", + "FZsXwDu1PcapsRequestFull", + "FZsXwDu1PcapsRequestFullFilterV1", ] -class _803RfBvJPcapsRequestSimple(TypedDict, total=False): +class FZsXwDu1PcapsRequestSimple(TypedDict, total=False): packet_limit: Required[float] """The limit of packets contained in a packet capture.""" @@ -31,11 +36,11 @@ class _803RfBvJPcapsRequestSimple(TypedDict, total=False): non-sampled packets. """ - filter_v1: _803RfBvJPcapsRequestSimpleFilterV1 + filter_v1: FZsXwDu1PcapsRequestSimpleFilterV1 """The packet capture filter. When this field is empty, all packets are captured.""" -class _803RfBvJPcapsRequestSimpleFilterV1(TypedDict, total=False): +class FZsXwDu1PcapsRequestSimpleFilterV1(TypedDict, total=False): destination_address: str """The destination IP address of the packet.""" @@ -52,7 +57,7 @@ class _803RfBvJPcapsRequestSimpleFilterV1(TypedDict, total=False): """The source port of the packet.""" -class _803RfBvJPcapsRequestFull(TypedDict, total=False): +class FZsXwDu1PcapsRequestFull(TypedDict, total=False): colo_name: Required[str] """The name of the data center used for the packet capture. @@ -82,14 +87,14 @@ class _803RfBvJPcapsRequestFull(TypedDict, total=False): This field only applies to `full` packet captures. """ - filter_v1: _803RfBvJPcapsRequestFullFilterV1 + filter_v1: FZsXwDu1PcapsRequestFullFilterV1 """The packet capture filter. When this field is empty, all packets are captured.""" packet_limit: float """The limit of packets contained in a packet capture.""" -class _803RfBvJPcapsRequestFullFilterV1(TypedDict, total=False): +class FZsXwDu1PcapsRequestFullFilterV1(TypedDict, total=False): destination_address: str """The destination IP address of the packet.""" @@ -106,4 +111,4 @@ class _803RfBvJPcapsRequestFullFilterV1(TypedDict, total=False): """The source port of the packet.""" -PcapMagicPcapCollectionCreatePcapRequestParams = Union[_803RfBvJPcapsRequestSimple, _803RfBvJPcapsRequestFull] +PcapMagicPcapCollectionCreatePcapRequestParams = Union[FZsXwDu1PcapsRequestSimple, FZsXwDu1PcapsRequestFull] diff --git a/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_response.py b/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_response.py index 38143f97645..044bb682cf0 100644 --- a/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_response.py +++ b/src/cloudflare/types/pcap_magic_pcap_collection_create_pcap_request_response.py @@ -1,20 +1,25 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = [ "PcapMagicPcapCollectionCreatePcapRequestResponse", - "_803RfBvJPcapsResponseSimple", - "_803RfBvJPcapsResponseSimpleFilterV1", - "_803RfBvJPcapsResponseFull", - "_803RfBvJPcapsResponseFullFilterV1", + "FZsXwDu1PcapsResponseSimple", + "FZsXwDu1PcapsResponseSimpleFilterV1", + "FZsXwDu1PcapsResponseFull", + "FZsXwDu1PcapsResponseFullFilterV1", ] -class _803RfBvJPcapsResponseSimpleFilterV1(BaseModel): +class FZsXwDu1PcapsResponseSimpleFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -31,11 +36,11 @@ class _803RfBvJPcapsResponseSimpleFilterV1(BaseModel): """The source port of the packet.""" -class _803RfBvJPcapsResponseSimple(BaseModel): +class FZsXwDu1PcapsResponseSimple(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" - filter_v1: Optional[_803RfBvJPcapsResponseSimpleFilterV1] = None + filter_v1: Optional[FZsXwDu1PcapsResponseSimpleFilterV1] = None """The packet capture filter. When this field is empty, all packets are captured.""" status: Optional[ @@ -62,7 +67,7 @@ class _803RfBvJPcapsResponseSimple(BaseModel): """ -class _803RfBvJPcapsResponseFullFilterV1(BaseModel): +class FZsXwDu1PcapsResponseFullFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -79,7 +84,7 @@ class _803RfBvJPcapsResponseFullFilterV1(BaseModel): """The source port of the packet.""" -class _803RfBvJPcapsResponseFull(BaseModel): +class FZsXwDu1PcapsResponseFull(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" @@ -105,7 +110,7 @@ class _803RfBvJPcapsResponseFull(BaseModel): This field only applies to `full` packet captures. """ - filter_v1: Optional[_803RfBvJPcapsResponseFullFilterV1] = None + filter_v1: Optional[FZsXwDu1PcapsResponseFullFilterV1] = None """The packet capture filter. When this field is empty, all packets are captured.""" status: Optional[ @@ -132,4 +137,4 @@ class _803RfBvJPcapsResponseFull(BaseModel): """ -PcapMagicPcapCollectionCreatePcapRequestResponse = Union[_803RfBvJPcapsResponseSimple, _803RfBvJPcapsResponseFull] +PcapMagicPcapCollectionCreatePcapRequestResponse = Union[FZsXwDu1PcapsResponseSimple, FZsXwDu1PcapsResponseFull] diff --git a/src/cloudflare/types/pcap_magic_pcap_collection_list_packet_capture_requests_response.py b/src/cloudflare/types/pcap_magic_pcap_collection_list_packet_capture_requests_response.py index 420e71eef9e..2c688fa2a0e 100644 --- a/src/cloudflare/types/pcap_magic_pcap_collection_list_packet_capture_requests_response.py +++ b/src/cloudflare/types/pcap_magic_pcap_collection_list_packet_capture_requests_response.py @@ -1,21 +1,26 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +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 +from ..types import shared __all__ = [ "PcapMagicPcapCollectionListPacketCaptureRequestsResponse", "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem", - "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimple", - "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimpleFilterV1", - "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFull", - "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFullFilterV1", + "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimple", + "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimpleFilterV1", + "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFull", + "PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFullFilterV1", ] -class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimpleFilterV1(BaseModel): +class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimpleFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -32,12 +37,12 @@ class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcaps """The source port of the packet.""" -class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimple(BaseModel): +class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimple(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" filter_v1: Optional[ - PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimpleFilterV1 + PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimpleFilterV1 ] = None """The packet capture filter. When this field is empty, all packets are captured.""" @@ -65,7 +70,7 @@ class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcaps """ -class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFullFilterV1(BaseModel): +class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFullFilterV1(BaseModel): destination_address: Optional[str] = None """The destination IP address of the packet.""" @@ -82,7 +87,7 @@ class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcaps """The source port of the packet.""" -class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFull(BaseModel): +class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFull(BaseModel): id: Optional[str] = None """The ID for the packet capture.""" @@ -109,7 +114,7 @@ class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcaps """ filter_v1: Optional[ - PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFullFilterV1 + PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFullFilterV1 ] = None """The packet capture filter. When this field is empty, all packets are captured.""" @@ -138,8 +143,8 @@ class PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcaps PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem = Union[ - PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseSimple, - PcapMagicPcapCollectionListPacketCaptureRequestsResponseItem_803RfBvJPcapsResponseFull, + PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseSimple, + PcapMagicPcapCollectionListPacketCaptureRequestsResponseItemFZsXwDu1PcapsResponseFull, ] PcapMagicPcapCollectionListPacketCaptureRequestsResponse = List[ diff --git a/src/cloudflare/types/pcaps/__init__.py b/src/cloudflare/types/pcaps/__init__.py index 8c4ba26419b..728f3fbd3f4 100644 --- a/src/cloudflare/types/pcaps/__init__.py +++ b/src/cloudflare/types/pcaps/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations +from .ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response import ( + OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse as OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, +) from .ownership_magic_pcap_collection_list_pca_ps_bucket_ownership_response import ( OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse as OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, ) from .ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params import ( OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesParams as OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesParams, ) -from .ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response import ( - OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse as OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, -) diff --git a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params.py b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params.py index 5e8f0c2e05e..55273af73ad 100644 --- a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params.py +++ b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesParams"] diff --git a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response.py b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response.py index 7508baca9c9..b7493634ac7 100644 --- a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response.py +++ b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional 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 +from ...types import shared __all__ = ["OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse"] diff --git a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_list_pca_ps_bucket_ownership_response.py b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_list_pca_ps_bucket_ownership_response.py index e08ae90291b..c00571017a0 100644 --- a/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_list_pca_ps_bucket_ownership_response.py +++ b/src/cloudflare/types/pcaps/ownership_magic_pcap_collection_list_pca_ps_bucket_ownership_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional 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 +from ...types import shared __all__ = [ "OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse", diff --git a/src/cloudflare/types/pcaps/ownerships/__init__.py b/src/cloudflare/types/pcaps/ownerships/__init__.py index de2864637db..333866d0088 100644 --- a/src/cloudflare/types/pcaps/ownerships/__init__.py +++ b/src/cloudflare/types/pcaps/ownerships/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params import ( - ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesParams as ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesParams, -) from .validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_response import ( ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse as ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse, ) +from .validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params import ( + ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesParams as ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesParams, +) diff --git a/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params.py b/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params.py index 1559de38c1f..0bd420b15a1 100644 --- a/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params.py +++ b/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesParams"] diff --git a/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_response.py b/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_response.py index b2aef0cb4f8..79baadf6afb 100644 --- a/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_response.py +++ b/src/cloudflare/types/pcaps/ownerships/validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional 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 +from ....types import shared __all__ = ["ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse"] diff --git a/src/cloudflare/types/purge_cach_zone_purge_params.py b/src/cloudflare/types/purge_cach_zone_purge_params.py index d2a093ef258..a13580d81c8 100644 --- a/src/cloudflare/types/purge_cach_zone_purge_params.py +++ b/src/cloudflare/types/purge_cach_zone_purge_params.py @@ -2,41 +2,36 @@ from __future__ import annotations -from typing import List, Union from typing_extensions import TypedDict -__all__ = [ - "PurgeCachZonePurgeParams", - "CkpEqDfYFlex", - "CkpEqDfYEverything", - "CkpEqDfYFiles", - "CkpEqDfYFilesFile", - "CkpEqDfYFilesFileCkpEqDfYURLAndHeaders", -] +from typing import List, 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 ..types import shared_params +__all__ = ["PurgeCachZonePurgeParams", "_7mnXeLx2Flex", "_7mnXeLx2Everything", "_7mnXeLx2Files", "7mnXeLx2FilesFile", "7mnXeLx2FilesFile_7mnXeLx2URLAndHeaders"] -class CkpEqDfYFlex(TypedDict, total=False): +class _7mnXeLx2Flex(TypedDict, total=False): hosts: List[str] prefixes: List[str] tags: List[str] - -class CkpEqDfYEverything(TypedDict, total=False): +class _7mnXeLx2Everything(TypedDict, total=False): purge_everything: bool +class _7mnXeLx2Files(TypedDict, total=False): + files: List[7mnXeLx2FilesFile] -class CkpEqDfYFiles(TypedDict, total=False): - files: List[CkpEqDfYFilesFile] - - -class CkpEqDfYFilesFileCkpEqDfYURLAndHeaders(TypedDict, total=False): +class 7mnXeLx2FilesFile_7mnXeLx2URLAndHeaders(TypedDict, total=False): headers: object url: str +7mnXeLx2FilesFile = Union[str, 7mnXeLx2FilesFile_7mnXeLx2URLAndHeaders] -CkpEqDfYFilesFile = Union[str, CkpEqDfYFilesFileCkpEqDfYURLAndHeaders] - -PurgeCachZonePurgeParams = Union[CkpEqDfYFlex, CkpEqDfYEverything, CkpEqDfYFiles] +PurgeCachZonePurgeParams = Union[_7mnXeLx2Flex, _7mnXeLx2Everything, _7mnXeLx2Files] \ No newline at end of file diff --git a/src/cloudflare/types/purge_cach_zone_purge_response.py b/src/cloudflare/types/purge_cach_zone_purge_response.py index bfaeaab85f7..1988843e68b 100644 --- a/src/cloudflare/types/purge_cach_zone_purge_response.py +++ b/src/cloudflare/types/purge_cach_zone_purge_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from .._models import BaseModel +from ..types import shared __all__ = ["PurgeCachZonePurgeResponse"] diff --git a/src/cloudflare/types/r2/__init__.py b/src/cloudflare/types/r2/__init__.py index f27ee62c900..97452179d45 100644 --- a/src/cloudflare/types/r2/__init__.py +++ b/src/cloudflare/types/r2/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .bucket_list_params import BucketListParams as BucketListParams +from .bucket_create_response import BucketCreateResponse as BucketCreateResponse +from .bucket_list_response import BucketListResponse as BucketListResponse from .bucket_get_response import BucketGetResponse as BucketGetResponse from .bucket_create_params import BucketCreateParams as BucketCreateParams -from .bucket_list_response import BucketListResponse as BucketListResponse -from .bucket_create_response import BucketCreateResponse as BucketCreateResponse +from .bucket_list_params import BucketListParams as BucketListParams diff --git a/src/cloudflare/types/r2/bucket_create_params.py b/src/cloudflare/types/r2/bucket_create_params.py index 467dc39ec39..3890e1b6e43 100644 --- a/src/cloudflare/types/r2/bucket_create_params.py +++ b/src/cloudflare/types/r2/bucket_create_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated 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 ...types import shared_params + __all__ = ["BucketCreateParams"] diff --git a/src/cloudflare/types/r2/bucket_create_response.py b/src/cloudflare/types/r2/bucket_create_response.py index 33c3ebb9dd2..bad4de0861a 100644 --- a/src/cloudflare/types/r2/bucket_create_response.py +++ b/src/cloudflare/types/r2/bucket_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["BucketCreateResponse"] diff --git a/src/cloudflare/types/r2/bucket_get_response.py b/src/cloudflare/types/r2/bucket_get_response.py index 9eef7c52708..b3268724599 100644 --- a/src/cloudflare/types/r2/bucket_get_response.py +++ b/src/cloudflare/types/r2/bucket_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["BucketGetResponse"] diff --git a/src/cloudflare/types/r2/bucket_list_params.py b/src/cloudflare/types/r2/bucket_list_params.py index e8433dc06a8..fa5f4949023 100644 --- a/src/cloudflare/types/r2/bucket_list_params.py +++ b/src/cloudflare/types/r2/bucket_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["BucketListParams"] diff --git a/src/cloudflare/types/r2/bucket_list_response.py b/src/cloudflare/types/r2/bucket_list_response.py index 90783819237..d0ccac33c29 100644 --- a/src/cloudflare/types/r2/bucket_list_response.py +++ b/src/cloudflare/types/r2/bucket_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["BucketListResponse", "BucketListResponseItem"] diff --git a/src/cloudflare/types/radar/__init__.py b/src/cloudflare/types/radar/__init__.py index ae5e03968c7..ac91a99f43b 100644 --- a/src/cloudflare/types/radar/__init__.py +++ b/src/cloudflare/types/radar/__init__.py @@ -2,31 +2,31 @@ from __future__ import annotations -from .http_oss_params import HTTPOssParams as HTTPOssParams -from .entity_ips_params import EntityIPsParams as EntityIPsParams -from .http_oss_response import HTTPOssResponse as HTTPOssResponse -from .dataset_get_params import DatasetGetParams as DatasetGetParams +from .dataset_list_response import DatasetListResponse as DatasetListResponse +from .dataset_get_response import DatasetGetResponse as DatasetGetResponse from .dataset_list_params import DatasetListParams as DatasetListParams +from .dataset_get_params import DatasetGetParams as DatasetGetParams +from .connection_tampering_summary_response import ( + ConnectionTamperingSummaryResponse as ConnectionTamperingSummaryResponse, +) +from .connection_tampering_summary_params import ConnectionTamperingSummaryParams as ConnectionTamperingSummaryParams from .entity_ips_response import EntityIPsResponse as EntityIPsResponse -from .dataset_get_response import DatasetGetResponse as DatasetGetResponse -from .http_browsers_params import HTTPBrowsersParams as HTTPBrowsersParams -from .dataset_list_response import DatasetListResponse as DatasetListResponse -from .http_browsers_response import HTTPBrowsersResponse as HTTPBrowsersResponse -from .http_bot_classes_params import HTTPBotClassesParams as HTTPBotClassesParams -from .http_ip_versions_params import HTTPIPVersionsParams as HTTPIPVersionsParams -from .http_device_types_params import HTTPDeviceTypesParams as HTTPDeviceTypesParams +from .entity_ips_params import EntityIPsParams as EntityIPsParams from .http_bot_classes_response import HTTPBotClassesResponse as HTTPBotClassesResponse -from .http_http_versions_params import HTTPHTTPVersionsParams as HTTPHTTPVersionsParams -from .http_ip_versions_response import HTTPIPVersionsResponse as HTTPIPVersionsResponse +from .http_browser_families_response import HTTPBrowserFamiliesResponse as HTTPBrowserFamiliesResponse +from .http_browsers_response import HTTPBrowsersResponse as HTTPBrowsersResponse from .http_device_types_response import HTTPDeviceTypesResponse as HTTPDeviceTypesResponse -from .http_http_protocols_params import HTTPHTTPProtocolsParams as HTTPHTTPProtocolsParams +from .http_http_protocols_response import HTTPHTTPProtocolsResponse as HTTPHTTPProtocolsResponse from .http_http_versions_response import HTTPHTTPVersionsResponse as HTTPHTTPVersionsResponse -from .traffic_anomaly_list_params import TrafficAnomalyListParams as TrafficAnomalyListParams +from .http_ip_versions_response import HTTPIPVersionsResponse as HTTPIPVersionsResponse +from .http_oss_response import HTTPOssResponse as HTTPOssResponse +from .http_bot_classes_params import HTTPBotClassesParams as HTTPBotClassesParams from .http_browser_families_params import HTTPBrowserFamiliesParams as HTTPBrowserFamiliesParams -from .http_http_protocols_response import HTTPHTTPProtocolsResponse as HTTPHTTPProtocolsResponse +from .http_browsers_params import HTTPBrowsersParams as HTTPBrowsersParams +from .http_device_types_params import HTTPDeviceTypesParams as HTTPDeviceTypesParams +from .http_http_protocols_params import HTTPHTTPProtocolsParams as HTTPHTTPProtocolsParams +from .http_http_versions_params import HTTPHTTPVersionsParams as HTTPHTTPVersionsParams +from .http_ip_versions_params import HTTPIPVersionsParams as HTTPIPVersionsParams +from .http_oss_params import HTTPOssParams as HTTPOssParams from .traffic_anomaly_list_response import TrafficAnomalyListResponse as TrafficAnomalyListResponse -from .http_browser_families_response import HTTPBrowserFamiliesResponse as HTTPBrowserFamiliesResponse -from .connection_tampering_summary_params import ConnectionTamperingSummaryParams as ConnectionTamperingSummaryParams -from .connection_tampering_summary_response import ( - ConnectionTamperingSummaryResponse as ConnectionTamperingSummaryResponse, -) +from .traffic_anomaly_list_params import TrafficAnomalyListParams as TrafficAnomalyListParams diff --git a/src/cloudflare/types/radar/annotations/__init__.py b/src/cloudflare/types/radar/annotations/__init__.py index 7e44aeff068..748d5c3c774 100644 --- a/src/cloudflare/types/radar/annotations/__init__.py +++ b/src/cloudflare/types/radar/annotations/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .outage_list_params import OutageListParams as OutageListParams from .outage_list_response import OutageListResponse as OutageListResponse +from .outage_list_params import OutageListParams as OutageListParams diff --git a/src/cloudflare/types/radar/annotations/outage_list_params.py b/src/cloudflare/types/radar/annotations/outage_list_params.py index 11cab306c73..5ffba254def 100644 --- a/src/cloudflare/types/radar/annotations/outage_list_params.py +++ b/src/cloudflare/types/radar/annotations/outage_list_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["OutageListParams"] diff --git a/src/cloudflare/types/radar/annotations/outage_list_response.py b/src/cloudflare/types/radar/annotations/outage_list_response.py index a6648f3e7fc..f5538510328 100644 --- a/src/cloudflare/types/radar/annotations/outage_list_response.py +++ b/src/cloudflare/types/radar/annotations/outage_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = [ "OutageListResponse", diff --git a/src/cloudflare/types/radar/annotations/outages/__init__.py b/src/cloudflare/types/radar/annotations/outages/__init__.py index 69083e1b782..490bd12432c 100644 --- a/src/cloudflare/types/radar/annotations/outages/__init__.py +++ b/src/cloudflare/types/radar/annotations/outages/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .location_list_params import LocationListParams as LocationListParams from .location_list_response import LocationListResponse as LocationListResponse +from .location_list_params import LocationListParams as LocationListParams diff --git a/src/cloudflare/types/radar/annotations/outages/location_list_params.py b/src/cloudflare/types/radar/annotations/outages/location_list_params.py index 3072811aa23..258546cd4c7 100644 --- a/src/cloudflare/types/radar/annotations/outages/location_list_params.py +++ b/src/cloudflare/types/radar/annotations/outages/location_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/annotations/outages/location_list_response.py b/src/cloudflare/types/radar/annotations/outages/location_list_response.py index ba2bd4d37f8..ccca1df9fd3 100644 --- a/src/cloudflare/types/radar/annotations/outages/location_list_response.py +++ b/src/cloudflare/types/radar/annotations/outages/location_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["LocationListResponse", "Annotation"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/__init__.py b/src/cloudflare/types/radar/as112/timeseries_groups/__init__.py index 27bfe1afd16..eca4177dbb7 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/__init__.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .edn_list_params import EdnListParams as EdnListParams -from .edn_list_response import EdnListResponse as EdnListResponse -from .dnssec_list_params import DNSSECListParams as DNSSECListParams from .dnssec_list_response import DNSSECListResponse as DNSSECListResponse -from .ip_version_list_params import IPVersionListParams as IPVersionListParams +from .dnssec_list_params import DNSSECListParams as DNSSECListParams +from .edn_list_response import EdnListResponse as EdnListResponse +from .edn_list_params import EdnListParams as EdnListParams from .ip_version_list_response import IPVersionListResponse as IPVersionListResponse +from .ip_version_list_params import IPVersionListParams as IPVersionListParams diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_params.py b/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_params.py index d5bb9d338b3..891d0fc9bfe 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["DNSSECListParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_response.py b/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_response.py index ff64a0fdee2..0178a8caca8 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/dnssec_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["DNSSECListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_params.py b/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_params.py index f49465ed6d4..d860fe2453a 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["EdnListParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_response.py b/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_response.py index ded649c9e2d..a8b1e3b0e83 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/edn_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["EdnListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_params.py b/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_params.py index 6185634ce6f..9651d34585b 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["IPVersionListParams"] diff --git a/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_response.py b/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_response.py index e2eabd02256..e89d0faa19c 100644 --- a/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_response.py +++ b/src/cloudflare/types/radar/as112/timeseries_groups/ip_version_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["IPVersionListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/__init__.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/__init__.py index 99f2d52cd55..77ccf502a4a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .vector_list_params import VectorListParams as VectorListParams -from .industry_list_params import IndustryListParams as IndustryListParams -from .protocol_list_params import ProtocolListParams as ProtocolListParams -from .vector_list_response import VectorListResponse as VectorListResponse -from .vertical_list_params import VerticalListParams as VerticalListParams from .industry_list_response import IndustryListResponse as IndustryListResponse +from .industry_list_params import IndustryListParams as IndustryListParams +from .ip_version_list_response import IPVersionListResponse as IPVersionListResponse from .ip_version_list_params import IPVersionListParams as IPVersionListParams from .protocol_list_response import ProtocolListResponse as ProtocolListResponse +from .protocol_list_params import ProtocolListParams as ProtocolListParams +from .vector_list_response import VectorListResponse as VectorListResponse +from .vector_list_params import VectorListParams as VectorListParams from .vertical_list_response import VerticalListResponse as VerticalListResponse -from .ip_version_list_response import IPVersionListResponse as IPVersionListResponse +from .vertical_list_params import VerticalListParams as VerticalListParams diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_params.py index 8f209df6f04..b177e013fc6 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["IndustryListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_response.py index 0cdfb9fcc10..3d40eae78e0 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/industry_list_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ......types import shared +from typing import TYPE_CHECKING __all__ = ["IndustryListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_params.py index 0de724be1dd..dadf2d1ef03 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["IPVersionListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_response.py index 618b2ae24dc..26c64c12fe1 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/ip_version_list_response.py @@ -2,9 +2,11 @@ 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 +from ......types import shared __all__ = ["IPVersionListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_params.py index bf807cca960..2ff5178e052 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["ProtocolListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_response.py index d9b9ea4f77d..83a3fb8e50b 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/protocol_list_response.py @@ -2,9 +2,11 @@ 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 +from ......types import shared __all__ = ["ProtocolListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_params.py index 2f2dd1ddd48..8c2b3167fd1 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["VectorListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_response.py index 5c562bb5e94..45629ff106a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vector_list_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ......types import shared +from typing import TYPE_CHECKING __all__ = ["VectorListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_params.py index 3b88408aa83..4b92c99b0bc 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["VerticalListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_response.py index c2b2f0b4d94..c6bb40a8f88 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_groups/vertical_list_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ......types import shared +from typing import TYPE_CHECKING __all__ = ["VerticalListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/__init__.py b/src/cloudflare/types/radar/attacks/layer3/top/__init__.py index 14b41f31109..93b077f4170 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .attack_list_params import AttackListParams as AttackListParams from .attack_list_response import AttackListResponse as AttackListResponse -from .industry_list_params import IndustryListParams as IndustryListParams -from .vertical_list_params import VerticalListParams as VerticalListParams +from .attack_list_params import AttackListParams as AttackListParams from .industry_list_response import IndustryListResponse as IndustryListResponse +from .industry_list_params import IndustryListParams as IndustryListParams from .vertical_list_response import VerticalListResponse as VerticalListResponse +from .vertical_list_params import VerticalListParams as VerticalListParams diff --git a/src/cloudflare/types/radar/attacks/layer3/top/attack_list_params.py b/src/cloudflare/types/radar/attacks/layer3/top/attack_list_params.py index 16fddd7fae0..62728405a71 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/attack_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/attack_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["AttackListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/attack_list_response.py b/src/cloudflare/types/radar/attacks/layer3/top/attack_list_response.py index 3a32d7643b7..8fea43ea160 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/attack_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/attack_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["AttackListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/industry_list_params.py b/src/cloudflare/types/radar/attacks/layer3/top/industry_list_params.py index 087791ed0c5..d2e1a120586 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/industry_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/industry_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["IndustryListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/industry_list_response.py b/src/cloudflare/types/radar/attacks/layer3/top/industry_list_response.py index 4aee4c62927..38dd6176f16 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/industry_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/industry_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "IndustryListResponse", diff --git a/src/cloudflare/types/radar/attacks/layer3/top/locations/__init__.py b/src/cloudflare/types/radar/attacks/layer3/top/locations/__init__.py index 2eedefdcc84..f24849014f0 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/locations/__init__.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/locations/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .origin_list_params import OriginListParams as OriginListParams -from .target_list_params import TargetListParams as TargetListParams from .origin_list_response import OriginListResponse as OriginListResponse +from .origin_list_params import OriginListParams as OriginListParams from .target_list_response import TargetListResponse as TargetListResponse +from .target_list_params import TargetListParams as TargetListParams diff --git a/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_params.py b/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_params.py index 750b9ce0cce..2017a214921 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_params.py @@ -2,12 +2,20 @@ 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 +from .......types import shared_params + __all__ = ["OriginListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_response.py b/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_response.py index 3e70a2da336..480e7d58579 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/locations/origin_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .......types import shared __all__ = ["OriginListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_params.py b/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_params.py index 7f33cdd0216..fb9945a43fc 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_params.py @@ -2,12 +2,20 @@ 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 +from .......types import shared_params + __all__ = ["TargetListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_response.py b/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_response.py index 8eb7a45b4b3..c97be18e271 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/locations/target_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .......types import shared __all__ = ["TargetListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_params.py b/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_params.py index 8d5552121a6..a0da63f54aa 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["VerticalListParams"] diff --git a/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_response.py b/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_response.py index 862655f07de..b653d6f3226 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_response.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/vertical_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "VerticalListResponse", diff --git a/src/cloudflare/types/radar/bgp/__init__.py b/src/cloudflare/types/radar/bgp/__init__.py index 107bf075b2e..52d3bda7daf 100644 --- a/src/cloudflare/types/radar/bgp/__init__.py +++ b/src/cloudflare/types/radar/bgp/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .route_moas_params import RouteMoasParams as RouteMoasParams -from .route_stats_params import RouteStatsParams as RouteStatsParams -from .route_moas_response import RouteMoasResponse as RouteMoasResponse -from .route_pfx2as_params import RoutePfx2asParams as RoutePfx2asParams -from .hijack_events_params import HijackEventsParams as HijackEventsParams -from .route_stats_response import RouteStatsResponse as RouteStatsResponse +from .timesery_list_response import TimeseryListResponse as TimeseryListResponse from .timesery_list_params import TimeseryListParams as TimeseryListParams -from .route_pfx2as_response import RoutePfx2asResponse as RoutePfx2asResponse from .hijack_events_response import HijackEventsResponse as HijackEventsResponse -from .timesery_list_response import TimeseryListResponse as TimeseryListResponse +from .hijack_events_params import HijackEventsParams as HijackEventsParams +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_moas_params import RouteMoasParams as RouteMoasParams +from .route_pfx2as_params import RoutePfx2asParams as RoutePfx2asParams +from .route_stats_params import RouteStatsParams as RouteStatsParams diff --git a/src/cloudflare/types/radar/bgp/hijack_events_params.py b/src/cloudflare/types/radar/bgp/hijack_events_params.py index f10652a3bab..be364f9ba21 100644 --- a/src/cloudflare/types/radar/bgp/hijack_events_params.py +++ b/src/cloudflare/types/radar/bgp/hijack_events_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["HijackEventsParams"] diff --git a/src/cloudflare/types/radar/bgp/hijack_events_response.py b/src/cloudflare/types/radar/bgp/hijack_events_response.py index 01909143ce4..4520ec519b5 100644 --- a/src/cloudflare/types/radar/bgp/hijack_events_response.py +++ b/src/cloudflare/types/radar/bgp/hijack_events_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["HijackEventsResponse", "AsnInfo", "Event", "EventTag"] diff --git a/src/cloudflare/types/radar/bgp/leaks/__init__.py b/src/cloudflare/types/radar/bgp/leaks/__init__.py index 51516ebdb5f..d305c8ef1d2 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_params import EventListParams as EventListParams from .event_list_response import EventListResponse as EventListResponse +from .event_list_params import EventListParams as EventListParams 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 71165b49ca9..802873b7de8 100644 --- a/src/cloudflare/types/radar/bgp/leaks/event_list_params.py +++ b/src/cloudflare/types/radar/bgp/leaks/event_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __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 fb4746687c4..c6b1dcb8e74 100644 --- a/src/cloudflare/types/radar/bgp/leaks/event_list_response.py +++ b/src/cloudflare/types/radar/bgp/leaks/event_list_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["EventListResponse", "AsnInfo", "Event"] diff --git a/src/cloudflare/types/radar/bgp/route_moas_params.py b/src/cloudflare/types/radar/bgp/route_moas_params.py index 39ff037a0a7..c1291f787b9 100644 --- a/src/cloudflare/types/radar/bgp/route_moas_params.py +++ b/src/cloudflare/types/radar/bgp/route_moas_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __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 afc3dd528da..83bc67d8365 100644 --- a/src/cloudflare/types/radar/bgp/route_moas_response.py +++ b/src/cloudflare/types/radar/bgp/route_moas_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __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 c9b2d7c6dee..fc30140d65b 100644 --- a/src/cloudflare/types/radar/bgp/route_pfx2as_params.py +++ b/src/cloudflare/types/radar/bgp/route_pfx2as_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Literal, Annotated 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 ....types import shared_params + __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 960831a6f7c..36e968bc77f 100644 --- a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py +++ b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __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 749bcdd95e8..c02436606f0 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_params.py +++ b/src/cloudflare/types/radar/bgp/route_stats_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __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 916df1c03b9..d0b0f411f5c 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_response.py +++ b/src/cloudflare/types/radar/bgp/route_stats_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ...._models import BaseModel +from ....types import shared __all__ = ["RouteStatsResponse", "Meta", "Stats"] diff --git a/src/cloudflare/types/radar/bgp/timesery_list_params.py b/src/cloudflare/types/radar/bgp/timesery_list_params.py index b4a8c2ab264..2fd6902aeb7 100644 --- a/src/cloudflare/types/radar/bgp/timesery_list_params.py +++ b/src/cloudflare/types/radar/bgp/timesery_list_params.py @@ -2,11 +2,19 @@ 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 +from ....types import shared_params __all__ = ["TimeseryListParams"] diff --git a/src/cloudflare/types/radar/bgp/timesery_list_response.py b/src/cloudflare/types/radar/bgp/timesery_list_response.py index 5b993f7f4d1..8ac1a419d84 100644 --- a/src/cloudflare/types/radar/bgp/timesery_list_response.py +++ b/src/cloudflare/types/radar/bgp/timesery_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "TimeseryListResponse", diff --git a/src/cloudflare/types/radar/bgp/tops/__init__.py b/src/cloudflare/types/radar/bgp/tops/__init__.py index 8143d1d1bfd..02d9dba44f2 100644 --- a/src/cloudflare/types/radar/bgp/tops/__init__.py +++ b/src/cloudflare/types/radar/bgp/tops/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .ase_list_params import AseListParams as AseListParams from .ase_list_response import AseListResponse as AseListResponse -from .prefix_list_params import PrefixListParams as PrefixListParams +from .ase_prefixes_response import AsePrefixesResponse as AsePrefixesResponse +from .ase_list_params import AseListParams as AseListParams from .ase_prefixes_params import AsePrefixesParams as AsePrefixesParams from .prefix_list_response import PrefixListResponse as PrefixListResponse -from .ase_prefixes_response import AsePrefixesResponse as AsePrefixesResponse +from .prefix_list_params import PrefixListParams as PrefixListParams diff --git a/src/cloudflare/types/radar/bgp/tops/ase_list_params.py b/src/cloudflare/types/radar/bgp/tops/ase_list_params.py index 0cf103ef9e2..8187fd7281f 100644 --- a/src/cloudflare/types/radar/bgp/tops/ase_list_params.py +++ b/src/cloudflare/types/radar/bgp/tops/ase_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["AseListParams"] diff --git a/src/cloudflare/types/radar/bgp/tops/ase_list_response.py b/src/cloudflare/types/radar/bgp/tops/ase_list_response.py index e0b6ed9d0a5..bba2f097b9f 100644 --- a/src/cloudflare/types/radar/bgp/tops/ase_list_response.py +++ b/src/cloudflare/types/radar/bgp/tops/ase_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List from datetime import datetime -from pydantic import Field as FieldInfo +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 +from .....types import shared __all__ = ["AseListResponse", "Meta", "MetaDateRange", "Top0"] diff --git a/src/cloudflare/types/radar/bgp/tops/ase_prefixes_params.py b/src/cloudflare/types/radar/bgp/tops/ase_prefixes_params.py index 19f349a541a..f7ee8a8d82a 100644 --- a/src/cloudflare/types/radar/bgp/tops/ase_prefixes_params.py +++ b/src/cloudflare/types/radar/bgp/tops/ase_prefixes_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 .....types import shared_params __all__ = ["AsePrefixesParams"] diff --git a/src/cloudflare/types/radar/bgp/tops/ase_prefixes_response.py b/src/cloudflare/types/radar/bgp/tops/ase_prefixes_response.py index 8d0a6f82b6d..09522b9ef27 100644 --- a/src/cloudflare/types/radar/bgp/tops/ase_prefixes_response.py +++ b/src/cloudflare/types/radar/bgp/tops/ase_prefixes_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["AsePrefixesResponse", "Asn", "Meta"] diff --git a/src/cloudflare/types/radar/bgp/tops/prefix_list_params.py b/src/cloudflare/types/radar/bgp/tops/prefix_list_params.py index fe55f014dea..6a4401d96cc 100644 --- a/src/cloudflare/types/radar/bgp/tops/prefix_list_params.py +++ b/src/cloudflare/types/radar/bgp/tops/prefix_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["PrefixListParams"] diff --git a/src/cloudflare/types/radar/bgp/tops/prefix_list_response.py b/src/cloudflare/types/radar/bgp/tops/prefix_list_response.py index b45f5e33882..9ea07fbe606 100644 --- a/src/cloudflare/types/radar/bgp/tops/prefix_list_response.py +++ b/src/cloudflare/types/radar/bgp/tops/prefix_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List from datetime import datetime -from pydantic import Field as FieldInfo +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 +from .....types import shared __all__ = ["PrefixListResponse", "Meta", "MetaDateRange", "Top0"] diff --git a/src/cloudflare/types/radar/connection_tampering/__init__.py b/src/cloudflare/types/radar/connection_tampering/__init__.py index b7deb0bc155..56f1f85f659 100644 --- a/src/cloudflare/types/radar/connection_tampering/__init__.py +++ b/src/cloudflare/types/radar/connection_tampering/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams from .timeseries_group_list_response import TimeseriesGroupListResponse as TimeseriesGroupListResponse +from .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams diff --git a/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_params.py b/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_params.py index 0130981f967..9f2ca1611bd 100644 --- a/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_params.py +++ b/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_params.py @@ -2,11 +2,19 @@ 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 +from ....types import shared_params __all__ = ["TimeseriesGroupListParams"] diff --git a/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_response.py b/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_response.py index 4e699f9200a..d491857bd2d 100644 --- a/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_response.py +++ b/src/cloudflare/types/radar/connection_tampering/timeseries_group_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "TimeseriesGroupListResponse", diff --git a/src/cloudflare/types/radar/connection_tampering_summary_params.py b/src/cloudflare/types/radar/connection_tampering_summary_params.py index 577924da709..3baf11c336e 100644 --- a/src/cloudflare/types/radar/connection_tampering_summary_params.py +++ b/src/cloudflare/types/radar/connection_tampering_summary_params.py @@ -2,12 +2,20 @@ 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 +from ...types import shared_params + __all__ = ["ConnectionTamperingSummaryParams"] diff --git a/src/cloudflare/types/radar/connection_tampering_summary_response.py b/src/cloudflare/types/radar/connection_tampering_summary_response.py index 9db31e9cc48..4dfe41422fa 100644 --- a/src/cloudflare/types/radar/connection_tampering_summary_response.py +++ b/src/cloudflare/types/radar/connection_tampering_summary_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "ConnectionTamperingSummaryResponse", diff --git a/src/cloudflare/types/radar/dataset_get_params.py b/src/cloudflare/types/radar/dataset_get_params.py index 34adbce2a07..017f55c95a8 100644 --- a/src/cloudflare/types/radar/dataset_get_params.py +++ b/src/cloudflare/types/radar/dataset_get_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Optional 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 ...types import shared_params + __all__ = ["DatasetGetParams"] diff --git a/src/cloudflare/types/radar/dataset_get_response.py b/src/cloudflare/types/radar/dataset_get_response.py index 2278f37fed0..739c0a2f4c8 100644 --- a/src/cloudflare/types/radar/dataset_get_response.py +++ b/src/cloudflare/types/radar/dataset_get_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["DatasetGetResponse"] diff --git a/src/cloudflare/types/radar/dataset_list_params.py b/src/cloudflare/types/radar/dataset_list_params.py index 82ac59fbe5e..06c0baf6583 100644 --- a/src/cloudflare/types/radar/dataset_list_params.py +++ b/src/cloudflare/types/radar/dataset_list_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Literal, Annotated 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 ...types import shared_params + __all__ = ["DatasetListParams"] diff --git a/src/cloudflare/types/radar/dataset_list_response.py b/src/cloudflare/types/radar/dataset_list_response.py index 75a80b52094..dddcd2c62ca 100644 --- a/src/cloudflare/types/radar/dataset_list_response.py +++ b/src/cloudflare/types/radar/dataset_list_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DatasetListResponse", "Dataset"] diff --git a/src/cloudflare/types/radar/datasets/__init__.py b/src/cloudflare/types/radar/datasets/__init__.py index 6270f93a018..8532646fc0b 100644 --- a/src/cloudflare/types/radar/datasets/__init__.py +++ b/src/cloudflare/types/radar/datasets/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .download_radar_post_dataset_download_params import ( - DownloadRadarPostDatasetDownloadParams as DownloadRadarPostDatasetDownloadParams, -) from .download_radar_post_dataset_download_response import ( DownloadRadarPostDatasetDownloadResponse as DownloadRadarPostDatasetDownloadResponse, ) +from .download_radar_post_dataset_download_params import ( + DownloadRadarPostDatasetDownloadParams as DownloadRadarPostDatasetDownloadParams, +) diff --git a/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_params.py b/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_params.py index 5f20ee88d74..2c37adca977 100644 --- a/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_params.py +++ b/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Annotated, Required, 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 +from ....types import shared_params + __all__ = ["DownloadRadarPostDatasetDownloadParams"] diff --git a/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_response.py b/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_response.py index cf40a1c0e23..bb91f1c483d 100644 --- a/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_response.py +++ b/src/cloudflare/types/radar/datasets/download_radar_post_dataset_download_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ...._models import BaseModel +from ....types import shared __all__ = ["DownloadRadarPostDatasetDownloadResponse", "Dataset"] diff --git a/src/cloudflare/types/radar/dns/tops/__init__.py b/src/cloudflare/types/radar/dns/tops/__init__.py index cd358fb1b38..fcca4d4d723 100644 --- a/src/cloudflare/types/radar/dns/tops/__init__.py +++ b/src/cloudflare/types/radar/dns/tops/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .ase_list_params import AseListParams as AseListParams from .ase_list_response import AseListResponse as AseListResponse -from .location_list_params import LocationListParams as LocationListParams +from .ase_list_params import AseListParams as AseListParams from .location_list_response import LocationListResponse as LocationListResponse +from .location_list_params import LocationListParams as LocationListParams diff --git a/src/cloudflare/types/radar/dns/tops/ase_list_params.py b/src/cloudflare/types/radar/dns/tops/ase_list_params.py index 62dd97d70e2..a863fa14f84 100644 --- a/src/cloudflare/types/radar/dns/tops/ase_list_params.py +++ b/src/cloudflare/types/radar/dns/tops/ase_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["AseListParams"] diff --git a/src/cloudflare/types/radar/dns/tops/ase_list_response.py b/src/cloudflare/types/radar/dns/tops/ase_list_response.py index 0e1c53a9a7d..8d8bde5b5c6 100644 --- a/src/cloudflare/types/radar/dns/tops/ase_list_response.py +++ b/src/cloudflare/types/radar/dns/tops/ase_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = ["AseListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/dns/tops/location_list_params.py b/src/cloudflare/types/radar/dns/tops/location_list_params.py index d6748f9459e..317cd239a7e 100644 --- a/src/cloudflare/types/radar/dns/tops/location_list_params.py +++ b/src/cloudflare/types/radar/dns/tops/location_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/dns/tops/location_list_response.py b/src/cloudflare/types/radar/dns/tops/location_list_response.py index a44a509add1..72a6054aa62 100644 --- a/src/cloudflare/types/radar/dns/tops/location_list_response.py +++ b/src/cloudflare/types/radar/dns/tops/location_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = [ "LocationListResponse", diff --git a/src/cloudflare/types/radar/email/security/summaries/__init__.py b/src/cloudflare/types/radar/email/security/summaries/__init__.py index e955093a0c4..7aac696f2ae 100644 --- a/src/cloudflare/types/radar/email/security/summaries/__init__.py +++ b/src/cloudflare/types/radar/email/security/summaries/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations +from .arc_list_response import ArcListResponse as ArcListResponse from .arc_list_params import ArcListParams as ArcListParams -from .spam_get_params import SpamGetParams as SpamGetParams -from .spf_list_params import SPFListParams as SPFListParams +from .dkim_list_response import DKIMListResponse as DKIMListResponse from .dkim_list_params import DKIMListParams as DKIMListParams -from .arc_list_response import ArcListResponse as ArcListResponse +from .dmarc_list_response import DmarcListResponse as DmarcListResponse from .dmarc_list_params import DmarcListParams as DmarcListParams +from .malicious_list_response import MaliciousListResponse as MaliciousListResponse +from .malicious_list_params import MaliciousListParams as MaliciousListParams from .spam_get_response import SpamGetResponse as SpamGetResponse +from .spam_get_params import SpamGetParams as SpamGetParams from .spf_list_response import SPFListResponse as SPFListResponse -from .dkim_list_response import DKIMListResponse as DKIMListResponse -from .dmarc_list_response import DmarcListResponse as DmarcListResponse -from .malicious_list_params import MaliciousListParams as MaliciousListParams -from .malicious_list_response import MaliciousListResponse as MaliciousListResponse -from .threat_category_list_params import ThreatCategoryListParams as ThreatCategoryListParams +from .spf_list_params import SPFListParams as SPFListParams from .threat_category_list_response import ThreatCategoryListResponse as ThreatCategoryListResponse +from .threat_category_list_params import ThreatCategoryListParams as ThreatCategoryListParams diff --git a/src/cloudflare/types/radar/email/security/summaries/arc_list_params.py b/src/cloudflare/types/radar/email/security/summaries/arc_list_params.py index f0b66c3ca5c..d626738ce04 100644 --- a/src/cloudflare/types/radar/email/security/summaries/arc_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/arc_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["ArcListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/arc_list_response.py b/src/cloudflare/types/radar/email/security/summaries/arc_list_response.py index 0e51e085cef..9d97a4e82c5 100644 --- a/src/cloudflare/types/radar/email/security/summaries/arc_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/arc_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["ArcListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Summary0"] diff --git a/src/cloudflare/types/radar/email/security/summaries/dkim_list_params.py b/src/cloudflare/types/radar/email/security/summaries/dkim_list_params.py index e108027fc42..efd34d47795 100644 --- a/src/cloudflare/types/radar/email/security/summaries/dkim_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/dkim_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["DKIMListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/dkim_list_response.py b/src/cloudflare/types/radar/email/security/summaries/dkim_list_response.py index a3653b260ac..c1a4fdfe54a 100644 --- a/src/cloudflare/types/radar/email/security/summaries/dkim_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/dkim_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "DKIMListResponse", diff --git a/src/cloudflare/types/radar/email/security/summaries/dmarc_list_params.py b/src/cloudflare/types/radar/email/security/summaries/dmarc_list_params.py index acf45f9184b..4b97b981d53 100644 --- a/src/cloudflare/types/radar/email/security/summaries/dmarc_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/dmarc_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["DmarcListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/dmarc_list_response.py b/src/cloudflare/types/radar/email/security/summaries/dmarc_list_response.py index b9eec861580..c60480503bd 100644 --- a/src/cloudflare/types/radar/email/security/summaries/dmarc_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/dmarc_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "DmarcListResponse", diff --git a/src/cloudflare/types/radar/email/security/summaries/malicious_list_params.py b/src/cloudflare/types/radar/email/security/summaries/malicious_list_params.py index 2569b0dba43..cc996018d86 100644 --- a/src/cloudflare/types/radar/email/security/summaries/malicious_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/malicious_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["MaliciousListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/malicious_list_response.py b/src/cloudflare/types/radar/email/security/summaries/malicious_list_response.py index 6efd186bf83..929cc115b8e 100644 --- a/src/cloudflare/types/radar/email/security/summaries/malicious_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/malicious_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "MaliciousListResponse", diff --git a/src/cloudflare/types/radar/email/security/summaries/spam_get_params.py b/src/cloudflare/types/radar/email/security/summaries/spam_get_params.py index e950b3a3eca..6d5b13b56b0 100644 --- a/src/cloudflare/types/radar/email/security/summaries/spam_get_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/spam_get_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["SpamGetParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/spam_get_response.py b/src/cloudflare/types/radar/email/security/summaries/spam_get_response.py index 35a3c2d9949..6fec4fb8fa6 100644 --- a/src/cloudflare/types/radar/email/security/summaries/spam_get_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/spam_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["SpamGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Summary0"] diff --git a/src/cloudflare/types/radar/email/security/summaries/spf_list_params.py b/src/cloudflare/types/radar/email/security/summaries/spf_list_params.py index 3bff565519d..9e3140549a4 100644 --- a/src/cloudflare/types/radar/email/security/summaries/spf_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/spf_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["SPFListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/spf_list_response.py b/src/cloudflare/types/radar/email/security/summaries/spf_list_response.py index da5fe23c444..bbcee854716 100644 --- a/src/cloudflare/types/radar/email/security/summaries/spf_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/spf_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["SPFListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Summary0"] diff --git a/src/cloudflare/types/radar/email/security/summaries/threat_category_list_params.py b/src/cloudflare/types/radar/email/security/summaries/threat_category_list_params.py index 1f76c0c4bd6..b66d1970d5e 100644 --- a/src/cloudflare/types/radar/email/security/summaries/threat_category_list_params.py +++ b/src/cloudflare/types/radar/email/security/summaries/threat_category_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["ThreatCategoryListParams"] diff --git a/src/cloudflare/types/radar/email/security/summaries/threat_category_list_response.py b/src/cloudflare/types/radar/email/security/summaries/threat_category_list_response.py index 91429eae23e..d010267ad15 100644 --- a/src/cloudflare/types/radar/email/security/summaries/threat_category_list_response.py +++ b/src/cloudflare/types/radar/email/security/summaries/threat_category_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "ThreatCategoryListResponse", diff --git a/src/cloudflare/types/radar/email/security/timeseries_groups/__init__.py b/src/cloudflare/types/radar/email/security/timeseries_groups/__init__.py index 2b4fc40e914..8559b8ebcc3 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_groups/__init__.py +++ b/src/cloudflare/types/radar/email/security/timeseries_groups/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .arc_list_params import ArcListParams as ArcListParams -from .dkim_list_params import DKIMListParams as DKIMListParams from .arc_list_response import ArcListResponse as ArcListResponse +from .arc_list_params import ArcListParams as ArcListParams from .dkim_list_response import DKIMListResponse as DKIMListResponse +from .dkim_list_params import DKIMListParams as DKIMListParams diff --git a/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_params.py b/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_params.py index 8da80e2cc59..1598db470cb 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["ArcListParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_response.py b/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_response.py index fae8f4d089b..aa6c1a722fc 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_groups/arc_list_response.py @@ -2,9 +2,11 @@ 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 +from ......types import shared __all__ = ["ArcListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_params.py b/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_params.py index ad29bfe7f71..8cce36a0320 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_params.py @@ -2,11 +2,19 @@ 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 +from ......types import shared_params __all__ = ["DKIMListParams"] diff --git a/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_response.py b/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_response.py index 19e79194ab9..bb6f18fc921 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_response.py +++ b/src/cloudflare/types/radar/email/security/timeseries_groups/dkim_list_response.py @@ -2,9 +2,11 @@ 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 +from ......types import shared __all__ = ["DKIMListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/__init__.py b/src/cloudflare/types/radar/emails/security/__init__.py index e3ce07c482d..95213586387 100644 --- a/src/cloudflare/types/radar/emails/security/__init__.py +++ b/src/cloudflare/types/radar/emails/security/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations -from .spf_list_params import SPFListParams as SPFListParams -from .spam_list_params import SpamListParams as SpamListParams -from .dmarc_list_params import DmarcListParams as DmarcListParams -from .spf_list_response import SPFListResponse as SPFListResponse -from .spam_list_response import SpamListResponse as SpamListResponse from .dmarc_list_response import DmarcListResponse as DmarcListResponse -from .malicious_list_params import MaliciousListParams as MaliciousListParams +from .dmarc_list_params import DmarcListParams as DmarcListParams from .malicious_list_response import MaliciousListResponse as MaliciousListResponse -from .threat_category_list_params import ThreatCategoryListParams as ThreatCategoryListParams +from .malicious_list_params import MaliciousListParams as MaliciousListParams +from .spam_list_response import SpamListResponse as SpamListResponse +from .spam_list_params import SpamListParams as SpamListParams +from .spf_list_response import SPFListResponse as SPFListResponse +from .spf_list_params import SPFListParams as SPFListParams from .threat_category_list_response import ThreatCategoryListResponse as ThreatCategoryListResponse +from .threat_category_list_params import ThreatCategoryListParams as ThreatCategoryListParams diff --git a/src/cloudflare/types/radar/emails/security/dmarc_list_params.py b/src/cloudflare/types/radar/emails/security/dmarc_list_params.py index 09ac4629ffa..52046604d48 100644 --- a/src/cloudflare/types/radar/emails/security/dmarc_list_params.py +++ b/src/cloudflare/types/radar/emails/security/dmarc_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["DmarcListParams"] diff --git a/src/cloudflare/types/radar/emails/security/dmarc_list_response.py b/src/cloudflare/types/radar/emails/security/dmarc_list_response.py index b0222379e76..0a8c0fb283b 100644 --- a/src/cloudflare/types/radar/emails/security/dmarc_list_response.py +++ b/src/cloudflare/types/radar/emails/security/dmarc_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["DmarcListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/malicious_list_params.py b/src/cloudflare/types/radar/emails/security/malicious_list_params.py index 7408523e17d..0515e6c4934 100644 --- a/src/cloudflare/types/radar/emails/security/malicious_list_params.py +++ b/src/cloudflare/types/radar/emails/security/malicious_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["MaliciousListParams"] diff --git a/src/cloudflare/types/radar/emails/security/malicious_list_response.py b/src/cloudflare/types/radar/emails/security/malicious_list_response.py index 4b9aed27fc4..f7f555ca106 100644 --- a/src/cloudflare/types/radar/emails/security/malicious_list_response.py +++ b/src/cloudflare/types/radar/emails/security/malicious_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["MaliciousListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/spam_list_params.py b/src/cloudflare/types/radar/emails/security/spam_list_params.py index 7c007bc3771..9d7ba3dd4a8 100644 --- a/src/cloudflare/types/radar/emails/security/spam_list_params.py +++ b/src/cloudflare/types/radar/emails/security/spam_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["SpamListParams"] diff --git a/src/cloudflare/types/radar/emails/security/spam_list_response.py b/src/cloudflare/types/radar/emails/security/spam_list_response.py index 511df8688d0..9b2d494b559 100644 --- a/src/cloudflare/types/radar/emails/security/spam_list_response.py +++ b/src/cloudflare/types/radar/emails/security/spam_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["SpamListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/spf_list_params.py b/src/cloudflare/types/radar/emails/security/spf_list_params.py index 43f415ba86f..0d8ef5f8f52 100644 --- a/src/cloudflare/types/radar/emails/security/spf_list_params.py +++ b/src/cloudflare/types/radar/emails/security/spf_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["SPFListParams"] diff --git a/src/cloudflare/types/radar/emails/security/spf_list_response.py b/src/cloudflare/types/radar/emails/security/spf_list_response.py index b5408fe81a9..c0f7dda91d7 100644 --- a/src/cloudflare/types/radar/emails/security/spf_list_response.py +++ b/src/cloudflare/types/radar/emails/security/spf_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["SPFListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/threat_category_list_params.py b/src/cloudflare/types/radar/emails/security/threat_category_list_params.py index ea2a6786ee3..ebddf1c22d5 100644 --- a/src/cloudflare/types/radar/emails/security/threat_category_list_params.py +++ b/src/cloudflare/types/radar/emails/security/threat_category_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["ThreatCategoryListParams"] diff --git a/src/cloudflare/types/radar/emails/security/threat_category_list_response.py b/src/cloudflare/types/radar/emails/security/threat_category_list_response.py index 9da6ef36ebf..0ee16ec8a69 100644 --- a/src/cloudflare/types/radar/emails/security/threat_category_list_response.py +++ b/src/cloudflare/types/radar/emails/security/threat_category_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["ThreatCategoryListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/emails/security/top/__init__.py b/src/cloudflare/types/radar/emails/security/top/__init__.py index e3d7dfc8848..dcc6eda9e4e 100644 --- a/src/cloudflare/types/radar/emails/security/top/__init__.py +++ b/src/cloudflare/types/radar/emails/security/top/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .ase_list_params import AseListParams as AseListParams from .ase_list_response import AseListResponse as AseListResponse +from .ase_list_params import AseListParams as AseListParams diff --git a/src/cloudflare/types/radar/emails/security/top/ase_list_params.py b/src/cloudflare/types/radar/emails/security/top/ase_list_params.py index 20b4a3ea51c..352a74742a4 100644 --- a/src/cloudflare/types/radar/emails/security/top/ase_list_params.py +++ b/src/cloudflare/types/radar/emails/security/top/ase_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["AseListParams"] diff --git a/src/cloudflare/types/radar/emails/security/top/ase_list_response.py b/src/cloudflare/types/radar/emails/security/top/ase_list_response.py index 67a79f26c7a..ae96930b238 100644 --- a/src/cloudflare/types/radar/emails/security/top/ase_list_response.py +++ b/src/cloudflare/types/radar/emails/security/top/ase_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["AseListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/__init__.py b/src/cloudflare/types/radar/emails/security/top/ases/__init__.py index 1c71ca77b07..f34c507a13c 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/__init__.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .arc_get_params import ArcGetParams as ArcGetParams -from .dkim_get_params import DKIMGetParams as DKIMGetParams from .arc_get_response import ArcGetResponse as ArcGetResponse -from .dmarc_get_params import DmarcGetParams as DmarcGetParams +from .arc_get_params import ArcGetParams as ArcGetParams from .dkim_get_response import DKIMGetResponse as DKIMGetResponse +from .dkim_get_params import DKIMGetParams as DKIMGetParams from .dmarc_get_response import DmarcGetResponse as DmarcGetResponse +from .dmarc_get_params import DmarcGetParams as DmarcGetParams diff --git a/src/cloudflare/types/radar/emails/security/top/ases/arc_get_params.py b/src/cloudflare/types/radar/emails/security/top/ases/arc_get_params.py index f36a9667d34..14f4d920467 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/arc_get_params.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/arc_get_params.py @@ -2,12 +2,20 @@ 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 +from .......types import shared_params + __all__ = ["ArcGetParams"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/arc_get_response.py b/src/cloudflare/types/radar/emails/security/top/ases/arc_get_response.py index d6abfedda45..f6ae7e54359 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/arc_get_response.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/arc_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .......types import shared __all__ = ["ArcGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_params.py b/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_params.py index b30c7e39d46..d8e72a0672f 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_params.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_params.py @@ -2,12 +2,20 @@ 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 +from .......types import shared_params + __all__ = ["DKIMGetParams"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_response.py b/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_response.py index e33fdd5b4fd..f9f0fafa184 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_response.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/dkim_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .......types import shared __all__ = ["DKIMGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_params.py b/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_params.py index b8b6088de26..105c42cc32e 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_params.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_params.py @@ -2,12 +2,20 @@ 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 +from .......types import shared_params + __all__ = ["DmarcGetParams"] diff --git a/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_response.py b/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_response.py index f36dfdec633..7d71b37b8ea 100644 --- a/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_response.py +++ b/src/cloudflare/types/radar/emails/security/top/ases/dmarc_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .......types import shared __all__ = ["DmarcGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/entities/__init__.py b/src/cloudflare/types/radar/entities/__init__.py index d7cd79e31f5..92a6e4bdc90 100644 --- a/src/cloudflare/types/radar/entities/__init__.py +++ b/src/cloudflare/types/radar/entities/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .asn_rel_params import AsnRelParams as AsnRelParams from .asn_rel_response import AsnRelResponse as AsnRelResponse +from .asn_rel_params import AsnRelParams as AsnRelParams diff --git a/src/cloudflare/types/radar/entities/asn_rel_params.py b/src/cloudflare/types/radar/entities/asn_rel_params.py index 4143af26217..f9c9cf52a9c 100644 --- a/src/cloudflare/types/radar/entities/asn_rel_params.py +++ b/src/cloudflare/types/radar/entities/asn_rel_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __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 73e26140279..6d4ecc15577 100644 --- a/src/cloudflare/types/radar/entities/asn_rel_response.py +++ b/src/cloudflare/types/radar/entities/asn_rel_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["AsnRelResponse", "Meta", "Rel"] diff --git a/src/cloudflare/types/radar/entity_ips_params.py b/src/cloudflare/types/radar/entity_ips_params.py index e8d3a4129d6..f8e3c8e3609 100644 --- a/src/cloudflare/types/radar/entity_ips_params.py +++ b/src/cloudflare/types/radar/entity_ips_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["EntityIPsParams"] diff --git a/src/cloudflare/types/radar/entity_ips_response.py b/src/cloudflare/types/radar/entity_ips_response.py index f40d4d2bbc4..76e09f1402c 100644 --- a/src/cloudflare/types/radar/entity_ips_response.py +++ b/src/cloudflare/types/radar/entity_ips_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal from pydantic import Field as FieldInfo - from ..._models import BaseModel +from ...types import shared __all__ = ["EntityIPsResponse", "IP"] diff --git a/src/cloudflare/types/radar/http/__init__.py b/src/cloudflare/types/radar/http/__init__.py index ad3a6769084..f22ff131915 100644 --- a/src/cloudflare/types/radar/http/__init__.py +++ b/src/cloudflare/types/radar/http/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .tls_version_list_params import TLSVersionListParams as TLSVersionListParams from .tls_version_list_response import TLSVersionListResponse as TLSVersionListResponse +from .tls_version_list_params import TLSVersionListParams as TLSVersionListParams diff --git a/src/cloudflare/types/radar/http/tls_version_list_params.py b/src/cloudflare/types/radar/http/tls_version_list_params.py index 31fe1348624..a07534aad70 100644 --- a/src/cloudflare/types/radar/http/tls_version_list_params.py +++ b/src/cloudflare/types/radar/http/tls_version_list_params.py @@ -2,11 +2,19 @@ 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 +from ....types import shared_params __all__ = ["TLSVersionListParams"] diff --git a/src/cloudflare/types/radar/http/tls_version_list_response.py b/src/cloudflare/types/radar/http/tls_version_list_response.py index da086627ff4..0bce349494e 100644 --- a/src/cloudflare/types/radar/http/tls_version_list_response.py +++ b/src/cloudflare/types/radar/http/tls_version_list_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["TLSVersionListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_bot_classes_params.py b/src/cloudflare/types/radar/http_bot_classes_params.py index 98d6731d03d..2cf37812ff4 100644 --- a/src/cloudflare/types/radar/http_bot_classes_params.py +++ b/src/cloudflare/types/radar/http_bot_classes_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPBotClassesParams"] diff --git a/src/cloudflare/types/radar/http_bot_classes_response.py b/src/cloudflare/types/radar/http_bot_classes_response.py index f8af395ac61..48c35bbb302 100644 --- a/src/cloudflare/types/radar/http_bot_classes_response.py +++ b/src/cloudflare/types/radar/http_bot_classes_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HTTPBotClassesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_browser_families_params.py b/src/cloudflare/types/radar/http_browser_families_params.py index 93b2c9f4fe7..e961f1e0be7 100644 --- a/src/cloudflare/types/radar/http_browser_families_params.py +++ b/src/cloudflare/types/radar/http_browser_families_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPBrowserFamiliesParams"] diff --git a/src/cloudflare/types/radar/http_browser_families_response.py b/src/cloudflare/types/radar/http_browser_families_response.py index ab15f646fdb..e08b4a09328 100644 --- a/src/cloudflare/types/radar/http_browser_families_response.py +++ b/src/cloudflare/types/radar/http_browser_families_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ...types import shared +from typing import TYPE_CHECKING __all__ = ["HTTPBrowserFamiliesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_browsers_params.py b/src/cloudflare/types/radar/http_browsers_params.py index cb2595fb69b..d50ba2016b3 100644 --- a/src/cloudflare/types/radar/http_browsers_params.py +++ b/src/cloudflare/types/radar/http_browsers_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPBrowsersParams"] diff --git a/src/cloudflare/types/radar/http_browsers_response.py b/src/cloudflare/types/radar/http_browsers_response.py index d4453ff92f8..e759e91c3e5 100644 --- a/src/cloudflare/types/radar/http_browsers_response.py +++ b/src/cloudflare/types/radar/http_browsers_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ...types import shared +from typing import TYPE_CHECKING __all__ = ["HTTPBrowsersResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_device_types_params.py b/src/cloudflare/types/radar/http_device_types_params.py index b37ff9a5684..92e3759f5ad 100644 --- a/src/cloudflare/types/radar/http_device_types_params.py +++ b/src/cloudflare/types/radar/http_device_types_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPDeviceTypesParams"] diff --git a/src/cloudflare/types/radar/http_device_types_response.py b/src/cloudflare/types/radar/http_device_types_response.py index b3a0c797980..6d6a5efd3a7 100644 --- a/src/cloudflare/types/radar/http_device_types_response.py +++ b/src/cloudflare/types/radar/http_device_types_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HTTPDeviceTypesResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_http_protocols_params.py b/src/cloudflare/types/radar/http_http_protocols_params.py index 0d2a400b6a4..293c7210005 100644 --- a/src/cloudflare/types/radar/http_http_protocols_params.py +++ b/src/cloudflare/types/radar/http_http_protocols_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPHTTPProtocolsParams"] diff --git a/src/cloudflare/types/radar/http_http_protocols_response.py b/src/cloudflare/types/radar/http_http_protocols_response.py index cf8c6f93da5..78a8ea04d0a 100644 --- a/src/cloudflare/types/radar/http_http_protocols_response.py +++ b/src/cloudflare/types/radar/http_http_protocols_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HTTPHTTPProtocolsResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_http_versions_params.py b/src/cloudflare/types/radar/http_http_versions_params.py index 5b9f4324d4c..f174cdaba0a 100644 --- a/src/cloudflare/types/radar/http_http_versions_params.py +++ b/src/cloudflare/types/radar/http_http_versions_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPHTTPVersionsParams"] diff --git a/src/cloudflare/types/radar/http_http_versions_response.py b/src/cloudflare/types/radar/http_http_versions_response.py index 5fe95772688..72aea330a97 100644 --- a/src/cloudflare/types/radar/http_http_versions_response.py +++ b/src/cloudflare/types/radar/http_http_versions_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = ["HTTPHTTPVersionsResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_ip_versions_params.py b/src/cloudflare/types/radar/http_ip_versions_params.py index b0a3f28bede..e9502054395 100644 --- a/src/cloudflare/types/radar/http_ip_versions_params.py +++ b/src/cloudflare/types/radar/http_ip_versions_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPIPVersionsParams"] diff --git a/src/cloudflare/types/radar/http_ip_versions_response.py b/src/cloudflare/types/radar/http_ip_versions_response.py index b6b29de2a0a..48233f1d3af 100644 --- a/src/cloudflare/types/radar/http_ip_versions_response.py +++ b/src/cloudflare/types/radar/http_ip_versions_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = ["HTTPIPVersionsResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/http_oss_params.py b/src/cloudflare/types/radar/http_oss_params.py index eb580a06c19..cc59f5f5f3b 100644 --- a/src/cloudflare/types/radar/http_oss_params.py +++ b/src/cloudflare/types/radar/http_oss_params.py @@ -2,11 +2,19 @@ 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 +from ...types import shared_params __all__ = ["HTTPOssParams"] diff --git a/src/cloudflare/types/radar/http_oss_response.py b/src/cloudflare/types/radar/http_oss_response.py index 860c70b0206..629a18448a4 100644 --- a/src/cloudflare/types/radar/http_oss_response.py +++ b/src/cloudflare/types/radar/http_oss_response.py @@ -1,8 +1,13 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List +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 +from ...types import shared +from typing import TYPE_CHECKING __all__ = ["HTTPOssResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/netflows/__init__.py b/src/cloudflare/types/radar/netflows/__init__.py index 572734a90fc..6c2645d3771 100644 --- a/src/cloudflare/types/radar/netflows/__init__.py +++ b/src/cloudflare/types/radar/netflows/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .timesery_list_params import TimeseryListParams as TimeseryListParams from .timesery_list_response import TimeseryListResponse as TimeseryListResponse +from .timesery_list_params import TimeseryListParams as TimeseryListParams diff --git a/src/cloudflare/types/radar/netflows/timesery_list_params.py b/src/cloudflare/types/radar/netflows/timesery_list_params.py index 30d1603ba50..351b078eb3c 100644 --- a/src/cloudflare/types/radar/netflows/timesery_list_params.py +++ b/src/cloudflare/types/radar/netflows/timesery_list_params.py @@ -2,11 +2,19 @@ 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 +from ....types import shared_params __all__ = ["TimeseryListParams"] diff --git a/src/cloudflare/types/radar/netflows/timesery_list_response.py b/src/cloudflare/types/radar/netflows/timesery_list_response.py index 5b993f7f4d1..8ac1a419d84 100644 --- a/src/cloudflare/types/radar/netflows/timesery_list_response.py +++ b/src/cloudflare/types/radar/netflows/timesery_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "TimeseryListResponse", diff --git a/src/cloudflare/types/radar/netflows/tops/__init__.py b/src/cloudflare/types/radar/netflows/tops/__init__.py index cd358fb1b38..fcca4d4d723 100644 --- a/src/cloudflare/types/radar/netflows/tops/__init__.py +++ b/src/cloudflare/types/radar/netflows/tops/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .ase_list_params import AseListParams as AseListParams from .ase_list_response import AseListResponse as AseListResponse -from .location_list_params import LocationListParams as LocationListParams +from .ase_list_params import AseListParams as AseListParams from .location_list_response import LocationListResponse as LocationListResponse +from .location_list_params import LocationListParams as LocationListParams diff --git a/src/cloudflare/types/radar/netflows/tops/ase_list_params.py b/src/cloudflare/types/radar/netflows/tops/ase_list_params.py index 965368d1131..1e67c6179ab 100644 --- a/src/cloudflare/types/radar/netflows/tops/ase_list_params.py +++ b/src/cloudflare/types/radar/netflows/tops/ase_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["AseListParams"] diff --git a/src/cloudflare/types/radar/netflows/tops/ase_list_response.py b/src/cloudflare/types/radar/netflows/tops/ase_list_response.py index c77c6d472c9..0cce43519f1 100644 --- a/src/cloudflare/types/radar/netflows/tops/ase_list_response.py +++ b/src/cloudflare/types/radar/netflows/tops/ase_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["AseListResponse", "Top0"] diff --git a/src/cloudflare/types/radar/netflows/tops/location_list_params.py b/src/cloudflare/types/radar/netflows/tops/location_list_params.py index 89fc4c57980..4a2c4510aa6 100644 --- a/src/cloudflare/types/radar/netflows/tops/location_list_params.py +++ b/src/cloudflare/types/radar/netflows/tops/location_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/netflows/tops/location_list_response.py b/src/cloudflare/types/radar/netflows/tops/location_list_response.py index df11f983fea..06f7ff47467 100644 --- a/src/cloudflare/types/radar/netflows/tops/location_list_response.py +++ b/src/cloudflare/types/radar/netflows/tops/location_list_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["LocationListResponse", "Top0"] diff --git a/src/cloudflare/types/radar/quality/__init__.py b/src/cloudflare/types/radar/quality/__init__.py index 6d81a67b29c..6cb053700ff 100644 --- a/src/cloudflare/types/radar/quality/__init__.py +++ b/src/cloudflare/types/radar/quality/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .iqi_get_params import IqiGetParams as IqiGetParams from .iqi_get_response import IqiGetResponse as IqiGetResponse +from .iqi_get_params import IqiGetParams as IqiGetParams diff --git a/src/cloudflare/types/radar/quality/iqi/__init__.py b/src/cloudflare/types/radar/quality/iqi/__init__.py index b7deb0bc155..56f1f85f659 100644 --- a/src/cloudflare/types/radar/quality/iqi/__init__.py +++ b/src/cloudflare/types/radar/quality/iqi/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams from .timeseries_group_list_response import TimeseriesGroupListResponse as TimeseriesGroupListResponse +from .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams diff --git a/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_params.py b/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_params.py index 9907e9f582b..db4780945e8 100644 --- a/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_params.py +++ b/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["TimeseriesGroupListParams"] diff --git a/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_response.py b/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_response.py index f34f592eff8..2cdc9d15143 100644 --- a/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_response.py +++ b/src/cloudflare/types/radar/quality/iqi/timeseries_group_list_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["TimeseriesGroupListResponse", "Serie0"] diff --git a/src/cloudflare/types/radar/quality/iqi_get_params.py b/src/cloudflare/types/radar/quality/iqi_get_params.py index 22c70af0634..32ecc2d7a80 100644 --- a/src/cloudflare/types/radar/quality/iqi_get_params.py +++ b/src/cloudflare/types/radar/quality/iqi_get_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["IqiGetParams"] diff --git a/src/cloudflare/types/radar/quality/iqi_get_response.py b/src/cloudflare/types/radar/quality/iqi_get_response.py index 722d63f65a4..dc58ff5bda4 100644 --- a/src/cloudflare/types/radar/quality/iqi_get_response.py +++ b/src/cloudflare/types/radar/quality/iqi_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = ["IqiGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Summary0"] diff --git a/src/cloudflare/types/radar/quality/speed/__init__.py b/src/cloudflare/types/radar/quality/speed/__init__.py index 7a4a2205d0c..bd31cfd8583 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 .summary_get_params import SummaryGetParams as SummaryGetParams +from .histogram_get_response import HistogramGetResponse as HistogramGetResponse from .histogram_get_params import HistogramGetParams as HistogramGetParams from .summary_get_response import SummaryGetResponse as SummaryGetResponse -from .histogram_get_response import HistogramGetResponse as HistogramGetResponse +from .summary_get_params import SummaryGetParams as SummaryGetParams diff --git a/src/cloudflare/types/radar/quality/speed/histogram_get_params.py b/src/cloudflare/types/radar/quality/speed/histogram_get_params.py index c6a07125a1e..2372763f031 100644 --- a/src/cloudflare/types/radar/quality/speed/histogram_get_params.py +++ b/src/cloudflare/types/radar/quality/speed/histogram_get_params.py @@ -2,11 +2,19 @@ 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 +from .....types import shared_params __all__ = ["HistogramGetParams"] diff --git a/src/cloudflare/types/radar/quality/speed/histogram_get_response.py b/src/cloudflare/types/radar/quality/speed/histogram_get_response.py index ad81c18d7e5..6ae95fe41bf 100644 --- a/src/cloudflare/types/radar/quality/speed/histogram_get_response.py +++ b/src/cloudflare/types/radar/quality/speed/histogram_get_response.py @@ -2,9 +2,11 @@ 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 +from .....types import shared __all__ = ["HistogramGetResponse", "Histogram0"] diff --git a/src/cloudflare/types/radar/quality/speed/summary_get_params.py b/src/cloudflare/types/radar/quality/speed/summary_get_params.py index a60a028a62c..aeb25084f6b 100644 --- a/src/cloudflare/types/radar/quality/speed/summary_get_params.py +++ b/src/cloudflare/types/radar/quality/speed/summary_get_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["SummaryGetParams"] diff --git a/src/cloudflare/types/radar/quality/speed/summary_get_response.py b/src/cloudflare/types/radar/quality/speed/summary_get_response.py index 306f260bb50..17814eee8f6 100644 --- a/src/cloudflare/types/radar/quality/speed/summary_get_response.py +++ b/src/cloudflare/types/radar/quality/speed/summary_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = [ "SummaryGetResponse", diff --git a/src/cloudflare/types/radar/quality/speed/top/__init__.py b/src/cloudflare/types/radar/quality/speed/top/__init__.py index cd358fb1b38..fcca4d4d723 100644 --- a/src/cloudflare/types/radar/quality/speed/top/__init__.py +++ b/src/cloudflare/types/radar/quality/speed/top/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .ase_list_params import AseListParams as AseListParams from .ase_list_response import AseListResponse as AseListResponse -from .location_list_params import LocationListParams as LocationListParams +from .ase_list_params import AseListParams as AseListParams from .location_list_response import LocationListResponse as LocationListResponse +from .location_list_params import LocationListParams as LocationListParams diff --git a/src/cloudflare/types/radar/quality/speed/top/ase_list_params.py b/src/cloudflare/types/radar/quality/speed/top/ase_list_params.py index e087495e083..83c31220dbe 100644 --- a/src/cloudflare/types/radar/quality/speed/top/ase_list_params.py +++ b/src/cloudflare/types/radar/quality/speed/top/ase_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["AseListParams"] diff --git a/src/cloudflare/types/radar/quality/speed/top/ase_list_response.py b/src/cloudflare/types/radar/quality/speed/top/ase_list_response.py index f0f91ee1fb9..af3d968e60a 100644 --- a/src/cloudflare/types/radar/quality/speed/top/ase_list_response.py +++ b/src/cloudflare/types/radar/quality/speed/top/ase_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = ["AseListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/quality/speed/top/location_list_params.py b/src/cloudflare/types/radar/quality/speed/top/location_list_params.py index 356c94d17f1..3d7717c6f65 100644 --- a/src/cloudflare/types/radar/quality/speed/top/location_list_params.py +++ b/src/cloudflare/types/radar/quality/speed/top/location_list_params.py @@ -2,12 +2,20 @@ 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 +from ......types import shared_params + __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/quality/speed/top/location_list_response.py b/src/cloudflare/types/radar/quality/speed/top/location_list_response.py index dd34f9484e9..cd6668a9c14 100644 --- a/src/cloudflare/types/radar/quality/speed/top/location_list_response.py +++ b/src/cloudflare/types/radar/quality/speed/top/location_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "LocationListResponse", diff --git a/src/cloudflare/types/radar/ranking/__init__.py b/src/cloudflare/types/radar/ranking/__init__.py index b7deb0bc155..56f1f85f659 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 .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams from .timeseries_group_list_response import TimeseriesGroupListResponse as TimeseriesGroupListResponse +from .timeseries_group_list_params import TimeseriesGroupListParams as TimeseriesGroupListParams diff --git a/src/cloudflare/types/radar/ranking/timeseries_group_list_params.py b/src/cloudflare/types/radar/ranking/timeseries_group_list_params.py index e4c7324b9d7..53b519b9326 100644 --- a/src/cloudflare/types/radar/ranking/timeseries_group_list_params.py +++ b/src/cloudflare/types/radar/ranking/timeseries_group_list_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["TimeseriesGroupListParams"] diff --git a/src/cloudflare/types/radar/ranking/timeseries_group_list_response.py b/src/cloudflare/types/radar/ranking/timeseries_group_list_response.py index eef9ecb8bc4..a95143d2e23 100644 --- a/src/cloudflare/types/radar/ranking/timeseries_group_list_response.py +++ b/src/cloudflare/types/radar/ranking/timeseries_group_list_response.py @@ -1,11 +1,15 @@ # File generated from our OpenAPI spec by Stainless. -from typing import TYPE_CHECKING, List, Union from datetime import datetime -from pydantic import Field as FieldInfo +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 ...._models import BaseModel +from ....types import shared +from typing import TYPE_CHECKING __all__ = ["TimeseriesGroupListResponse", "Meta", "MetaDateRange", "Serie0"] diff --git a/src/cloudflare/types/radar/searches/__init__.py b/src/cloudflare/types/radar/searches/__init__.py index dfc7705a07b..91d63f7a2d0 100644 --- a/src/cloudflare/types/radar/searches/__init__.py +++ b/src/cloudflare/types/radar/searches/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .global_list_params import GlobalListParams as GlobalListParams from .global_list_response import GlobalListResponse as GlobalListResponse +from .global_list_params import GlobalListParams as GlobalListParams diff --git a/src/cloudflare/types/radar/searches/global_list_params.py b/src/cloudflare/types/radar/searches/global_list_params.py index 240aa985b50..8407b7cb86e 100644 --- a/src/cloudflare/types/radar/searches/global_list_params.py +++ b/src/cloudflare/types/radar/searches/global_list_params.py @@ -2,11 +2,18 @@ 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 +from ....types import shared_params + __all__ = ["GlobalListParams"] diff --git a/src/cloudflare/types/radar/searches/global_list_response.py b/src/cloudflare/types/radar/searches/global_list_response.py index 9390a9d6eff..82a0662b3a4 100644 --- a/src/cloudflare/types/radar/searches/global_list_response.py +++ b/src/cloudflare/types/radar/searches/global_list_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["GlobalListResponse", "Search"] diff --git a/src/cloudflare/types/radar/traffic_anomalies/__init__.py b/src/cloudflare/types/radar/traffic_anomalies/__init__.py index 69083e1b782..490bd12432c 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_list_params import LocationListParams as LocationListParams from .location_list_response import LocationListResponse as LocationListResponse +from .location_list_params import LocationListParams as LocationListParams diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_list_params.py b/src/cloudflare/types/radar/traffic_anomalies/location_list_params.py index 300cfa52ee4..04297f587c4 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_list_params.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_list_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["LocationListParams"] diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_list_response.py b/src/cloudflare/types/radar/traffic_anomalies/location_list_response.py index 8d0057e2449..52254efc592 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_list_response.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_list_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["LocationListResponse", "TrafficAnomaly"] diff --git a/src/cloudflare/types/radar/traffic_anomaly_list_params.py b/src/cloudflare/types/radar/traffic_anomaly_list_params.py index 237cec6925a..4cd9a47f947 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_list_params.py +++ b/src/cloudflare/types/radar/traffic_anomaly_list_params.py @@ -2,12 +2,20 @@ 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 +from ...types import shared_params + __all__ = ["TrafficAnomalyListParams"] diff --git a/src/cloudflare/types/radar/traffic_anomaly_list_response.py b/src/cloudflare/types/radar/traffic_anomaly_list_response.py index 39eff16eda9..c7e489e4ed8 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_list_response.py +++ b/src/cloudflare/types/radar/traffic_anomaly_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = [ "TrafficAnomalyListResponse", diff --git a/src/cloudflare/types/radar/verified_bots/tops/__init__.py b/src/cloudflare/types/radar/verified_bots/tops/__init__.py index 785e84daaac..8512f3d65e8 100644 --- a/src/cloudflare/types/radar/verified_bots/tops/__init__.py +++ b/src/cloudflare/types/radar/verified_bots/tops/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .bot_list_params import BotListParams as BotListParams from .bot_list_response import BotListResponse as BotListResponse -from .category_list_params import CategoryListParams as CategoryListParams +from .bot_list_params import BotListParams as BotListParams from .category_list_response import CategoryListResponse as CategoryListResponse +from .category_list_params import CategoryListParams as CategoryListParams diff --git a/src/cloudflare/types/radar/verified_bots/tops/bot_list_params.py b/src/cloudflare/types/radar/verified_bots/tops/bot_list_params.py index 6a7d1e088e1..44c7aa6e9c6 100644 --- a/src/cloudflare/types/radar/verified_bots/tops/bot_list_params.py +++ b/src/cloudflare/types/radar/verified_bots/tops/bot_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["BotListParams"] diff --git a/src/cloudflare/types/radar/verified_bots/tops/bot_list_response.py b/src/cloudflare/types/radar/verified_bots/tops/bot_list_response.py index 5e25a8a11ef..0e9656e2592 100644 --- a/src/cloudflare/types/radar/verified_bots/tops/bot_list_response.py +++ b/src/cloudflare/types/radar/verified_bots/tops/bot_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = ["BotListResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"] diff --git a/src/cloudflare/types/radar/verified_bots/tops/category_list_params.py b/src/cloudflare/types/radar/verified_bots/tops/category_list_params.py index 87b4946665a..ba8e5d82233 100644 --- a/src/cloudflare/types/radar/verified_bots/tops/category_list_params.py +++ b/src/cloudflare/types/radar/verified_bots/tops/category_list_params.py @@ -2,12 +2,20 @@ 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 +from .....types import shared_params + __all__ = ["CategoryListParams"] diff --git a/src/cloudflare/types/radar/verified_bots/tops/category_list_response.py b/src/cloudflare/types/radar/verified_bots/tops/category_list_response.py index 79afd958a97..df617a82cf5 100644 --- a/src/cloudflare/types/radar/verified_bots/tops/category_list_response.py +++ b/src/cloudflare/types/radar/verified_bots/tops/category_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional from datetime import datetime -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = [ "CategoryListResponse", diff --git a/src/cloudflare/types/rate_limit_get_response.py b/src/cloudflare/types/rate_limit_get_response.py index 0414a02b6c6..43c184bc8dc 100644 --- a/src/cloudflare/types/rate_limit_get_response.py +++ b/src/cloudflare/types/rate_limit_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["RateLimitGetResponse"] diff --git a/src/cloudflare/types/rate_limit_list_params.py b/src/cloudflare/types/rate_limit_list_params.py index da06c38f6ca..07b9c070734 100644 --- a/src/cloudflare/types/rate_limit_list_params.py +++ b/src/cloudflare/types/rate_limit_list_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["RateLimitListParams"] diff --git a/src/cloudflare/types/rate_limit_list_response.py b/src/cloudflare/types/rate_limit_list_response.py index 3112631a2c7..4bf2f4fc9ec 100644 --- a/src/cloudflare/types/rate_limit_list_response.py +++ b/src/cloudflare/types/rate_limit_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = [ "RateLimitListResponse", diff --git a/src/cloudflare/types/rate_limit_update_params.py b/src/cloudflare/types/rate_limit_update_params.py index abc7620a933..2473dece8ba 100644 --- a/src/cloudflare/types/rate_limit_update_params.py +++ b/src/cloudflare/types/rate_limit_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["RateLimitUpdateParams"] diff --git a/src/cloudflare/types/rate_limit_update_response.py b/src/cloudflare/types/rate_limit_update_response.py index c5c47e84af9..589f81eb465 100644 --- a/src/cloudflare/types/rate_limit_update_response.py +++ b/src/cloudflare/types/rate_limit_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from .._models import BaseModel +from ..types import shared __all__ = ["RateLimitUpdateResponse"] diff --git a/src/cloudflare/types/registrar/__init__.py b/src/cloudflare/types/registrar/__init__.py index 88e556dfbb5..bffb2ba0b32 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_get_response import DomainGetResponse as DomainGetResponse +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_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 019f56121e8..6147ddc4306 100644 --- a/src/cloudflare/types/registrar/domain_get_response.py +++ b/src/cloudflare/types/registrar/domain_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["DomainGetResponse"] diff --git a/src/cloudflare/types/registrar/domain_list_response.py b/src/cloudflare/types/registrar/domain_list_response.py index 71ba8eaf4b6..9e84c0a0471 100644 --- a/src/cloudflare/types/registrar/domain_list_response.py +++ b/src/cloudflare/types/registrar/domain_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = [ "DomainListResponse", diff --git a/src/cloudflare/types/registrar/domain_update_params.py b/src/cloudflare/types/registrar/domain_update_params.py index 10e1e27195f..4dab0019b2d 100644 --- a/src/cloudflare/types/registrar/domain_update_params.py +++ b/src/cloudflare/types/registrar/domain_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["DomainUpdateParams"] diff --git a/src/cloudflare/types/registrar/domain_update_response.py b/src/cloudflare/types/registrar/domain_update_response.py index 762310e9e93..f152b2d6e83 100644 --- a/src/cloudflare/types/registrar/domain_update_response.py +++ b/src/cloudflare/types/registrar/domain_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["DomainUpdateResponse"] diff --git a/src/cloudflare/types/request_tracers/__init__.py b/src/cloudflare/types/request_tracers/__init__.py index a4276d2691c..18fba6218e1 100644 --- a/src/cloudflare/types/request_tracers/__init__.py +++ b/src/cloudflare/types/request_tracers/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .trace_create_params import TraceCreateParams as TraceCreateParams from .trace_create_response import TraceCreateResponse as TraceCreateResponse +from .trace_create_params import TraceCreateParams as TraceCreateParams diff --git a/src/cloudflare/types/request_tracers/trace_create_params.py b/src/cloudflare/types/request_tracers/trace_create_params.py index 6709a58d5e8..3bb8784342c 100644 --- a/src/cloudflare/types/request_tracers/trace_create_params.py +++ b/src/cloudflare/types/request_tracers/trace_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Dict -from typing_extensions import Required, 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 ...types import shared_params __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 801d9ed8ef7..ed562659bc1 100644 --- a/src/cloudflare/types/request_tracers/trace_create_response.py +++ b/src/cloudflare/types/request_tracers/trace_create_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["TraceCreateResponse", "Trace", "TraceTrace"] diff --git a/src/cloudflare/types/role_account_roles_list_roles_response.py b/src/cloudflare/types/role_account_roles_list_roles_response.py index df35c925e22..b19dc67a5d2 100644 --- a/src/cloudflare/types/role_account_roles_list_roles_response.py +++ b/src/cloudflare/types/role_account_roles_list_roles_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["RoleAccountRolesListRolesResponse", "RoleAccountRolesListRolesResponseItem"] diff --git a/src/cloudflare/types/role_get_response.py b/src/cloudflare/types/role_get_response.py index 648c2af4f5c..6a3c7e5480c 100644 --- a/src/cloudflare/types/role_get_response.py +++ b/src/cloudflare/types/role_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["RoleGetResponse"] diff --git a/src/cloudflare/types/rules/__init__.py b/src/cloudflare/types/rules/__init__.py index 5ed528f014a..1b3a8af44af 100644 --- a/src/cloudflare/types/rules/__init__.py +++ b/src/cloudflare/types/rules/__init__.py @@ -2,10 +2,10 @@ from __future__ import annotations -from .list_get_response import ListGetResponse as ListGetResponse -from .list_update_params import ListUpdateParams as ListUpdateParams -from .list_delete_response import ListDeleteResponse as ListDeleteResponse from .list_update_response import ListUpdateResponse as ListUpdateResponse +from .list_delete_response import ListDeleteResponse as ListDeleteResponse +from .list_get_response import ListGetResponse as ListGetResponse +from .list_lists_create_a_list_response import ListListsCreateAListResponse as ListListsCreateAListResponse from .list_lists_get_lists_response import ListListsGetListsResponse as ListListsGetListsResponse +from .list_update_params import ListUpdateParams as ListUpdateParams from .list_lists_create_a_list_params import ListListsCreateAListParams as ListListsCreateAListParams -from .list_lists_create_a_list_response import ListListsCreateAListResponse as ListListsCreateAListResponse diff --git a/src/cloudflare/types/rules/list_delete_response.py b/src/cloudflare/types/rules/list_delete_response.py index c53a99497c4..4a414674f9c 100644 --- a/src/cloudflare/types/rules/list_delete_response.py +++ b/src/cloudflare/types/rules/list_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ListDeleteResponse"] diff --git a/src/cloudflare/types/rules/list_get_response.py b/src/cloudflare/types/rules/list_get_response.py index 0aa21c6f508..446734315d5 100644 --- a/src/cloudflare/types/rules/list_get_response.py +++ b/src/cloudflare/types/rules/list_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ListGetResponse"] diff --git a/src/cloudflare/types/rules/list_lists_create_a_list_params.py b/src/cloudflare/types/rules/list_lists_create_a_list_params.py index c0bd8dbe15c..2e3876eb28f 100644 --- a/src/cloudflare/types/rules/list_lists_create_a_list_params.py +++ b/src/cloudflare/types/rules/list_lists_create_a_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ListListsCreateAListParams"] diff --git a/src/cloudflare/types/rules/list_lists_create_a_list_response.py b/src/cloudflare/types/rules/list_lists_create_a_list_response.py index 52328042365..1259c47dde6 100644 --- a/src/cloudflare/types/rules/list_lists_create_a_list_response.py +++ b/src/cloudflare/types/rules/list_lists_create_a_list_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ListListsCreateAListResponse"] diff --git a/src/cloudflare/types/rules/list_lists_get_lists_response.py b/src/cloudflare/types/rules/list_lists_get_lists_response.py index ae535db98e8..5d2aae6f463 100644 --- a/src/cloudflare/types/rules/list_lists_get_lists_response.py +++ b/src/cloudflare/types/rules/list_lists_get_lists_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional 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 +from ...types import shared __all__ = ["ListListsGetListsResponse", "ListListsGetListsResponseItem"] diff --git a/src/cloudflare/types/rules/list_update_params.py b/src/cloudflare/types/rules/list_update_params.py index c5a15161e58..5a531c1860a 100644 --- a/src/cloudflare/types/rules/list_update_params.py +++ b/src/cloudflare/types/rules/list_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ListUpdateParams"] diff --git a/src/cloudflare/types/rules/list_update_response.py b/src/cloudflare/types/rules/list_update_response.py index cbcc7c74386..69e47f430f2 100644 --- a/src/cloudflare/types/rules/list_update_response.py +++ b/src/cloudflare/types/rules/list_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ListUpdateResponse"] diff --git a/src/cloudflare/types/rules/lists/__init__.py b/src/cloudflare/types/rules/lists/__init__.py index 04e8e968ce9..d4ba3fa49bc 100644 --- a/src/cloudflare/types/rules/lists/__init__.py +++ b/src/cloudflare/types/rules/lists/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .item_get_response import ItemGetResponse as ItemGetResponse -from .item_delete_params import ItemDeleteParams as ItemDeleteParams -from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse from .bulk_operation_get_response import BulkOperationGetResponse as BulkOperationGetResponse -from .item_lists_get_list_items_params import ItemListsGetListItemsParams as ItemListsGetListItemsParams +from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse +from .item_get_response import ItemGetResponse as ItemGetResponse +from .item_lists_create_list_items_response import ItemListsCreateListItemsResponse as ItemListsCreateListItemsResponse from .item_lists_get_list_items_response import ItemListsGetListItemsResponse as ItemListsGetListItemsResponse +from .item_lists_update_all_list_items_response import ( + ItemListsUpdateAllListItemsResponse as ItemListsUpdateAllListItemsResponse, +) +from .item_delete_params import ItemDeleteParams as ItemDeleteParams from .item_lists_create_list_items_params import ItemListsCreateListItemsParams as ItemListsCreateListItemsParams -from .item_lists_create_list_items_response import ItemListsCreateListItemsResponse as ItemListsCreateListItemsResponse +from .item_lists_get_list_items_params import ItemListsGetListItemsParams as ItemListsGetListItemsParams from .item_lists_update_all_list_items_params import ( ItemListsUpdateAllListItemsParams as ItemListsUpdateAllListItemsParams, ) -from .item_lists_update_all_list_items_response import ( - ItemListsUpdateAllListItemsResponse as ItemListsUpdateAllListItemsResponse, -) 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 4a439ba3cc2..be16e28cc62 100644 --- a/src/cloudflare/types/rules/lists/bulk_operation_get_response.py +++ b/src/cloudflare/types/rules/lists/bulk_operation_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["BulkOperationGetResponse"] diff --git a/src/cloudflare/types/rules/lists/item_delete_params.py b/src/cloudflare/types/rules/lists/item_delete_params.py index 843bfbfc3d2..7960a7d9d0b 100644 --- a/src/cloudflare/types/rules/lists/item_delete_params.py +++ b/src/cloudflare/types/rules/lists/item_delete_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["ItemDeleteParams", "Item"] diff --git a/src/cloudflare/types/rules/lists/item_delete_response.py b/src/cloudflare/types/rules/lists/item_delete_response.py index 6d7421f7cf1..c5698c26e71 100644 --- a/src/cloudflare/types/rules/lists/item_delete_response.py +++ b/src/cloudflare/types/rules/lists/item_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __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 bb4b9a3cf6b..db2d61f0494 100644 --- a/src/cloudflare/types/rules/lists/item_get_response.py +++ b/src/cloudflare/types/rules/lists/item_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ....types import shared __all__ = ["ItemGetResponse", "ListsItemRedirect", "ListsItemHostname"] diff --git a/src/cloudflare/types/rules/lists/item_lists_create_list_items_params.py b/src/cloudflare/types/rules/lists/item_lists_create_list_items_params.py index ebc99721293..8bd1820f64f 100644 --- a/src/cloudflare/types/rules/lists/item_lists_create_list_items_params.py +++ b/src/cloudflare/types/rules/lists/item_lists_create_list_items_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = ["ItemListsCreateListItemsParams", "Body", "BodyHostname", "BodyRedirect"] diff --git a/src/cloudflare/types/rules/lists/item_lists_create_list_items_response.py b/src/cloudflare/types/rules/lists/item_lists_create_list_items_response.py index d142078390a..083139a054e 100644 --- a/src/cloudflare/types/rules/lists/item_lists_create_list_items_response.py +++ b/src/cloudflare/types/rules/lists/item_lists_create_list_items_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ItemListsCreateListItemsResponse"] diff --git a/src/cloudflare/types/rules/lists/item_lists_get_list_items_params.py b/src/cloudflare/types/rules/lists/item_lists_get_list_items_params.py index 1ac36591f72..f3c85ed3c9e 100644 --- a/src/cloudflare/types/rules/lists/item_lists_get_list_items_params.py +++ b/src/cloudflare/types/rules/lists/item_lists_get_list_items_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ItemListsGetListItemsParams"] diff --git a/src/cloudflare/types/rules/lists/item_lists_get_list_items_response.py b/src/cloudflare/types/rules/lists/item_lists_get_list_items_response.py index e338d07c09d..13dff766f67 100644 --- a/src/cloudflare/types/rules/lists/item_lists_get_list_items_response.py +++ b/src/cloudflare/types/rules/lists/item_lists_get_list_items_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["ItemListsGetListItemsResponse"] diff --git a/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_params.py b/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_params.py index de5473712eb..70e717bacf2 100644 --- a/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_params.py +++ b/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = ["ItemListsUpdateAllListItemsParams", "Body", "BodyHostname", "BodyRedirect"] diff --git a/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_response.py b/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_response.py index b35c3c7a1e4..fc9e925a023 100644 --- a/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_response.py +++ b/src/cloudflare/types/rules/lists/item_lists_update_all_list_items_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ItemListsUpdateAllListItemsResponse"] diff --git a/src/cloudflare/types/ruleset_create_params.py b/src/cloudflare/types/ruleset_create_params.py index d24566251e3..0fc490148c6 100644 --- a/src/cloudflare/types/ruleset_create_params.py +++ b/src/cloudflare/types/ruleset_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, Dict, 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 ..types import shared_params __all__ = [ "RulesetCreateParams", diff --git a/src/cloudflare/types/ruleset_create_response.py b/src/cloudflare/types/ruleset_create_response.py index ed4e9785fd7..10916a1ecfa 100644 --- a/src/cloudflare/types/ruleset_create_response.py +++ b/src/cloudflare/types/ruleset_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ..types import shared __all__ = [ "RulesetCreateResponse", diff --git a/src/cloudflare/types/ruleset_get_response.py b/src/cloudflare/types/ruleset_get_response.py index 2cc1dd41567..647f03c17bb 100644 --- a/src/cloudflare/types/ruleset_get_response.py +++ b/src/cloudflare/types/ruleset_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ..types import shared __all__ = [ "RulesetGetResponse", diff --git a/src/cloudflare/types/ruleset_list_response.py b/src/cloudflare/types/ruleset_list_response.py index 60cd593f9e8..4844dc21e7e 100644 --- a/src/cloudflare/types/ruleset_list_response.py +++ b/src/cloudflare/types/ruleset_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime 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 +from ..types import shared __all__ = ["RulesetListResponse", "RulesetListResponseItem"] diff --git a/src/cloudflare/types/ruleset_update_params.py b/src/cloudflare/types/ruleset_update_params.py index 526eaaff838..a3b57c534b9 100644 --- a/src/cloudflare/types/ruleset_update_params.py +++ b/src/cloudflare/types/ruleset_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, Dict, 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 ..types import shared_params __all__ = [ "RulesetUpdateParams", diff --git a/src/cloudflare/types/ruleset_update_response.py b/src/cloudflare/types/ruleset_update_response.py index e9176cde3c0..b7b2b77e2a3 100644 --- a/src/cloudflare/types/ruleset_update_response.py +++ b/src/cloudflare/types/ruleset_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ..types import shared __all__ = [ "RulesetUpdateResponse", diff --git a/src/cloudflare/types/rulesets/__init__.py b/src/cloudflare/types/rulesets/__init__.py index c76f1c9a08a..ac8b563513b 100644 --- a/src/cloudflare/types/rulesets/__init__.py +++ b/src/cloudflare/types/rulesets/__init__.py @@ -3,16 +3,16 @@ from __future__ import annotations from .phase_get_response import PhaseGetResponse as PhaseGetResponse -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .version_get_response import VersionGetResponse as VersionGetResponse -from .rule_account_rulesets_create_an_account_ruleset_rule_params import ( - RuleAccountRulesetsCreateAnAccountRulesetRuleParams as RuleAccountRulesetsCreateAnAccountRulesetRuleParams, -) +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse from .rule_account_rulesets_create_an_account_ruleset_rule_response import ( RuleAccountRulesetsCreateAnAccountRulesetRuleResponse as RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, ) +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_account_rulesets_create_an_account_ruleset_rule_params import ( + RuleAccountRulesetsCreateAnAccountRulesetRuleParams as RuleAccountRulesetsCreateAnAccountRulesetRuleParams, +) from .version_account_rulesets_list_an_account_ruleset_s_versions_response import ( VersionAccountRulesetsListAnAccountRulesetSVersionsResponse as VersionAccountRulesetsListAnAccountRulesetSVersionsResponse, ) +from .version_get_response import VersionGetResponse as VersionGetResponse diff --git a/src/cloudflare/types/rulesets/phase_get_response.py b/src/cloudflare/types/rulesets/phase_get_response.py index 2f024a053c3..caa1866b728 100644 --- a/src/cloudflare/types/rulesets/phase_get_response.py +++ b/src/cloudflare/types/rulesets/phase_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ...types import shared __all__ = [ "PhaseGetResponse", diff --git a/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_params.py b/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_params.py index b0431eb0b79..b84aeb1098a 100644 --- a/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_params.py +++ b/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, 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 ...types import shared_params __all__ = [ "RuleAccountRulesetsCreateAnAccountRulesetRuleParams", diff --git a/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_response.py b/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_response.py index a68c61e1f43..a400c86fd76 100644 --- a/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_response.py +++ b/src/cloudflare/types/rulesets/rule_account_rulesets_create_an_account_ruleset_rule_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ...types import shared __all__ = [ "RuleAccountRulesetsCreateAnAccountRulesetRuleResponse", diff --git a/src/cloudflare/types/rulesets/rule_delete_response.py b/src/cloudflare/types/rulesets/rule_delete_response.py index 8daf9745e0f..7632656892a 100644 --- a/src/cloudflare/types/rulesets/rule_delete_response.py +++ b/src/cloudflare/types/rulesets/rule_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ...types import shared __all__ = [ "RuleDeleteResponse", diff --git a/src/cloudflare/types/rulesets/rule_update_params.py b/src/cloudflare/types/rulesets/rule_update_params.py index 80da964262b..86866bd740b 100644 --- a/src/cloudflare/types/rulesets/rule_update_params.py +++ b/src/cloudflare/types/rulesets/rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import Dict, List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, 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 ...types import shared_params __all__ = [ "RuleUpdateParams", diff --git a/src/cloudflare/types/rulesets/rule_update_response.py b/src/cloudflare/types/rulesets/rule_update_response.py index 93c3bf66506..8de4535dbdf 100644 --- a/src/cloudflare/types/rulesets/rule_update_response.py +++ b/src/cloudflare/types/rulesets/rule_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ...types import shared __all__ = [ "RuleUpdateResponse", diff --git a/src/cloudflare/types/rulesets/version_account_rulesets_list_an_account_ruleset_s_versions_response.py b/src/cloudflare/types/rulesets/version_account_rulesets_list_an_account_ruleset_s_versions_response.py index 5837c7d0506..287b87ddae5 100644 --- a/src/cloudflare/types/rulesets/version_account_rulesets_list_an_account_ruleset_s_versions_response.py +++ b/src/cloudflare/types/rulesets/version_account_rulesets_list_an_account_ruleset_s_versions_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime 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 +from ...types import shared __all__ = [ "VersionAccountRulesetsListAnAccountRulesetSVersionsResponse", diff --git a/src/cloudflare/types/rulesets/version_get_response.py b/src/cloudflare/types/rulesets/version_get_response.py index 16ebe52c54b..2ab97433b88 100644 --- a/src/cloudflare/types/rulesets/version_get_response.py +++ b/src/cloudflare/types/rulesets/version_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ...types import shared __all__ = [ "VersionGetResponse", 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 f82072db36d..e7f52aeef88 100644 --- a/src/cloudflare/types/rulesets/versions/by_tag_get_response.py +++ b/src/cloudflare/types/rulesets/versions/by_tag_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict + 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 ....types import shared __all__ = [ "ByTagGetResponse", diff --git a/src/cloudflare/types/rum/__init__.py b/src/cloudflare/types/rum/__init__.py index 2c3ccbddbad..48f674f0e02 100644 --- a/src/cloudflare/types/rum/__init__.py +++ b/src/cloudflare/types/rum/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -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_create_response import RuleCreateResponse as RuleCreateResponse -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse -from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .site_info_list_params import SiteInfoListParams as SiteInfoListParams +from .site_info_create_response import SiteInfoCreateResponse as SiteInfoCreateResponse +from .site_info_update_response import SiteInfoUpdateResponse as SiteInfoUpdateResponse +from .site_info_list_response import SiteInfoListResponse as SiteInfoListResponse +from .site_info_delete_response import SiteInfoDeleteResponse as SiteInfoDeleteResponse from .site_info_get_response import SiteInfoGetResponse as SiteInfoGetResponse from .site_info_create_params import SiteInfoCreateParams as SiteInfoCreateParams -from .site_info_list_response import SiteInfoListResponse as SiteInfoListResponse from .site_info_update_params import SiteInfoUpdateParams as SiteInfoUpdateParams -from .site_info_create_response import SiteInfoCreateResponse as SiteInfoCreateResponse -from .site_info_delete_response import SiteInfoDeleteResponse as SiteInfoDeleteResponse -from .site_info_update_response import SiteInfoUpdateResponse as SiteInfoUpdateResponse +from .site_info_list_params import SiteInfoListParams as SiteInfoListParams +from .rule_create_response import RuleCreateResponse as RuleCreateResponse +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +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 diff --git a/src/cloudflare/types/rum/rule_create_params.py b/src/cloudflare/types/rum/rule_create_params.py index 7542a72a506..5c70791d886 100644 --- a/src/cloudflare/types/rum/rule_create_params.py +++ b/src/cloudflare/types/rum/rule_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["RuleCreateParams"] diff --git a/src/cloudflare/types/rum/rule_create_response.py b/src/cloudflare/types/rum/rule_create_response.py index 64675d8a5ae..eecfb3cb23b 100644 --- a/src/cloudflare/types/rum/rule_create_response.py +++ b/src/cloudflare/types/rum/rule_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RuleCreateResponse"] diff --git a/src/cloudflare/types/rum/rule_delete_response.py b/src/cloudflare/types/rum/rule_delete_response.py index 37cc31feefd..0becf4ac4d8 100644 --- a/src/cloudflare/types/rum/rule_delete_response.py +++ b/src/cloudflare/types/rum/rule_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/rum/rule_list_response.py b/src/cloudflare/types/rum/rule_list_response.py index 62ced42633d..25077550416 100644 --- a/src/cloudflare/types/rum/rule_list_response.py +++ b/src/cloudflare/types/rum/rule_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RuleListResponse", "Rule", "Ruleset"] diff --git a/src/cloudflare/types/rum/rule_update_params.py b/src/cloudflare/types/rum/rule_update_params.py index 2ce2e552d62..bae7875f652 100644 --- a/src/cloudflare/types/rum/rule_update_params.py +++ b/src/cloudflare/types/rum/rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/rum/rule_update_response.py b/src/cloudflare/types/rum/rule_update_response.py index 22859a7f1fa..4446199bb2f 100644 --- a/src/cloudflare/types/rum/rule_update_response.py +++ b/src/cloudflare/types/rum/rule_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["RuleUpdateResponse"] diff --git a/src/cloudflare/types/rum/site_info_create_params.py b/src/cloudflare/types/rum/site_info_create_params.py index a7fa36b2b6b..a29053cb29e 100644 --- a/src/cloudflare/types/rum/site_info_create_params.py +++ b/src/cloudflare/types/rum/site_info_create_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["SiteInfoCreateParams"] diff --git a/src/cloudflare/types/rum/site_info_create_response.py b/src/cloudflare/types/rum/site_info_create_response.py index 6007b4dc663..6c262cb5b0c 100644 --- a/src/cloudflare/types/rum/site_info_create_response.py +++ b/src/cloudflare/types/rum/site_info_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["SiteInfoCreateResponse", "Rule", "Ruleset"] diff --git a/src/cloudflare/types/rum/site_info_delete_response.py b/src/cloudflare/types/rum/site_info_delete_response.py index b1b629010f9..bf8771ec802 100644 --- a/src/cloudflare/types/rum/site_info_delete_response.py +++ b/src/cloudflare/types/rum/site_info_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SiteInfoDeleteResponse"] diff --git a/src/cloudflare/types/rum/site_info_get_response.py b/src/cloudflare/types/rum/site_info_get_response.py index cfa45560518..760c3dacb5a 100644 --- a/src/cloudflare/types/rum/site_info_get_response.py +++ b/src/cloudflare/types/rum/site_info_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["SiteInfoGetResponse", "Rule", "Ruleset"] diff --git a/src/cloudflare/types/rum/site_info_list_params.py b/src/cloudflare/types/rum/site_info_list_params.py index 7f1063aa3dc..dc2647f5212 100644 --- a/src/cloudflare/types/rum/site_info_list_params.py +++ b/src/cloudflare/types/rum/site_info_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["SiteInfoListParams"] diff --git a/src/cloudflare/types/rum/site_info_list_response.py b/src/cloudflare/types/rum/site_info_list_response.py index 8d5e55d0a37..265a42d5865 100644 --- a/src/cloudflare/types/rum/site_info_list_response.py +++ b/src/cloudflare/types/rum/site_info_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = [ "SiteInfoListResponse", diff --git a/src/cloudflare/types/rum/site_info_update_params.py b/src/cloudflare/types/rum/site_info_update_params.py index af8da5b835b..5f9a2b847c8 100644 --- a/src/cloudflare/types/rum/site_info_update_params.py +++ b/src/cloudflare/types/rum/site_info_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["SiteInfoUpdateParams"] diff --git a/src/cloudflare/types/rum/site_info_update_response.py b/src/cloudflare/types/rum/site_info_update_response.py index 7af87f1b46b..c6c161ccd97 100644 --- a/src/cloudflare/types/rum/site_info_update_response.py +++ b/src/cloudflare/types/rum/site_info_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["SiteInfoUpdateResponse", "Rule", "Ruleset"] diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py index 94b9b52b4d9..10edbc5c9da 100644 --- a/src/cloudflare/types/secondary_dns/__init__.py +++ b/src/cloudflare/types/secondary_dns/__init__.py @@ -2,49 +2,34 @@ from __future__ import annotations -from .acl_get_response import ACLGetResponse as ACLGetResponse -from .acl_update_params import ACLUpdateParams as ACLUpdateParams -from .peer_get_response import PeerGetResponse as PeerGetResponse -from .tsig_get_response import TsigGetResponse as TsigGetResponse -from .peer_update_params import PeerUpdateParams as PeerUpdateParams -from .tsig_update_params import TsigUpdateParams as TsigUpdateParams -from .acl_delete_response import ACLDeleteResponse as ACLDeleteResponse -from .acl_update_response import ACLUpdateResponse as ACLUpdateResponse -from .peer_delete_response import PeerDeleteResponse as PeerDeleteResponse -from .peer_update_response import PeerUpdateResponse as PeerUpdateResponse -from .tsig_delete_response import TsigDeleteResponse as TsigDeleteResponse -from .tsig_update_response import TsigUpdateResponse as TsigUpdateResponse -from .incoming_delete_response import IncomingDeleteResponse as IncomingDeleteResponse -from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse -from .acl_secondary_dns_acl_create_acl_params import ( - ACLSecondaryDNSACLCreateACLParams as ACLSecondaryDNSACLCreateACLParams, -) -from .acl_secondary_dns_acl_list_acls_response import ( - ACLSecondaryDNSACLListACLsResponse as ACLSecondaryDNSACLListACLsResponse, +from .force_axfr_secondary_dns_secondary_zone_force_axfr_response import ( + ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse as ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse, ) -from .acl_secondary_dns_acl_create_acl_response import ( - ACLSecondaryDNSACLCreateACLResponse as ACLSecondaryDNSACLCreateACLResponse, +from .incoming_delete_response import IncomingDeleteResponse as IncomingDeleteResponse +from .incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response import ( + IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse as IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, ) -from .peer_secondary_dns_peer_create_peer_params import ( - PeerSecondaryDNSPeerCreatePeerParams as PeerSecondaryDNSPeerCreatePeerParams, +from .incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response import ( + IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse as IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, ) -from .tsig_secondary_dns_tsig_create_tsig_params import ( - TsigSecondaryDNSTsigCreateTsigParams as TsigSecondaryDNSTsigCreateTsigParams, +from .incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response import ( + IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse as IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, ) -from .peer_secondary_dns_peer_list_peers_response import ( - PeerSecondaryDNSPeerListPeersResponse as PeerSecondaryDNSPeerListPeersResponse, +from .incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params import ( + IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationParams as IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationParams, ) -from .peer_secondary_dns_peer_create_peer_response import ( - PeerSecondaryDNSPeerCreatePeerResponse as PeerSecondaryDNSPeerCreatePeerResponse, +from .incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params import ( + IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationParams as IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationParams, ) -from .tsig_secondary_dns_tsig_create_tsig_response import ( - TsigSecondaryDNSTsigCreateTsigResponse as TsigSecondaryDNSTsigCreateTsigResponse, +from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse +from .outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response import ( + OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse as OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, ) -from .tsig_secondary_dns_tsig_list_tsi_gs_response import ( - TsigSecondaryDNSTsigListTsiGsResponse as TsigSecondaryDNSTsigListTsiGsResponse, +from .outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response import ( + OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse as OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, ) -from .force_axfr_secondary_dns_secondary_zone_force_axfr_response import ( - ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse as ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse, +from .outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response import ( + OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse as OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, ) from .outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params import ( OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationParams as OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationParams, @@ -52,27 +37,42 @@ from .outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params import ( OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationParams as OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationParams, ) -from .outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response import ( - OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse as OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, +from .acl_update_response import ACLUpdateResponse as ACLUpdateResponse +from .acl_delete_response import ACLDeleteResponse as ACLDeleteResponse +from .acl_get_response import ACLGetResponse as ACLGetResponse +from .acl_secondary_dns_acl_create_acl_response import ( + ACLSecondaryDNSACLCreateACLResponse as ACLSecondaryDNSACLCreateACLResponse, ) -from .outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response import ( - OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse as OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, +from .acl_secondary_dns_acl_list_acls_response import ( + ACLSecondaryDNSACLListACLsResponse as ACLSecondaryDNSACLListACLsResponse, ) -from .outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response import ( - OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse as OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, +from .acl_update_params import ACLUpdateParams as ACLUpdateParams +from .acl_secondary_dns_acl_create_acl_params import ( + ACLSecondaryDNSACLCreateACLParams as ACLSecondaryDNSACLCreateACLParams, ) -from .incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params import ( - IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationParams as IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationParams, +from .peer_update_response import PeerUpdateResponse as PeerUpdateResponse +from .peer_delete_response import PeerDeleteResponse as PeerDeleteResponse +from .peer_get_response import PeerGetResponse as PeerGetResponse +from .peer_secondary_dns_peer_create_peer_response import ( + PeerSecondaryDNSPeerCreatePeerResponse as PeerSecondaryDNSPeerCreatePeerResponse, ) -from .incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params import ( - IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationParams as IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationParams, +from .peer_secondary_dns_peer_list_peers_response import ( + PeerSecondaryDNSPeerListPeersResponse as PeerSecondaryDNSPeerListPeersResponse, ) -from .incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response import ( - IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse as IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, +from .peer_update_params import PeerUpdateParams as PeerUpdateParams +from .peer_secondary_dns_peer_create_peer_params import ( + PeerSecondaryDNSPeerCreatePeerParams as PeerSecondaryDNSPeerCreatePeerParams, ) -from .incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response import ( - IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse as IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, +from .tsig_update_response import TsigUpdateResponse as TsigUpdateResponse +from .tsig_delete_response import TsigDeleteResponse as TsigDeleteResponse +from .tsig_get_response import TsigGetResponse as TsigGetResponse +from .tsig_secondary_dns_tsig_create_tsig_response import ( + TsigSecondaryDNSTsigCreateTsigResponse as TsigSecondaryDNSTsigCreateTsigResponse, ) -from .incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response import ( - IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse as IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, +from .tsig_secondary_dns_tsig_list_tsi_gs_response import ( + TsigSecondaryDNSTsigListTsiGsResponse as TsigSecondaryDNSTsigListTsiGsResponse, +) +from .tsig_update_params import TsigUpdateParams as TsigUpdateParams +from .tsig_secondary_dns_tsig_create_tsig_params import ( + TsigSecondaryDNSTsigCreateTsigParams as TsigSecondaryDNSTsigCreateTsigParams, ) diff --git a/src/cloudflare/types/secondary_dns/acl_delete_response.py b/src/cloudflare/types/secondary_dns/acl_delete_response.py index 723d3db900c..be16e8b6cb1 100644 --- a/src/cloudflare/types/secondary_dns/acl_delete_response.py +++ b/src/cloudflare/types/secondary_dns/acl_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ACLDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/acl_get_response.py b/src/cloudflare/types/secondary_dns/acl_get_response.py index 88a3140199e..bafc42dccd4 100644 --- a/src/cloudflare/types/secondary_dns/acl_get_response.py +++ b/src/cloudflare/types/secondary_dns/acl_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["ACLGetResponse"] diff --git a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_params.py b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_params.py index a4db4ff0d8d..3bfb81ebe94 100644 --- a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_params.py +++ b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ACLSecondaryDNSACLCreateACLParams"] diff --git a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_response.py b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_response.py index d0a0a0d7521..66626f1126b 100644 --- a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_response.py +++ b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_create_acl_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["ACLSecondaryDNSACLCreateACLResponse"] diff --git a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_list_acls_response.py b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_list_acls_response.py index 69908f3dcfb..67d0efe2879 100644 --- a/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_list_acls_response.py +++ b/src/cloudflare/types/secondary_dns/acl_secondary_dns_acl_list_acls_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["ACLSecondaryDNSACLListACLsResponse", "ACLSecondaryDnsaclListACLsResponseItem"] diff --git a/src/cloudflare/types/secondary_dns/acl_update_params.py b/src/cloudflare/types/secondary_dns/acl_update_params.py index 9ec895cbbfe..3d5f6930cf7 100644 --- a/src/cloudflare/types/secondary_dns/acl_update_params.py +++ b/src/cloudflare/types/secondary_dns/acl_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ACLUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/acl_update_response.py b/src/cloudflare/types/secondary_dns/acl_update_response.py index 4dd2562cbf9..2405f72a419 100644 --- a/src/cloudflare/types/secondary_dns/acl_update_response.py +++ b/src/cloudflare/types/secondary_dns/acl_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["ACLUpdateResponse"] diff --git a/src/cloudflare/types/secondary_dns/force_axfr_secondary_dns_secondary_zone_force_axfr_response.py b/src/cloudflare/types/secondary_dns/force_axfr_secondary_dns_secondary_zone_force_axfr_response.py index ac3a03b8ad3..dd36c997b49 100644 --- a/src/cloudflare/types/secondary_dns/force_axfr_secondary_dns_secondary_zone_force_axfr_response.py +++ b/src/cloudflare/types/secondary_dns/force_axfr_secondary_dns_secondary_zone_force_axfr_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_delete_response.py b/src/cloudflare/types/secondary_dns/incoming_delete_response.py index 141550428d3..fdfe545bd47 100644 --- a/src/cloudflare/types/secondary_dns/incoming_delete_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["IncomingDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params.py b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params.py index d8dfaec461b..9d6d1ba52d3 100644 --- a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params.py +++ b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationParams"] diff --git a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response.py b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response.py index 7c151da609b..5ce598456af 100644 --- a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response.py b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response.py index 4c7aea561a5..90bd92164cc 100644 --- a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_secondary_zone_configuration_details_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse"] diff --git a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params.py b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params.py index 135ba3006bd..dff867fa347 100644 --- a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params.py +++ b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationParams"] diff --git a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response.py b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response.py index 859b57bd7ba..c993e866ec0 100644 --- a/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response.py +++ b/src/cloudflare/types/secondary_dns/incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py index 9fb29ccc417..007677ab601 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["OutgoingDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params.py b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params.py index 5605cd69a89..292db398051 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response.py b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response.py index 9dba7c15ad7..04a1e68080d 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response.py b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response.py index 0014a5921ad..0fc60971d1a 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_primary_zone_configuration_details_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params.py b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params.py index ad755f714c9..96c6d97289c 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params.py +++ b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationParams"] diff --git a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response.py b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response.py index b89aff9f600..77e7e39191d 100644 --- a/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response.py +++ b/src/cloudflare/types/secondary_dns/outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoings/__init__.py b/src/cloudflare/types/secondary_dns/outgoings/__init__.py index e483ea7097d..2de95391f16 100644 --- a/src/cloudflare/types/secondary_dns/outgoings/__init__.py +++ b/src/cloudflare/types/secondary_dns/outgoings/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations -from .force_notify_secondary_dns_primary_zone_force_dns_notify_response import ( - ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse as ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse, +from .disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response import ( + DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse as DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse, ) from .enable_secondary_dns_primary_zone_enable_outgoing_zone_transfers_response import ( EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse as EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse, ) -from .disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response import ( - DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse as DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse, +from .force_notify_secondary_dns_primary_zone_force_dns_notify_response import ( + ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse as ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse, ) from .status_secondary_dns_primary_zone_get_outgoing_zone_transfer_status_response import ( StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse as StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse, diff --git a/src/cloudflare/types/secondary_dns/outgoings/disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response.py b/src/cloudflare/types/secondary_dns/outgoings/disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response.py index 70959d4f32b..085712ad731 100644 --- a/src/cloudflare/types/secondary_dns/outgoings/disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response.py +++ b/src/cloudflare/types/secondary_dns/outgoings/disable_secondary_dns_primary_zone_disable_outgoing_zone_transfers_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoings/enable_secondary_dns_primary_zone_enable_outgoing_zone_transfers_response.py b/src/cloudflare/types/secondary_dns/outgoings/enable_secondary_dns_primary_zone_enable_outgoing_zone_transfers_response.py index 85d19378265..3f40d6ed2e2 100644 --- a/src/cloudflare/types/secondary_dns/outgoings/enable_secondary_dns_primary_zone_enable_outgoing_zone_transfers_response.py +++ b/src/cloudflare/types/secondary_dns/outgoings/enable_secondary_dns_primary_zone_enable_outgoing_zone_transfers_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoings/force_notify_secondary_dns_primary_zone_force_dns_notify_response.py b/src/cloudflare/types/secondary_dns/outgoings/force_notify_secondary_dns_primary_zone_force_dns_notify_response.py index 06150e60cab..45a9df2cf73 100644 --- a/src/cloudflare/types/secondary_dns/outgoings/force_notify_secondary_dns_primary_zone_force_dns_notify_response.py +++ b/src/cloudflare/types/secondary_dns/outgoings/force_notify_secondary_dns_primary_zone_force_dns_notify_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse"] diff --git a/src/cloudflare/types/secondary_dns/outgoings/status_secondary_dns_primary_zone_get_outgoing_zone_transfer_status_response.py b/src/cloudflare/types/secondary_dns/outgoings/status_secondary_dns_primary_zone_get_outgoing_zone_transfer_status_response.py index b376d092287..5685cca491f 100644 --- a/src/cloudflare/types/secondary_dns/outgoings/status_secondary_dns_primary_zone_get_outgoing_zone_transfer_status_response.py +++ b/src/cloudflare/types/secondary_dns/outgoings/status_secondary_dns_primary_zone_get_outgoing_zone_transfer_status_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer_delete_response.py b/src/cloudflare/types/secondary_dns/peer_delete_response.py index afb68bba7a0..2652e9de4c7 100644 --- a/src/cloudflare/types/secondary_dns/peer_delete_response.py +++ b/src/cloudflare/types/secondary_dns/peer_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PeerDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer_get_response.py b/src/cloudflare/types/secondary_dns/peer_get_response.py index 33e63a6a75c..8d1dd78af07 100644 --- a/src/cloudflare/types/secondary_dns/peer_get_response.py +++ b/src/cloudflare/types/secondary_dns/peer_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PeerGetResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_params.py b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_params.py index f85ef0f0bd3..e4059f237f0 100644 --- a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_params.py +++ b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PeerSecondaryDNSPeerCreatePeerParams"] diff --git a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_response.py b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_response.py index 579a960c7be..f9ce65b2dab 100644 --- a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_response.py +++ b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_create_peer_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PeerSecondaryDNSPeerCreatePeerResponse"] diff --git a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_list_peers_response.py b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_list_peers_response.py index ffc951b3bdb..ad3d1fa3aca 100644 --- a/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_list_peers_response.py +++ b/src/cloudflare/types/secondary_dns/peer_secondary_dns_peer_list_peers_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["PeerSecondaryDNSPeerListPeersResponse", "PeerSecondaryDNSPeerListPeersResponseItem"] diff --git a/src/cloudflare/types/secondary_dns/peer_update_params.py b/src/cloudflare/types/secondary_dns/peer_update_params.py index 6cded73a58c..7953dfd3313 100644 --- a/src/cloudflare/types/secondary_dns/peer_update_params.py +++ b/src/cloudflare/types/secondary_dns/peer_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PeerUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/peer_update_response.py b/src/cloudflare/types/secondary_dns/peer_update_response.py index 0b81e771c37..f8095ff00b6 100644 --- a/src/cloudflare/types/secondary_dns/peer_update_response.py +++ b/src/cloudflare/types/secondary_dns/peer_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PeerUpdateResponse"] diff --git a/src/cloudflare/types/secondary_dns/tsig_delete_response.py b/src/cloudflare/types/secondary_dns/tsig_delete_response.py index 6656df8c9e9..c847710e74c 100644 --- a/src/cloudflare/types/secondary_dns/tsig_delete_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["TsigDeleteResponse"] diff --git a/src/cloudflare/types/secondary_dns/tsig_get_response.py b/src/cloudflare/types/secondary_dns/tsig_get_response.py index 3efd89044b1..f3ffe5c0de5 100644 --- a/src/cloudflare/types/secondary_dns/tsig_get_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["TsigGetResponse"] diff --git a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_params.py b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_params.py index 13125d9a59f..13460bc1bbb 100644 --- a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_params.py +++ b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["TsigSecondaryDNSTsigCreateTsigParams"] diff --git a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_response.py b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_response.py index ba8e7f1c080..1c2564704ac 100644 --- a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_create_tsig_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["TsigSecondaryDNSTsigCreateTsigResponse"] diff --git a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_list_tsi_gs_response.py b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_list_tsi_gs_response.py index 813287192b3..b56767c89d6 100644 --- a/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_list_tsi_gs_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_secondary_dns_tsig_list_tsi_gs_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["TsigSecondaryDNSTsigListTsiGsResponse", "TsigSecondaryDNSTsigListTsiGsResponseItem"] diff --git a/src/cloudflare/types/secondary_dns/tsig_update_params.py b/src/cloudflare/types/secondary_dns/tsig_update_params.py index 5f1f0e3b9cd..21b341606e4 100644 --- a/src/cloudflare/types/secondary_dns/tsig_update_params.py +++ b/src/cloudflare/types/secondary_dns/tsig_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["TsigUpdateParams"] diff --git a/src/cloudflare/types/secondary_dns/tsig_update_response.py b/src/cloudflare/types/secondary_dns/tsig_update_response.py index f165151ff8c..f6e1284fa90 100644 --- a/src/cloudflare/types/secondary_dns/tsig_update_response.py +++ b/src/cloudflare/types/secondary_dns/tsig_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["TsigUpdateResponse"] diff --git a/src/cloudflare/types/setting_edit_params.py b/src/cloudflare/types/setting_edit_params.py index cbb4a43fc5d..d2a572a0011 100644 --- a/src/cloudflare/types/setting_edit_params.py +++ b/src/cloudflare/types/setting_edit_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable, Optional -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, Optional, 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 ..types import shared_params __all__ = [ "SettingEditParams", diff --git a/src/cloudflare/types/setting_edit_response.py b/src/cloudflare/types/setting_edit_response.py index c15069089c4..8d1dbab4824 100644 --- a/src/cloudflare/types/setting_edit_response.py +++ b/src/cloudflare/types/setting_edit_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime from typing_extensions import Literal +from typing import Optional, 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 +from ..types import shared __all__ = [ "SettingEditResponse", diff --git a/src/cloudflare/types/setting_list_response.py b/src/cloudflare/types/setting_list_response.py index 2da93227ee5..fa64facaeed 100644 --- a/src/cloudflare/types/setting_list_response.py +++ b/src/cloudflare/types/setting_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime from typing_extensions import Literal +from typing import Optional, 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 +from ..types import shared __all__ = [ "SettingListResponse", diff --git a/src/cloudflare/types/settings/__init__.py b/src/cloudflare/types/settings/__init__.py index 223bc97df7a..cee8b66aa0c 100644 --- a/src/cloudflare/types/settings/__init__.py +++ b/src/cloudflare/types/settings/__init__.py @@ -2,185 +2,185 @@ from __future__ import annotations -from .nel_get_response import NELGetResponse as NELGetResponse -from .ssl_get_response import SSLGetResponse as SSLGetResponse -from .waf_get_response import WAFGetResponse as WAFGetResponse -from .ipv6_get_response import IPV6GetResponse as IPV6GetResponse -from .nel_update_params import NELUpdateParams as NELUpdateParams -from .ssl_update_params import SSLUpdateParams as SSLUpdateParams -from .waf_update_params import WAFUpdateParams as WAFUpdateParams -from .webp_get_response import WebpGetResponse as WebpGetResponse -from .http2_get_response import HTTP2GetResponse as HTTP2GetResponse -from .http3_get_response import HTTP3GetResponse as HTTP3GetResponse -from .ipv6_update_params import IPV6UpdateParams as IPV6UpdateParams -from .webp_update_params import WebpUpdateParams as WebpUpdateParams -from .brotli_get_response import BrotliGetResponse as BrotliGetResponse -from .cipher_get_response import CipherGetResponse as CipherGetResponse -from .http2_update_params import HTTP2UpdateParams as HTTP2UpdateParams -from .http3_update_params import HTTP3UpdateParams as HTTP3UpdateParams -from .minify_get_response import MinifyGetResponse as MinifyGetResponse -from .mirage_get_response import MirageGetResponse as MirageGetResponse -from .nel_update_response import NELUpdateResponse as NELUpdateResponse -from .polish_get_response import PolishGetResponse as PolishGetResponse -from .ssl_update_response import SSLUpdateResponse as SSLUpdateResponse -from .waf_update_response import WAFUpdateResponse as WAFUpdateResponse -from .brotli_update_params import BrotliUpdateParams as BrotliUpdateParams -from .cipher_update_params import CipherUpdateParams as CipherUpdateParams -from .ipv6_update_response import IPV6UpdateResponse as IPV6UpdateResponse -from .minify_update_params import MinifyUpdateParams as MinifyUpdateParams -from .mirage_update_params import MirageUpdateParams as MirageUpdateParams -from .polish_update_params import PolishUpdateParams as PolishUpdateParams -from .tls_1_3_get_response import TLS1_3GetResponse as TLS1_3GetResponse -from .webp_update_response import WebpUpdateResponse as WebpUpdateResponse -from .http2_update_response import HTTP2UpdateResponse as HTTP2UpdateResponse -from .http3_update_response import HTTP3UpdateResponse as HTTP3UpdateResponse -from .tls_1_3_update_params import TLS1_3UpdateParams as TLS1_3UpdateParams from .zero_rtt_get_response import ZeroRttGetResponse as ZeroRttGetResponse -from .brotli_update_response import BrotliUpdateResponse as BrotliUpdateResponse -from .cipher_update_response import CipherUpdateResponse as CipherUpdateResponse -from .minify_update_response import MinifyUpdateResponse as MinifyUpdateResponse -from .mirage_update_response import MirageUpdateResponse as MirageUpdateResponse -from .polish_update_response import PolishUpdateResponse as PolishUpdateResponse -from .websocket_get_response import WebsocketGetResponse as WebsocketGetResponse -from .early_hint_get_response import EarlyHintGetResponse as EarlyHintGetResponse -from .tls_1_3_update_response import TLS1_3UpdateResponse as TLS1_3UpdateResponse -from .websocket_update_params import WebsocketUpdateParams as WebsocketUpdateParams -from .cache_level_get_response import CacheLevelGetResponse as CacheLevelGetResponse -from .early_hint_update_params import EarlyHintUpdateParams as EarlyHintUpdateParams -from .pseudo_ipv4_get_response import PseudoIPV4GetResponse as PseudoIPV4GetResponse -from .cache_level_update_params import CacheLevelUpdateParams as CacheLevelUpdateParams -from .pseudo_ipv4_update_params import PseudoIPV4UpdateParams as PseudoIPV4UpdateParams -from .websocket_update_response import WebsocketUpdateResponse as WebsocketUpdateResponse +from .zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response import ( + ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse as ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse, +) +from .zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params import ( + ZeroRttZoneSettingsChange0RttSessionResumptionSettingParams as ZeroRttZoneSettingsChange0RttSessionResumptionSettingParams, +) from .advanced_ddos_get_response import AdvancedDDOSGetResponse as AdvancedDDOSGetResponse +from .always_online_update_response import AlwaysOnlineUpdateResponse as AlwaysOnlineUpdateResponse from .always_online_get_response import AlwaysOnlineGetResponse as AlwaysOnlineGetResponse -from .browser_check_get_response import BrowserCheckGetResponse as BrowserCheckGetResponse -from .challenge_ttl_get_response import ChallengeTTLGetResponse as ChallengeTTLGetResponse -from .early_hint_update_response import EarlyHintUpdateResponse as EarlyHintUpdateResponse -from .rocket_loader_get_response import RocketLoaderGetResponse as RocketLoaderGetResponse from .always_online_update_params import AlwaysOnlineUpdateParams as AlwaysOnlineUpdateParams -from .browser_check_update_params import BrowserCheckUpdateParams as BrowserCheckUpdateParams -from .cache_level_update_response import CacheLevelUpdateResponse as CacheLevelUpdateResponse -from .challenge_ttl_update_params import ChallengeTTLUpdateParams as ChallengeTTLUpdateParams -from .image_resizing_get_response import ImageResizingGetResponse as ImageResizingGetResponse -from .ip_geolocation_get_response import IPGeolocationGetResponse as IPGeolocationGetResponse -from .pseudo_ipv4_update_response import PseudoIPV4UpdateResponse as PseudoIPV4UpdateResponse -from .rocket_loader_update_params import RocketLoaderUpdateParams as RocketLoaderUpdateParams -from .security_level_get_response import SecurityLevelGetResponse as SecurityLevelGetResponse -from .image_resizing_update_params import ImageResizingUpdateParams as ImageResizingUpdateParams -from .ip_geolocation_update_params import IPGeolocationUpdateParams as IPGeolocationUpdateParams -from .min_tls_version_get_response import MinTLSVersionGetResponse as MinTLSVersionGetResponse -from .mobile_redirect_get_response import MobileRedirectGetResponse as MobileRedirectGetResponse -from .security_header_get_response import SecurityHeaderGetResponse as SecurityHeaderGetResponse -from .security_level_update_params import SecurityLevelUpdateParams as SecurityLevelUpdateParams -from .ssl_recommender_get_response import SSLRecommenderGetResponse as SSLRecommenderGetResponse -from .tls_client_auth_get_response import TLSClientAuthGetResponse as TLSClientAuthGetResponse -from .always_online_update_response import AlwaysOnlineUpdateResponse as AlwaysOnlineUpdateResponse +from .always_use_https_update_response import AlwaysUseHTTPSUpdateResponse as AlwaysUseHTTPSUpdateResponse from .always_use_https_get_response import AlwaysUseHTTPSGetResponse as AlwaysUseHTTPSGetResponse +from .always_use_https_update_params import AlwaysUseHTTPSUpdateParams as AlwaysUseHTTPSUpdateParams +from .automatic_https_rewrite_update_response import ( + AutomaticHTTPSRewriteUpdateResponse as AutomaticHTTPSRewriteUpdateResponse, +) +from .automatic_https_rewrite_get_response import AutomaticHTTPSRewriteGetResponse as AutomaticHTTPSRewriteGetResponse +from .automatic_https_rewrite_update_params import ( + AutomaticHTTPSRewriteUpdateParams as AutomaticHTTPSRewriteUpdateParams, +) +from .automatic_platform_optimization_update_response import ( + AutomaticPlatformOptimizationUpdateResponse as AutomaticPlatformOptimizationUpdateResponse, +) +from .automatic_platform_optimization_get_response import ( + AutomaticPlatformOptimizationGetResponse as AutomaticPlatformOptimizationGetResponse, +) +from .automatic_platform_optimization_update_params import ( + AutomaticPlatformOptimizationUpdateParams as AutomaticPlatformOptimizationUpdateParams, +) +from .brotli_update_response import BrotliUpdateResponse as BrotliUpdateResponse +from .brotli_get_response import BrotliGetResponse as BrotliGetResponse +from .brotli_update_params import BrotliUpdateParams as BrotliUpdateParams +from .browser_cache_ttl_update_response import BrowserCacheTTLUpdateResponse as BrowserCacheTTLUpdateResponse +from .browser_cache_ttl_get_response import BrowserCacheTTLGetResponse as BrowserCacheTTLGetResponse +from .browser_cache_ttl_update_params import BrowserCacheTTLUpdateParams as BrowserCacheTTLUpdateParams from .browser_check_update_response import BrowserCheckUpdateResponse as BrowserCheckUpdateResponse +from .browser_check_get_response import BrowserCheckGetResponse as BrowserCheckGetResponse +from .browser_check_update_params import BrowserCheckUpdateParams as BrowserCheckUpdateParams +from .cache_level_update_response import CacheLevelUpdateResponse as CacheLevelUpdateResponse +from .cache_level_get_response import CacheLevelGetResponse as CacheLevelGetResponse +from .cache_level_update_params import CacheLevelUpdateParams as CacheLevelUpdateParams from .challenge_ttl_update_response import ChallengeTTLUpdateResponse as ChallengeTTLUpdateResponse +from .challenge_ttl_get_response import ChallengeTTLGetResponse as ChallengeTTLGetResponse +from .challenge_ttl_update_params import ChallengeTTLUpdateParams as ChallengeTTLUpdateParams +from .cipher_update_response import CipherUpdateResponse as CipherUpdateResponse +from .cipher_get_response import CipherGetResponse as CipherGetResponse +from .cipher_update_params import CipherUpdateParams as CipherUpdateParams +from .development_mode_update_response import DevelopmentModeUpdateResponse as DevelopmentModeUpdateResponse from .development_mode_get_response import DevelopmentModeGetResponse as DevelopmentModeGetResponse -from .min_tls_version_update_params import MinTLSVersionUpdateParams as MinTLSVersionUpdateParams -from .mobile_redirect_update_params import MobileRedirectUpdateParams as MobileRedirectUpdateParams -from .orange_to_orange_get_response import OrangeToOrangeGetResponse as OrangeToOrangeGetResponse -from .prefetch_preload_get_response import PrefetchPreloadGetResponse as PrefetchPreloadGetResponse -from .rocket_loader_update_response import RocketLoaderUpdateResponse as RocketLoaderUpdateResponse -from .security_header_update_params import SecurityHeaderUpdateParams as SecurityHeaderUpdateParams -from .ssl_recommender_update_params import SSLRecommenderUpdateParams as SSLRecommenderUpdateParams -from .tls_client_auth_update_params import TLSClientAuthUpdateParams as TLSClientAuthUpdateParams -from .always_use_https_update_params import AlwaysUseHTTPSUpdateParams as AlwaysUseHTTPSUpdateParams -from .browser_cache_ttl_get_response import BrowserCacheTTLGetResponse as BrowserCacheTTLGetResponse from .development_mode_update_params import DevelopmentModeUpdateParams as DevelopmentModeUpdateParams +from .early_hint_update_response import EarlyHintUpdateResponse as EarlyHintUpdateResponse +from .early_hint_get_response import EarlyHintGetResponse as EarlyHintGetResponse +from .early_hint_update_params import EarlyHintUpdateParams as EarlyHintUpdateParams +from .email_obfuscation_update_response import EmailObfuscationUpdateResponse as EmailObfuscationUpdateResponse from .email_obfuscation_get_response import EmailObfuscationGetResponse as EmailObfuscationGetResponse -from .h2_prioritization_get_response import H2PrioritizationGetResponse as H2PrioritizationGetResponse -from .image_resizing_update_response import ImageResizingUpdateResponse as ImageResizingUpdateResponse -from .ip_geolocation_update_response import IPGeolocationUpdateResponse as IPGeolocationUpdateResponse -from .orange_to_orange_update_params import OrangeToOrangeUpdateParams as OrangeToOrangeUpdateParams -from .prefetch_preload_update_params import PrefetchPreloadUpdateParams as PrefetchPreloadUpdateParams -from .security_level_update_response import SecurityLevelUpdateResponse as SecurityLevelUpdateResponse -from .browser_cache_ttl_update_params import BrowserCacheTTLUpdateParams as BrowserCacheTTLUpdateParams from .email_obfuscation_update_params import EmailObfuscationUpdateParams as EmailObfuscationUpdateParams +from .h2_prioritization_update_response import H2PrioritizationUpdateResponse as H2PrioritizationUpdateResponse +from .h2_prioritization_get_response import H2PrioritizationGetResponse as H2PrioritizationGetResponse from .h2_prioritization_update_params import H2PrioritizationUpdateParams as H2PrioritizationUpdateParams +from .hotlink_protection_update_response import HotlinkProtectionUpdateResponse as HotlinkProtectionUpdateResponse from .hotlink_protection_get_response import HotlinkProtectionGetResponse as HotlinkProtectionGetResponse +from .hotlink_protection_update_params import HotlinkProtectionUpdateParams as HotlinkProtectionUpdateParams +from .http2_update_response import HTTP2UpdateResponse as HTTP2UpdateResponse +from .http2_get_response import HTTP2GetResponse as HTTP2GetResponse +from .http2_update_params import HTTP2UpdateParams as HTTP2UpdateParams +from .http3_update_response import HTTP3UpdateResponse as HTTP3UpdateResponse +from .http3_get_response import HTTP3GetResponse as HTTP3GetResponse +from .http3_update_params import HTTP3UpdateParams as HTTP3UpdateParams +from .image_resizing_update_response import ImageResizingUpdateResponse as ImageResizingUpdateResponse +from .image_resizing_get_response import ImageResizingGetResponse as ImageResizingGetResponse +from .image_resizing_update_params import ImageResizingUpdateParams as ImageResizingUpdateParams +from .ip_geolocation_update_response import IPGeolocationUpdateResponse as IPGeolocationUpdateResponse +from .ip_geolocation_get_response import IPGeolocationGetResponse as IPGeolocationGetResponse +from .ip_geolocation_update_params import IPGeolocationUpdateParams as IPGeolocationUpdateParams +from .ipv6_update_response import IPV6UpdateResponse as IPV6UpdateResponse +from .ipv6_get_response import IPV6GetResponse as IPV6GetResponse +from .ipv6_update_params import IPV6UpdateParams as IPV6UpdateParams from .min_tls_version_update_response import MinTLSVersionUpdateResponse as MinTLSVersionUpdateResponse +from .min_tls_version_get_response import MinTLSVersionGetResponse as MinTLSVersionGetResponse +from .min_tls_version_update_params import MinTLSVersionUpdateParams as MinTLSVersionUpdateParams +from .minify_update_response import MinifyUpdateResponse as MinifyUpdateResponse +from .minify_get_response import MinifyGetResponse as MinifyGetResponse +from .minify_update_params import MinifyUpdateParams as MinifyUpdateParams +from .mirage_update_response import MirageUpdateResponse as MirageUpdateResponse +from .mirage_get_response import MirageGetResponse as MirageGetResponse +from .mirage_update_params import MirageUpdateParams as MirageUpdateParams from .mobile_redirect_update_response import MobileRedirectUpdateResponse as MobileRedirectUpdateResponse -from .proxy_read_timeout_get_response import ProxyReadTimeoutGetResponse as ProxyReadTimeoutGetResponse -from .response_buffering_get_response import ResponseBufferingGetResponse as ResponseBufferingGetResponse -from .security_header_update_response import SecurityHeaderUpdateResponse as SecurityHeaderUpdateResponse -from .ssl_recommender_update_response import SSLRecommenderUpdateResponse as SSLRecommenderUpdateResponse -from .tls_client_auth_update_response import TLSClientAuthUpdateResponse as TLSClientAuthUpdateResponse -from .always_use_https_update_response import AlwaysUseHTTPSUpdateResponse as AlwaysUseHTTPSUpdateResponse -from .development_mode_update_response import DevelopmentModeUpdateResponse as DevelopmentModeUpdateResponse -from .hotlink_protection_update_params import HotlinkProtectionUpdateParams as HotlinkProtectionUpdateParams -from .opportunistic_onion_get_response import OpportunisticOnionGetResponse as OpportunisticOnionGetResponse -from .orange_to_orange_update_response import OrangeToOrangeUpdateResponse as OrangeToOrangeUpdateResponse -from .prefetch_preload_update_response import PrefetchPreloadUpdateResponse as PrefetchPreloadUpdateResponse -from .proxy_read_timeout_update_params import ProxyReadTimeoutUpdateParams as ProxyReadTimeoutUpdateParams -from .response_buffering_update_params import ResponseBufferingUpdateParams as ResponseBufferingUpdateParams -from .server_side_exclude_get_response import ServerSideExcludeGetResponse as ServerSideExcludeGetResponse -from .browser_cache_ttl_update_response import BrowserCacheTTLUpdateResponse as BrowserCacheTTLUpdateResponse -from .email_obfuscation_update_response import EmailObfuscationUpdateResponse as EmailObfuscationUpdateResponse -from .h2_prioritization_update_response import H2PrioritizationUpdateResponse as H2PrioritizationUpdateResponse -from .opportunistic_onion_update_params import OpportunisticOnionUpdateParams as OpportunisticOnionUpdateParams -from .server_side_exclude_update_params import ServerSideExcludeUpdateParams as ServerSideExcludeUpdateParams -from .hotlink_protection_update_response import HotlinkProtectionUpdateResponse as HotlinkProtectionUpdateResponse -from .proxy_read_timeout_update_response import ProxyReadTimeoutUpdateResponse as ProxyReadTimeoutUpdateResponse -from .response_buffering_update_response import ResponseBufferingUpdateResponse as ResponseBufferingUpdateResponse -from .true_client_ip_header_get_response import TrueClientIPHeaderGetResponse as TrueClientIPHeaderGetResponse -from .opportunistic_onion_update_response import OpportunisticOnionUpdateResponse as OpportunisticOnionUpdateResponse -from .server_side_exclude_update_response import ServerSideExcludeUpdateResponse as ServerSideExcludeUpdateResponse -from .true_client_ip_header_update_params import TrueClientIPHeaderUpdateParams as TrueClientIPHeaderUpdateParams -from .automatic_https_rewrite_get_response import AutomaticHTTPSRewriteGetResponse as AutomaticHTTPSRewriteGetResponse -from .origin_max_http_version_get_response import OriginMaxHTTPVersionGetResponse as OriginMaxHTTPVersionGetResponse -from .automatic_https_rewrite_update_params import ( - AutomaticHTTPSRewriteUpdateParams as AutomaticHTTPSRewriteUpdateParams, +from .mobile_redirect_get_response import MobileRedirectGetResponse as MobileRedirectGetResponse +from .mobile_redirect_update_params import MobileRedirectUpdateParams as MobileRedirectUpdateParams +from .nel_update_response import NELUpdateResponse as NELUpdateResponse +from .nel_get_response import NELGetResponse as NELGetResponse +from .nel_update_params import NELUpdateParams as NELUpdateParams +from .opportunistic_encryption_update_response import ( + OpportunisticEncryptionUpdateResponse as OpportunisticEncryptionUpdateResponse, ) from .opportunistic_encryption_get_response import ( OpportunisticEncryptionGetResponse as OpportunisticEncryptionGetResponse, ) -from .origin_max_http_version_update_params import OriginMaxHTTPVersionUpdateParams as OriginMaxHTTPVersionUpdateParams -from .true_client_ip_header_update_response import TrueClientIPHeaderUpdateResponse as TrueClientIPHeaderUpdateResponse from .opportunistic_encryption_update_params import ( OpportunisticEncryptionUpdateParams as OpportunisticEncryptionUpdateParams, ) -from .automatic_https_rewrite_update_response import ( - AutomaticHTTPSRewriteUpdateResponse as AutomaticHTTPSRewriteUpdateResponse, -) -from .origin_max_http_version_update_response import ( - OriginMaxHTTPVersionUpdateResponse as OriginMaxHTTPVersionUpdateResponse, -) -from .opportunistic_encryption_update_response import ( - OpportunisticEncryptionUpdateResponse as OpportunisticEncryptionUpdateResponse, +from .opportunistic_onion_update_response import OpportunisticOnionUpdateResponse as OpportunisticOnionUpdateResponse +from .opportunistic_onion_get_response import OpportunisticOnionGetResponse as OpportunisticOnionGetResponse +from .opportunistic_onion_update_params import OpportunisticOnionUpdateParams as OpportunisticOnionUpdateParams +from .orange_to_orange_update_response import OrangeToOrangeUpdateResponse as OrangeToOrangeUpdateResponse +from .orange_to_orange_get_response import OrangeToOrangeGetResponse as OrangeToOrangeGetResponse +from .orange_to_orange_update_params import OrangeToOrangeUpdateParams as OrangeToOrangeUpdateParams +from .origin_error_page_pass_thru_update_response import ( + OriginErrorPagePassThruUpdateResponse as OriginErrorPagePassThruUpdateResponse, ) from .origin_error_page_pass_thru_get_response import ( OriginErrorPagePassThruGetResponse as OriginErrorPagePassThruGetResponse, ) -from .sort_query_string_for_cache_get_response import ( - SortQueryStringForCacheGetResponse as SortQueryStringForCacheGetResponse, -) from .origin_error_page_pass_thru_update_params import ( OriginErrorPagePassThruUpdateParams as OriginErrorPagePassThruUpdateParams, ) -from .sort_query_string_for_cache_update_params import ( - SortQueryStringForCacheUpdateParams as SortQueryStringForCacheUpdateParams, -) -from .origin_error_page_pass_thru_update_response import ( - OriginErrorPagePassThruUpdateResponse as OriginErrorPagePassThruUpdateResponse, +from .origin_max_http_version_update_response import ( + OriginMaxHTTPVersionUpdateResponse as OriginMaxHTTPVersionUpdateResponse, ) +from .origin_max_http_version_get_response import OriginMaxHTTPVersionGetResponse as OriginMaxHTTPVersionGetResponse +from .origin_max_http_version_update_params import OriginMaxHTTPVersionUpdateParams as OriginMaxHTTPVersionUpdateParams +from .polish_update_response import PolishUpdateResponse as PolishUpdateResponse +from .polish_get_response import PolishGetResponse as PolishGetResponse +from .polish_update_params import PolishUpdateParams as PolishUpdateParams +from .prefetch_preload_update_response import PrefetchPreloadUpdateResponse as PrefetchPreloadUpdateResponse +from .prefetch_preload_get_response import PrefetchPreloadGetResponse as PrefetchPreloadGetResponse +from .prefetch_preload_update_params import PrefetchPreloadUpdateParams as PrefetchPreloadUpdateParams +from .proxy_read_timeout_update_response import ProxyReadTimeoutUpdateResponse as ProxyReadTimeoutUpdateResponse +from .proxy_read_timeout_get_response import ProxyReadTimeoutGetResponse as ProxyReadTimeoutGetResponse +from .proxy_read_timeout_update_params import ProxyReadTimeoutUpdateParams as ProxyReadTimeoutUpdateParams +from .pseudo_ipv4_update_response import PseudoIPV4UpdateResponse as PseudoIPV4UpdateResponse +from .pseudo_ipv4_get_response import PseudoIPV4GetResponse as PseudoIPV4GetResponse +from .pseudo_ipv4_update_params import PseudoIPV4UpdateParams as PseudoIPV4UpdateParams +from .response_buffering_update_response import ResponseBufferingUpdateResponse as ResponseBufferingUpdateResponse +from .response_buffering_get_response import ResponseBufferingGetResponse as ResponseBufferingGetResponse +from .response_buffering_update_params import ResponseBufferingUpdateParams as ResponseBufferingUpdateParams +from .rocket_loader_update_response import RocketLoaderUpdateResponse as RocketLoaderUpdateResponse +from .rocket_loader_get_response import RocketLoaderGetResponse as RocketLoaderGetResponse +from .rocket_loader_update_params import RocketLoaderUpdateParams as RocketLoaderUpdateParams +from .security_header_update_response import SecurityHeaderUpdateResponse as SecurityHeaderUpdateResponse +from .security_header_get_response import SecurityHeaderGetResponse as SecurityHeaderGetResponse +from .security_header_update_params import SecurityHeaderUpdateParams as SecurityHeaderUpdateParams +from .security_level_update_response import SecurityLevelUpdateResponse as SecurityLevelUpdateResponse +from .security_level_get_response import SecurityLevelGetResponse as SecurityLevelGetResponse +from .security_level_update_params import SecurityLevelUpdateParams as SecurityLevelUpdateParams +from .server_side_exclude_update_response import ServerSideExcludeUpdateResponse as ServerSideExcludeUpdateResponse +from .server_side_exclude_get_response import ServerSideExcludeGetResponse as ServerSideExcludeGetResponse +from .server_side_exclude_update_params import ServerSideExcludeUpdateParams as ServerSideExcludeUpdateParams from .sort_query_string_for_cache_update_response import ( SortQueryStringForCacheUpdateResponse as SortQueryStringForCacheUpdateResponse, ) -from .automatic_platform_optimization_get_response import ( - AutomaticPlatformOptimizationGetResponse as AutomaticPlatformOptimizationGetResponse, -) -from .automatic_platform_optimization_update_params import ( - AutomaticPlatformOptimizationUpdateParams as AutomaticPlatformOptimizationUpdateParams, -) -from .automatic_platform_optimization_update_response import ( - AutomaticPlatformOptimizationUpdateResponse as AutomaticPlatformOptimizationUpdateResponse, -) -from .zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params import ( - ZeroRttZoneSettingsChange0RttSessionResumptionSettingParams as ZeroRttZoneSettingsChange0RttSessionResumptionSettingParams, +from .sort_query_string_for_cache_get_response import ( + SortQueryStringForCacheGetResponse as SortQueryStringForCacheGetResponse, ) -from .zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response import ( - ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse as ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse, +from .sort_query_string_for_cache_update_params import ( + SortQueryStringForCacheUpdateParams as SortQueryStringForCacheUpdateParams, ) +from .ssl_update_response import SSLUpdateResponse as SSLUpdateResponse +from .ssl_get_response import SSLGetResponse as SSLGetResponse +from .ssl_update_params import SSLUpdateParams as SSLUpdateParams +from .ssl_recommender_update_response import SSLRecommenderUpdateResponse as SSLRecommenderUpdateResponse +from .ssl_recommender_get_response import SSLRecommenderGetResponse as SSLRecommenderGetResponse +from .ssl_recommender_update_params import SSLRecommenderUpdateParams as SSLRecommenderUpdateParams +from .tls_1_3_update_response import TLS1_3UpdateResponse as TLS1_3UpdateResponse +from .tls_1_3_get_response import TLS1_3GetResponse as TLS1_3GetResponse +from .tls_1_3_update_params import TLS1_3UpdateParams as TLS1_3UpdateParams +from .tls_client_auth_update_response import TLSClientAuthUpdateResponse as TLSClientAuthUpdateResponse +from .tls_client_auth_get_response import TLSClientAuthGetResponse as TLSClientAuthGetResponse +from .tls_client_auth_update_params import TLSClientAuthUpdateParams as TLSClientAuthUpdateParams +from .true_client_ip_header_update_response import TrueClientIPHeaderUpdateResponse as TrueClientIPHeaderUpdateResponse +from .true_client_ip_header_get_response import TrueClientIPHeaderGetResponse as TrueClientIPHeaderGetResponse +from .true_client_ip_header_update_params import TrueClientIPHeaderUpdateParams as TrueClientIPHeaderUpdateParams +from .waf_update_response import WAFUpdateResponse as WAFUpdateResponse +from .waf_get_response import WAFGetResponse as WAFGetResponse +from .waf_update_params import WAFUpdateParams as WAFUpdateParams +from .webp_update_response import WebpUpdateResponse as WebpUpdateResponse +from .webp_get_response import WebpGetResponse as WebpGetResponse +from .webp_update_params import WebpUpdateParams as WebpUpdateParams +from .websocket_update_response import WebsocketUpdateResponse as WebsocketUpdateResponse +from .websocket_get_response import WebsocketGetResponse as WebsocketGetResponse +from .websocket_update_params import WebsocketUpdateParams as WebsocketUpdateParams diff --git a/src/cloudflare/types/settings/advanced_ddos_get_response.py b/src/cloudflare/types/settings/advanced_ddos_get_response.py index 4859932bb03..56a18b3cb90 100644 --- a/src/cloudflare/types/settings/advanced_ddos_get_response.py +++ b/src/cloudflare/types/settings/advanced_ddos_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AdvancedDDOSGetResponse"] diff --git a/src/cloudflare/types/settings/always_online_get_response.py b/src/cloudflare/types/settings/always_online_get_response.py index 92e9c416feb..e7cbd122175 100644 --- a/src/cloudflare/types/settings/always_online_get_response.py +++ b/src/cloudflare/types/settings/always_online_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AlwaysOnlineGetResponse"] diff --git a/src/cloudflare/types/settings/always_online_update_params.py b/src/cloudflare/types/settings/always_online_update_params.py index 5d2c80cc70a..3ba2f446379 100644 --- a/src/cloudflare/types/settings/always_online_update_params.py +++ b/src/cloudflare/types/settings/always_online_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["AlwaysOnlineUpdateParams"] diff --git a/src/cloudflare/types/settings/always_online_update_response.py b/src/cloudflare/types/settings/always_online_update_response.py index 388a03842be..2e9cb58f66c 100644 --- a/src/cloudflare/types/settings/always_online_update_response.py +++ b/src/cloudflare/types/settings/always_online_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AlwaysOnlineUpdateResponse"] diff --git a/src/cloudflare/types/settings/always_use_https_get_response.py b/src/cloudflare/types/settings/always_use_https_get_response.py index 58ea20b3778..b4c87686af3 100644 --- a/src/cloudflare/types/settings/always_use_https_get_response.py +++ b/src/cloudflare/types/settings/always_use_https_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AlwaysUseHTTPSGetResponse"] diff --git a/src/cloudflare/types/settings/always_use_https_update_params.py b/src/cloudflare/types/settings/always_use_https_update_params.py index 18097d646b8..d652a497f19 100644 --- a/src/cloudflare/types/settings/always_use_https_update_params.py +++ b/src/cloudflare/types/settings/always_use_https_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["AlwaysUseHTTPSUpdateParams"] diff --git a/src/cloudflare/types/settings/always_use_https_update_response.py b/src/cloudflare/types/settings/always_use_https_update_response.py index 28f631c8e36..22abdf540ed 100644 --- a/src/cloudflare/types/settings/always_use_https_update_response.py +++ b/src/cloudflare/types/settings/always_use_https_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AlwaysUseHTTPSUpdateResponse"] diff --git a/src/cloudflare/types/settings/automatic_https_rewrite_get_response.py b/src/cloudflare/types/settings/automatic_https_rewrite_get_response.py index 56c3aa7ed1e..1131fa34681 100644 --- a/src/cloudflare/types/settings/automatic_https_rewrite_get_response.py +++ b/src/cloudflare/types/settings/automatic_https_rewrite_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AutomaticHTTPSRewriteGetResponse"] diff --git a/src/cloudflare/types/settings/automatic_https_rewrite_update_params.py b/src/cloudflare/types/settings/automatic_https_rewrite_update_params.py index 1884aa71bbe..41ea337c2d3 100644 --- a/src/cloudflare/types/settings/automatic_https_rewrite_update_params.py +++ b/src/cloudflare/types/settings/automatic_https_rewrite_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["AutomaticHTTPSRewriteUpdateParams"] diff --git a/src/cloudflare/types/settings/automatic_https_rewrite_update_response.py b/src/cloudflare/types/settings/automatic_https_rewrite_update_response.py index 67997059740..6350cf52a04 100644 --- a/src/cloudflare/types/settings/automatic_https_rewrite_update_response.py +++ b/src/cloudflare/types/settings/automatic_https_rewrite_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["AutomaticHTTPSRewriteUpdateResponse"] diff --git a/src/cloudflare/types/settings/automatic_platform_optimization_get_response.py b/src/cloudflare/types/settings/automatic_platform_optimization_get_response.py index 25ec8df9a79..b34a1bf4c44 100644 --- a/src/cloudflare/types/settings/automatic_platform_optimization_get_response.py +++ b/src/cloudflare/types/settings/automatic_platform_optimization_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AutomaticPlatformOptimizationGetResponse"] diff --git a/src/cloudflare/types/settings/automatic_platform_optimization_update_params.py b/src/cloudflare/types/settings/automatic_platform_optimization_update_params.py index 7131cdc1fa5..000a022d1a5 100644 --- a/src/cloudflare/types/settings/automatic_platform_optimization_update_params.py +++ b/src/cloudflare/types/settings/automatic_platform_optimization_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["AutomaticPlatformOptimizationUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/automatic_platform_optimization_update_response.py b/src/cloudflare/types/settings/automatic_platform_optimization_update_response.py index d4777e692ec..1c0a96287bb 100644 --- a/src/cloudflare/types/settings/automatic_platform_optimization_update_response.py +++ b/src/cloudflare/types/settings/automatic_platform_optimization_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AutomaticPlatformOptimizationUpdateResponse"] diff --git a/src/cloudflare/types/settings/brotli_get_response.py b/src/cloudflare/types/settings/brotli_get_response.py index 9eced99ca2a..1b4170332c0 100644 --- a/src/cloudflare/types/settings/brotli_get_response.py +++ b/src/cloudflare/types/settings/brotli_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrotliGetResponse"] diff --git a/src/cloudflare/types/settings/brotli_update_params.py b/src/cloudflare/types/settings/brotli_update_params.py index 24fd6a1581f..a204fcf2450 100644 --- a/src/cloudflare/types/settings/brotli_update_params.py +++ b/src/cloudflare/types/settings/brotli_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["BrotliUpdateParams"] diff --git a/src/cloudflare/types/settings/brotli_update_response.py b/src/cloudflare/types/settings/brotli_update_response.py index 693c8d7c272..081496f8fec 100644 --- a/src/cloudflare/types/settings/brotli_update_response.py +++ b/src/cloudflare/types/settings/brotli_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrotliUpdateResponse"] diff --git a/src/cloudflare/types/settings/browser_cache_ttl_get_response.py b/src/cloudflare/types/settings/browser_cache_ttl_get_response.py index 0bacd78e942..307a713dd3e 100644 --- a/src/cloudflare/types/settings/browser_cache_ttl_get_response.py +++ b/src/cloudflare/types/settings/browser_cache_ttl_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrowserCacheTTLGetResponse"] diff --git a/src/cloudflare/types/settings/browser_cache_ttl_update_params.py b/src/cloudflare/types/settings/browser_cache_ttl_update_params.py index 761090a47c2..b91bcdfce1f 100644 --- a/src/cloudflare/types/settings/browser_cache_ttl_update_params.py +++ b/src/cloudflare/types/settings/browser_cache_ttl_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["BrowserCacheTTLUpdateParams"] diff --git a/src/cloudflare/types/settings/browser_cache_ttl_update_response.py b/src/cloudflare/types/settings/browser_cache_ttl_update_response.py index 20986ff6b2b..97e425460be 100644 --- a/src/cloudflare/types/settings/browser_cache_ttl_update_response.py +++ b/src/cloudflare/types/settings/browser_cache_ttl_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrowserCacheTTLUpdateResponse"] diff --git a/src/cloudflare/types/settings/browser_check_get_response.py b/src/cloudflare/types/settings/browser_check_get_response.py index cb3c387613f..75c4d59b74b 100644 --- a/src/cloudflare/types/settings/browser_check_get_response.py +++ b/src/cloudflare/types/settings/browser_check_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrowserCheckGetResponse"] diff --git a/src/cloudflare/types/settings/browser_check_update_params.py b/src/cloudflare/types/settings/browser_check_update_params.py index 8f17e9eeefd..c70dcd8b3d7 100644 --- a/src/cloudflare/types/settings/browser_check_update_params.py +++ b/src/cloudflare/types/settings/browser_check_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["BrowserCheckUpdateParams"] diff --git a/src/cloudflare/types/settings/browser_check_update_response.py b/src/cloudflare/types/settings/browser_check_update_response.py index 08eb30503df..a9d98342ede 100644 --- a/src/cloudflare/types/settings/browser_check_update_response.py +++ b/src/cloudflare/types/settings/browser_check_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["BrowserCheckUpdateResponse"] diff --git a/src/cloudflare/types/settings/cache_level_get_response.py b/src/cloudflare/types/settings/cache_level_get_response.py index 3544bc5c687..2be1825012b 100644 --- a/src/cloudflare/types/settings/cache_level_get_response.py +++ b/src/cloudflare/types/settings/cache_level_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CacheLevelGetResponse"] diff --git a/src/cloudflare/types/settings/cache_level_update_params.py b/src/cloudflare/types/settings/cache_level_update_params.py index 76a9530f08a..24e150d49b7 100644 --- a/src/cloudflare/types/settings/cache_level_update_params.py +++ b/src/cloudflare/types/settings/cache_level_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["CacheLevelUpdateParams"] diff --git a/src/cloudflare/types/settings/cache_level_update_response.py b/src/cloudflare/types/settings/cache_level_update_response.py index aa7501d45d7..61d65243d4c 100644 --- a/src/cloudflare/types/settings/cache_level_update_response.py +++ b/src/cloudflare/types/settings/cache_level_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CacheLevelUpdateResponse"] diff --git a/src/cloudflare/types/settings/challenge_ttl_get_response.py b/src/cloudflare/types/settings/challenge_ttl_get_response.py index 3b0b7d23523..edbba66bb6e 100644 --- a/src/cloudflare/types/settings/challenge_ttl_get_response.py +++ b/src/cloudflare/types/settings/challenge_ttl_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ChallengeTTLGetResponse"] diff --git a/src/cloudflare/types/settings/challenge_ttl_update_params.py b/src/cloudflare/types/settings/challenge_ttl_update_params.py index 52b9c7e8f02..f5794c30b98 100644 --- a/src/cloudflare/types/settings/challenge_ttl_update_params.py +++ b/src/cloudflare/types/settings/challenge_ttl_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ChallengeTTLUpdateParams"] diff --git a/src/cloudflare/types/settings/challenge_ttl_update_response.py b/src/cloudflare/types/settings/challenge_ttl_update_response.py index 82d384308fe..2cea2780959 100644 --- a/src/cloudflare/types/settings/challenge_ttl_update_response.py +++ b/src/cloudflare/types/settings/challenge_ttl_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ChallengeTTLUpdateResponse"] diff --git a/src/cloudflare/types/settings/cipher_get_response.py b/src/cloudflare/types/settings/cipher_get_response.py index 2cff051cddf..47db03c8526 100644 --- a/src/cloudflare/types/settings/cipher_get_response.py +++ b/src/cloudflare/types/settings/cipher_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CipherGetResponse"] diff --git a/src/cloudflare/types/settings/cipher_update_params.py b/src/cloudflare/types/settings/cipher_update_params.py index 03823634847..3c97b41a4a8 100644 --- a/src/cloudflare/types/settings/cipher_update_params.py +++ b/src/cloudflare/types/settings/cipher_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["CipherUpdateParams"] diff --git a/src/cloudflare/types/settings/cipher_update_response.py b/src/cloudflare/types/settings/cipher_update_response.py index bb1666081d7..464c638dc4b 100644 --- a/src/cloudflare/types/settings/cipher_update_response.py +++ b/src/cloudflare/types/settings/cipher_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["CipherUpdateResponse"] diff --git a/src/cloudflare/types/settings/development_mode_get_response.py b/src/cloudflare/types/settings/development_mode_get_response.py index 56abfc53b97..9d3d878a897 100644 --- a/src/cloudflare/types/settings/development_mode_get_response.py +++ b/src/cloudflare/types/settings/development_mode_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["DevelopmentModeGetResponse"] diff --git a/src/cloudflare/types/settings/development_mode_update_params.py b/src/cloudflare/types/settings/development_mode_update_params.py index 601db23d11b..982f9dc924e 100644 --- a/src/cloudflare/types/settings/development_mode_update_params.py +++ b/src/cloudflare/types/settings/development_mode_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["DevelopmentModeUpdateParams"] diff --git a/src/cloudflare/types/settings/development_mode_update_response.py b/src/cloudflare/types/settings/development_mode_update_response.py index 59fb66586d8..9ce324427a9 100644 --- a/src/cloudflare/types/settings/development_mode_update_response.py +++ b/src/cloudflare/types/settings/development_mode_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["DevelopmentModeUpdateResponse"] diff --git a/src/cloudflare/types/settings/early_hint_get_response.py b/src/cloudflare/types/settings/early_hint_get_response.py index 9f715029f1a..cb93be2ed38 100644 --- a/src/cloudflare/types/settings/early_hint_get_response.py +++ b/src/cloudflare/types/settings/early_hint_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["EarlyHintGetResponse"] diff --git a/src/cloudflare/types/settings/early_hint_update_params.py b/src/cloudflare/types/settings/early_hint_update_params.py index 1abcf25fca4..0f9e068bb1c 100644 --- a/src/cloudflare/types/settings/early_hint_update_params.py +++ b/src/cloudflare/types/settings/early_hint_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["EarlyHintUpdateParams"] diff --git a/src/cloudflare/types/settings/early_hint_update_response.py b/src/cloudflare/types/settings/early_hint_update_response.py index 9e8b9d33fdf..45e0d0e3439 100644 --- a/src/cloudflare/types/settings/early_hint_update_response.py +++ b/src/cloudflare/types/settings/early_hint_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["EarlyHintUpdateResponse"] diff --git a/src/cloudflare/types/settings/email_obfuscation_get_response.py b/src/cloudflare/types/settings/email_obfuscation_get_response.py index a7d182a1fd6..e86255a91f9 100644 --- a/src/cloudflare/types/settings/email_obfuscation_get_response.py +++ b/src/cloudflare/types/settings/email_obfuscation_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["EmailObfuscationGetResponse"] diff --git a/src/cloudflare/types/settings/email_obfuscation_update_params.py b/src/cloudflare/types/settings/email_obfuscation_update_params.py index 0569d856f48..7a6402842eb 100644 --- a/src/cloudflare/types/settings/email_obfuscation_update_params.py +++ b/src/cloudflare/types/settings/email_obfuscation_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["EmailObfuscationUpdateParams"] diff --git a/src/cloudflare/types/settings/email_obfuscation_update_response.py b/src/cloudflare/types/settings/email_obfuscation_update_response.py index b79b8beba7c..a31a393b7f4 100644 --- a/src/cloudflare/types/settings/email_obfuscation_update_response.py +++ b/src/cloudflare/types/settings/email_obfuscation_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["EmailObfuscationUpdateResponse"] diff --git a/src/cloudflare/types/settings/h2_prioritization_get_response.py b/src/cloudflare/types/settings/h2_prioritization_get_response.py index f7395befa07..fbf84510fb9 100644 --- a/src/cloudflare/types/settings/h2_prioritization_get_response.py +++ b/src/cloudflare/types/settings/h2_prioritization_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["H2PrioritizationGetResponse"] diff --git a/src/cloudflare/types/settings/h2_prioritization_update_params.py b/src/cloudflare/types/settings/h2_prioritization_update_params.py index 4e2ec620e8c..c2286421e42 100644 --- a/src/cloudflare/types/settings/h2_prioritization_update_params.py +++ b/src/cloudflare/types/settings/h2_prioritization_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["H2PrioritizationUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/h2_prioritization_update_response.py b/src/cloudflare/types/settings/h2_prioritization_update_response.py index 0101c4c0773..40950286f1a 100644 --- a/src/cloudflare/types/settings/h2_prioritization_update_response.py +++ b/src/cloudflare/types/settings/h2_prioritization_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["H2PrioritizationUpdateResponse"] diff --git a/src/cloudflare/types/settings/hotlink_protection_get_response.py b/src/cloudflare/types/settings/hotlink_protection_get_response.py index 4cd5bf1348b..f5540ea1fbe 100644 --- a/src/cloudflare/types/settings/hotlink_protection_get_response.py +++ b/src/cloudflare/types/settings/hotlink_protection_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HotlinkProtectionGetResponse"] diff --git a/src/cloudflare/types/settings/hotlink_protection_update_params.py b/src/cloudflare/types/settings/hotlink_protection_update_params.py index 4d2e0cc7144..064bcfa020e 100644 --- a/src/cloudflare/types/settings/hotlink_protection_update_params.py +++ b/src/cloudflare/types/settings/hotlink_protection_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["HotlinkProtectionUpdateParams"] diff --git a/src/cloudflare/types/settings/hotlink_protection_update_response.py b/src/cloudflare/types/settings/hotlink_protection_update_response.py index bb1f29a4568..832ac7559d5 100644 --- a/src/cloudflare/types/settings/hotlink_protection_update_response.py +++ b/src/cloudflare/types/settings/hotlink_protection_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HotlinkProtectionUpdateResponse"] diff --git a/src/cloudflare/types/settings/http2_get_response.py b/src/cloudflare/types/settings/http2_get_response.py index cd8469d1a1a..ce1b70dec29 100644 --- a/src/cloudflare/types/settings/http2_get_response.py +++ b/src/cloudflare/types/settings/http2_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HTTP2GetResponse"] diff --git a/src/cloudflare/types/settings/http2_update_params.py b/src/cloudflare/types/settings/http2_update_params.py index 25a2aca3bd5..bc11f41e71b 100644 --- a/src/cloudflare/types/settings/http2_update_params.py +++ b/src/cloudflare/types/settings/http2_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["HTTP2UpdateParams"] diff --git a/src/cloudflare/types/settings/http2_update_response.py b/src/cloudflare/types/settings/http2_update_response.py index e96559659bb..399f6cd6f3a 100644 --- a/src/cloudflare/types/settings/http2_update_response.py +++ b/src/cloudflare/types/settings/http2_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HTTP2UpdateResponse"] diff --git a/src/cloudflare/types/settings/http3_get_response.py b/src/cloudflare/types/settings/http3_get_response.py index 4afe19fa77e..68895dc6cdc 100644 --- a/src/cloudflare/types/settings/http3_get_response.py +++ b/src/cloudflare/types/settings/http3_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HTTP3GetResponse"] diff --git a/src/cloudflare/types/settings/http3_update_params.py b/src/cloudflare/types/settings/http3_update_params.py index e1c0de94e4d..38929579ac4 100644 --- a/src/cloudflare/types/settings/http3_update_params.py +++ b/src/cloudflare/types/settings/http3_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["HTTP3UpdateParams"] diff --git a/src/cloudflare/types/settings/http3_update_response.py b/src/cloudflare/types/settings/http3_update_response.py index 31f3909e183..b36617db035 100644 --- a/src/cloudflare/types/settings/http3_update_response.py +++ b/src/cloudflare/types/settings/http3_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["HTTP3UpdateResponse"] diff --git a/src/cloudflare/types/settings/image_resizing_get_response.py b/src/cloudflare/types/settings/image_resizing_get_response.py index 46c0563589b..d1aa629339c 100644 --- a/src/cloudflare/types/settings/image_resizing_get_response.py +++ b/src/cloudflare/types/settings/image_resizing_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ImageResizingGetResponse"] diff --git a/src/cloudflare/types/settings/image_resizing_update_params.py b/src/cloudflare/types/settings/image_resizing_update_params.py index d9ec8edde2f..ca5bed85f39 100644 --- a/src/cloudflare/types/settings/image_resizing_update_params.py +++ b/src/cloudflare/types/settings/image_resizing_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ImageResizingUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/image_resizing_update_response.py b/src/cloudflare/types/settings/image_resizing_update_response.py index 627004cb1fa..842168c1c2e 100644 --- a/src/cloudflare/types/settings/image_resizing_update_response.py +++ b/src/cloudflare/types/settings/image_resizing_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ImageResizingUpdateResponse"] diff --git a/src/cloudflare/types/settings/ip_geolocation_get_response.py b/src/cloudflare/types/settings/ip_geolocation_get_response.py index b71b2e30ff6..87b4dd77ed8 100644 --- a/src/cloudflare/types/settings/ip_geolocation_get_response.py +++ b/src/cloudflare/types/settings/ip_geolocation_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["IPGeolocationGetResponse"] diff --git a/src/cloudflare/types/settings/ip_geolocation_update_params.py b/src/cloudflare/types/settings/ip_geolocation_update_params.py index 07916aeb315..8c9df382de6 100644 --- a/src/cloudflare/types/settings/ip_geolocation_update_params.py +++ b/src/cloudflare/types/settings/ip_geolocation_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["IPGeolocationUpdateParams"] diff --git a/src/cloudflare/types/settings/ip_geolocation_update_response.py b/src/cloudflare/types/settings/ip_geolocation_update_response.py index c9b073ba38c..f17ed293e03 100644 --- a/src/cloudflare/types/settings/ip_geolocation_update_response.py +++ b/src/cloudflare/types/settings/ip_geolocation_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["IPGeolocationUpdateResponse"] diff --git a/src/cloudflare/types/settings/ipv6_get_response.py b/src/cloudflare/types/settings/ipv6_get_response.py index 4d06853f246..b282b4a9a19 100644 --- a/src/cloudflare/types/settings/ipv6_get_response.py +++ b/src/cloudflare/types/settings/ipv6_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["IPV6GetResponse"] diff --git a/src/cloudflare/types/settings/ipv6_update_params.py b/src/cloudflare/types/settings/ipv6_update_params.py index e6246ced493..1ebd35a3216 100644 --- a/src/cloudflare/types/settings/ipv6_update_params.py +++ b/src/cloudflare/types/settings/ipv6_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["IPV6UpdateParams"] diff --git a/src/cloudflare/types/settings/ipv6_update_response.py b/src/cloudflare/types/settings/ipv6_update_response.py index dec258c3335..7da7b509063 100644 --- a/src/cloudflare/types/settings/ipv6_update_response.py +++ b/src/cloudflare/types/settings/ipv6_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["IPV6UpdateResponse"] diff --git a/src/cloudflare/types/settings/min_tls_version_get_response.py b/src/cloudflare/types/settings/min_tls_version_get_response.py index 14a19e8f97c..8d6664e5f59 100644 --- a/src/cloudflare/types/settings/min_tls_version_get_response.py +++ b/src/cloudflare/types/settings/min_tls_version_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["MinTLSVersionGetResponse"] diff --git a/src/cloudflare/types/settings/min_tls_version_update_params.py b/src/cloudflare/types/settings/min_tls_version_update_params.py index e1826f670e6..a4cb2d0601f 100644 --- a/src/cloudflare/types/settings/min_tls_version_update_params.py +++ b/src/cloudflare/types/settings/min_tls_version_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["MinTLSVersionUpdateParams"] diff --git a/src/cloudflare/types/settings/min_tls_version_update_response.py b/src/cloudflare/types/settings/min_tls_version_update_response.py index b2bf87059d6..6e12046e4bc 100644 --- a/src/cloudflare/types/settings/min_tls_version_update_response.py +++ b/src/cloudflare/types/settings/min_tls_version_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["MinTLSVersionUpdateResponse"] diff --git a/src/cloudflare/types/settings/minify_get_response.py b/src/cloudflare/types/settings/minify_get_response.py index e63d956b9b1..555a0924a81 100644 --- a/src/cloudflare/types/settings/minify_get_response.py +++ b/src/cloudflare/types/settings/minify_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["MinifyGetResponse", "Value"] diff --git a/src/cloudflare/types/settings/minify_update_params.py b/src/cloudflare/types/settings/minify_update_params.py index dea4ca3132a..49a6757580f 100644 --- a/src/cloudflare/types/settings/minify_update_params.py +++ b/src/cloudflare/types/settings/minify_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["MinifyUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/minify_update_response.py b/src/cloudflare/types/settings/minify_update_response.py index 50e99a5c050..5f7a950ce8d 100644 --- a/src/cloudflare/types/settings/minify_update_response.py +++ b/src/cloudflare/types/settings/minify_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["MinifyUpdateResponse", "Value"] diff --git a/src/cloudflare/types/settings/mirage_get_response.py b/src/cloudflare/types/settings/mirage_get_response.py index aeee9b535d2..43ce3c8fbf4 100644 --- a/src/cloudflare/types/settings/mirage_get_response.py +++ b/src/cloudflare/types/settings/mirage_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["MirageGetResponse"] diff --git a/src/cloudflare/types/settings/mirage_update_params.py b/src/cloudflare/types/settings/mirage_update_params.py index 9cf6336a292..9b3cdd20eef 100644 --- a/src/cloudflare/types/settings/mirage_update_params.py +++ b/src/cloudflare/types/settings/mirage_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["MirageUpdateParams"] diff --git a/src/cloudflare/types/settings/mirage_update_response.py b/src/cloudflare/types/settings/mirage_update_response.py index 4c6b2a5d3c5..d7a61c1d1d7 100644 --- a/src/cloudflare/types/settings/mirage_update_response.py +++ b/src/cloudflare/types/settings/mirage_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["MirageUpdateResponse"] diff --git a/src/cloudflare/types/settings/mobile_redirect_get_response.py b/src/cloudflare/types/settings/mobile_redirect_get_response.py index d88ffa60383..3ad3a21c153 100644 --- a/src/cloudflare/types/settings/mobile_redirect_get_response.py +++ b/src/cloudflare/types/settings/mobile_redirect_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["MobileRedirectGetResponse", "Value"] diff --git a/src/cloudflare/types/settings/mobile_redirect_update_params.py b/src/cloudflare/types/settings/mobile_redirect_update_params.py index dacacae8f72..a0486dafd9b 100644 --- a/src/cloudflare/types/settings/mobile_redirect_update_params.py +++ b/src/cloudflare/types/settings/mobile_redirect_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Optional -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["MobileRedirectUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/mobile_redirect_update_response.py b/src/cloudflare/types/settings/mobile_redirect_update_response.py index 9cd817bbe31..22509c82ff3 100644 --- a/src/cloudflare/types/settings/mobile_redirect_update_response.py +++ b/src/cloudflare/types/settings/mobile_redirect_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["MobileRedirectUpdateResponse", "Value"] diff --git a/src/cloudflare/types/settings/nel_get_response.py b/src/cloudflare/types/settings/nel_get_response.py index 6e3c3b389f7..686930f0d1f 100644 --- a/src/cloudflare/types/settings/nel_get_response.py +++ b/src/cloudflare/types/settings/nel_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["NELGetResponse", "Value"] diff --git a/src/cloudflare/types/settings/nel_update_params.py b/src/cloudflare/types/settings/nel_update_params.py index ea40f7dbfcd..9574d9ee474 100644 --- a/src/cloudflare/types/settings/nel_update_params.py +++ b/src/cloudflare/types/settings/nel_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["NELUpdateParams", "Value", "ValueValue"] diff --git a/src/cloudflare/types/settings/nel_update_response.py b/src/cloudflare/types/settings/nel_update_response.py index b902259f663..5f4ba9bd1e7 100644 --- a/src/cloudflare/types/settings/nel_update_response.py +++ b/src/cloudflare/types/settings/nel_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["NELUpdateResponse", "Value"] diff --git a/src/cloudflare/types/settings/opportunistic_encryption_get_response.py b/src/cloudflare/types/settings/opportunistic_encryption_get_response.py index 8ef91708889..3047c8c2582 100644 --- a/src/cloudflare/types/settings/opportunistic_encryption_get_response.py +++ b/src/cloudflare/types/settings/opportunistic_encryption_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OpportunisticEncryptionGetResponse"] diff --git a/src/cloudflare/types/settings/opportunistic_encryption_update_params.py b/src/cloudflare/types/settings/opportunistic_encryption_update_params.py index 6f3d1a01138..7108e1948a8 100644 --- a/src/cloudflare/types/settings/opportunistic_encryption_update_params.py +++ b/src/cloudflare/types/settings/opportunistic_encryption_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["OpportunisticEncryptionUpdateParams"] diff --git a/src/cloudflare/types/settings/opportunistic_encryption_update_response.py b/src/cloudflare/types/settings/opportunistic_encryption_update_response.py index 60e43d7cb9c..a2c640f5a82 100644 --- a/src/cloudflare/types/settings/opportunistic_encryption_update_response.py +++ b/src/cloudflare/types/settings/opportunistic_encryption_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OpportunisticEncryptionUpdateResponse"] diff --git a/src/cloudflare/types/settings/opportunistic_onion_get_response.py b/src/cloudflare/types/settings/opportunistic_onion_get_response.py index 9c8470adb96..90ed9abba4f 100644 --- a/src/cloudflare/types/settings/opportunistic_onion_get_response.py +++ b/src/cloudflare/types/settings/opportunistic_onion_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OpportunisticOnionGetResponse"] diff --git a/src/cloudflare/types/settings/opportunistic_onion_update_params.py b/src/cloudflare/types/settings/opportunistic_onion_update_params.py index 3a5d502df79..5c2f845d0fe 100644 --- a/src/cloudflare/types/settings/opportunistic_onion_update_params.py +++ b/src/cloudflare/types/settings/opportunistic_onion_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["OpportunisticOnionUpdateParams"] diff --git a/src/cloudflare/types/settings/opportunistic_onion_update_response.py b/src/cloudflare/types/settings/opportunistic_onion_update_response.py index e0300cabf49..9b7c91492ad 100644 --- a/src/cloudflare/types/settings/opportunistic_onion_update_response.py +++ b/src/cloudflare/types/settings/opportunistic_onion_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OpportunisticOnionUpdateResponse"] diff --git a/src/cloudflare/types/settings/orange_to_orange_get_response.py b/src/cloudflare/types/settings/orange_to_orange_get_response.py index 715d6c4cf67..56e5d45be2c 100644 --- a/src/cloudflare/types/settings/orange_to_orange_get_response.py +++ b/src/cloudflare/types/settings/orange_to_orange_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OrangeToOrangeGetResponse"] diff --git a/src/cloudflare/types/settings/orange_to_orange_update_params.py b/src/cloudflare/types/settings/orange_to_orange_update_params.py index f8f61d59827..11aec6e1249 100644 --- a/src/cloudflare/types/settings/orange_to_orange_update_params.py +++ b/src/cloudflare/types/settings/orange_to_orange_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["OrangeToOrangeUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/orange_to_orange_update_response.py b/src/cloudflare/types/settings/orange_to_orange_update_response.py index 06a54e38d84..1a985a17d17 100644 --- a/src/cloudflare/types/settings/orange_to_orange_update_response.py +++ b/src/cloudflare/types/settings/orange_to_orange_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OrangeToOrangeUpdateResponse"] diff --git a/src/cloudflare/types/settings/origin_error_page_pass_thru_get_response.py b/src/cloudflare/types/settings/origin_error_page_pass_thru_get_response.py index 73b8258b907..58047e50d29 100644 --- a/src/cloudflare/types/settings/origin_error_page_pass_thru_get_response.py +++ b/src/cloudflare/types/settings/origin_error_page_pass_thru_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OriginErrorPagePassThruGetResponse"] diff --git a/src/cloudflare/types/settings/origin_error_page_pass_thru_update_params.py b/src/cloudflare/types/settings/origin_error_page_pass_thru_update_params.py index 4e7eb820384..caa7e055eea 100644 --- a/src/cloudflare/types/settings/origin_error_page_pass_thru_update_params.py +++ b/src/cloudflare/types/settings/origin_error_page_pass_thru_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["OriginErrorPagePassThruUpdateParams"] diff --git a/src/cloudflare/types/settings/origin_error_page_pass_thru_update_response.py b/src/cloudflare/types/settings/origin_error_page_pass_thru_update_response.py index 3b95abf7be6..4a70b915373 100644 --- a/src/cloudflare/types/settings/origin_error_page_pass_thru_update_response.py +++ b/src/cloudflare/types/settings/origin_error_page_pass_thru_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OriginErrorPagePassThruUpdateResponse"] diff --git a/src/cloudflare/types/settings/origin_max_http_version_get_response.py b/src/cloudflare/types/settings/origin_max_http_version_get_response.py index 75a9a3b6dc9..e77bf7b0fb6 100644 --- a/src/cloudflare/types/settings/origin_max_http_version_get_response.py +++ b/src/cloudflare/types/settings/origin_max_http_version_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OriginMaxHTTPVersionGetResponse"] diff --git a/src/cloudflare/types/settings/origin_max_http_version_update_params.py b/src/cloudflare/types/settings/origin_max_http_version_update_params.py index 26c7a568b9b..fc0aabc4ad7 100644 --- a/src/cloudflare/types/settings/origin_max_http_version_update_params.py +++ b/src/cloudflare/types/settings/origin_max_http_version_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["OriginMaxHTTPVersionUpdateParams"] diff --git a/src/cloudflare/types/settings/origin_max_http_version_update_response.py b/src/cloudflare/types/settings/origin_max_http_version_update_response.py index a075e013c80..5410487ec7c 100644 --- a/src/cloudflare/types/settings/origin_max_http_version_update_response.py +++ b/src/cloudflare/types/settings/origin_max_http_version_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["OriginMaxHTTPVersionUpdateResponse"] diff --git a/src/cloudflare/types/settings/polish_get_response.py b/src/cloudflare/types/settings/polish_get_response.py index a0045d2e108..8e7b6193863 100644 --- a/src/cloudflare/types/settings/polish_get_response.py +++ b/src/cloudflare/types/settings/polish_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PolishGetResponse"] diff --git a/src/cloudflare/types/settings/polish_update_params.py b/src/cloudflare/types/settings/polish_update_params.py index 27c3816a3b8..1a8718bb63f 100644 --- a/src/cloudflare/types/settings/polish_update_params.py +++ b/src/cloudflare/types/settings/polish_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["PolishUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/polish_update_response.py b/src/cloudflare/types/settings/polish_update_response.py index 1cd4911c7c4..29bba2669c5 100644 --- a/src/cloudflare/types/settings/polish_update_response.py +++ b/src/cloudflare/types/settings/polish_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PolishUpdateResponse"] diff --git a/src/cloudflare/types/settings/prefetch_preload_get_response.py b/src/cloudflare/types/settings/prefetch_preload_get_response.py index 8f94957964f..ffd60654f88 100644 --- a/src/cloudflare/types/settings/prefetch_preload_get_response.py +++ b/src/cloudflare/types/settings/prefetch_preload_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PrefetchPreloadGetResponse"] diff --git a/src/cloudflare/types/settings/prefetch_preload_update_params.py b/src/cloudflare/types/settings/prefetch_preload_update_params.py index 127c5a76305..c865555b8a9 100644 --- a/src/cloudflare/types/settings/prefetch_preload_update_params.py +++ b/src/cloudflare/types/settings/prefetch_preload_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["PrefetchPreloadUpdateParams"] diff --git a/src/cloudflare/types/settings/prefetch_preload_update_response.py b/src/cloudflare/types/settings/prefetch_preload_update_response.py index 8d51bed76e8..8695acdc552 100644 --- a/src/cloudflare/types/settings/prefetch_preload_update_response.py +++ b/src/cloudflare/types/settings/prefetch_preload_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PrefetchPreloadUpdateResponse"] diff --git a/src/cloudflare/types/settings/proxy_read_timeout_get_response.py b/src/cloudflare/types/settings/proxy_read_timeout_get_response.py index 516c60d0cb1..4cd2b973e6c 100644 --- a/src/cloudflare/types/settings/proxy_read_timeout_get_response.py +++ b/src/cloudflare/types/settings/proxy_read_timeout_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ProxyReadTimeoutGetResponse"] diff --git a/src/cloudflare/types/settings/proxy_read_timeout_update_params.py b/src/cloudflare/types/settings/proxy_read_timeout_update_params.py index bd6d0b924cf..a0073f49390 100644 --- a/src/cloudflare/types/settings/proxy_read_timeout_update_params.py +++ b/src/cloudflare/types/settings/proxy_read_timeout_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ProxyReadTimeoutUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/proxy_read_timeout_update_response.py b/src/cloudflare/types/settings/proxy_read_timeout_update_response.py index 690fe946b33..d922de6e791 100644 --- a/src/cloudflare/types/settings/proxy_read_timeout_update_response.py +++ b/src/cloudflare/types/settings/proxy_read_timeout_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ProxyReadTimeoutUpdateResponse"] diff --git a/src/cloudflare/types/settings/pseudo_ipv4_get_response.py b/src/cloudflare/types/settings/pseudo_ipv4_get_response.py index 012cc38525c..46c7153edb3 100644 --- a/src/cloudflare/types/settings/pseudo_ipv4_get_response.py +++ b/src/cloudflare/types/settings/pseudo_ipv4_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PseudoIPV4GetResponse"] diff --git a/src/cloudflare/types/settings/pseudo_ipv4_update_params.py b/src/cloudflare/types/settings/pseudo_ipv4_update_params.py index 3f8f6b7933e..83165811908 100644 --- a/src/cloudflare/types/settings/pseudo_ipv4_update_params.py +++ b/src/cloudflare/types/settings/pseudo_ipv4_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["PseudoIPV4UpdateParams"] diff --git a/src/cloudflare/types/settings/pseudo_ipv4_update_response.py b/src/cloudflare/types/settings/pseudo_ipv4_update_response.py index 38cab18aa1b..13d29e696c8 100644 --- a/src/cloudflare/types/settings/pseudo_ipv4_update_response.py +++ b/src/cloudflare/types/settings/pseudo_ipv4_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["PseudoIPV4UpdateResponse"] diff --git a/src/cloudflare/types/settings/response_buffering_get_response.py b/src/cloudflare/types/settings/response_buffering_get_response.py index c05e5cb01f5..503e9fed2a1 100644 --- a/src/cloudflare/types/settings/response_buffering_get_response.py +++ b/src/cloudflare/types/settings/response_buffering_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ResponseBufferingGetResponse"] diff --git a/src/cloudflare/types/settings/response_buffering_update_params.py b/src/cloudflare/types/settings/response_buffering_update_params.py index 564377eb307..2252af10b8c 100644 --- a/src/cloudflare/types/settings/response_buffering_update_params.py +++ b/src/cloudflare/types/settings/response_buffering_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ResponseBufferingUpdateParams"] diff --git a/src/cloudflare/types/settings/response_buffering_update_response.py b/src/cloudflare/types/settings/response_buffering_update_response.py index b07c3cd8a3a..6e398041da7 100644 --- a/src/cloudflare/types/settings/response_buffering_update_response.py +++ b/src/cloudflare/types/settings/response_buffering_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ResponseBufferingUpdateResponse"] diff --git a/src/cloudflare/types/settings/rocket_loader_get_response.py b/src/cloudflare/types/settings/rocket_loader_get_response.py index d14f16f77ed..a1cb8093453 100644 --- a/src/cloudflare/types/settings/rocket_loader_get_response.py +++ b/src/cloudflare/types/settings/rocket_loader_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["RocketLoaderGetResponse"] diff --git a/src/cloudflare/types/settings/rocket_loader_update_params.py b/src/cloudflare/types/settings/rocket_loader_update_params.py index 2c56d8e7c20..5a1ae6ba232 100644 --- a/src/cloudflare/types/settings/rocket_loader_update_params.py +++ b/src/cloudflare/types/settings/rocket_loader_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["RocketLoaderUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/rocket_loader_update_response.py b/src/cloudflare/types/settings/rocket_loader_update_response.py index e619c8b6d30..fdc2865a0db 100644 --- a/src/cloudflare/types/settings/rocket_loader_update_response.py +++ b/src/cloudflare/types/settings/rocket_loader_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["RocketLoaderUpdateResponse"] diff --git a/src/cloudflare/types/settings/security_header_get_response.py b/src/cloudflare/types/settings/security_header_get_response.py index 8e12086a203..b36027a98c4 100644 --- a/src/cloudflare/types/settings/security_header_get_response.py +++ b/src/cloudflare/types/settings/security_header_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["SecurityHeaderGetResponse", "Value", "ValueStrictTransportSecurity"] diff --git a/src/cloudflare/types/settings/security_header_update_params.py b/src/cloudflare/types/settings/security_header_update_params.py index dc8a4ac4881..78927823569 100644 --- a/src/cloudflare/types/settings/security_header_update_params.py +++ b/src/cloudflare/types/settings/security_header_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["SecurityHeaderUpdateParams", "Value", "ValueStrictTransportSecurity"] diff --git a/src/cloudflare/types/settings/security_header_update_response.py b/src/cloudflare/types/settings/security_header_update_response.py index 7188a6b4430..fb2e7ef7a24 100644 --- a/src/cloudflare/types/settings/security_header_update_response.py +++ b/src/cloudflare/types/settings/security_header_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + 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 +from ...types import shared __all__ = ["SecurityHeaderUpdateResponse", "Value", "ValueStrictTransportSecurity"] diff --git a/src/cloudflare/types/settings/security_level_get_response.py b/src/cloudflare/types/settings/security_level_get_response.py index a25ddeef3d4..59d894c0f57 100644 --- a/src/cloudflare/types/settings/security_level_get_response.py +++ b/src/cloudflare/types/settings/security_level_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SecurityLevelGetResponse"] diff --git a/src/cloudflare/types/settings/security_level_update_params.py b/src/cloudflare/types/settings/security_level_update_params.py index 839f08aaf1c..0454bef93d1 100644 --- a/src/cloudflare/types/settings/security_level_update_params.py +++ b/src/cloudflare/types/settings/security_level_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["SecurityLevelUpdateParams"] diff --git a/src/cloudflare/types/settings/security_level_update_response.py b/src/cloudflare/types/settings/security_level_update_response.py index 49b8e7eef82..31a9e054521 100644 --- a/src/cloudflare/types/settings/security_level_update_response.py +++ b/src/cloudflare/types/settings/security_level_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SecurityLevelUpdateResponse"] diff --git a/src/cloudflare/types/settings/server_side_exclude_get_response.py b/src/cloudflare/types/settings/server_side_exclude_get_response.py index 874a998aba0..60239a0fa14 100644 --- a/src/cloudflare/types/settings/server_side_exclude_get_response.py +++ b/src/cloudflare/types/settings/server_side_exclude_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ServerSideExcludeGetResponse"] diff --git a/src/cloudflare/types/settings/server_side_exclude_update_params.py b/src/cloudflare/types/settings/server_side_exclude_update_params.py index e8276ffb81d..202a0d5ebba 100644 --- a/src/cloudflare/types/settings/server_side_exclude_update_params.py +++ b/src/cloudflare/types/settings/server_side_exclude_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ServerSideExcludeUpdateParams"] diff --git a/src/cloudflare/types/settings/server_side_exclude_update_response.py b/src/cloudflare/types/settings/server_side_exclude_update_response.py index 6c2bbbe5139..3b09cc217b8 100644 --- a/src/cloudflare/types/settings/server_side_exclude_update_response.py +++ b/src/cloudflare/types/settings/server_side_exclude_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ServerSideExcludeUpdateResponse"] diff --git a/src/cloudflare/types/settings/sort_query_string_for_cache_get_response.py b/src/cloudflare/types/settings/sort_query_string_for_cache_get_response.py index 36f12c21108..1d119dbffd7 100644 --- a/src/cloudflare/types/settings/sort_query_string_for_cache_get_response.py +++ b/src/cloudflare/types/settings/sort_query_string_for_cache_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SortQueryStringForCacheGetResponse"] diff --git a/src/cloudflare/types/settings/sort_query_string_for_cache_update_params.py b/src/cloudflare/types/settings/sort_query_string_for_cache_update_params.py index 250c19dea8a..65750d5e67d 100644 --- a/src/cloudflare/types/settings/sort_query_string_for_cache_update_params.py +++ b/src/cloudflare/types/settings/sort_query_string_for_cache_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["SortQueryStringForCacheUpdateParams"] diff --git a/src/cloudflare/types/settings/sort_query_string_for_cache_update_response.py b/src/cloudflare/types/settings/sort_query_string_for_cache_update_response.py index 828fa5efc04..a40313fb483 100644 --- a/src/cloudflare/types/settings/sort_query_string_for_cache_update_response.py +++ b/src/cloudflare/types/settings/sort_query_string_for_cache_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SortQueryStringForCacheUpdateResponse"] diff --git a/src/cloudflare/types/settings/ssl_get_response.py b/src/cloudflare/types/settings/ssl_get_response.py index 36ccc67e47a..3dfb0eccbf0 100644 --- a/src/cloudflare/types/settings/ssl_get_response.py +++ b/src/cloudflare/types/settings/ssl_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SSLGetResponse"] diff --git a/src/cloudflare/types/settings/ssl_recommender_get_response.py b/src/cloudflare/types/settings/ssl_recommender_get_response.py index e080caf85c2..58aeabf43d4 100644 --- a/src/cloudflare/types/settings/ssl_recommender_get_response.py +++ b/src/cloudflare/types/settings/ssl_recommender_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["SSLRecommenderGetResponse"] diff --git a/src/cloudflare/types/settings/ssl_recommender_update_params.py b/src/cloudflare/types/settings/ssl_recommender_update_params.py index 7eef705c139..76f00156b93 100644 --- a/src/cloudflare/types/settings/ssl_recommender_update_params.py +++ b/src/cloudflare/types/settings/ssl_recommender_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["SSLRecommenderUpdateParams", "Value"] diff --git a/src/cloudflare/types/settings/ssl_recommender_update_response.py b/src/cloudflare/types/settings/ssl_recommender_update_response.py index 72cb045dd6a..2cebdf7f72b 100644 --- a/src/cloudflare/types/settings/ssl_recommender_update_response.py +++ b/src/cloudflare/types/settings/ssl_recommender_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["SSLRecommenderUpdateResponse"] diff --git a/src/cloudflare/types/settings/ssl_update_params.py b/src/cloudflare/types/settings/ssl_update_params.py index 6b70e356c59..66f4f5a19bf 100644 --- a/src/cloudflare/types/settings/ssl_update_params.py +++ b/src/cloudflare/types/settings/ssl_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["SSLUpdateParams"] diff --git a/src/cloudflare/types/settings/ssl_update_response.py b/src/cloudflare/types/settings/ssl_update_response.py index 7edcdc1412c..92b138e4578 100644 --- a/src/cloudflare/types/settings/ssl_update_response.py +++ b/src/cloudflare/types/settings/ssl_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["SSLUpdateResponse"] diff --git a/src/cloudflare/types/settings/tls_1_3_get_response.py b/src/cloudflare/types/settings/tls_1_3_get_response.py index 83d7a29806a..e6d610c4164 100644 --- a/src/cloudflare/types/settings/tls_1_3_get_response.py +++ b/src/cloudflare/types/settings/tls_1_3_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TLS1_3GetResponse"] diff --git a/src/cloudflare/types/settings/tls_1_3_update_params.py b/src/cloudflare/types/settings/tls_1_3_update_params.py index c043039ca85..5545618ae88 100644 --- a/src/cloudflare/types/settings/tls_1_3_update_params.py +++ b/src/cloudflare/types/settings/tls_1_3_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TLS1_3UpdateParams"] diff --git a/src/cloudflare/types/settings/tls_1_3_update_response.py b/src/cloudflare/types/settings/tls_1_3_update_response.py index b1e8693f2c2..28988213e7e 100644 --- a/src/cloudflare/types/settings/tls_1_3_update_response.py +++ b/src/cloudflare/types/settings/tls_1_3_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TLS1_3UpdateResponse"] diff --git a/src/cloudflare/types/settings/tls_client_auth_get_response.py b/src/cloudflare/types/settings/tls_client_auth_get_response.py index c628e0eb0dd..9e7c8afd764 100644 --- a/src/cloudflare/types/settings/tls_client_auth_get_response.py +++ b/src/cloudflare/types/settings/tls_client_auth_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TLSClientAuthGetResponse"] diff --git a/src/cloudflare/types/settings/tls_client_auth_update_params.py b/src/cloudflare/types/settings/tls_client_auth_update_params.py index d1abe5db5a6..8f2738bebf5 100644 --- a/src/cloudflare/types/settings/tls_client_auth_update_params.py +++ b/src/cloudflare/types/settings/tls_client_auth_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TLSClientAuthUpdateParams"] diff --git a/src/cloudflare/types/settings/tls_client_auth_update_response.py b/src/cloudflare/types/settings/tls_client_auth_update_response.py index 695a1e7b02a..b4107adf9ea 100644 --- a/src/cloudflare/types/settings/tls_client_auth_update_response.py +++ b/src/cloudflare/types/settings/tls_client_auth_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TLSClientAuthUpdateResponse"] diff --git a/src/cloudflare/types/settings/true_client_ip_header_get_response.py b/src/cloudflare/types/settings/true_client_ip_header_get_response.py index 6dbacb530e8..aad00fc8ebc 100644 --- a/src/cloudflare/types/settings/true_client_ip_header_get_response.py +++ b/src/cloudflare/types/settings/true_client_ip_header_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TrueClientIPHeaderGetResponse"] diff --git a/src/cloudflare/types/settings/true_client_ip_header_update_params.py b/src/cloudflare/types/settings/true_client_ip_header_update_params.py index adb6d2ec633..ffc2248623c 100644 --- a/src/cloudflare/types/settings/true_client_ip_header_update_params.py +++ b/src/cloudflare/types/settings/true_client_ip_header_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["TrueClientIPHeaderUpdateParams"] diff --git a/src/cloudflare/types/settings/true_client_ip_header_update_response.py b/src/cloudflare/types/settings/true_client_ip_header_update_response.py index 79f69cf3112..f8a24869378 100644 --- a/src/cloudflare/types/settings/true_client_ip_header_update_response.py +++ b/src/cloudflare/types/settings/true_client_ip_header_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["TrueClientIPHeaderUpdateResponse"] diff --git a/src/cloudflare/types/settings/waf_get_response.py b/src/cloudflare/types/settings/waf_get_response.py index 7698eaedda3..91fd4c18516 100644 --- a/src/cloudflare/types/settings/waf_get_response.py +++ b/src/cloudflare/types/settings/waf_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WAFGetResponse"] diff --git a/src/cloudflare/types/settings/waf_update_params.py b/src/cloudflare/types/settings/waf_update_params.py index b3ac0442ce4..7257724d88b 100644 --- a/src/cloudflare/types/settings/waf_update_params.py +++ b/src/cloudflare/types/settings/waf_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["WAFUpdateParams"] diff --git a/src/cloudflare/types/settings/waf_update_response.py b/src/cloudflare/types/settings/waf_update_response.py index 91575463d00..2e9c1e415e8 100644 --- a/src/cloudflare/types/settings/waf_update_response.py +++ b/src/cloudflare/types/settings/waf_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WAFUpdateResponse"] diff --git a/src/cloudflare/types/settings/webp_get_response.py b/src/cloudflare/types/settings/webp_get_response.py index 9a399642f41..35d7ca23815 100644 --- a/src/cloudflare/types/settings/webp_get_response.py +++ b/src/cloudflare/types/settings/webp_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WebpGetResponse"] diff --git a/src/cloudflare/types/settings/webp_update_params.py b/src/cloudflare/types/settings/webp_update_params.py index 7001a38ba8a..9015d66eda5 100644 --- a/src/cloudflare/types/settings/webp_update_params.py +++ b/src/cloudflare/types/settings/webp_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["WebpUpdateParams"] diff --git a/src/cloudflare/types/settings/webp_update_response.py b/src/cloudflare/types/settings/webp_update_response.py index a8aab76fb18..519597bd170 100644 --- a/src/cloudflare/types/settings/webp_update_response.py +++ b/src/cloudflare/types/settings/webp_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WebpUpdateResponse"] diff --git a/src/cloudflare/types/settings/websocket_get_response.py b/src/cloudflare/types/settings/websocket_get_response.py index 21d533ddf16..ea09f4f561f 100644 --- a/src/cloudflare/types/settings/websocket_get_response.py +++ b/src/cloudflare/types/settings/websocket_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WebsocketGetResponse"] diff --git a/src/cloudflare/types/settings/websocket_update_params.py b/src/cloudflare/types/settings/websocket_update_params.py index b1a5507963c..d796a1a18a0 100644 --- a/src/cloudflare/types/settings/websocket_update_params.py +++ b/src/cloudflare/types/settings/websocket_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["WebsocketUpdateParams"] diff --git a/src/cloudflare/types/settings/websocket_update_response.py b/src/cloudflare/types/settings/websocket_update_response.py index 15e7b58a894..b875b928d85 100644 --- a/src/cloudflare/types/settings/websocket_update_response.py +++ b/src/cloudflare/types/settings/websocket_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["WebsocketUpdateResponse"] diff --git a/src/cloudflare/types/settings/zero_rtt_get_response.py b/src/cloudflare/types/settings/zero_rtt_get_response.py index 53e144bad20..dfe1a78b9e1 100644 --- a/src/cloudflare/types/settings/zero_rtt_get_response.py +++ b/src/cloudflare/types/settings/zero_rtt_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ZeroRttGetResponse"] diff --git a/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params.py b/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params.py index 30f86e3ba4b..4969648edeb 100644 --- a/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params.py +++ b/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ZeroRttZoneSettingsChange0RttSessionResumptionSettingParams"] diff --git a/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response.py b/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response.py index cb28f35ec3a..a8dfe800b09 100644 --- a/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response.py +++ b/src/cloudflare/types/settings/zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ...types import shared __all__ = ["ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse"] diff --git a/src/cloudflare/types/snippet_delete_response.py b/src/cloudflare/types/snippet_delete_response.py index fd986e837fa..767cfdc1646 100644 --- a/src/cloudflare/types/snippet_delete_response.py +++ b/src/cloudflare/types/snippet_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ..types import shared __all__ = ["SnippetDeleteResponse"] diff --git a/src/cloudflare/types/snippet_get_response.py b/src/cloudflare/types/snippet_get_response.py index d8289ff7eae..d8bac8ab03e 100644 --- a/src/cloudflare/types/snippet_get_response.py +++ b/src/cloudflare/types/snippet_get_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["SnippetGetResponse"] diff --git a/src/cloudflare/types/snippet_list_response.py b/src/cloudflare/types/snippet_list_response.py index 62600ae25ab..a55ea41777d 100644 --- a/src/cloudflare/types/snippet_list_response.py +++ b/src/cloudflare/types/snippet_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ..types import shared __all__ = ["SnippetListResponse", "SnippetListResponseItem"] diff --git a/src/cloudflare/types/snippet_update_params.py b/src/cloudflare/types/snippet_update_params.py index 6d7d6e2efa1..11d8858483d 100644 --- a/src/cloudflare/types/snippet_update_params.py +++ b/src/cloudflare/types/snippet_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["SnippetUpdateParams", "Metadata"] diff --git a/src/cloudflare/types/snippet_update_response.py b/src/cloudflare/types/snippet_update_response.py index bf7b4205425..8e44bde53ec 100644 --- a/src/cloudflare/types/snippet_update_response.py +++ b/src/cloudflare/types/snippet_update_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["SnippetUpdateResponse"] diff --git a/src/cloudflare/types/snippets/__init__.py b/src/cloudflare/types/snippets/__init__.py index 2dc7e7067c1..0f400ee4b7a 100644 --- a/src/cloudflare/types/snippets/__init__.py +++ b/src/cloudflare/types/snippets/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .snippet_rule_update_response import SnippetRuleUpdateResponse as SnippetRuleUpdateResponse from .snippet_rule_list_response import SnippetRuleListResponse as SnippetRuleListResponse from .snippet_rule_update_params import SnippetRuleUpdateParams as SnippetRuleUpdateParams -from .snippet_rule_update_response import SnippetRuleUpdateResponse as SnippetRuleUpdateResponse diff --git a/src/cloudflare/types/snippets/snippet_rule_list_response.py b/src/cloudflare/types/snippets/snippet_rule_list_response.py index aaf15b57bb1..74911951309 100644 --- a/src/cloudflare/types/snippets/snippet_rule_list_response.py +++ b/src/cloudflare/types/snippets/snippet_rule_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["SnippetRuleListResponse", "SnippetRuleListResponseItem"] diff --git a/src/cloudflare/types/snippets/snippet_rule_update_params.py b/src/cloudflare/types/snippets/snippet_rule_update_params.py index d24135240cc..22fb6c6ff58 100644 --- a/src/cloudflare/types/snippets/snippet_rule_update_params.py +++ b/src/cloudflare/types/snippets/snippet_rule_update_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Iterable from typing_extensions import TypedDict +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 ...types import shared_params + __all__ = ["SnippetRuleUpdateParams", "Rule"] diff --git a/src/cloudflare/types/snippets/snippet_rule_update_response.py b/src/cloudflare/types/snippets/snippet_rule_update_response.py index 52d2561ccb3..68144be9694 100644 --- a/src/cloudflare/types/snippets/snippet_rule_update_response.py +++ b/src/cloudflare/types/snippets/snippet_rule_update_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["SnippetRuleUpdateResponse", "SnippetRuleUpdateResponseItem"] diff --git a/src/cloudflare/types/spectrums/__init__.py b/src/cloudflare/types/spectrums/__init__.py index 586bb97f2ac..fb5571158a2 100644 --- a/src/cloudflare/types/spectrums/__init__.py +++ b/src/cloudflare/types/spectrums/__init__.py @@ -2,19 +2,19 @@ from __future__ import annotations -from .app_get_response import AppGetResponse as AppGetResponse -from .app_update_params import AppUpdateParams as AppUpdateParams -from .app_delete_response import AppDeleteResponse as AppDeleteResponse from .app_update_response import AppUpdateResponse as AppUpdateResponse -from .app_spectrum_applications_list_spectrum_applications_params import ( - AppSpectrumApplicationsListSpectrumApplicationsParams as AppSpectrumApplicationsListSpectrumApplicationsParams, +from .app_delete_response import AppDeleteResponse as AppDeleteResponse +from .app_get_response import AppGetResponse as AppGetResponse +from .app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response import ( + AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse as AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, ) from .app_spectrum_applications_list_spectrum_applications_response import ( AppSpectrumApplicationsListSpectrumApplicationsResponse as AppSpectrumApplicationsListSpectrumApplicationsResponse, ) +from .app_update_params import AppUpdateParams as AppUpdateParams from .app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params import ( AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginParams as AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginParams, ) -from .app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response import ( - AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse as AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, +from .app_spectrum_applications_list_spectrum_applications_params import ( + AppSpectrumApplicationsListSpectrumApplicationsParams as AppSpectrumApplicationsListSpectrumApplicationsParams, ) diff --git a/src/cloudflare/types/spectrums/analytics/aggregates/__init__.py b/src/cloudflare/types/spectrums/analytics/aggregates/__init__.py index 55b3120ed92..d1c2a2691df 100644 --- a/src/cloudflare/types/spectrums/analytics/aggregates/__init__.py +++ b/src/cloudflare/types/spectrums/analytics/aggregates/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params import ( - CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsParams as CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsParams, -) from .current_spectrum_aggregate_analytics_get_current_aggregated_analytics_response import ( CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse as CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, ) +from .current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params import ( + CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsParams as CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsParams, +) diff --git a/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params.py b/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params.py index 519a5aa9d46..6b85b45fb4b 100644 --- a/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params.py +++ b/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Annotated, TypedDict +from typing_extensions import TypedDict, Annotated 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 .....types import shared_params + __all__ = ["CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsParams"] diff --git a/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_response.py b/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_response.py index 6f456c98277..f003749ede3 100644 --- a/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_response.py +++ b/src/cloudflare/types/spectrums/analytics/aggregates/current_spectrum_aggregate_analytics_get_current_aggregated_analytics_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from .....types import shared __all__ = ["CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse"] diff --git a/src/cloudflare/types/spectrums/analytics/events/__init__.py b/src/cloudflare/types/spectrums/analytics/events/__init__.py index 6fb7e1c699c..9961829586a 100644 --- a/src/cloudflare/types/spectrums/analytics/events/__init__.py +++ b/src/cloudflare/types/spectrums/analytics/events/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .bytime_spectrum_analytics_by_time_get_analytics_by_time_params import ( - BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeParams as BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeParams, -) -from .summary_spectrum_analytics_summary_get_analytics_summary_params import ( - SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryParams as SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryParams, -) from .bytime_spectrum_analytics_by_time_get_analytics_by_time_response import ( BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse as BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse, ) +from .bytime_spectrum_analytics_by_time_get_analytics_by_time_params import ( + BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeParams as BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeParams, +) from .summary_spectrum_analytics_summary_get_analytics_summary_response import ( SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse as SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse, ) +from .summary_spectrum_analytics_summary_get_analytics_summary_params import ( + SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryParams as SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryParams, +) diff --git a/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_params.py b/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_params.py index 7db2b25b14e..67f2ac96519 100644 --- a/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_params.py +++ b/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_params.py @@ -2,12 +2,20 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Annotated + from typing import List, Union, Iterable + 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 +from .....types import shared_params + __all__ = ["BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeParams"] diff --git a/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_response.py b/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_response.py index c0aa509ab27..5f9b9fe327d 100644 --- a/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_response.py +++ b/src/cloudflare/types/spectrums/analytics/events/bytime_spectrum_analytics_by_time_get_analytics_by_time_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse"] diff --git a/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_params.py b/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_params.py index 89c212018ce..8ad9d4bc6c0 100644 --- a/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_params.py +++ b/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_params.py @@ -2,12 +2,20 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Annotated + from typing import List, Union, Iterable + 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 +from .....types import shared_params + __all__ = ["SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryParams"] diff --git a/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_response.py b/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_response.py index 6521db3e1ef..10ff1743251 100644 --- a/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_response.py +++ b/src/cloudflare/types/spectrums/analytics/events/summary_spectrum_analytics_summary_get_analytics_summary_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse"] diff --git a/src/cloudflare/types/spectrums/app_delete_response.py b/src/cloudflare/types/spectrums/app_delete_response.py index 6e503cfce62..6bfbd21d8c5 100644 --- a/src/cloudflare/types/spectrums/app_delete_response.py +++ b/src/cloudflare/types/spectrums/app_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AppDeleteResponse"] diff --git a/src/cloudflare/types/spectrums/app_get_response.py b/src/cloudflare/types/spectrums/app_get_response.py index b35efba6f7c..d9693590997 100644 --- a/src/cloudflare/types/spectrums/app_get_response.py +++ b/src/cloudflare/types/spectrums/app_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AppGetResponse"] diff --git a/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params.py b/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params.py index 783a5ea947a..f49982d11d0 100644 --- a/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params.py +++ b/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Union, 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 ...types import shared_params __all__ = [ "AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginParams", diff --git a/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response.py b/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response.py index 8723180b921..ce4d6ac500a 100644 --- a/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response.py +++ b/src/cloudflare/types/spectrums/app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ...types import shared __all__ = [ "AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse", diff --git a/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_params.py b/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_params.py index 3cab853cd8c..17cbaf9db60 100644 --- a/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_params.py +++ b/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["AppSpectrumApplicationsListSpectrumApplicationsParams"] diff --git a/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_response.py b/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_response.py index 74a72404b7b..5531b980711 100644 --- a/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_response.py +++ b/src/cloudflare/types/spectrums/app_spectrum_applications_list_spectrum_applications_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["AppSpectrumApplicationsListSpectrumApplicationsResponse"] diff --git a/src/cloudflare/types/spectrums/app_update_params.py b/src/cloudflare/types/spectrums/app_update_params.py index 70ce4eb1d66..d4be4822a06 100644 --- a/src/cloudflare/types/spectrums/app_update_params.py +++ b/src/cloudflare/types/spectrums/app_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Union, 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 ...types import shared_params __all__ = ["AppUpdateParams", "DNS", "OriginDNS", "EdgeIPs", "EdgeIPsUnionMember0", "EdgeIPsUnionMember1"] diff --git a/src/cloudflare/types/spectrums/app_update_response.py b/src/cloudflare/types/spectrums/app_update_response.py index 6a1b889b026..a11cd8f7c08 100644 --- a/src/cloudflare/types/spectrums/app_update_response.py +++ b/src/cloudflare/types/spectrums/app_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + 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 +from ...types import shared __all__ = ["AppUpdateResponse", "DNS", "EdgeIPs", "EdgeIPsUnionMember0", "EdgeIPsUnionMember1", "OriginDNS"] diff --git a/src/cloudflare/types/speed_api/__init__.py b/src/cloudflare/types/speed_api/__init__.py index 90275253fe5..e89b999a76f 100644 --- a/src/cloudflare/types/speed_api/__init__.py +++ b/src/cloudflare/types/speed_api/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .schedule_create_params import ScheduleCreateParams as ScheduleCreateParams from .schedule_create_response import ScheduleCreateResponse as ScheduleCreateResponse +from .schedule_create_params import ScheduleCreateParams as ScheduleCreateParams diff --git a/src/cloudflare/types/speed_api/schedule_create_params.py b/src/cloudflare/types/speed_api/schedule_create_params.py index bad7a4a1026..7d00f018e1c 100644 --- a/src/cloudflare/types/speed_api/schedule_create_params.py +++ b/src/cloudflare/types/speed_api/schedule_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["ScheduleCreateParams"] diff --git a/src/cloudflare/types/speed_api/schedule_create_response.py b/src/cloudflare/types/speed_api/schedule_create_response.py index fc71e4460da..6e2344fdf8b 100644 --- a/src/cloudflare/types/speed_api/schedule_create_response.py +++ b/src/cloudflare/types/speed_api/schedule_create_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "ScheduleCreateResponse", diff --git a/src/cloudflare/types/speed_api_availabilities_list_response.py b/src/cloudflare/types/speed_api_availabilities_list_response.py index 2e4066447cb..870fbb80df5 100644 --- a/src/cloudflare/types/speed_api_availabilities_list_response.py +++ b/src/cloudflare/types/speed_api_availabilities_list_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +from typing import Optional, Dict, 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 +from ..types import shared __all__ = ["SpeedAPIAvailabilitiesListResponse", "Quota", "Region"] diff --git a/src/cloudflare/types/speed_api_pages_list_response.py b/src/cloudflare/types/speed_api_pages_list_response.py index 26666c72327..b7039a3da96 100644 --- a/src/cloudflare/types/speed_api_pages_list_response.py +++ b/src/cloudflare/types/speed_api_pages_list_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = [ "SpeedAPIPagesListResponse", diff --git a/src/cloudflare/types/speed_api_schedule_delete_params.py b/src/cloudflare/types/speed_api_schedule_delete_params.py index 030edfd6093..208a01e96f6 100644 --- a/src/cloudflare/types/speed_api_schedule_delete_params.py +++ b/src/cloudflare/types/speed_api_schedule_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SpeedAPIScheduleDeleteParams"] diff --git a/src/cloudflare/types/speed_api_schedule_delete_response.py b/src/cloudflare/types/speed_api_schedule_delete_response.py index 09febe92b2e..c909eb9a225 100644 --- a/src/cloudflare/types/speed_api_schedule_delete_response.py +++ b/src/cloudflare/types/speed_api_schedule_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["SpeedAPIScheduleDeleteResponse"] diff --git a/src/cloudflare/types/speed_api_schedule_get_params.py b/src/cloudflare/types/speed_api_schedule_get_params.py index ef549342803..0c91fffcd28 100644 --- a/src/cloudflare/types/speed_api_schedule_get_params.py +++ b/src/cloudflare/types/speed_api_schedule_get_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SpeedAPIScheduleGetParams"] diff --git a/src/cloudflare/types/speed_api_schedule_get_response.py b/src/cloudflare/types/speed_api_schedule_get_response.py index b6fd6d2930a..0add0add375 100644 --- a/src/cloudflare/types/speed_api_schedule_get_response.py +++ b/src/cloudflare/types/speed_api_schedule_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ..types import shared __all__ = ["SpeedAPIScheduleGetResponse"] diff --git a/src/cloudflare/types/speed_api_tests_create_params.py b/src/cloudflare/types/speed_api_tests_create_params.py index daa573c5fdc..929dcfb9315 100644 --- a/src/cloudflare/types/speed_api_tests_create_params.py +++ b/src/cloudflare/types/speed_api_tests_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SpeedAPITestsCreateParams"] diff --git a/src/cloudflare/types/speed_api_tests_create_response.py b/src/cloudflare/types/speed_api_tests_create_response.py index 426234f3194..a8557fb9fc6 100644 --- a/src/cloudflare/types/speed_api_tests_create_response.py +++ b/src/cloudflare/types/speed_api_tests_create_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = [ "SpeedAPITestsCreateResponse", diff --git a/src/cloudflare/types/speed_api_tests_delete_params.py b/src/cloudflare/types/speed_api_tests_delete_params.py index ccc649e3641..e90b660ee08 100644 --- a/src/cloudflare/types/speed_api_tests_delete_params.py +++ b/src/cloudflare/types/speed_api_tests_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SpeedAPITestsDeleteParams"] diff --git a/src/cloudflare/types/speed_api_tests_delete_response.py b/src/cloudflare/types/speed_api_tests_delete_response.py index 50cb485b676..a21e1418880 100644 --- a/src/cloudflare/types/speed_api_tests_delete_response.py +++ b/src/cloudflare/types/speed_api_tests_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["SpeedAPITestsDeleteResponse"] diff --git a/src/cloudflare/types/speed_api_tests_get_response.py b/src/cloudflare/types/speed_api_tests_get_response.py index 5384c3bfb06..bde2dbd4a77 100644 --- a/src/cloudflare/types/speed_api_tests_get_response.py +++ b/src/cloudflare/types/speed_api_tests_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. from typing import Optional -from datetime import datetime + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = [ "SpeedAPITestsGetResponse", diff --git a/src/cloudflare/types/speed_api_tests_list_params.py b/src/cloudflare/types/speed_api_tests_list_params.py index 2f0103dca84..ae385a73557 100644 --- a/src/cloudflare/types/speed_api_tests_list_params.py +++ b/src/cloudflare/types/speed_api_tests_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SpeedAPITestsListParams"] diff --git a/src/cloudflare/types/speed_api_tests_list_response.py b/src/cloudflare/types/speed_api_tests_list_response.py index 82176ec4aa1..edb68ff84a0 100644 --- a/src/cloudflare/types/speed_api_tests_list_response.py +++ b/src/cloudflare/types/speed_api_tests_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = ["SpeedAPITestsListResponse", "Error", "Message", "ResultInfo"] diff --git a/src/cloudflare/types/speed_api_trends_list_params.py b/src/cloudflare/types/speed_api_trends_list_params.py index 94a2713d8bd..942dafdee6b 100644 --- a/src/cloudflare/types/speed_api_trends_list_params.py +++ b/src/cloudflare/types/speed_api_trends_list_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated 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 ..types import shared_params + __all__ = ["SpeedAPITrendsListParams"] diff --git a/src/cloudflare/types/speed_api_trends_list_response.py b/src/cloudflare/types/speed_api_trends_list_response.py index 9b9efebba7b..a1ca9fa3c72 100644 --- a/src/cloudflare/types/speed_api_trends_list_response.py +++ b/src/cloudflare/types/speed_api_trends_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = ["SpeedAPITrendsListResponse"] diff --git a/src/cloudflare/types/ssls/__init__.py b/src/cloudflare/types/ssls/__init__.py index c6b0ffd22ce..10d7ba18abb 100644 --- a/src/cloudflare/types/ssls/__init__.py +++ b/src/cloudflare/types/ssls/__init__.py @@ -2,27 +2,27 @@ from __future__ import annotations -from .verification_update_params import VerificationUpdateParams as VerificationUpdateParams -from .recommendation_list_response import RecommendationListResponse as RecommendationListResponse -from .verification_update_response import VerificationUpdateResponse as VerificationUpdateResponse -from .certificate_pack_get_response import CertificatePackGetResponse as CertificatePackGetResponse -from .certificate_pack_delete_response import CertificatePackDeleteResponse as CertificatePackDeleteResponse -from .certificate_pack_update_response import CertificatePackUpdateResponse as CertificatePackUpdateResponse -from .analyze_analyze_certificate_analyze_certificate_params import ( - AnalyzeAnalyzeCertificateAnalyzeCertificateParams as AnalyzeAnalyzeCertificateAnalyzeCertificateParams, -) from .analyze_analyze_certificate_analyze_certificate_response import ( AnalyzeAnalyzeCertificateAnalyzeCertificateResponse as AnalyzeAnalyzeCertificateAnalyzeCertificateResponse, ) -from .verification_ssl_verification_ssl_verification_details_params import ( - VerificationSSLVerificationSSLVerificationDetailsParams as VerificationSSLVerificationSSLVerificationDetailsParams, +from .analyze_analyze_certificate_analyze_certificate_params import ( + AnalyzeAnalyzeCertificateAnalyzeCertificateParams as AnalyzeAnalyzeCertificateAnalyzeCertificateParams, ) -from .verification_ssl_verification_ssl_verification_details_response import ( - VerificationSSLVerificationSSLVerificationDetailsResponse as VerificationSSLVerificationSSLVerificationDetailsResponse, +from .certificate_pack_update_response import CertificatePackUpdateResponse as CertificatePackUpdateResponse +from .certificate_pack_delete_response import CertificatePackDeleteResponse as CertificatePackDeleteResponse +from .certificate_pack_certificate_packs_list_certificate_packs_response import ( + CertificatePackCertificatePacksListCertificatePacksResponse as CertificatePackCertificatePacksListCertificatePacksResponse, ) +from .certificate_pack_get_response import CertificatePackGetResponse as CertificatePackGetResponse from .certificate_pack_certificate_packs_list_certificate_packs_params import ( CertificatePackCertificatePacksListCertificatePacksParams as CertificatePackCertificatePacksListCertificatePacksParams, ) -from .certificate_pack_certificate_packs_list_certificate_packs_response import ( - CertificatePackCertificatePacksListCertificatePacksResponse as CertificatePackCertificatePacksListCertificatePacksResponse, +from .recommendation_list_response import RecommendationListResponse as RecommendationListResponse +from .verification_update_response import VerificationUpdateResponse as VerificationUpdateResponse +from .verification_ssl_verification_ssl_verification_details_response import ( + VerificationSSLVerificationSSLVerificationDetailsResponse as VerificationSSLVerificationSSLVerificationDetailsResponse, +) +from .verification_update_params import VerificationUpdateParams as VerificationUpdateParams +from .verification_ssl_verification_ssl_verification_details_params import ( + VerificationSSLVerificationSSLVerificationDetailsParams as VerificationSSLVerificationSSLVerificationDetailsParams, ) diff --git a/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_params.py b/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_params.py index 8b0cdf5a48e..0856de1ff22 100644 --- a/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_params.py +++ b/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["AnalyzeAnalyzeCertificateAnalyzeCertificateParams"] diff --git a/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_response.py b/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_response.py index fd2598c8bef..f8d243ace19 100644 --- a/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_response.py +++ b/src/cloudflare/types/ssls/analyze_analyze_certificate_analyze_certificate_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AnalyzeAnalyzeCertificateAnalyzeCertificateResponse"] diff --git a/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_params.py b/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_params.py index 6d81b6d3578..add6f5d7e55 100644 --- a/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_params.py +++ b/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["CertificatePackCertificatePacksListCertificatePacksParams"] diff --git a/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_response.py b/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_response.py index 6afab81ab79..1afcceca90d 100644 --- a/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_response.py +++ b/src/cloudflare/types/ssls/certificate_pack_certificate_packs_list_certificate_packs_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["CertificatePackCertificatePacksListCertificatePacksResponse"] diff --git a/src/cloudflare/types/ssls/certificate_pack_delete_response.py b/src/cloudflare/types/ssls/certificate_pack_delete_response.py index 7eae74b5513..6aeda8186d4 100644 --- a/src/cloudflare/types/ssls/certificate_pack_delete_response.py +++ b/src/cloudflare/types/ssls/certificate_pack_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["CertificatePackDeleteResponse"] diff --git a/src/cloudflare/types/ssls/certificate_pack_get_response.py b/src/cloudflare/types/ssls/certificate_pack_get_response.py index 57e2800c366..e6491a0dee8 100644 --- a/src/cloudflare/types/ssls/certificate_pack_get_response.py +++ b/src/cloudflare/types/ssls/certificate_pack_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["CertificatePackGetResponse"] diff --git a/src/cloudflare/types/ssls/certificate_pack_update_response.py b/src/cloudflare/types/ssls/certificate_pack_update_response.py index 74c832cefec..fc3c36c4924 100644 --- a/src/cloudflare/types/ssls/certificate_pack_update_response.py +++ b/src/cloudflare/types/ssls/certificate_pack_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["CertificatePackUpdateResponse"] diff --git a/src/cloudflare/types/ssls/certificate_packs/__init__.py b/src/cloudflare/types/ssls/certificate_packs/__init__.py index 2aedba010e9..44d4309225d 100644 --- a/src/cloudflare/types/ssls/certificate_packs/__init__.py +++ b/src/cloudflare/types/ssls/certificate_packs/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .quota_certificate_packs_get_certificate_pack_quotas_response import ( - QuotaCertificatePacksGetCertificatePackQuotasResponse as QuotaCertificatePacksGetCertificatePackQuotasResponse, +from .order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response import ( + OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse as OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, ) from .order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params import ( OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackParams as OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackParams, ) -from .order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response import ( - OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse as OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, +from .quota_certificate_packs_get_certificate_pack_quotas_response import ( + QuotaCertificatePacksGetCertificatePackQuotasResponse as QuotaCertificatePacksGetCertificatePackQuotasResponse, ) diff --git a/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params.py b/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params.py index 84177283de8..8d7f19a36f3 100644 --- a/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params.py +++ b/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Required + from typing import List -from typing_extensions import Literal, Required, 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 ....types import shared_params __all__ = ["OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackParams"] diff --git a/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response.py b/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response.py index 365f1d60ed7..82b6308d4c1 100644 --- a/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response.py +++ b/src/cloudflare/types/ssls/certificate_packs/order_certificate_packs_order_advanced_certificate_manager_certificate_pack_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse"] diff --git a/src/cloudflare/types/ssls/certificate_packs/quota_certificate_packs_get_certificate_pack_quotas_response.py b/src/cloudflare/types/ssls/certificate_packs/quota_certificate_packs_get_certificate_pack_quotas_response.py index d2cc786f6d2..b161af23981 100644 --- a/src/cloudflare/types/ssls/certificate_packs/quota_certificate_packs_get_certificate_pack_quotas_response.py +++ b/src/cloudflare/types/ssls/certificate_packs/quota_certificate_packs_get_certificate_pack_quotas_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["QuotaCertificatePacksGetCertificatePackQuotasResponse", "Advanced"] diff --git a/src/cloudflare/types/ssls/recommendation_list_response.py b/src/cloudflare/types/ssls/recommendation_list_response.py index 918bfcb0f0b..fb89fee8678 100644 --- a/src/cloudflare/types/ssls/recommendation_list_response.py +++ b/src/cloudflare/types/ssls/recommendation_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["RecommendationListResponse"] diff --git a/src/cloudflare/types/ssls/universals/__init__.py b/src/cloudflare/types/ssls/universals/__init__.py index 0b4035022ae..628f6d0aef5 100644 --- a/src/cloudflare/types/ssls/universals/__init__.py +++ b/src/cloudflare/types/ssls/universals/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +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 diff --git a/src/cloudflare/types/ssls/universals/setting_get_response.py b/src/cloudflare/types/ssls/universals/setting_get_response.py index c6aa496827a..bf5b278e681 100644 --- a/src/cloudflare/types/ssls/universals/setting_get_response.py +++ b/src/cloudflare/types/ssls/universals/setting_get_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/ssls/universals/setting_update_params.py b/src/cloudflare/types/ssls/universals/setting_update_params.py index 442e8b9f97a..1fb9250238c 100644 --- a/src/cloudflare/types/ssls/universals/setting_update_params.py +++ b/src/cloudflare/types/ssls/universals/setting_update_params.py @@ -4,6 +4,12 @@ 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 +from ....types import shared_params + __all__ = ["SettingUpdateParams"] diff --git a/src/cloudflare/types/ssls/universals/setting_update_response.py b/src/cloudflare/types/ssls/universals/setting_update_response.py index 2f78b656c46..7144dadc95f 100644 --- a/src/cloudflare/types/ssls/universals/setting_update_response.py +++ b/src/cloudflare/types/ssls/universals/setting_update_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_params.py b/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_params.py index e0e8a57f73d..4bfecf9cf45 100644 --- a/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_params.py +++ b/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["VerificationSSLVerificationSSLVerificationDetailsParams"] diff --git a/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_response.py b/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_response.py index 33116c3dbee..833ca8ee239 100644 --- a/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_response.py +++ b/src/cloudflare/types/ssls/verification_ssl_verification_ssl_verification_details_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "VerificationSSLVerificationSSLVerificationDetailsResponse", diff --git a/src/cloudflare/types/ssls/verification_update_params.py b/src/cloudflare/types/ssls/verification_update_params.py index 1af4ae3855c..aecdb19d4f5 100644 --- a/src/cloudflare/types/ssls/verification_update_params.py +++ b/src/cloudflare/types/ssls/verification_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["VerificationUpdateParams"] diff --git a/src/cloudflare/types/ssls/verification_update_response.py b/src/cloudflare/types/ssls/verification_update_response.py index b575545f479..1b6419aa382 100644 --- a/src/cloudflare/types/ssls/verification_update_response.py +++ b/src/cloudflare/types/ssls/verification_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["VerificationUpdateResponse"] diff --git a/src/cloudflare/types/storage/__init__.py b/src/cloudflare/types/storage/__init__.py index a9ab3d306e7..dc7b31adc8f 100644 --- a/src/cloudflare/types/storage/__init__.py +++ b/src/cloudflare/types/storage/__init__.py @@ -2,7 +2,7 @@ from __future__ import annotations -from .analytics_list_params import AnalyticsListParams as AnalyticsListParams from .analytics_list_response import AnalyticsListResponse as AnalyticsListResponse -from .analytics_stored_params import AnalyticsStoredParams as AnalyticsStoredParams from .analytics_stored_response import AnalyticsStoredResponse as AnalyticsStoredResponse +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 6f143d2fc8f..ecd204889ce 100644 --- a/src/cloudflare/types/storage/analytics_list_params.py +++ b/src/cloudflare/types/storage/analytics_list_params.py @@ -2,12 +2,20 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Annotated + from typing import List, Union, Iterable + 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 +from ...types import shared_params + __all__ = ["AnalyticsListParams", "Query"] diff --git a/src/cloudflare/types/storage/analytics_list_response.py b/src/cloudflare/types/storage/analytics_list_response.py index 0324093528e..59b0b83ad7f 100644 --- a/src/cloudflare/types/storage/analytics_list_response.py +++ b/src/cloudflare/types/storage/analytics_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["AnalyticsListResponse", "Data", "Query"] diff --git a/src/cloudflare/types/storage/analytics_stored_params.py b/src/cloudflare/types/storage/analytics_stored_params.py index bd73b4c3d3e..5f9feb4e71f 100644 --- a/src/cloudflare/types/storage/analytics_stored_params.py +++ b/src/cloudflare/types/storage/analytics_stored_params.py @@ -2,12 +2,20 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal, Annotated + from typing import List, Union, Iterable + 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 +from ...types import shared_params + __all__ = ["AnalyticsStoredParams", "Query"] diff --git a/src/cloudflare/types/storage/analytics_stored_response.py b/src/cloudflare/types/storage/analytics_stored_response.py index 2e060b222aa..a69c885888f 100644 --- a/src/cloudflare/types/storage/analytics_stored_response.py +++ b/src/cloudflare/types/storage/analytics_stored_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["AnalyticsStoredResponse", "Data", "Query"] diff --git a/src/cloudflare/types/storage/kv/__init__.py b/src/cloudflare/types/storage/kv/__init__.py index fd69f95fa1e..f691eb5d60c 100644 --- a/src/cloudflare/types/storage/kv/__init__.py +++ b/src/cloudflare/types/storage/kv/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations -from .namespace_list_params import NamespaceListParams as NamespaceListParams +from .namespace_update_response import NamespaceUpdateResponse as NamespaceUpdateResponse from .namespace_list_response import NamespaceListResponse as NamespaceListResponse -from .namespace_update_params import NamespaceUpdateParams as NamespaceUpdateParams from .namespace_delete_response import NamespaceDeleteResponse as NamespaceDeleteResponse -from .namespace_update_response import NamespaceUpdateResponse as NamespaceUpdateResponse -from .namespace_workers_kv_namespace_create_a_namespace_params import ( - NamespaceWorkersKvNamespaceCreateANamespaceParams as NamespaceWorkersKvNamespaceCreateANamespaceParams, -) from .namespace_workers_kv_namespace_create_a_namespace_response import ( NamespaceWorkersKvNamespaceCreateANamespaceResponse as NamespaceWorkersKvNamespaceCreateANamespaceResponse, ) +from .namespace_update_params import NamespaceUpdateParams as NamespaceUpdateParams +from .namespace_list_params import NamespaceListParams as NamespaceListParams +from .namespace_workers_kv_namespace_create_a_namespace_params import ( + NamespaceWorkersKvNamespaceCreateANamespaceParams as NamespaceWorkersKvNamespaceCreateANamespaceParams, +) diff --git a/src/cloudflare/types/storage/kv/namespace_delete_response.py b/src/cloudflare/types/storage/kv/namespace_delete_response.py index e62de6bd1dd..5254005e947 100644 --- a/src/cloudflare/types/storage/kv/namespace_delete_response.py +++ b/src/cloudflare/types/storage/kv/namespace_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["NamespaceDeleteResponse"] diff --git a/src/cloudflare/types/storage/kv/namespace_list_params.py b/src/cloudflare/types/storage/kv/namespace_list_params.py index d690cc4b8bd..6a50ffd9273 100644 --- a/src/cloudflare/types/storage/kv/namespace_list_params.py +++ b/src/cloudflare/types/storage/kv/namespace_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["NamespaceListParams"] diff --git a/src/cloudflare/types/storage/kv/namespace_list_response.py b/src/cloudflare/types/storage/kv/namespace_list_response.py index a3ed13da8e6..a301e2b083f 100644 --- a/src/cloudflare/types/storage/kv/namespace_list_response.py +++ b/src/cloudflare/types/storage/kv/namespace_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["NamespaceListResponse", "NamespaceListResponseItem"] diff --git a/src/cloudflare/types/storage/kv/namespace_update_params.py b/src/cloudflare/types/storage/kv/namespace_update_params.py index 8a1fa6de312..a031a470689 100644 --- a/src/cloudflare/types/storage/kv/namespace_update_params.py +++ b/src/cloudflare/types/storage/kv/namespace_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["NamespaceUpdateParams"] diff --git a/src/cloudflare/types/storage/kv/namespace_update_response.py b/src/cloudflare/types/storage/kv/namespace_update_response.py index 2c074344840..eca9447613a 100644 --- a/src/cloudflare/types/storage/kv/namespace_update_response.py +++ b/src/cloudflare/types/storage/kv/namespace_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["NamespaceUpdateResponse"] diff --git a/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_params.py b/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_params.py index 3b70029c74f..683f42875e6 100644 --- a/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_params.py +++ b/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["NamespaceWorkersKvNamespaceCreateANamespaceParams"] diff --git a/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_response.py b/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_response.py index 54fbb67532e..bef189b2118 100644 --- a/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_response.py +++ b/src/cloudflare/types/storage/kv/namespace_workers_kv_namespace_create_a_namespace_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["NamespaceWorkersKvNamespaceCreateANamespaceResponse"] diff --git a/src/cloudflare/types/storage/kv/namespaces/__init__.py b/src/cloudflare/types/storage/kv/namespaces/__init__.py index 3a7a07fbdc9..7c850bc5ce3 100644 --- a/src/cloudflare/types/storage/kv/namespaces/__init__.py +++ b/src/cloudflare/types/storage/kv/namespaces/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .key_list_params import KeyListParams as KeyListParams -from .key_list_response import KeyListResponse as KeyListResponse -from .bulk_delete_params import BulkDeleteParams as BulkDeleteParams -from .value_get_response import ValueGetResponse as ValueGetResponse -from .value_update_params import ValueUpdateParams as ValueUpdateParams from .bulk_delete_response import BulkDeleteResponse as BulkDeleteResponse -from .value_delete_response import ValueDeleteResponse as ValueDeleteResponse -from .value_update_response import ValueUpdateResponse as ValueUpdateResponse -from .bulk_workers_kv_namespace_write_multiple_key_value_pairs_params import ( - BulkWorkersKvNamespaceWriteMultipleKeyValuePairsParams as BulkWorkersKvNamespaceWriteMultipleKeyValuePairsParams, -) from .bulk_workers_kv_namespace_write_multiple_key_value_pairs_response import ( BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse as BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, ) +from .bulk_delete_params import BulkDeleteParams as BulkDeleteParams +from .bulk_workers_kv_namespace_write_multiple_key_value_pairs_params import ( + BulkWorkersKvNamespaceWriteMultipleKeyValuePairsParams as BulkWorkersKvNamespaceWriteMultipleKeyValuePairsParams, +) +from .key_list_response import KeyListResponse as KeyListResponse +from .key_list_params import KeyListParams as KeyListParams +from .value_update_response import ValueUpdateResponse as ValueUpdateResponse +from .value_delete_response import ValueDeleteResponse as ValueDeleteResponse +from .value_get_response import ValueGetResponse as ValueGetResponse +from .value_update_params import ValueUpdateParams as ValueUpdateParams diff --git a/src/cloudflare/types/storage/kv/namespaces/bulk_delete_params.py b/src/cloudflare/types/storage/kv/namespaces/bulk_delete_params.py index 762433f9283..b0174d49bb2 100644 --- a/src/cloudflare/types/storage/kv/namespaces/bulk_delete_params.py +++ b/src/cloudflare/types/storage/kv/namespaces/bulk_delete_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 .....types import shared_params __all__ = ["BulkDeleteParams"] diff --git a/src/cloudflare/types/storage/kv/namespaces/bulk_delete_response.py b/src/cloudflare/types/storage/kv/namespaces/bulk_delete_response.py index 600d0568228..105d2462b24 100644 --- a/src/cloudflare/types/storage/kv/namespaces/bulk_delete_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/bulk_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["BulkDeleteResponse"] diff --git a/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_params.py b/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_params.py index 1128baad193..85661c0b2f7 100644 --- a/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_params.py +++ b/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 .....types import shared_params __all__ = ["BulkWorkersKvNamespaceWriteMultipleKeyValuePairsParams", "Body"] diff --git a/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_response.py b/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_response.py index 680f56f5754..2cd3165c953 100644 --- a/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/bulk_workers_kv_namespace_write_multiple_key_value_pairs_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse"] diff --git a/src/cloudflare/types/storage/kv/namespaces/key_list_params.py b/src/cloudflare/types/storage/kv/namespaces/key_list_params.py index 50399326486..0d04415fb88 100644 --- a/src/cloudflare/types/storage/kv/namespaces/key_list_params.py +++ b/src/cloudflare/types/storage/kv/namespaces/key_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["KeyListParams"] diff --git a/src/cloudflare/types/storage/kv/namespaces/key_list_response.py b/src/cloudflare/types/storage/kv/namespaces/key_list_response.py index beb38fb556b..98a1c330de5 100644 --- a/src/cloudflare/types/storage/kv/namespaces/key_list_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/key_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = ["KeyListResponse", "KeyListResponseItem"] diff --git a/src/cloudflare/types/storage/kv/namespaces/value_delete_response.py b/src/cloudflare/types/storage/kv/namespaces/value_delete_response.py index 87f69b951c2..c47f8b0e35f 100644 --- a/src/cloudflare/types/storage/kv/namespaces/value_delete_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/value_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["ValueDeleteResponse"] diff --git a/src/cloudflare/types/storage/kv/namespaces/value_get_response.py b/src/cloudflare/types/storage/kv/namespaces/value_get_response.py index 31f92852cb5..27c3db3d2a2 100644 --- a/src/cloudflare/types/storage/kv/namespaces/value_get_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/value_get_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["ValueGetResponse"] diff --git a/src/cloudflare/types/storage/kv/namespaces/value_update_params.py b/src/cloudflare/types/storage/kv/namespaces/value_update_params.py index a055043ccb5..299df545c37 100644 --- a/src/cloudflare/types/storage/kv/namespaces/value_update_params.py +++ b/src/cloudflare/types/storage/kv/namespaces/value_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["ValueUpdateParams"] diff --git a/src/cloudflare/types/storage/kv/namespaces/value_update_response.py b/src/cloudflare/types/storage/kv/namespaces/value_update_response.py index 4ad3b1f6a3c..1190f809c16 100644 --- a/src/cloudflare/types/storage/kv/namespaces/value_update_response.py +++ b/src/cloudflare/types/storage/kv/namespaces/value_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ....._models import BaseModel +from .....types import shared __all__ = ["ValueUpdateResponse"] diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py index 2c3719ed010..48e13e65cbc 100644 --- a/src/cloudflare/types/stream/__init__.py +++ b/src/cloudflare/types/stream/__init__.py @@ -2,91 +2,91 @@ from __future__ import annotations -from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse -from .caption_update_params import CaptionUpdateParams as CaptionUpdateParams -from .watermark_get_response import WatermarkGetResponse as WatermarkGetResponse -from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams -from .caption_delete_response import CaptionDeleteResponse as CaptionDeleteResponse -from .caption_update_response import CaptionUpdateResponse as CaptionUpdateResponse -from .live_input_get_response import LiveInputGetResponse as LiveInputGetResponse -from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse -from .download_delete_response import DownloadDeleteResponse as DownloadDeleteResponse -from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams -from .audio_track_copy_response import AudioTrackCopyResponse as AudioTrackCopyResponse +from .audio_track_update_response import AudioTrackUpdateResponse as AudioTrackUpdateResponse from .audio_track_list_response import AudioTrackListResponse as AudioTrackListResponse -from .audio_track_update_params import AudioTrackUpdateParams as AudioTrackUpdateParams -from .watermark_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse -from .live_input_update_response import LiveInputUpdateResponse as LiveInputUpdateResponse -from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams from .audio_track_delete_response import AudioTrackDeleteResponse as AudioTrackDeleteResponse -from .audio_track_update_response import AudioTrackUpdateResponse as AudioTrackUpdateResponse +from .audio_track_copy_response import AudioTrackCopyResponse as AudioTrackCopyResponse +from .audio_track_update_params import AudioTrackUpdateParams as AudioTrackUpdateParams +from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams from .video_storage_usage_response import VideoStorageUsageResponse as VideoStorageUsageResponse -from .webhook_stream_webhook_create_webhooks_params import ( - WebhookStreamWebhookCreateWebhooksParams as WebhookStreamWebhookCreateWebhooksParams, +from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams +from .clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response import ( + ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse as ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse, ) -from .webhook_stream_webhook_view_webhooks_response import ( - WebhookStreamWebhookViewWebhooksResponse as WebhookStreamWebhookViewWebhooksResponse, +from .clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params import ( + ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeParams as ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeParams, ) -from .webhook_stream_webhook_create_webhooks_response import ( - WebhookStreamWebhookCreateWebhooksResponse as WebhookStreamWebhookCreateWebhooksResponse, +from .copy_stream_videos_upload_videos_from_a_url_response import ( + CopyStreamVideosUploadVideosFromAURLResponse as CopyStreamVideosUploadVideosFromAURLResponse, ) from .copy_stream_videos_upload_videos_from_a_url_params import ( CopyStreamVideosUploadVideosFromAURLParams as CopyStreamVideosUploadVideosFromAURLParams, ) -from .key_stream_signing_keys_list_signing_keys_response import ( - KeyStreamSigningKeysListSigningKeysResponse as KeyStreamSigningKeysListSigningKeysResponse, +from .direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response import ( + DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse as DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse, ) -from .copy_stream_videos_upload_videos_from_a_url_response import ( - CopyStreamVideosUploadVideosFromAURLResponse as CopyStreamVideosUploadVideosFromAURLResponse, +from .direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params import ( + DirectUploadStreamVideosUploadVideosViaDirectUploadURLsParams as DirectUploadStreamVideosUploadVideosViaDirectUploadURLsParams, ) +from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse from .key_stream_signing_keys_create_signing_keys_response import ( KeyStreamSigningKeysCreateSigningKeysResponse as KeyStreamSigningKeysCreateSigningKeysResponse, ) -from .live_input_stream_live_inputs_list_live_inputs_params import ( - LiveInputStreamLiveInputsListLiveInputsParams as LiveInputStreamLiveInputsListLiveInputsParams, +from .key_stream_signing_keys_list_signing_keys_response import ( + KeyStreamSigningKeysListSigningKeysResponse as KeyStreamSigningKeysListSigningKeysResponse, ) -from .download_stream_m_p_4_downloads_list_downloads_response import ( - DownloadStreamMP4DownloadsListDownloadsResponse as DownloadStreamMP4DownloadsListDownloadsResponse, +from .live_input_update_response import LiveInputUpdateResponse as LiveInputUpdateResponse +from .live_input_get_response import LiveInputGetResponse as LiveInputGetResponse +from .live_input_stream_live_inputs_create_a_live_input_response import ( + LiveInputStreamLiveInputsCreateALiveInputResponse as LiveInputStreamLiveInputsCreateALiveInputResponse, ) from .live_input_stream_live_inputs_list_live_inputs_response import ( LiveInputStreamLiveInputsListLiveInputsResponse as LiveInputStreamLiveInputsListLiveInputsResponse, ) +from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams from .live_input_stream_live_inputs_create_a_live_input_params import ( LiveInputStreamLiveInputsCreateALiveInputParams as LiveInputStreamLiveInputsCreateALiveInputParams, ) -from .download_stream_m_p_4_downloads_create_downloads_response import ( - DownloadStreamMP4DownloadsCreateDownloadsResponse as DownloadStreamMP4DownloadsCreateDownloadsResponse, -) -from .live_input_stream_live_inputs_create_a_live_input_response import ( - LiveInputStreamLiveInputsCreateALiveInputResponse as LiveInputStreamLiveInputsCreateALiveInputResponse, -) -from .token_stream_videos_create_signed_url_tokens_for_videos_params import ( - TokenStreamVideosCreateSignedURLTokensForVideosParams as TokenStreamVideosCreateSignedURLTokensForVideosParams, +from .live_input_stream_live_inputs_list_live_inputs_params import ( + LiveInputStreamLiveInputsListLiveInputsParams as LiveInputStreamLiveInputsListLiveInputsParams, ) -from .token_stream_videos_create_signed_url_tokens_for_videos_response import ( - TokenStreamVideosCreateSignedURLTokensForVideosResponse as TokenStreamVideosCreateSignedURLTokensForVideosResponse, +from .watermark_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse +from .watermark_get_response import WatermarkGetResponse as WatermarkGetResponse +from .watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response import ( + WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse as WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, ) from .watermark_stream_watermark_profile_list_watermark_profiles_response import ( WatermarkStreamWatermarkProfileListWatermarkProfilesResponse as WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, ) -from .caption_stream_subtitles_captions_list_captions_or_subtitles_response import ( - CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse as CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, +from .watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params import ( + WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadParams as WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadParams, ) -from .direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params import ( - DirectUploadStreamVideosUploadVideosViaDirectUploadURLsParams as DirectUploadStreamVideosUploadVideosViaDirectUploadURLsParams, +from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse +from .webhook_stream_webhook_create_webhooks_response import ( + WebhookStreamWebhookCreateWebhooksResponse as WebhookStreamWebhookCreateWebhooksResponse, ) -from .clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params import ( - ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeParams as ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeParams, +from .webhook_stream_webhook_view_webhooks_response import ( + WebhookStreamWebhookViewWebhooksResponse as WebhookStreamWebhookViewWebhooksResponse, ) -from .direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response import ( - DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse as DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse, +from .webhook_stream_webhook_create_webhooks_params import ( + WebhookStreamWebhookCreateWebhooksParams as WebhookStreamWebhookCreateWebhooksParams, ) -from .clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response import ( - ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse as ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse, +from .caption_update_response import CaptionUpdateResponse as CaptionUpdateResponse +from .caption_delete_response import CaptionDeleteResponse as CaptionDeleteResponse +from .caption_stream_subtitles_captions_list_captions_or_subtitles_response import ( + CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse as CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, ) -from .watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params import ( - WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadParams as WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadParams, +from .caption_update_params import CaptionUpdateParams as CaptionUpdateParams +from .download_delete_response import DownloadDeleteResponse as DownloadDeleteResponse +from .download_stream_m_p_4_downloads_create_downloads_response import ( + DownloadStreamMP4DownloadsCreateDownloadsResponse as DownloadStreamMP4DownloadsCreateDownloadsResponse, ) -from .watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response import ( - WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse as WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, +from .download_stream_m_p_4_downloads_list_downloads_response import ( + DownloadStreamMP4DownloadsListDownloadsResponse as DownloadStreamMP4DownloadsListDownloadsResponse, +) +from .token_stream_videos_create_signed_url_tokens_for_videos_response import ( + TokenStreamVideosCreateSignedURLTokensForVideosResponse as TokenStreamVideosCreateSignedURLTokensForVideosResponse, +) +from .token_stream_videos_create_signed_url_tokens_for_videos_params import ( + TokenStreamVideosCreateSignedURLTokensForVideosParams as TokenStreamVideosCreateSignedURLTokensForVideosParams, ) diff --git a/src/cloudflare/types/stream/audio_track_copy_params.py b/src/cloudflare/types/stream/audio_track_copy_params.py index 4b2c48ebfe2..fae26ab29e4 100644 --- a/src/cloudflare/types/stream/audio_track_copy_params.py +++ b/src/cloudflare/types/stream/audio_track_copy_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["AudioTrackCopyParams"] diff --git a/src/cloudflare/types/stream/audio_track_copy_response.py b/src/cloudflare/types/stream/audio_track_copy_response.py index 6704328c5d9..1e8dfe18d6d 100644 --- a/src/cloudflare/types/stream/audio_track_copy_response.py +++ b/src/cloudflare/types/stream/audio_track_copy_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["AudioTrackCopyResponse"] diff --git a/src/cloudflare/types/stream/audio_track_delete_response.py b/src/cloudflare/types/stream/audio_track_delete_response.py index 61c27d9ced3..ca477a66fa2 100644 --- a/src/cloudflare/types/stream/audio_track_delete_response.py +++ b/src/cloudflare/types/stream/audio_track_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["AudioTrackDeleteResponse"] diff --git a/src/cloudflare/types/stream/audio_track_list_response.py b/src/cloudflare/types/stream/audio_track_list_response.py index adfc2130e51..2fec564a6e4 100644 --- a/src/cloudflare/types/stream/audio_track_list_response.py +++ b/src/cloudflare/types/stream/audio_track_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["AudioTrackListResponse", "AudioTrackListResponseItem"] diff --git a/src/cloudflare/types/stream/audio_track_update_params.py b/src/cloudflare/types/stream/audio_track_update_params.py index 84c869e408f..e56cde892f2 100644 --- a/src/cloudflare/types/stream/audio_track_update_params.py +++ b/src/cloudflare/types/stream/audio_track_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["AudioTrackUpdateParams"] diff --git a/src/cloudflare/types/stream/audio_track_update_response.py b/src/cloudflare/types/stream/audio_track_update_response.py index 1798ba668c7..5c7f80519b1 100644 --- a/src/cloudflare/types/stream/audio_track_update_response.py +++ b/src/cloudflare/types/stream/audio_track_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["AudioTrackUpdateResponse"] diff --git a/src/cloudflare/types/stream/caption_delete_response.py b/src/cloudflare/types/stream/caption_delete_response.py index 38e193be3b2..6983a9ac7a4 100644 --- a/src/cloudflare/types/stream/caption_delete_response.py +++ b/src/cloudflare/types/stream/caption_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["CaptionDeleteResponse"] diff --git a/src/cloudflare/types/stream/caption_stream_subtitles_captions_list_captions_or_subtitles_response.py b/src/cloudflare/types/stream/caption_stream_subtitles_captions_list_captions_or_subtitles_response.py index 357406113cc..9398f8f90ac 100644 --- a/src/cloudflare/types/stream/caption_stream_subtitles_captions_list_captions_or_subtitles_response.py +++ b/src/cloudflare/types/stream/caption_stream_subtitles_captions_list_captions_or_subtitles_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse", diff --git a/src/cloudflare/types/stream/caption_update_params.py b/src/cloudflare/types/stream/caption_update_params.py index 967a82667d4..9b571f914ff 100644 --- a/src/cloudflare/types/stream/caption_update_params.py +++ b/src/cloudflare/types/stream/caption_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["CaptionUpdateParams"] diff --git a/src/cloudflare/types/stream/caption_update_response.py b/src/cloudflare/types/stream/caption_update_response.py index 8d557f0069d..6eacc477173 100644 --- a/src/cloudflare/types/stream/caption_update_response.py +++ b/src/cloudflare/types/stream/caption_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["CaptionUpdateResponse"] diff --git a/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params.py b/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params.py index dd48f8653bc..20d79843f3d 100644 --- a/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params.py +++ b/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated, Required + +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 +from ...types import shared_params __all__ = ["ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeParams", "Watermark"] diff --git a/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response.py b/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response.py index 361abaffa5b..64b5a6676ac 100644 --- a/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response.py +++ b/src/cloudflare/types/stream/clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = ["ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse", "Playback", "Watermark"] diff --git a/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_params.py b/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_params.py index 2a86e886aab..7f4c3470767 100644 --- a/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_params.py +++ b/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_params.py @@ -2,11 +2,19 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Annotated + from typing import List, Union + +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 ...types import shared_params __all__ = ["CopyStreamVideosUploadVideosFromAURLParams", "Watermark"] diff --git a/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_response.py b/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_response.py index 8ba72db0dbe..6f16fd718f4 100644 --- a/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_response.py +++ b/src/cloudflare/types/stream/copy_stream_videos_upload_videos_from_a_url_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = ["CopyStreamVideosUploadVideosFromAURLResponse", "Input", "Playback", "Status", "Watermark"] diff --git a/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params.py b/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params.py index e19d15b7311..9bdbeb1a9e2 100644 --- a/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params.py +++ b/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_params.py @@ -2,11 +2,19 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated, Required + +from ..._utils import PropertyInfo + from typing import List, Union + 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 ...types import shared_params __all__ = ["DirectUploadStreamVideosUploadVideosViaDirectUploadURLsParams", "Watermark"] diff --git a/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response.py b/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response.py index 53ee61581ac..43b85aa8034 100644 --- a/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response.py +++ b/src/cloudflare/types/stream/direct_upload_stream_videos_upload_videos_via_direct_upload_urls_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse", "Watermark"] diff --git a/src/cloudflare/types/stream/download_delete_response.py b/src/cloudflare/types/stream/download_delete_response.py index 76127052c46..6c2a98e1415 100644 --- a/src/cloudflare/types/stream/download_delete_response.py +++ b/src/cloudflare/types/stream/download_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["DownloadDeleteResponse"] diff --git a/src/cloudflare/types/stream/download_stream_m_p_4_downloads_create_downloads_response.py b/src/cloudflare/types/stream/download_stream_m_p_4_downloads_create_downloads_response.py index 19beec3e70f..aca5177bc02 100644 --- a/src/cloudflare/types/stream/download_stream_m_p_4_downloads_create_downloads_response.py +++ b/src/cloudflare/types/stream/download_stream_m_p_4_downloads_create_downloads_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["DownloadStreamMP4DownloadsCreateDownloadsResponse"] diff --git a/src/cloudflare/types/stream/download_stream_m_p_4_downloads_list_downloads_response.py b/src/cloudflare/types/stream/download_stream_m_p_4_downloads_list_downloads_response.py index f54bd80b28c..738d7a8ba90 100644 --- a/src/cloudflare/types/stream/download_stream_m_p_4_downloads_list_downloads_response.py +++ b/src/cloudflare/types/stream/download_stream_m_p_4_downloads_list_downloads_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["DownloadStreamMP4DownloadsListDownloadsResponse"] diff --git a/src/cloudflare/types/stream/key_delete_response.py b/src/cloudflare/types/stream/key_delete_response.py index dcf89c429a5..e3e4bf0f104 100644 --- a/src/cloudflare/types/stream/key_delete_response.py +++ b/src/cloudflare/types/stream/key_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["KeyDeleteResponse"] diff --git a/src/cloudflare/types/stream/key_stream_signing_keys_create_signing_keys_response.py b/src/cloudflare/types/stream/key_stream_signing_keys_create_signing_keys_response.py index 658e5b877fe..19ac38fe1f2 100644 --- a/src/cloudflare/types/stream/key_stream_signing_keys_create_signing_keys_response.py +++ b/src/cloudflare/types/stream/key_stream_signing_keys_create_signing_keys_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["KeyStreamSigningKeysCreateSigningKeysResponse"] diff --git a/src/cloudflare/types/stream/key_stream_signing_keys_list_signing_keys_response.py b/src/cloudflare/types/stream/key_stream_signing_keys_list_signing_keys_response.py index 5246d59e67e..65de4e7e2cd 100644 --- a/src/cloudflare/types/stream/key_stream_signing_keys_list_signing_keys_response.py +++ b/src/cloudflare/types/stream/key_stream_signing_keys_list_signing_keys_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["KeyStreamSigningKeysListSigningKeysResponse", "KeyStreamSigningKeysListSigningKeysResponseItem"] diff --git a/src/cloudflare/types/stream/live_input_get_response.py b/src/cloudflare/types/stream/live_input_get_response.py index 4c602dd0ead..b1b70c1a0e6 100644 --- a/src/cloudflare/types/stream/live_input_get_response.py +++ b/src/cloudflare/types/stream/live_input_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "LiveInputGetResponse", diff --git a/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_params.py b/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_params.py index 122e411022d..65eea207c28 100644 --- a/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_params.py +++ b/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated, Literal + +from ..._utils import PropertyInfo + from typing import List -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 +from ...types import shared_params __all__ = ["LiveInputStreamLiveInputsCreateALiveInputParams", "Recording"] diff --git a/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_response.py b/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_response.py index ee60370ea5f..2f26b6e3cbb 100644 --- a/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_response.py +++ b/src/cloudflare/types/stream/live_input_stream_live_inputs_create_a_live_input_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "LiveInputStreamLiveInputsCreateALiveInputResponse", diff --git a/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_params.py b/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_params.py index da94524bc13..e55b2401ab1 100644 --- a/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_params.py +++ b/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["LiveInputStreamLiveInputsListLiveInputsParams"] diff --git a/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_response.py b/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_response.py index ea90b717291..8ca798dff57 100644 --- a/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_response.py +++ b/src/cloudflare/types/stream/live_input_stream_live_inputs_list_live_inputs_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["LiveInputStreamLiveInputsListLiveInputsResponse", "LiveInput"] diff --git a/src/cloudflare/types/stream/live_input_update_params.py b/src/cloudflare/types/stream/live_input_update_params.py index daf0c346a74..30df7bdcfc3 100644 --- a/src/cloudflare/types/stream/live_input_update_params.py +++ b/src/cloudflare/types/stream/live_input_update_params.py @@ -2,10 +2,17 @@ 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 +from ...types import shared_params __all__ = ["LiveInputUpdateParams", "Recording"] diff --git a/src/cloudflare/types/stream/live_input_update_response.py b/src/cloudflare/types/stream/live_input_update_response.py index 62d2e51ec1c..af4c6deae93 100644 --- a/src/cloudflare/types/stream/live_input_update_response.py +++ b/src/cloudflare/types/stream/live_input_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "LiveInputUpdateResponse", diff --git a/src/cloudflare/types/stream/live_inputs/__init__.py b/src/cloudflare/types/stream/live_inputs/__init__.py index 8418e1f7693..e23d80bb9c8 100644 --- a/src/cloudflare/types/stream/live_inputs/__init__.py +++ b/src/cloudflare/types/stream/live_inputs/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations -from .output_update_params import OutputUpdateParams as OutputUpdateParams from .output_update_response import OutputUpdateResponse as OutputUpdateResponse -from .output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params import ( - OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputParams as OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputParams, -) from .output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_response import ( OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse as OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, ) from .output_stream_live_inputs_list_all_outputs_associated_with_a_specified_live_input_response import ( OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse as OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, ) +from .output_update_params import OutputUpdateParams as OutputUpdateParams +from .output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params import ( + OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputParams as OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputParams, +) diff --git a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params.py b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params.py index 7f697fe2d7e..fa59b50e9d0 100644 --- a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params.py +++ b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated 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 ....types import shared_params + __all__ = ["OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputParams"] diff --git a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_response.py b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_response.py index 63c9ea1234c..9058c1295fc 100644 --- a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_response.py +++ b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse"] diff --git a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_list_all_outputs_associated_with_a_specified_live_input_response.py b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_list_all_outputs_associated_with_a_specified_live_input_response.py index 96670bb5dc4..04839039458 100644 --- a/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_list_all_outputs_associated_with_a_specified_live_input_response.py +++ b/src/cloudflare/types/stream/live_inputs/output_stream_live_inputs_list_all_outputs_associated_with_a_specified_live_input_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = [ "OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse", 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 0ce9718d4f5..ee9ebe43095 100644 --- a/src/cloudflare/types/stream/live_inputs/output_update_params.py +++ b/src/cloudflare/types/stream/live_inputs/output_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["OutputUpdateParams"] diff --git a/src/cloudflare/types/stream/live_inputs/output_update_response.py b/src/cloudflare/types/stream/live_inputs/output_update_response.py index 160ec9f97ba..cb81497e9b5 100644 --- a/src/cloudflare/types/stream/live_inputs/output_update_response.py +++ b/src/cloudflare/types/stream/live_inputs/output_update_response.py @@ -2,9 +2,11 @@ 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 +from ....types import shared __all__ = ["OutputUpdateResponse"] diff --git a/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_params.py b/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_params.py index 024b7ec1c26..cf97f171476 100644 --- a/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_params.py +++ b/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated, Literal +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 +from ...types import shared_params __all__ = ["TokenStreamVideosCreateSignedURLTokensForVideosParams", "AccessRule"] diff --git a/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_response.py b/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_response.py index c1d6adcc598..3ec390fc881 100644 --- a/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_response.py +++ b/src/cloudflare/types/stream/token_stream_videos_create_signed_url_tokens_for_videos_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["TokenStreamVideosCreateSignedURLTokensForVideosResponse"] diff --git a/src/cloudflare/types/stream/video_storage_usage_params.py b/src/cloudflare/types/stream/video_storage_usage_params.py index 2a29dea4406..e4e38caf09c 100644 --- a/src/cloudflare/types/stream/video_storage_usage_params.py +++ b/src/cloudflare/types/stream/video_storage_usage_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __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 43b7d158acc..266f746322b 100644 --- a/src/cloudflare/types/stream/video_storage_usage_response.py +++ b/src/cloudflare/types/stream/video_storage_usage_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = ["VideoStorageUsageResponse"] diff --git a/src/cloudflare/types/stream/watermark_delete_response.py b/src/cloudflare/types/stream/watermark_delete_response.py index b50f2bcfdb5..b74bfa4c13c 100644 --- a/src/cloudflare/types/stream/watermark_delete_response.py +++ b/src/cloudflare/types/stream/watermark_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WatermarkDeleteResponse"] diff --git a/src/cloudflare/types/stream/watermark_get_response.py b/src/cloudflare/types/stream/watermark_get_response.py index e60ab3849c0..3eae91110a5 100644 --- a/src/cloudflare/types/stream/watermark_get_response.py +++ b/src/cloudflare/types/stream/watermark_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WatermarkGetResponse"] diff --git a/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params.py b/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params.py index d464eb51592..a1d82a994a1 100644 --- a/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params.py +++ b/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadParams"] diff --git a/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response.py b/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response.py index 87cf095b62d..572ffa5bd43 100644 --- a/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response.py +++ b/src/cloudflare/types/stream/watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse"] diff --git a/src/cloudflare/types/stream/watermark_stream_watermark_profile_list_watermark_profiles_response.py b/src/cloudflare/types/stream/watermark_stream_watermark_profile_list_watermark_profiles_response.py index c1ae5627e1e..c26cb3dc78e 100644 --- a/src/cloudflare/types/stream/watermark_stream_watermark_profile_list_watermark_profiles_response.py +++ b/src/cloudflare/types/stream/watermark_stream_watermark_profile_list_watermark_profiles_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = [ "WatermarkStreamWatermarkProfileListWatermarkProfilesResponse", diff --git a/src/cloudflare/types/stream/webhook_delete_response.py b/src/cloudflare/types/stream/webhook_delete_response.py index 1ac09063f12..d13e09956d9 100644 --- a/src/cloudflare/types/stream/webhook_delete_response.py +++ b/src/cloudflare/types/stream/webhook_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WebhookDeleteResponse"] diff --git a/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_params.py b/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_params.py index 6f4f549e750..058c8b8f217 100644 --- a/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_params.py +++ b/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import TypedDict, Annotated, Required 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 ...types import shared_params + __all__ = ["WebhookStreamWebhookCreateWebhooksParams"] diff --git a/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_response.py b/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_response.py index 2fc9584583a..2affb2d8347 100644 --- a/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_response.py +++ b/src/cloudflare/types/stream/webhook_stream_webhook_create_webhooks_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WebhookStreamWebhookCreateWebhooksResponse"] diff --git a/src/cloudflare/types/stream/webhook_stream_webhook_view_webhooks_response.py b/src/cloudflare/types/stream/webhook_stream_webhook_view_webhooks_response.py index 5a83c5f94f8..9e8d5072baf 100644 --- a/src/cloudflare/types/stream/webhook_stream_webhook_view_webhooks_response.py +++ b/src/cloudflare/types/stream/webhook_stream_webhook_view_webhooks_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["WebhookStreamWebhookViewWebhooksResponse"] diff --git a/src/cloudflare/types/stream_get_response.py b/src/cloudflare/types/stream_get_response.py index 7002be75797..d2b0770937c 100644 --- a/src/cloudflare/types/stream_get_response.py +++ b/src/cloudflare/types/stream_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = ["StreamGetResponse", "Input", "Playback", "Status", "Watermark"] diff --git a/src/cloudflare/types/stream_stream_videos_list_videos_params.py b/src/cloudflare/types/stream_stream_videos_list_videos_params.py index 53d7b4b70b9..0d476108a44 100644 --- a/src/cloudflare/types/stream_stream_videos_list_videos_params.py +++ b/src/cloudflare/types/stream_stream_videos_list_videos_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["StreamStreamVideosListVideosParams"] diff --git a/src/cloudflare/types/stream_stream_videos_list_videos_response.py b/src/cloudflare/types/stream_stream_videos_list_videos_response.py index c760d47c4ca..a2778a6f85d 100644 --- a/src/cloudflare/types/stream_stream_videos_list_videos_response.py +++ b/src/cloudflare/types/stream_stream_videos_list_videos_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = [ "StreamStreamVideosListVideosResponse", diff --git a/src/cloudflare/types/stream_update_params.py b/src/cloudflare/types/stream_update_params.py index 670fdba7545..2b5ba33217a 100644 --- a/src/cloudflare/types/stream_update_params.py +++ b/src/cloudflare/types/stream_update_params.py @@ -2,11 +2,19 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Annotated + from typing import List, Union + +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 ..types import shared_params __all__ = ["StreamUpdateParams"] diff --git a/src/cloudflare/types/stream_update_response.py b/src/cloudflare/types/stream_update_response.py index 0c089f6fd67..d50821e356e 100644 --- a/src/cloudflare/types/stream_update_response.py +++ b/src/cloudflare/types/stream_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ..types import shared __all__ = ["StreamUpdateResponse", "Input", "Playback", "Status", "Watermark"] diff --git a/src/cloudflare/types/subscription_account_subscriptions_create_subscription_params.py b/src/cloudflare/types/subscription_account_subscriptions_create_subscription_params.py index fad9a9e26c0..7fd508857a6 100644 --- a/src/cloudflare/types/subscription_account_subscriptions_create_subscription_params.py +++ b/src/cloudflare/types/subscription_account_subscriptions_create_subscription_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, TypedDict +from typing_extensions import TypedDict, 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 ..types import shared_params __all__ = ["SubscriptionAccountSubscriptionsCreateSubscriptionParams", "App", "ComponentValue", "RatePlan", "Zone"] diff --git a/src/cloudflare/types/subscription_account_subscriptions_create_subscription_response.py b/src/cloudflare/types/subscription_account_subscriptions_create_subscription_response.py index 132c2354e14..1128539d677 100644 --- a/src/cloudflare/types/subscription_account_subscriptions_create_subscription_response.py +++ b/src/cloudflare/types/subscription_account_subscriptions_create_subscription_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["SubscriptionAccountSubscriptionsCreateSubscriptionResponse"] diff --git a/src/cloudflare/types/subscription_account_subscriptions_list_subscriptions_response.py b/src/cloudflare/types/subscription_account_subscriptions_list_subscriptions_response.py index f726fd4949c..bb28b6c97ed 100644 --- a/src/cloudflare/types/subscription_account_subscriptions_list_subscriptions_response.py +++ b/src/cloudflare/types/subscription_account_subscriptions_list_subscriptions_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "SubscriptionAccountSubscriptionsListSubscriptionsResponse", diff --git a/src/cloudflare/types/subscription_delete_response.py b/src/cloudflare/types/subscription_delete_response.py index 434631e591e..7f64840fbee 100644 --- a/src/cloudflare/types/subscription_delete_response.py +++ b/src/cloudflare/types/subscription_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["SubscriptionDeleteResponse"] diff --git a/src/cloudflare/types/subscription_update_params.py b/src/cloudflare/types/subscription_update_params.py index 570e2246e37..40fedee457f 100644 --- a/src/cloudflare/types/subscription_update_params.py +++ b/src/cloudflare/types/subscription_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["SubscriptionUpdateParams", "App", "ComponentValue", "RatePlan", "Zone"] diff --git a/src/cloudflare/types/subscription_update_response.py b/src/cloudflare/types/subscription_update_response.py index 925b0458144..a40f7420475 100644 --- a/src/cloudflare/types/subscription_update_response.py +++ b/src/cloudflare/types/subscription_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["SubscriptionUpdateResponse"] diff --git a/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_params.py b/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_params.py index 3aef5bbec81..f79f0ea8afc 100644 --- a/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_params.py +++ b/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, TypedDict +from typing_extensions import TypedDict, 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 ..types import shared_params __all__ = ["SubscriptionZoneSubscriptionCreateZoneSubscriptionParams", "App", "ComponentValue", "RatePlan", "Zone"] diff --git a/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_response.py b/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_response.py index b40512828b3..7c51d15588a 100644 --- a/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_response.py +++ b/src/cloudflare/types/subscription_zone_subscription_create_zone_subscription_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse"] diff --git a/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_params.py b/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_params.py index 2dae0a9c8ba..c641176b268 100644 --- a/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_params.py +++ b/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, TypedDict +from typing_extensions import TypedDict, 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 ..types import shared_params __all__ = ["SubscriptionZoneSubscriptionUpdateZoneSubscriptionParams", "App", "ComponentValue", "RatePlan", "Zone"] diff --git a/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_response.py b/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_response.py index 3281e7461fd..d07385cea58 100644 --- a/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_response.py +++ b/src/cloudflare/types/subscription_zone_subscription_update_zone_subscription_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse"] diff --git a/src/cloudflare/types/subscription_zone_subscription_zone_subscription_details_response.py b/src/cloudflare/types/subscription_zone_subscription_zone_subscription_details_response.py index 49086e61bba..9b727eaf9b6 100644 --- a/src/cloudflare/types/subscription_zone_subscription_zone_subscription_details_response.py +++ b/src/cloudflare/types/subscription_zone_subscription_zone_subscription_details_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse"] diff --git a/src/cloudflare/types/teamnet/__init__.py b/src/cloudflare/types/teamnet/__init__.py index d296da1dc05..128d7eb04c5 100644 --- a/src/cloudflare/types/teamnet/__init__.py +++ b/src/cloudflare/types/teamnet/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .route_create_params import RouteCreateParams as RouteCreateParams -from .route_update_params import RouteUpdateParams as RouteUpdateParams 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 .route_delete_response import RouteDeleteResponse as RouteDeleteResponse +from .route_create_params import RouteCreateParams as RouteCreateParams +from .route_update_params import RouteUpdateParams as RouteUpdateParams diff --git a/src/cloudflare/types/teamnet/route_create_params.py b/src/cloudflare/types/teamnet/route_create_params.py index a788e5d4db8..ccef89a5fb5 100644 --- a/src/cloudflare/types/teamnet/route_create_params.py +++ b/src/cloudflare/types/teamnet/route_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RouteCreateParams"] diff --git a/src/cloudflare/types/teamnet/route_create_response.py b/src/cloudflare/types/teamnet/route_create_response.py index 048b0bc2663..6398bb08f84 100644 --- a/src/cloudflare/types/teamnet/route_create_response.py +++ b/src/cloudflare/types/teamnet/route_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["RouteCreateResponse"] diff --git a/src/cloudflare/types/teamnet/route_delete_response.py b/src/cloudflare/types/teamnet/route_delete_response.py index 2938292a825..7f59406468e 100644 --- a/src/cloudflare/types/teamnet/route_delete_response.py +++ b/src/cloudflare/types/teamnet/route_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["RouteDeleteResponse"] diff --git a/src/cloudflare/types/teamnet/route_update_params.py b/src/cloudflare/types/teamnet/route_update_params.py index bde082cc107..3182f91f9ac 100644 --- a/src/cloudflare/types/teamnet/route_update_params.py +++ b/src/cloudflare/types/teamnet/route_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["RouteUpdateParams"] diff --git a/src/cloudflare/types/teamnet/route_update_response.py b/src/cloudflare/types/teamnet/route_update_response.py index 7b9159cff14..1ad230c7e07 100644 --- a/src/cloudflare/types/teamnet/route_update_response.py +++ b/src/cloudflare/types/teamnet/route_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["RouteUpdateResponse"] diff --git a/src/cloudflare/types/teamnets/__init__.py b/src/cloudflare/types/teamnets/__init__.py index d3b9f2cccb8..da1d961ef35 100644 --- a/src/cloudflare/types/teamnets/__init__.py +++ b/src/cloudflare/types/teamnets/__init__.py @@ -2,24 +2,24 @@ from __future__ import annotations -from .virtual_network_update_params import VirtualNetworkUpdateParams as VirtualNetworkUpdateParams -from .virtual_network_delete_response import VirtualNetworkDeleteResponse as VirtualNetworkDeleteResponse -from .virtual_network_update_response import VirtualNetworkUpdateResponse as VirtualNetworkUpdateResponse -from .route_tunnel_route_list_tunnel_routes_params import ( - RouteTunnelRouteListTunnelRoutesParams as RouteTunnelRouteListTunnelRoutesParams, -) from .route_tunnel_route_list_tunnel_routes_response import ( RouteTunnelRouteListTunnelRoutesResponse as RouteTunnelRouteListTunnelRoutesResponse, ) -from .virtual_network_tunnel_virtual_network_list_virtual_networks_params import ( - VirtualNetworkTunnelVirtualNetworkListVirtualNetworksParams as VirtualNetworkTunnelVirtualNetworkListVirtualNetworksParams, +from .route_tunnel_route_list_tunnel_routes_params import ( + RouteTunnelRouteListTunnelRoutesParams as RouteTunnelRouteListTunnelRoutesParams, +) +from .virtual_network_update_response import VirtualNetworkUpdateResponse as VirtualNetworkUpdateResponse +from .virtual_network_delete_response import VirtualNetworkDeleteResponse as VirtualNetworkDeleteResponse +from .virtual_network_tunnel_virtual_network_create_a_virtual_network_response import ( + VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse as VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, ) from .virtual_network_tunnel_virtual_network_list_virtual_networks_response import ( VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse as VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, ) +from .virtual_network_update_params import VirtualNetworkUpdateParams as VirtualNetworkUpdateParams from .virtual_network_tunnel_virtual_network_create_a_virtual_network_params import ( VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkParams as VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkParams, ) -from .virtual_network_tunnel_virtual_network_create_a_virtual_network_response import ( - VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse as VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, +from .virtual_network_tunnel_virtual_network_list_virtual_networks_params import ( + VirtualNetworkTunnelVirtualNetworkListVirtualNetworksParams as VirtualNetworkTunnelVirtualNetworkListVirtualNetworksParams, ) diff --git a/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_params.py b/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_params.py index fc398243792..92701b3742a 100644 --- a/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_params.py +++ b/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["RouteTunnelRouteListTunnelRoutesParams"] diff --git a/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_response.py b/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_response.py index 81e30c5b4fa..f5070db8bdc 100644 --- a/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_response.py +++ b/src/cloudflare/types/teamnets/route_tunnel_route_list_tunnel_routes_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["RouteTunnelRouteListTunnelRoutesResponse", "RouteTunnelRouteListTunnelRoutesResponseItem"] diff --git a/src/cloudflare/types/teamnets/routes/__init__.py b/src/cloudflare/types/teamnets/routes/__init__.py index ed1eab73308..c808071b6bd 100644 --- a/src/cloudflare/types/teamnets/routes/__init__.py +++ b/src/cloudflare/types/teamnets/routes/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .ip_get_params import IPGetParams as IPGetParams from .ip_get_response import IPGetResponse as IPGetResponse -from .network_delete_params import NetworkDeleteParams as NetworkDeleteParams -from .network_update_params import NetworkUpdateParams as NetworkUpdateParams -from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse +from .ip_get_params import IPGetParams as IPGetParams from .network_update_response import NetworkUpdateResponse as NetworkUpdateResponse +from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse +from .network_update_params import NetworkUpdateParams as NetworkUpdateParams +from .network_delete_params import NetworkDeleteParams as NetworkDeleteParams diff --git a/src/cloudflare/types/teamnets/routes/ip_get_params.py b/src/cloudflare/types/teamnets/routes/ip_get_params.py index 29d910069c3..03c0b24c080 100644 --- a/src/cloudflare/types/teamnets/routes/ip_get_params.py +++ b/src/cloudflare/types/teamnets/routes/ip_get_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["IPGetParams"] diff --git a/src/cloudflare/types/teamnets/routes/ip_get_response.py b/src/cloudflare/types/teamnets/routes/ip_get_response.py index 1937acc5bbd..3cd527b085b 100644 --- a/src/cloudflare/types/teamnets/routes/ip_get_response.py +++ b/src/cloudflare/types/teamnets/routes/ip_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["IPGetResponse"] diff --git a/src/cloudflare/types/teamnets/routes/network_delete_params.py b/src/cloudflare/types/teamnets/routes/network_delete_params.py index 76b4383a103..7f0db660b66 100644 --- a/src/cloudflare/types/teamnets/routes/network_delete_params.py +++ b/src/cloudflare/types/teamnets/routes/network_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ....types import shared_params __all__ = ["NetworkDeleteParams"] diff --git a/src/cloudflare/types/teamnets/routes/network_delete_response.py b/src/cloudflare/types/teamnets/routes/network_delete_response.py index c337670ee5a..cd4533dfcb5 100644 --- a/src/cloudflare/types/teamnets/routes/network_delete_response.py +++ b/src/cloudflare/types/teamnets/routes/network_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["NetworkDeleteResponse"] diff --git a/src/cloudflare/types/teamnets/routes/network_update_params.py b/src/cloudflare/types/teamnets/routes/network_update_params.py index 4a54ed9cf1b..55317bc9a63 100644 --- a/src/cloudflare/types/teamnets/routes/network_update_params.py +++ b/src/cloudflare/types/teamnets/routes/network_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["NetworkUpdateParams"] diff --git a/src/cloudflare/types/teamnets/routes/network_update_response.py b/src/cloudflare/types/teamnets/routes/network_update_response.py index dc035d1d262..1e5bd8397b3 100644 --- a/src/cloudflare/types/teamnets/routes/network_update_response.py +++ b/src/cloudflare/types/teamnets/routes/network_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["NetworkUpdateResponse"] diff --git a/src/cloudflare/types/teamnets/virtual_network_delete_response.py b/src/cloudflare/types/teamnets/virtual_network_delete_response.py index f641fd96bcc..55152d30f80 100644 --- a/src/cloudflare/types/teamnets/virtual_network_delete_response.py +++ b/src/cloudflare/types/teamnets/virtual_network_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["VirtualNetworkDeleteResponse"] diff --git a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_params.py b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_params.py index 26fe4acad99..639cf06b005 100644 --- a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_params.py +++ b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkParams"] diff --git a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_response.py b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_response.py index 3f2f2920644..c8d0aeda035 100644 --- a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_response.py +++ b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_create_a_virtual_network_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse"] diff --git a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_params.py b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_params.py index 36465f7015b..c034b730953 100644 --- a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_params.py +++ b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["VirtualNetworkTunnelVirtualNetworkListVirtualNetworksParams"] diff --git a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_response.py b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_response.py index e3ec58a7841..60cb975a377 100644 --- a/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_response.py +++ b/src/cloudflare/types/teamnets/virtual_network_tunnel_virtual_network_list_virtual_networks_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse", diff --git a/src/cloudflare/types/teamnets/virtual_network_update_params.py b/src/cloudflare/types/teamnets/virtual_network_update_params.py index eb7a415db60..91d6a56b422 100644 --- a/src/cloudflare/types/teamnets/virtual_network_update_params.py +++ b/src/cloudflare/types/teamnets/virtual_network_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["VirtualNetworkUpdateParams"] diff --git a/src/cloudflare/types/teamnets/virtual_network_update_response.py b/src/cloudflare/types/teamnets/virtual_network_update_response.py index 48e29849036..76bc54302e8 100644 --- a/src/cloudflare/types/teamnets/virtual_network_update_response.py +++ b/src/cloudflare/types/teamnets/virtual_network_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["VirtualNetworkUpdateResponse"] diff --git a/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_params.py b/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_params.py index a1384a9f492..5a1d275d70d 100644 --- a/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_params.py +++ b/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["TunnelArgoTunnelCreateAnArgoTunnelParams"] diff --git a/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_response.py b/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_response.py index 924a43f2fb8..aaad2b799b3 100644 --- a/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_response.py +++ b/src/cloudflare/types/tunnel_argo_tunnel_create_an_argo_tunnel_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["TunnelArgoTunnelCreateAnArgoTunnelResponse", "Connection"] diff --git a/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_params.py b/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_params.py index 3072319a616..92adeb1429b 100644 --- a/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_params.py +++ b/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["TunnelArgoTunnelListArgoTunnelsParams"] diff --git a/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_response.py b/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_response.py index eca7906be6a..88b0afe6b54 100644 --- a/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_response.py +++ b/src/cloudflare/types/tunnel_argo_tunnel_list_argo_tunnels_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "TunnelArgoTunnelListArgoTunnelsResponse", diff --git a/src/cloudflare/types/tunnel_delete_params.py b/src/cloudflare/types/tunnel_delete_params.py index 78eca48dc26..289e7e81f67 100644 --- a/src/cloudflare/types/tunnel_delete_params.py +++ b/src/cloudflare/types/tunnel_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["TunnelDeleteParams"] diff --git a/src/cloudflare/types/tunnel_delete_response.py b/src/cloudflare/types/tunnel_delete_response.py index 27f0209b1fa..3a6982fe035 100644 --- a/src/cloudflare/types/tunnel_delete_response.py +++ b/src/cloudflare/types/tunnel_delete_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["TunnelDeleteResponse", "Connection"] diff --git a/src/cloudflare/types/tunnel_get_response.py b/src/cloudflare/types/tunnel_get_response.py index f4468475f41..bab341d9431 100644 --- a/src/cloudflare/types/tunnel_get_response.py +++ b/src/cloudflare/types/tunnel_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["TunnelGetResponse", "Connection"] diff --git a/src/cloudflare/types/tunnels/__init__.py b/src/cloudflare/types/tunnels/__init__.py index e182ca99032..21ab01e2999 100644 --- a/src/cloudflare/types/tunnels/__init__.py +++ b/src/cloudflare/types/tunnels/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams from .connection_delete_response import ConnectionDeleteResponse as ConnectionDeleteResponse +from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams diff --git a/src/cloudflare/types/tunnels/connection_delete_params.py b/src/cloudflare/types/tunnels/connection_delete_params.py index cf3dc8ac734..83e457bceb2 100644 --- a/src/cloudflare/types/tunnels/connection_delete_params.py +++ b/src/cloudflare/types/tunnels/connection_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ConnectionDeleteParams"] diff --git a/src/cloudflare/types/tunnels/connection_delete_response.py b/src/cloudflare/types/tunnels/connection_delete_response.py index 79c7b3e9db6..f529a60a2a8 100644 --- a/src/cloudflare/types/tunnels/connection_delete_response.py +++ b/src/cloudflare/types/tunnels/connection_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["ConnectionDeleteResponse"] diff --git a/src/cloudflare/types/url_normalization_url_normalization_get_url_normalization_settings_response.py b/src/cloudflare/types/url_normalization_url_normalization_get_url_normalization_settings_response.py index af11aa5440a..a21356a2441 100644 --- a/src/cloudflare/types/url_normalization_url_normalization_get_url_normalization_settings_response.py +++ b/src/cloudflare/types/url_normalization_url_normalization_get_url_normalization_settings_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse"] diff --git a/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_params.py b/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_params.py index a6d74f7625e..94e1c4d05d8 100644 --- a/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_params.py +++ b/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_params.py @@ -4,6 +4,12 @@ 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 +from ..types import shared_params + __all__ = ["URLNormalizationURLNormalizationUpdateURLNormalizationSettingsParams"] diff --git a/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_response.py b/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_response.py index db7ef6b28f4..bbb4887599c 100644 --- a/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_response.py +++ b/src/cloudflare/types/url_normalization_url_normalization_update_url_normalization_settings_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse"] diff --git a/src/cloudflare/types/url_scanner/__init__.py b/src/cloudflare/types/url_scanner/__init__.py index 5aa84569f63..4916302a88f 100644 --- a/src/cloudflare/types/url_scanner/__init__.py +++ b/src/cloudflare/types/url_scanner/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations +from .scan_create_response import ScanCreateResponse as ScanCreateResponse 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_create_response import ScanCreateResponse as ScanCreateResponse from .scan_screenshot_params import ScanScreenshotParams as ScanScreenshotParams diff --git a/src/cloudflare/types/url_scanner/scan_create_params.py b/src/cloudflare/types/url_scanner/scan_create_params.py index 1ef3a2d5b27..da8f60d14e5 100644 --- a/src/cloudflare/types/url_scanner/scan_create_params.py +++ b/src/cloudflare/types/url_scanner/scan_create_params.py @@ -2,11 +2,18 @@ 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 +from ...types import shared_params + __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 9cd3e35c997..e7b0de4bd62 100644 --- a/src/cloudflare/types/url_scanner/scan_create_response.py +++ b/src/cloudflare/types/url_scanner/scan_create_response.py @@ -2,7 +2,11 @@ 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 ...types import shared __all__ = ["ScanCreateResponse"] diff --git a/src/cloudflare/types/url_scanner/scan_get_response.py b/src/cloudflare/types/url_scanner/scan_get_response.py index d472ef65647..825036099a0 100644 --- a/src/cloudflare/types/url_scanner/scan_get_response.py +++ b/src/cloudflare/types/url_scanner/scan_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = [ "ScanGetResponse", diff --git a/src/cloudflare/types/url_scanner/scan_har_response.py b/src/cloudflare/types/url_scanner/scan_har_response.py index f4fe8c514ad..ea9465d0405 100644 --- a/src/cloudflare/types/url_scanner/scan_har_response.py +++ b/src/cloudflare/types/url_scanner/scan_har_response.py @@ -2,9 +2,11 @@ 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 +from ...types import shared __all__ = [ "ScanHarResponse", diff --git a/src/cloudflare/types/url_scanner/scan_screenshot_params.py b/src/cloudflare/types/url_scanner/scan_screenshot_params.py index 6bb8967a4ff..00e9f4d857c 100644 --- a/src/cloudflare/types/url_scanner/scan_screenshot_params.py +++ b/src/cloudflare/types/url_scanner/scan_screenshot_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Annotated, Required, 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 +from ...types import shared_params + __all__ = ["ScanScreenshotParams"] diff --git a/src/cloudflare/types/url_scanner_scan_params.py b/src/cloudflare/types/url_scanner_scan_params.py index d8b032baba4..9c38b2370dd 100644 --- a/src/cloudflare/types/url_scanner_scan_params.py +++ b/src/cloudflare/types/url_scanner_scan_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["URLScannerScanParams"] diff --git a/src/cloudflare/types/url_scanner_scan_response.py b/src/cloudflare/types/url_scanner_scan_response.py index 4b92f1a3857..93279b94629 100644 --- a/src/cloudflare/types/url_scanner_scan_response.py +++ b/src/cloudflare/types/url_scanner_scan_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ..types import shared __all__ = ["URLScannerScanResponse", "Task"] diff --git a/src/cloudflare/types/user_user_edit_user_params.py b/src/cloudflare/types/user_user_edit_user_params.py index b9718ad8419..dd9e316f882 100644 --- a/src/cloudflare/types/user_user_edit_user_params.py +++ b/src/cloudflare/types/user_user_edit_user_params.py @@ -2,9 +2,16 @@ from __future__ import annotations -from typing import Optional 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 ..types import shared_params + __all__ = ["UserUserEditUserParams"] diff --git a/src/cloudflare/types/user_user_edit_user_response.py b/src/cloudflare/types/user_user_edit_user_response.py index 20cd2e639ee..1c72bbba887 100644 --- a/src/cloudflare/types/user_user_edit_user_response.py +++ b/src/cloudflare/types/user_user_edit_user_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["UserUserEditUserResponse"] diff --git a/src/cloudflare/types/user_user_user_details_response.py b/src/cloudflare/types/user_user_user_details_response.py index 7eecf7f41e9..6972df4064e 100644 --- a/src/cloudflare/types/user_user_user_details_response.py +++ b/src/cloudflare/types/user_user_user_details_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ..types import shared __all__ = ["UserUserUserDetailsResponse"] diff --git a/src/cloudflare/types/users/__init__.py b/src/cloudflare/types/users/__init__.py index c9727feacee..fa77b62440d 100644 --- a/src/cloudflare/types/users/__init__.py +++ b/src/cloudflare/types/users/__init__.py @@ -2,41 +2,41 @@ from __future__ import annotations -from .token_get_response import TokenGetResponse as TokenGetResponse -from .invite_get_response import InviteGetResponse as InviteGetResponse -from .token_update_params import TokenUpdateParams as TokenUpdateParams -from .invite_update_params import InviteUpdateParams as InviteUpdateParams +from .audit_log_list_response import AuditLogListResponse as AuditLogListResponse from .audit_log_list_params import AuditLogListParams as AuditLogListParams -from .token_delete_response import TokenDeleteResponse as TokenDeleteResponse -from .token_update_response import TokenUpdateResponse as TokenUpdateResponse from .invite_update_response import InviteUpdateResponse as InviteUpdateResponse -from .audit_log_list_response import AuditLogListResponse as AuditLogListResponse -from .organization_get_response import OrganizationGetResponse as OrganizationGetResponse -from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +from .invite_get_response import InviteGetResponse as InviteGetResponse +from .invite_user_s_invites_list_invitations_response import ( + InviteUserSInvitesListInvitationsResponse as InviteUserSInvitesListInvitationsResponse, +) +from .invite_update_params import InviteUpdateParams as InviteUpdateParams from .organization_delete_response import OrganizationDeleteResponse as OrganizationDeleteResponse -from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse -from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse -from .token_user_api_tokens_list_tokens_params import ( - TokenUserAPITokensListTokensParams as TokenUserAPITokensListTokensParams, +from .organization_get_response import OrganizationGetResponse as OrganizationGetResponse +from .organization_user_s_organizations_list_organizations_response import ( + OrganizationUserSOrganizationsListOrganizationsResponse as OrganizationUserSOrganizationsListOrganizationsResponse, ) -from .token_user_api_tokens_create_token_params import ( - TokenUserAPITokensCreateTokenParams as TokenUserAPITokensCreateTokenParams, +from .organization_user_s_organizations_list_organizations_params import ( + OrganizationUserSOrganizationsListOrganizationsParams as OrganizationUserSOrganizationsListOrganizationsParams, ) -from .token_user_api_tokens_list_tokens_response import ( - TokenUserAPITokensListTokensResponse as TokenUserAPITokensListTokensResponse, +from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse +from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse +from .subscription_user_subscription_get_user_subscriptions_response import ( + SubscriptionUserSubscriptionGetUserSubscriptionsResponse as SubscriptionUserSubscriptionGetUserSubscriptionsResponse, ) +from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams +from .token_update_response import TokenUpdateResponse as TokenUpdateResponse +from .token_delete_response import TokenDeleteResponse as TokenDeleteResponse +from .token_get_response import TokenGetResponse as TokenGetResponse from .token_user_api_tokens_create_token_response import ( TokenUserAPITokensCreateTokenResponse as TokenUserAPITokensCreateTokenResponse, ) -from .invite_user_s_invites_list_invitations_response import ( - InviteUserSInvitesListInvitationsResponse as InviteUserSInvitesListInvitationsResponse, -) -from .organization_user_s_organizations_list_organizations_params import ( - OrganizationUserSOrganizationsListOrganizationsParams as OrganizationUserSOrganizationsListOrganizationsParams, +from .token_user_api_tokens_list_tokens_response import ( + TokenUserAPITokensListTokensResponse as TokenUserAPITokensListTokensResponse, ) -from .organization_user_s_organizations_list_organizations_response import ( - OrganizationUserSOrganizationsListOrganizationsResponse as OrganizationUserSOrganizationsListOrganizationsResponse, +from .token_update_params import TokenUpdateParams as TokenUpdateParams +from .token_user_api_tokens_create_token_params import ( + TokenUserAPITokensCreateTokenParams as TokenUserAPITokensCreateTokenParams, ) -from .subscription_user_subscription_get_user_subscriptions_response import ( - SubscriptionUserSubscriptionGetUserSubscriptionsResponse as SubscriptionUserSubscriptionGetUserSubscriptionsResponse, +from .token_user_api_tokens_list_tokens_params import ( + TokenUserAPITokensListTokensParams as TokenUserAPITokensListTokensParams, ) diff --git a/src/cloudflare/types/users/audit_log_list_params.py b/src/cloudflare/types/users/audit_log_list_params.py index 9e56b8794ae..580d52555f5 100644 --- a/src/cloudflare/types/users/audit_log_list_params.py +++ b/src/cloudflare/types/users/audit_log_list_params.py @@ -2,12 +2,20 @@ 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 +from ...types import shared_params + __all__ = ["AuditLogListParams", "Action", "Actor", "Zone"] diff --git a/src/cloudflare/types/users/audit_log_list_response.py b/src/cloudflare/types/users/audit_log_list_response.py index dcb438d6ceb..ca2b5ec05ae 100644 --- a/src/cloudflare/types/users/audit_log_list_response.py +++ b/src/cloudflare/types/users/audit_log_list_response.py @@ -1,26 +1,18 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List, Union + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared -__all__ = [ - "AuditLogListResponse", - "UnionMember0", - "UnionMember0Result", - "UnionMember0ResultAction", - "UnionMember0ResultActor", - "UnionMember0ResultOwner", - "UnionMember0ResultResource", - "Q6tjyqK4APIResponseCommon", - "Q6tjyqK4APIResponseCommonError", - "Q6tjyqK4APIResponseCommonMessage", -] - +__all__ = ["AuditLogListResponse", "UnionMember0", "UnionMember0Result", "UnionMember0ResultAction", "UnionMember0ResultActor", "UnionMember0ResultOwner", "UnionMember0ResultResource", "_9cy76Al9APIResponseCommon", "9cy76Al9APIResponseCommonError", "9cy76Al9APIResponseCommonMessage"] class UnionMember0ResultAction(BaseModel): result: Optional[bool] = None @@ -29,7 +21,6 @@ class UnionMember0ResultAction(BaseModel): type: Optional[str] = None """A short string that describes the action that was performed.""" - class UnionMember0ResultActor(BaseModel): id: Optional[str] = None """The ID of the actor that performed the action. @@ -46,12 +37,10 @@ class UnionMember0ResultActor(BaseModel): type: Optional[Literal["user", "admin", "Cloudflare"]] = None """The type of actor, whether a User, Cloudflare Admin, or an Automated System.""" - class UnionMember0ResultOwner(BaseModel): id: Optional[str] = None """Identifier""" - class UnionMember0ResultResource(BaseModel): id: Optional[str] = None """An identifier for the resource that was affected by the action.""" @@ -59,7 +48,6 @@ class UnionMember0ResultResource(BaseModel): type: Optional[str] = None """A short string that describes the resource that was affected by the action.""" - class UnionMember0Result(BaseModel): id: Optional[str] = None """A string that uniquely identifies the audit log.""" @@ -77,10 +65,10 @@ class UnionMember0Result(BaseModel): This is a flexible value and varies between different actions. """ - new_value: Optional[str] = FieldInfo(alias="newValue", default=None) + new_value: Optional[str] = FieldInfo(alias = "newValue", default = None) """The new value of the resource that was modified.""" - old_value: Optional[str] = FieldInfo(alias="oldValue", default=None) + old_value: Optional[str] = FieldInfo(alias = "oldValue", default = None) """The value of the resource before it was modified.""" owner: Optional[UnionMember0ResultOwner] = None @@ -90,7 +78,6 @@ class UnionMember0Result(BaseModel): when: Optional[datetime] = None """A UTC RFC3339 timestamp that specifies when the action being logged occured.""" - class UnionMember0(BaseModel): errors: Optional[object] = None @@ -100,28 +87,24 @@ class UnionMember0(BaseModel): success: Optional[bool] = None - -class Q6tjyqK4APIResponseCommonError(BaseModel): +class 9cy76Al9APIResponseCommonError(BaseModel): code: int message: str - -class Q6tjyqK4APIResponseCommonMessage(BaseModel): +class 9cy76Al9APIResponseCommonMessage(BaseModel): code: int message: str +class _9cy76Al9APIResponseCommon(BaseModel): + errors: List[9cy76Al9APIResponseCommonError] -class Q6tjyqK4APIResponseCommon(BaseModel): - errors: List[Q6tjyqK4APIResponseCommonError] - - messages: List[Q6tjyqK4APIResponseCommonMessage] + messages: List[9cy76Al9APIResponseCommonMessage] result: Union[object, List[object], str] success: Literal[True] """Whether the API call was successful""" - -AuditLogListResponse = Union[UnionMember0, Q6tjyqK4APIResponseCommon] +AuditLogListResponse = Union[UnionMember0, _9cy76Al9APIResponseCommon] \ No newline at end of file diff --git a/src/cloudflare/types/users/billings/__init__.py b/src/cloudflare/types/users/billings/__init__.py index acdab797acf..c2d63ca42fb 100644 --- a/src/cloudflare/types/users/billings/__init__.py +++ b/src/cloudflare/types/users/billings/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .history_user_billing_history_billing_history_details_params import ( - HistoryUserBillingHistoryBillingHistoryDetailsParams as HistoryUserBillingHistoryBillingHistoryDetailsParams, -) from .history_user_billing_history_billing_history_details_response import ( HistoryUserBillingHistoryBillingHistoryDetailsResponse as HistoryUserBillingHistoryBillingHistoryDetailsResponse, ) +from .history_user_billing_history_billing_history_details_params import ( + HistoryUserBillingHistoryBillingHistoryDetailsParams as HistoryUserBillingHistoryBillingHistoryDetailsParams, +) from .profile_user_billing_profile_billing_profile_details_response import ( ProfileUserBillingProfileBillingProfileDetailsResponse as ProfileUserBillingProfileBillingProfileDetailsResponse, ) diff --git a/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_params.py b/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_params.py index f0141ee302a..de27db8495b 100644 --- a/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_params.py +++ b/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["HistoryUserBillingHistoryBillingHistoryDetailsParams"] diff --git a/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_response.py b/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_response.py index 973a0ba3d57..b23cbb97b31 100644 --- a/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_response.py +++ b/src/cloudflare/types/users/billings/history_user_billing_history_billing_history_details_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = [ "HistoryUserBillingHistoryBillingHistoryDetailsResponse", diff --git a/src/cloudflare/types/users/billings/profile_user_billing_profile_billing_profile_details_response.py b/src/cloudflare/types/users/billings/profile_user_billing_profile_billing_profile_details_response.py index 1688185b687..1a2786d2441 100644 --- a/src/cloudflare/types/users/billings/profile_user_billing_profile_billing_profile_details_response.py +++ b/src/cloudflare/types/users/billings/profile_user_billing_profile_billing_profile_details_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ....types import shared __all__ = ["ProfileUserBillingProfileBillingProfileDetailsResponse"] diff --git a/src/cloudflare/types/users/firewalls/access_rules/__init__.py b/src/cloudflare/types/users/firewalls/access_rules/__init__.py index 7005fe516cb..adb673ca5c4 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/__init__.py +++ b/src/cloudflare/types/users/firewalls/access_rules/__init__.py @@ -2,18 +2,18 @@ from __future__ import annotations -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse -from .rule_ip_access_rules_for_a_user_list_ip_access_rules_params import ( - RuleIPAccessRulesForAUserListIPAccessRulesParams as RuleIPAccessRulesForAUserListIPAccessRulesParams, +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response import ( + RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse as RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, ) from .rule_ip_access_rules_for_a_user_list_ip_access_rules_response import ( RuleIPAccessRulesForAUserListIPAccessRulesResponse as RuleIPAccessRulesForAUserListIPAccessRulesResponse, ) +from .rule_update_params import RuleUpdateParams as RuleUpdateParams from .rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params import ( RuleIPAccessRulesForAUserCreateAnIPAccessRuleParams as RuleIPAccessRulesForAUserCreateAnIPAccessRuleParams, ) -from .rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response import ( - RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse as RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, +from .rule_ip_access_rules_for_a_user_list_ip_access_rules_params import ( + RuleIPAccessRulesForAUserListIPAccessRulesParams as RuleIPAccessRulesForAUserListIPAccessRulesParams, ) diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_delete_response.py b/src/cloudflare/types/users/firewalls/access_rules/rule_delete_response.py index 28a00ad3f23..3d63a498e75 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_delete_response.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_delete_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["RuleDeleteResponse"] diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params.py b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params.py index 54354ff2368..b4c7cc5bf9e 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 .....types import shared_params __all__ = [ "RuleIPAccessRulesForAUserCreateAnIPAccessRuleParams", diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response.py b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response.py index 081dbe79a4f..35a3c60f11e 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_create_an_ip_access_rule_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from .....types import shared __all__ = [ "RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse", diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_params.py b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_params.py index 181b2ba1ce7..f4c344f2868 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_params.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Literal, Annotated 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 .....types import shared_params + __all__ = ["RuleIPAccessRulesForAUserListIPAccessRulesParams", "EgsPagination", "EgsPaginationJson", "Filters"] diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_response.py b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_response.py index ba466ed1c1c..43f8d94500e 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_response.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_ip_access_rules_for_a_user_list_ip_access_rules_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from .....types import shared __all__ = [ "RuleIPAccessRulesForAUserListIPAccessRulesResponse", diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_update_params.py b/src/cloudflare/types/users/firewalls/access_rules/rule_update_params.py index 755a53116e7..44d93bcf22f 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_update_params.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 .....types import shared_params __all__ = ["RuleUpdateParams"] diff --git a/src/cloudflare/types/users/firewalls/access_rules/rule_update_response.py b/src/cloudflare/types/users/firewalls/access_rules/rule_update_response.py index 4d6b66ab119..4b5cb354da6 100644 --- a/src/cloudflare/types/users/firewalls/access_rules/rule_update_response.py +++ b/src/cloudflare/types/users/firewalls/access_rules/rule_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional -from datetime import datetime +from typing import Optional, List + 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 +from .....types import shared __all__ = [ "RuleUpdateResponse", diff --git a/src/cloudflare/types/users/invite_get_response.py b/src/cloudflare/types/users/invite_get_response.py index d4b8b1ed0bb..01205c56520 100644 --- a/src/cloudflare/types/users/invite_get_response.py +++ b/src/cloudflare/types/users/invite_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["InviteGetResponse"] diff --git a/src/cloudflare/types/users/invite_update_params.py b/src/cloudflare/types/users/invite_update_params.py index 508b8d22560..751c17ed21c 100644 --- a/src/cloudflare/types/users/invite_update_params.py +++ b/src/cloudflare/types/users/invite_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["InviteUpdateParams"] diff --git a/src/cloudflare/types/users/invite_update_response.py b/src/cloudflare/types/users/invite_update_response.py index 7263b2d3c5d..88a82f6d745 100644 --- a/src/cloudflare/types/users/invite_update_response.py +++ b/src/cloudflare/types/users/invite_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["InviteUpdateResponse"] diff --git a/src/cloudflare/types/users/invite_user_s_invites_list_invitations_response.py b/src/cloudflare/types/users/invite_user_s_invites_list_invitations_response.py index fb7fe53484b..ed755ed3354 100644 --- a/src/cloudflare/types/users/invite_user_s_invites_list_invitations_response.py +++ b/src/cloudflare/types/users/invite_user_s_invites_list_invitations_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = [ "InviteUserSInvitesListInvitationsResponse", diff --git a/src/cloudflare/types/users/load_balancers/__init__.py b/src/cloudflare/types/users/load_balancers/__init__.py index 69160afa5e5..de0a77b772e 100644 --- a/src/cloudflare/types/users/load_balancers/__init__.py +++ b/src/cloudflare/types/users/load_balancers/__init__.py @@ -2,33 +2,33 @@ from __future__ import annotations -from .pool_get_response import PoolGetResponse as PoolGetResponse -from .pool_update_params import PoolUpdateParams as PoolUpdateParams +from .monitor_create_response import MonitorCreateResponse as MonitorCreateResponse +from .monitor_update_response import MonitorUpdateResponse as MonitorUpdateResponse +from .monitor_list_response import MonitorListResponse as MonitorListResponse +from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse from .monitor_get_response import MonitorGetResponse as MonitorGetResponse -from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse -from .pool_update_response import PoolUpdateResponse as PoolUpdateResponse -from .preview_get_response import PreviewGetResponse as PreviewGetResponse from .monitor_create_params import MonitorCreateParams as MonitorCreateParams -from .monitor_list_response import MonitorListResponse as MonitorListResponse from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams -from .monitor_create_response import MonitorCreateResponse as MonitorCreateResponse -from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse -from .monitor_update_response import MonitorUpdateResponse as MonitorUpdateResponse -from .pool_load_balancer_pools_list_pools_params import ( - PoolLoadBalancerPoolsListPoolsParams as PoolLoadBalancerPoolsListPoolsParams, -) -from .pool_load_balancer_pools_create_pool_params import ( - PoolLoadBalancerPoolsCreatePoolParams as PoolLoadBalancerPoolsCreatePoolParams, -) -from .pool_load_balancer_pools_patch_pools_params import ( - PoolLoadBalancerPoolsPatchPoolsParams as PoolLoadBalancerPoolsPatchPoolsParams, +from .pool_update_response import PoolUpdateResponse as PoolUpdateResponse +from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse +from .pool_get_response import PoolGetResponse as PoolGetResponse +from .pool_load_balancer_pools_create_pool_response import ( + PoolLoadBalancerPoolsCreatePoolResponse as PoolLoadBalancerPoolsCreatePoolResponse, ) from .pool_load_balancer_pools_list_pools_response import ( PoolLoadBalancerPoolsListPoolsResponse as PoolLoadBalancerPoolsListPoolsResponse, ) -from .pool_load_balancer_pools_create_pool_response import ( - PoolLoadBalancerPoolsCreatePoolResponse as PoolLoadBalancerPoolsCreatePoolResponse, -) from .pool_load_balancer_pools_patch_pools_response import ( PoolLoadBalancerPoolsPatchPoolsResponse as PoolLoadBalancerPoolsPatchPoolsResponse, ) +from .pool_update_params import PoolUpdateParams as PoolUpdateParams +from .pool_load_balancer_pools_create_pool_params import ( + PoolLoadBalancerPoolsCreatePoolParams as PoolLoadBalancerPoolsCreatePoolParams, +) +from .pool_load_balancer_pools_list_pools_params import ( + PoolLoadBalancerPoolsListPoolsParams as PoolLoadBalancerPoolsListPoolsParams, +) +from .pool_load_balancer_pools_patch_pools_params import ( + PoolLoadBalancerPoolsPatchPoolsParams as PoolLoadBalancerPoolsPatchPoolsParams, +) +from .preview_get_response import PreviewGetResponse as PreviewGetResponse diff --git a/src/cloudflare/types/users/load_balancers/monitor_create_params.py b/src/cloudflare/types/users/load_balancers/monitor_create_params.py index d005c6e824e..e240b288b96 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_create_params.py +++ b/src/cloudflare/types/users/load_balancers/monitor_create_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["MonitorCreateParams"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_create_response.py b/src/cloudflare/types/users/load_balancers/monitor_create_response.py index a331afbd84d..eff909f1568 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_create_response.py +++ b/src/cloudflare/types/users/load_balancers/monitor_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["MonitorCreateResponse"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_delete_response.py b/src/cloudflare/types/users/load_balancers/monitor_delete_response.py index 3e62787c852..f54e370a796 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_delete_response.py +++ b/src/cloudflare/types/users/load_balancers/monitor_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["MonitorDeleteResponse"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_get_response.py b/src/cloudflare/types/users/load_balancers/monitor_get_response.py index c6c63edee6b..098f1fbf3e9 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_get_response.py +++ b/src/cloudflare/types/users/load_balancers/monitor_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["MonitorGetResponse"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_list_response.py b/src/cloudflare/types/users/load_balancers/monitor_list_response.py index 9e222ad7f3e..b9776ff27d7 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_list_response.py +++ b/src/cloudflare/types/users/load_balancers/monitor_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ....types import shared __all__ = ["MonitorListResponse", "MonitorListResponseItem"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_update_params.py b/src/cloudflare/types/users/load_balancers/monitor_update_params.py index 3d91e74ec8a..57667905b03 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_update_params.py +++ b/src/cloudflare/types/users/load_balancers/monitor_update_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from ....types import shared_params + __all__ = ["MonitorUpdateParams"] diff --git a/src/cloudflare/types/users/load_balancers/monitor_update_response.py b/src/cloudflare/types/users/load_balancers/monitor_update_response.py index 1a86dd8438d..0b487e9bcf3 100644 --- a/src/cloudflare/types/users/load_balancers/monitor_update_response.py +++ b/src/cloudflare/types/users/load_balancers/monitor_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["MonitorUpdateResponse"] diff --git a/src/cloudflare/types/users/load_balancers/monitors/__init__.py b/src/cloudflare/types/users/load_balancers/monitors/__init__.py index 7b817559fe1..1e0d99b1d1d 100644 --- a/src/cloudflare/types/users/load_balancers/monitors/__init__.py +++ b/src/cloudflare/types/users/load_balancers/monitors/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .preview_load_balancer_monitors_preview_monitor_params import ( - PreviewLoadBalancerMonitorsPreviewMonitorParams as PreviewLoadBalancerMonitorsPreviewMonitorParams, -) from .preview_load_balancer_monitors_preview_monitor_response import ( PreviewLoadBalancerMonitorsPreviewMonitorResponse as PreviewLoadBalancerMonitorsPreviewMonitorResponse, ) +from .preview_load_balancer_monitors_preview_monitor_params import ( + PreviewLoadBalancerMonitorsPreviewMonitorParams as PreviewLoadBalancerMonitorsPreviewMonitorParams, +) from .reference_load_balancer_monitors_list_monitor_references_response import ( ReferenceLoadBalancerMonitorsListMonitorReferencesResponse as ReferenceLoadBalancerMonitorsListMonitorReferencesResponse, ) diff --git a/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_params.py b/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_params.py index 45db2c1c420..b328fa28aec 100644 --- a/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_params.py +++ b/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from .....types import shared_params + __all__ = ["PreviewLoadBalancerMonitorsPreviewMonitorParams"] diff --git a/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_response.py b/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_response.py index a0c93360ada..00f88d09e90 100644 --- a/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_response.py +++ b/src/cloudflare/types/users/load_balancers/monitors/preview_load_balancer_monitors_preview_monitor_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ....._models import BaseModel +from .....types import shared __all__ = ["PreviewLoadBalancerMonitorsPreviewMonitorResponse"] diff --git a/src/cloudflare/types/users/load_balancers/monitors/reference_load_balancer_monitors_list_monitor_references_response.py b/src/cloudflare/types/users/load_balancers/monitors/reference_load_balancer_monitors_list_monitor_references_response.py index 62a7262b239..b1edc6a4d98 100644 --- a/src/cloudflare/types/users/load_balancers/monitors/reference_load_balancer_monitors_list_monitor_references_response.py +++ b/src/cloudflare/types/users/load_balancers/monitors/reference_load_balancer_monitors_list_monitor_references_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = [ "ReferenceLoadBalancerMonitorsListMonitorReferencesResponse", diff --git a/src/cloudflare/types/users/load_balancers/pool_delete_response.py b/src/cloudflare/types/users/load_balancers/pool_delete_response.py index 87b03c8c951..83fbd518a09 100644 --- a/src/cloudflare/types/users/load_balancers/pool_delete_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_delete_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["PoolDeleteResponse"] diff --git a/src/cloudflare/types/users/load_balancers/pool_get_response.py b/src/cloudflare/types/users/load_balancers/pool_get_response.py index c335c0eb0db..79efc937705 100644 --- a/src/cloudflare/types/users/load_balancers/pool_get_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "PoolGetResponse", diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_params.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_params.py index 45cdbcaa874..e1020c4de3a 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_params.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable, Optional -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Literal, Annotated +from typing import Iterable, Optional, 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 +from ....types import shared_params __all__ = [ "PoolLoadBalancerPoolsCreatePoolParams", diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_response.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_response.py index c583de9c264..500fb01c3b6 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_create_pool_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "PoolLoadBalancerPoolsCreatePoolResponse", diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_params.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_params.py index f421c26b253..0e7a1c95c4e 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_params.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_params.py @@ -4,6 +4,12 @@ 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 +from ....types import shared_params + __all__ = ["PoolLoadBalancerPoolsListPoolsParams"] diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_response.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_response.py index 785015de745..46a399323f2 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_list_pools_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "PoolLoadBalancerPoolsListPoolsResponse", diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_params.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_params.py index 435c2fc0653..c3620bcc9e6 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_params.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ....types import shared_params __all__ = ["PoolLoadBalancerPoolsPatchPoolsParams"] diff --git a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_response.py b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_response.py index f7c9810e181..2602fa1b8e4 100644 --- a/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_load_balancer_pools_patch_pools_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "PoolLoadBalancerPoolsPatchPoolsResponse", diff --git a/src/cloudflare/types/users/load_balancers/pool_update_params.py b/src/cloudflare/types/users/load_balancers/pool_update_params.py index eb4461f957c..6d52dabc1d8 100644 --- a/src/cloudflare/types/users/load_balancers/pool_update_params.py +++ b/src/cloudflare/types/users/load_balancers/pool_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations -from typing import List, Iterable, Optional -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Literal, Annotated +from typing import Optional, List, Iterable + +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 ....types import shared_params __all__ = [ "PoolUpdateParams", diff --git a/src/cloudflare/types/users/load_balancers/pool_update_response.py b/src/cloudflare/types/users/load_balancers/pool_update_response.py index 1a033b65b8c..f5cbf4ff4f6 100644 --- a/src/cloudflare/types/users/load_balancers/pool_update_response.py +++ b/src/cloudflare/types/users/load_balancers/pool_update_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "PoolUpdateResponse", diff --git a/src/cloudflare/types/users/load_balancers/pools/__init__.py b/src/cloudflare/types/users/load_balancers/pools/__init__.py index 07b9523f051..2dfc806bbc3 100644 --- a/src/cloudflare/types/users/load_balancers/pools/__init__.py +++ b/src/cloudflare/types/users/load_balancers/pools/__init__.py @@ -2,14 +2,14 @@ from __future__ import annotations -from .preview_load_balancer_pools_preview_pool_params import ( - PreviewLoadBalancerPoolsPreviewPoolParams as PreviewLoadBalancerPoolsPreviewPoolParams, +from .health_load_balancer_pools_pool_health_details_response import ( + HealthLoadBalancerPoolsPoolHealthDetailsResponse as HealthLoadBalancerPoolsPoolHealthDetailsResponse, ) from .preview_load_balancer_pools_preview_pool_response import ( PreviewLoadBalancerPoolsPreviewPoolResponse as PreviewLoadBalancerPoolsPreviewPoolResponse, ) -from .health_load_balancer_pools_pool_health_details_response import ( - HealthLoadBalancerPoolsPoolHealthDetailsResponse as HealthLoadBalancerPoolsPoolHealthDetailsResponse, +from .preview_load_balancer_pools_preview_pool_params import ( + PreviewLoadBalancerPoolsPreviewPoolParams as PreviewLoadBalancerPoolsPreviewPoolParams, ) from .reference_load_balancer_pools_list_pool_references_response import ( ReferenceLoadBalancerPoolsListPoolReferencesResponse as ReferenceLoadBalancerPoolsListPoolReferencesResponse, diff --git a/src/cloudflare/types/users/load_balancers/pools/health_load_balancer_pools_pool_health_details_response.py b/src/cloudflare/types/users/load_balancers/pools/health_load_balancer_pools_pool_health_details_response.py index 256105732e4..d80e5b6c55b 100644 --- a/src/cloudflare/types/users/load_balancers/pools/health_load_balancer_pools_pool_health_details_response.py +++ b/src/cloudflare/types/users/load_balancers/pools/health_load_balancer_pools_pool_health_details_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from .....types import shared __all__ = ["HealthLoadBalancerPoolsPoolHealthDetailsResponse"] diff --git a/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_params.py b/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_params.py index d61a64c1d5c..094eb65d098 100644 --- a/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_params.py +++ b/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, 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 +from .....types import shared_params + __all__ = ["PreviewLoadBalancerPoolsPreviewPoolParams"] diff --git a/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_response.py b/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_response.py index 97a59097da4..430e7ec2884 100644 --- a/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_response.py +++ b/src/cloudflare/types/users/load_balancers/pools/preview_load_balancer_pools_preview_pool_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, Optional +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 ....._models import BaseModel +from .....types import shared __all__ = ["PreviewLoadBalancerPoolsPreviewPoolResponse"] diff --git a/src/cloudflare/types/users/load_balancers/pools/reference_load_balancer_pools_list_pool_references_response.py b/src/cloudflare/types/users/load_balancers/pools/reference_load_balancer_pools_list_pool_references_response.py index 368c15eb139..580083f88b6 100644 --- a/src/cloudflare/types/users/load_balancers/pools/reference_load_balancer_pools_list_pool_references_response.py +++ b/src/cloudflare/types/users/load_balancers/pools/reference_load_balancer_pools_list_pool_references_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = [ "ReferenceLoadBalancerPoolsListPoolReferencesResponse", diff --git a/src/cloudflare/types/users/load_balancers/preview_get_response.py b/src/cloudflare/types/users/load_balancers/preview_get_response.py index 50d154e16fa..37625e8e715 100644 --- a/src/cloudflare/types/users/load_balancers/preview_get_response.py +++ b/src/cloudflare/types/users/load_balancers/preview_get_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Optional +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 +from ....types import shared __all__ = [ "PreviewGetResponse", diff --git a/src/cloudflare/types/users/load_balancing_analytics/__init__.py b/src/cloudflare/types/users/load_balancing_analytics/__init__.py index f4a9e8ad762..9bd089a7b16 100644 --- a/src/cloudflare/types/users/load_balancing_analytics/__init__.py +++ b/src/cloudflare/types/users/load_balancing_analytics/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations -from .event_load_balancer_healthcheck_events_list_healthcheck_events_params import ( - EventLoadBalancerHealthcheckEventsListHealthcheckEventsParams as EventLoadBalancerHealthcheckEventsListHealthcheckEventsParams, -) from .event_load_balancer_healthcheck_events_list_healthcheck_events_response import ( EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse as EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse, ) +from .event_load_balancer_healthcheck_events_list_healthcheck_events_params import ( + EventLoadBalancerHealthcheckEventsListHealthcheckEventsParams as EventLoadBalancerHealthcheckEventsListHealthcheckEventsParams, +) diff --git a/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_params.py b/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_params.py index a02e3f12d14..978a9f7ae9a 100644 --- a/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_params.py +++ b/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_params.py @@ -2,12 +2,20 @@ 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 +from ....types import shared_params + __all__ = ["EventLoadBalancerHealthcheckEventsListHealthcheckEventsParams"] diff --git a/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_response.py b/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_response.py index e8506d524a3..87f7d46c3ed 100644 --- a/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_response.py +++ b/src/cloudflare/types/users/load_balancing_analytics/event_load_balancer_healthcheck_events_list_healthcheck_events_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ....types import shared __all__ = [ "EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse", diff --git a/src/cloudflare/types/users/organization_delete_response.py b/src/cloudflare/types/users/organization_delete_response.py index 81bd3b24248..879b135d09e 100644 --- a/src/cloudflare/types/users/organization_delete_response.py +++ b/src/cloudflare/types/users/organization_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["OrganizationDeleteResponse"] diff --git a/src/cloudflare/types/users/organization_get_response.py b/src/cloudflare/types/users/organization_get_response.py index 6a00c29ec2a..414c2b9689d 100644 --- a/src/cloudflare/types/users/organization_get_response.py +++ b/src/cloudflare/types/users/organization_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["OrganizationGetResponse"] diff --git a/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_params.py b/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_params.py index 0b657cbe7f5..5a74a7339aa 100644 --- a/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_params.py +++ b/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["OrganizationUserSOrganizationsListOrganizationsParams"] diff --git a/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_response.py b/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_response.py index dda58e24c4d..3bea30b222b 100644 --- a/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_response.py +++ b/src/cloudflare/types/users/organization_user_s_organizations_list_organizations_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = [ "OrganizationUserSOrganizationsListOrganizationsResponse", diff --git a/src/cloudflare/types/users/subscription_delete_response.py b/src/cloudflare/types/users/subscription_delete_response.py index ec52e278e1f..cb11d50c1e1 100644 --- a/src/cloudflare/types/users/subscription_delete_response.py +++ b/src/cloudflare/types/users/subscription_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SubscriptionDeleteResponse"] diff --git a/src/cloudflare/types/users/subscription_update_params.py b/src/cloudflare/types/users/subscription_update_params.py index f0e0b921091..aded3299781 100644 --- a/src/cloudflare/types/users/subscription_update_params.py +++ b/src/cloudflare/types/users/subscription_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Iterable -from typing_extensions import Literal, TypedDict +from typing_extensions import TypedDict, 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 ...types import shared_params __all__ = ["SubscriptionUpdateParams", "App", "ComponentValue", "RatePlan", "Zone"] diff --git a/src/cloudflare/types/users/subscription_update_response.py b/src/cloudflare/types/users/subscription_update_response.py index 925b0458144..c8460cbd6e0 100644 --- a/src/cloudflare/types/users/subscription_update_response.py +++ b/src/cloudflare/types/users/subscription_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["SubscriptionUpdateResponse"] diff --git a/src/cloudflare/types/users/subscription_user_subscription_get_user_subscriptions_response.py b/src/cloudflare/types/users/subscription_user_subscription_get_user_subscriptions_response.py index 6a1f58ce5a2..f10053aa167 100644 --- a/src/cloudflare/types/users/subscription_user_subscription_get_user_subscriptions_response.py +++ b/src/cloudflare/types/users/subscription_user_subscription_get_user_subscriptions_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ...types import shared __all__ = [ "SubscriptionUserSubscriptionGetUserSubscriptionsResponse", diff --git a/src/cloudflare/types/users/token_delete_response.py b/src/cloudflare/types/users/token_delete_response.py index ab6ada95759..1add3d266f6 100644 --- a/src/cloudflare/types/users/token_delete_response.py +++ b/src/cloudflare/types/users/token_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["TokenDeleteResponse"] diff --git a/src/cloudflare/types/users/token_get_response.py b/src/cloudflare/types/users/token_get_response.py index cf4ea676f23..d66aee73916 100644 --- a/src/cloudflare/types/users/token_get_response.py +++ b/src/cloudflare/types/users/token_get_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TokenGetResponse"] diff --git a/src/cloudflare/types/users/token_update_params.py b/src/cloudflare/types/users/token_update_params.py index d1a4f008dd8..543c880390d 100644 --- a/src/cloudflare/types/users/token_update_params.py +++ b/src/cloudflare/types/users/token_update_params.py @@ -2,12 +2,20 @@ from __future__ import annotations -from typing import List, Union, Iterable +from typing_extensions import TypedDict, Required, Literal, Annotated + +from typing import Iterable, Union, List + 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 ...types import shared_params + __all__ = ["TokenUpdateParams", "Policy", "PolicyPermissionGroup", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/users/token_update_response.py b/src/cloudflare/types/users/token_update_response.py index 5bc3d23d0ac..862ebf7c214 100644 --- a/src/cloudflare/types/users/token_update_response.py +++ b/src/cloudflare/types/users/token_update_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union, Optional +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 +from ...types import shared __all__ = ["TokenUpdateResponse"] diff --git a/src/cloudflare/types/users/token_user_api_tokens_create_token_params.py b/src/cloudflare/types/users/token_user_api_tokens_create_token_params.py index cc23970f724..2e626c9da4e 100644 --- a/src/cloudflare/types/users/token_user_api_tokens_create_token_params.py +++ b/src/cloudflare/types/users/token_user_api_tokens_create_token_params.py @@ -2,12 +2,20 @@ from __future__ import annotations -from typing import List, Union, Iterable +from typing_extensions import TypedDict, Required, Annotated, Literal + +from typing import Iterable, Union, List + 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 ...types import shared_params + __all__ = ["TokenUserAPITokensCreateTokenParams", "Policy", "PolicyPermissionGroup", "Condition", "ConditionRequestIP"] diff --git a/src/cloudflare/types/users/token_user_api_tokens_create_token_response.py b/src/cloudflare/types/users/token_user_api_tokens_create_token_response.py index 3183614c25a..140c598b4c6 100644 --- a/src/cloudflare/types/users/token_user_api_tokens_create_token_response.py +++ b/src/cloudflare/types/users/token_user_api_tokens_create_token_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["TokenUserAPITokensCreateTokenResponse"] diff --git a/src/cloudflare/types/users/token_user_api_tokens_list_tokens_params.py b/src/cloudflare/types/users/token_user_api_tokens_list_tokens_params.py index 93af398520b..7e401f0c7c5 100644 --- a/src/cloudflare/types/users/token_user_api_tokens_list_tokens_params.py +++ b/src/cloudflare/types/users/token_user_api_tokens_list_tokens_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ...types import shared_params __all__ = ["TokenUserAPITokensListTokensParams"] diff --git a/src/cloudflare/types/users/token_user_api_tokens_list_tokens_response.py b/src/cloudflare/types/users/token_user_api_tokens_list_tokens_response.py index f5fde2f3f3d..215f73cb7ea 100644 --- a/src/cloudflare/types/users/token_user_api_tokens_list_tokens_response.py +++ b/src/cloudflare/types/users/token_user_api_tokens_list_tokens_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["TokenUserAPITokensListTokensResponse"] diff --git a/src/cloudflare/types/users/tokens/__init__.py b/src/cloudflare/types/users/tokens/__init__.py index b8dab626e81..f1f16d9281d 100644 --- a/src/cloudflare/types/users/tokens/__init__.py +++ b/src/cloudflare/types/users/tokens/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations -from .value_user_api_tokens_roll_token_params import ( - ValueUserAPITokensRollTokenParams as ValueUserAPITokensRollTokenParams, -) -from .value_user_api_tokens_roll_token_response import ( - ValueUserAPITokensRollTokenResponse as ValueUserAPITokensRollTokenResponse, +from .permission_group_permission_groups_list_permission_groups_response import ( + PermissionGroupPermissionGroupsListPermissionGroupsResponse as PermissionGroupPermissionGroupsListPermissionGroupsResponse, ) from .verify_user_api_tokens_verify_token_response import ( VerifyUserAPITokensVerifyTokenResponse as VerifyUserAPITokensVerifyTokenResponse, ) -from .permission_group_permission_groups_list_permission_groups_response import ( - PermissionGroupPermissionGroupsListPermissionGroupsResponse as PermissionGroupPermissionGroupsListPermissionGroupsResponse, +from .value_user_api_tokens_roll_token_response import ( + ValueUserAPITokensRollTokenResponse as ValueUserAPITokensRollTokenResponse, +) +from .value_user_api_tokens_roll_token_params import ( + ValueUserAPITokensRollTokenParams as ValueUserAPITokensRollTokenParams, ) diff --git a/src/cloudflare/types/users/tokens/permission_group_permission_groups_list_permission_groups_response.py b/src/cloudflare/types/users/tokens/permission_group_permission_groups_list_permission_groups_response.py index 25ae22814a8..9fb7d6a55af 100644 --- a/src/cloudflare/types/users/tokens/permission_group_permission_groups_list_permission_groups_response.py +++ b/src/cloudflare/types/users/tokens/permission_group_permission_groups_list_permission_groups_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["PermissionGroupPermissionGroupsListPermissionGroupsResponse"] diff --git a/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_params.py b/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_params.py index fe780eab41d..65d1306f09d 100644 --- a/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_params.py +++ b/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ValueUserAPITokensRollTokenParams"] diff --git a/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_response.py b/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_response.py index fc944eadcaa..30c5cb42df6 100644 --- a/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_response.py +++ b/src/cloudflare/types/users/tokens/value_user_api_tokens_roll_token_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ...._models import BaseModel +from ....types import shared __all__ = ["ValueUserAPITokensRollTokenResponse"] diff --git a/src/cloudflare/types/users/tokens/verify_user_api_tokens_verify_token_response.py b/src/cloudflare/types/users/tokens/verify_user_api_tokens_verify_token_response.py index a60b471a529..d56228b00da 100644 --- a/src/cloudflare/types/users/tokens/verify_user_api_tokens_verify_token_response.py +++ b/src/cloudflare/types/users/tokens/verify_user_api_tokens_verify_token_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. +from typing_extensions import Literal + 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 ....types import shared __all__ = ["VerifyUserAPITokensVerifyTokenResponse"] diff --git a/src/cloudflare/types/vectorize/__init__.py b/src/cloudflare/types/vectorize/__init__.py index 59b67e5a914..bad275420fb 100644 --- a/src/cloudflare/types/vectorize/__init__.py +++ b/src/cloudflare/types/vectorize/__init__.py @@ -2,17 +2,17 @@ from __future__ import annotations -from .index_get_response import IndexGetResponse as IndexGetResponse -from .index_query_params import IndexQueryParams as IndexQueryParams -from .index_create_params import IndexCreateParams as IndexCreateParams -from .index_list_response import IndexListResponse as IndexListResponse -from .index_update_params import IndexUpdateParams as IndexUpdateParams -from .index_query_response import IndexQueryResponse as IndexQueryResponse from .index_create_response import IndexCreateResponse as IndexCreateResponse +from .index_update_response import IndexUpdateResponse as IndexUpdateResponse +from .index_list_response import IndexListResponse as IndexListResponse from .index_delete_response import IndexDeleteResponse as IndexDeleteResponse +from .index_delete_by_ids_response import IndexDeleteByIDsResponse as IndexDeleteByIDsResponse +from .index_get_response import IndexGetResponse as IndexGetResponse from .index_insert_response import IndexInsertResponse as IndexInsertResponse -from .index_update_response import IndexUpdateResponse as IndexUpdateResponse +from .index_query_response import IndexQueryResponse as IndexQueryResponse from .index_upsert_response import IndexUpsertResponse as IndexUpsertResponse -from .index_get_by_ids_params import IndexGetByIDsParams as IndexGetByIDsParams +from .index_create_params import IndexCreateParams as IndexCreateParams +from .index_update_params import IndexUpdateParams as IndexUpdateParams from .index_delete_by_ids_params import IndexDeleteByIDsParams as IndexDeleteByIDsParams -from .index_delete_by_ids_response import IndexDeleteByIDsResponse as IndexDeleteByIDsResponse +from .index_get_by_ids_params import IndexGetByIDsParams as IndexGetByIDsParams +from .index_query_params import IndexQueryParams as IndexQueryParams diff --git a/src/cloudflare/types/vectorize/index_create_params.py b/src/cloudflare/types/vectorize/index_create_params.py index aca048ed422..ebb39cdb568 100644 --- a/src/cloudflare/types/vectorize/index_create_params.py +++ b/src/cloudflare/types/vectorize/index_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = [ "IndexCreateParams", diff --git a/src/cloudflare/types/vectorize/index_create_response.py b/src/cloudflare/types/vectorize/index_create_response.py index 295ec2998d0..fc0169a03df 100644 --- a/src/cloudflare/types/vectorize/index_create_response.py +++ b/src/cloudflare/types/vectorize/index_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional 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 +from ...types import shared __all__ = ["IndexCreateResponse", "Config"] 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 a281b5ef961..661304ce2c7 100644 --- a/src/cloudflare/types/vectorize/index_delete_by_ids_params.py +++ b/src/cloudflare/types/vectorize/index_delete_by_ids_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __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 b0d46d281c9..95b37bad428 100644 --- a/src/cloudflare/types/vectorize/index_delete_by_ids_response.py +++ b/src/cloudflare/types/vectorize/index_delete_by_ids_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IndexDeleteByIDsResponse"] diff --git a/src/cloudflare/types/vectorize/index_delete_response.py b/src/cloudflare/types/vectorize/index_delete_response.py index 89fe2945e48..45a2d55b732 100644 --- a/src/cloudflare/types/vectorize/index_delete_response.py +++ b/src/cloudflare/types/vectorize/index_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["IndexDeleteResponse"] 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 69ccddb54d7..ae969816f32 100644 --- a/src/cloudflare/types/vectorize/index_get_by_ids_params.py +++ b/src/cloudflare/types/vectorize/index_get_by_ids_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import List -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["IndexGetByIDsParams"] diff --git a/src/cloudflare/types/vectorize/index_get_response.py b/src/cloudflare/types/vectorize/index_get_response.py index 580e0d248c8..b0dd2137cc4 100644 --- a/src/cloudflare/types/vectorize/index_get_response.py +++ b/src/cloudflare/types/vectorize/index_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional 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 +from ...types import shared __all__ = ["IndexGetResponse", "Config"] diff --git a/src/cloudflare/types/vectorize/index_insert_response.py b/src/cloudflare/types/vectorize/index_insert_response.py index 15a744cf978..46766778b4a 100644 --- a/src/cloudflare/types/vectorize/index_insert_response.py +++ b/src/cloudflare/types/vectorize/index_insert_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IndexInsertResponse"] diff --git a/src/cloudflare/types/vectorize/index_list_response.py b/src/cloudflare/types/vectorize/index_list_response.py index 928fc41912a..3b1e199c780 100644 --- a/src/cloudflare/types/vectorize/index_list_response.py +++ b/src/cloudflare/types/vectorize/index_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional 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 +from ...types import shared __all__ = ["IndexListResponse", "IndexListResponseItem", "IndexListResponseItemConfig"] diff --git a/src/cloudflare/types/vectorize/index_query_params.py b/src/cloudflare/types/vectorize/index_query_params.py index 1863383bd40..6f7c40b403c 100644 --- a/src/cloudflare/types/vectorize/index_query_params.py +++ b/src/cloudflare/types/vectorize/index_query_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Annotated + +from ..._utils import PropertyInfo + from typing import Iterable -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 ...types import shared_params __all__ = ["IndexQueryParams"] diff --git a/src/cloudflare/types/vectorize/index_query_response.py b/src/cloudflare/types/vectorize/index_query_response.py index abbc99dc0a6..e77a256bd80 100644 --- a/src/cloudflare/types/vectorize/index_query_response.py +++ b/src/cloudflare/types/vectorize/index_query_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IndexQueryResponse", "Match"] diff --git a/src/cloudflare/types/vectorize/index_update_params.py b/src/cloudflare/types/vectorize/index_update_params.py index 588874c7658..dcafdc35176 100644 --- a/src/cloudflare/types/vectorize/index_update_params.py +++ b/src/cloudflare/types/vectorize/index_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["IndexUpdateParams"] diff --git a/src/cloudflare/types/vectorize/index_update_response.py b/src/cloudflare/types/vectorize/index_update_response.py index 8e43d03e56e..a5a361bf01c 100644 --- a/src/cloudflare/types/vectorize/index_update_response.py +++ b/src/cloudflare/types/vectorize/index_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Optional 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 +from ...types import shared __all__ = ["IndexUpdateResponse", "Config"] diff --git a/src/cloudflare/types/vectorize/index_upsert_response.py b/src/cloudflare/types/vectorize/index_upsert_response.py index 724a1c3d548..8ee70a351f3 100644 --- a/src/cloudflare/types/vectorize/index_upsert_response.py +++ b/src/cloudflare/types/vectorize/index_upsert_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["IndexUpsertResponse"] diff --git a/src/cloudflare/types/waiting_room_create_params.py b/src/cloudflare/types/waiting_room_create_params.py index 5841e5573da..b3b5ef006e8 100644 --- a/src/cloudflare/types/waiting_room_create_params.py +++ b/src/cloudflare/types/waiting_room_create_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["WaitingRoomCreateParams", "AdditionalRoute", "CookieAttributes"] diff --git a/src/cloudflare/types/waiting_room_create_response.py b/src/cloudflare/types/waiting_room_create_response.py index f2be5620261..c929bcdcdba 100644 --- a/src/cloudflare/types/waiting_room_create_response.py +++ b/src/cloudflare/types/waiting_room_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["WaitingRoomCreateResponse", "AdditionalRoute", "CookieAttributes"] diff --git a/src/cloudflare/types/waiting_room_delete_response.py b/src/cloudflare/types/waiting_room_delete_response.py index 7be1e8f7a4b..aa3ead30556 100644 --- a/src/cloudflare/types/waiting_room_delete_response.py +++ b/src/cloudflare/types/waiting_room_delete_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["WaitingRoomDeleteResponse"] diff --git a/src/cloudflare/types/waiting_room_get_response.py b/src/cloudflare/types/waiting_room_get_response.py index aa83c5a2cc0..38c1b81c1ab 100644 --- a/src/cloudflare/types/waiting_room_get_response.py +++ b/src/cloudflare/types/waiting_room_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["WaitingRoomGetResponse", "AdditionalRoute", "CookieAttributes"] diff --git a/src/cloudflare/types/waiting_room_list_response.py b/src/cloudflare/types/waiting_room_list_response.py index c36e947c6eb..0449488bb8e 100644 --- a/src/cloudflare/types/waiting_room_list_response.py +++ b/src/cloudflare/types/waiting_room_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = [ "WaitingRoomListResponse", diff --git a/src/cloudflare/types/waiting_room_update_params.py b/src/cloudflare/types/waiting_room_update_params.py index 1ba0eb0fbca..cf9e8de21ab 100644 --- a/src/cloudflare/types/waiting_room_update_params.py +++ b/src/cloudflare/types/waiting_room_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ..types import shared_params __all__ = ["WaitingRoomUpdateParams", "AdditionalRoute", "CookieAttributes"] diff --git a/src/cloudflare/types/waiting_room_update_response.py b/src/cloudflare/types/waiting_room_update_response.py index 016120bb966..05294e7849e 100644 --- a/src/cloudflare/types/waiting_room_update_response.py +++ b/src/cloudflare/types/waiting_room_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +from typing import Optional, List + 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 +from ..types import shared __all__ = ["WaitingRoomUpdateResponse", "AdditionalRoute", "CookieAttributes"] diff --git a/src/cloudflare/types/waiting_rooms/__init__.py b/src/cloudflare/types/waiting_rooms/__init__.py index 09f03105466..c922b8041df 100644 --- a/src/cloudflare/types/waiting_rooms/__init__.py +++ b/src/cloudflare/types/waiting_rooms/__init__.py @@ -2,36 +2,35 @@ from __future__ import annotations -from .event_get_response import EventGetResponse as EventGetResponse -from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .event_update_params import EventUpdateParams as EventUpdateParams -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 .event_update_response import EventUpdateResponse as EventUpdateResponse -from .preview_create_params import PreviewCreateParams as PreviewCreateParams -from .setting_update_params import SettingUpdateParams as SettingUpdateParams from .preview_create_response import PreviewCreateResponse as PreviewCreateResponse -from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse -from .waitingroom_zone_settings_response import WaitingroomZoneSettingsResponse as WaitingroomZoneSettingsResponse -from .event_waiting_room_create_event_params import ( - EventWaitingRoomCreateEventParams as EventWaitingRoomCreateEventParams, +from .preview_create_params import PreviewCreateParams as PreviewCreateParams +from .event_update_response import EventUpdateResponse as EventUpdateResponse +from .event_delete_response import EventDeleteResponse as EventDeleteResponse +from .event_get_response import EventGetResponse as EventGetResponse +from .event_waiting_room_create_event_response import ( + EventWaitingRoomCreateEventResponse as EventWaitingRoomCreateEventResponse, ) from .event_waiting_room_list_events_response import ( EventWaitingRoomListEventsResponse as EventWaitingRoomListEventsResponse, ) -from .event_waiting_room_create_event_response import ( - EventWaitingRoomCreateEventResponse as EventWaitingRoomCreateEventResponse, +from .event_update_params import EventUpdateParams as EventUpdateParams +from .event_waiting_room_create_event_params import ( + EventWaitingRoomCreateEventParams as EventWaitingRoomCreateEventParams, ) -from .rule_waiting_room_create_waiting_room_rule_params import ( - RuleWaitingRoomCreateWaitingRoomRuleParams as RuleWaitingRoomCreateWaitingRoomRuleParams, +from .rule_update_response import RuleUpdateResponse as RuleUpdateResponse +from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse +from .rule_waiting_room_create_waiting_room_rule_response import ( + RuleWaitingRoomCreateWaitingRoomRuleResponse as RuleWaitingRoomCreateWaitingRoomRuleResponse, ) from .rule_waiting_room_list_waiting_room_rules_response import ( RuleWaitingRoomListWaitingRoomRulesResponse as RuleWaitingRoomListWaitingRoomRulesResponse, ) -from .rule_waiting_room_create_waiting_room_rule_response import ( - RuleWaitingRoomCreateWaitingRoomRuleResponse as RuleWaitingRoomCreateWaitingRoomRuleResponse, +from .rule_waiting_room_replace_waiting_room_rules_response import ( + RuleWaitingRoomReplaceWaitingRoomRulesResponse as RuleWaitingRoomReplaceWaitingRoomRulesResponse, +) +from .rule_update_params import RuleUpdateParams as RuleUpdateParams +from .rule_waiting_room_create_waiting_room_rule_params import ( + RuleWaitingRoomCreateWaitingRoomRuleParams as RuleWaitingRoomCreateWaitingRoomRuleParams, ) from .rule_waiting_room_replace_waiting_room_rules_params import ( RuleWaitingRoomReplaceWaitingRoomRulesParams as RuleWaitingRoomReplaceWaitingRoomRulesParams, @@ -39,6 +38,7 @@ from .status_waiting_room_get_waiting_room_status_response import ( StatusWaitingRoomGetWaitingRoomStatusResponse as StatusWaitingRoomGetWaitingRoomStatusResponse, ) -from .rule_waiting_room_replace_waiting_room_rules_response import ( - RuleWaitingRoomReplaceWaitingRoomRulesResponse as RuleWaitingRoomReplaceWaitingRoomRulesResponse, -) +from .waitingroom_zone_settings_response import WaitingroomZoneSettingsResponse as WaitingroomZoneSettingsResponse +from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .setting_update_params import SettingUpdateParams as SettingUpdateParams diff --git a/src/cloudflare/types/waiting_rooms/event_delete_response.py b/src/cloudflare/types/waiting_rooms/event_delete_response.py index d5361dbe022..51131b992c3 100644 --- a/src/cloudflare/types/waiting_rooms/event_delete_response.py +++ b/src/cloudflare/types/waiting_rooms/event_delete_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["EventDeleteResponse"] diff --git a/src/cloudflare/types/waiting_rooms/event_get_response.py b/src/cloudflare/types/waiting_rooms/event_get_response.py index 383b52619fc..8e771f4fd47 100644 --- a/src/cloudflare/types/waiting_rooms/event_get_response.py +++ b/src/cloudflare/types/waiting_rooms/event_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["EventGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/event_update_params.py b/src/cloudflare/types/waiting_rooms/event_update_params.py index 2c35151f21a..e9aca1a872f 100644 --- a/src/cloudflare/types/waiting_rooms/event_update_params.py +++ b/src/cloudflare/types/waiting_rooms/event_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["EventUpdateParams"] diff --git a/src/cloudflare/types/waiting_rooms/event_update_response.py b/src/cloudflare/types/waiting_rooms/event_update_response.py index cbc05d746e7..f5c6340a42a 100644 --- a/src/cloudflare/types/waiting_rooms/event_update_response.py +++ b/src/cloudflare/types/waiting_rooms/event_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["EventUpdateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_params.py b/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_params.py index 0dc3e8edd07..2d32bf89fa9 100644 --- a/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_params.py +++ b/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Optional -from typing_extensions import Required, 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 ...types import shared_params __all__ = ["EventWaitingRoomCreateEventParams"] diff --git a/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_response.py b/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_response.py index f4b83e53229..9069aa8a8e7 100644 --- a/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_response.py +++ b/src/cloudflare/types/waiting_rooms/event_waiting_room_create_event_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["EventWaitingRoomCreateEventResponse"] diff --git a/src/cloudflare/types/waiting_rooms/event_waiting_room_list_events_response.py b/src/cloudflare/types/waiting_rooms/event_waiting_room_list_events_response.py index f60a76397be..513d612f4cd 100644 --- a/src/cloudflare/types/waiting_rooms/event_waiting_room_list_events_response.py +++ b/src/cloudflare/types/waiting_rooms/event_waiting_room_list_events_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["EventWaitingRoomListEventsResponse", "EventWaitingRoomListEventsResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/events/detail_waiting_room_preview_active_event_details_response.py b/src/cloudflare/types/waiting_rooms/events/detail_waiting_room_preview_active_event_details_response.py index db2faed8272..346bed60ffb 100644 --- a/src/cloudflare/types/waiting_rooms/events/detail_waiting_room_preview_active_event_details_response.py +++ b/src/cloudflare/types/waiting_rooms/events/detail_waiting_room_preview_active_event_details_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 ....types import shared __all__ = ["DetailWaitingRoomPreviewActiveEventDetailsResponse"] diff --git a/src/cloudflare/types/waiting_rooms/preview_create_params.py b/src/cloudflare/types/waiting_rooms/preview_create_params.py index 8b9e92cddc8..5270e46c606 100644 --- a/src/cloudflare/types/waiting_rooms/preview_create_params.py +++ b/src/cloudflare/types/waiting_rooms/preview_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PreviewCreateParams"] diff --git a/src/cloudflare/types/waiting_rooms/preview_create_response.py b/src/cloudflare/types/waiting_rooms/preview_create_response.py index be960838401..e7114471ea3 100644 --- a/src/cloudflare/types/waiting_rooms/preview_create_response.py +++ b/src/cloudflare/types/waiting_rooms/preview_create_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["PreviewCreateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/rule_delete_response.py b/src/cloudflare/types/waiting_rooms/rule_delete_response.py index 1b24c35be33..15660d0a6e6 100644 --- a/src/cloudflare/types/waiting_rooms/rule_delete_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ...types import shared __all__ = ["RuleDeleteResponse", "RuleDeleteResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/rule_update_params.py b/src/cloudflare/types/waiting_rooms/rule_update_params.py index 72f89f6b8cb..cd097721a7d 100644 --- a/src/cloudflare/types/waiting_rooms/rule_update_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Union -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["RuleUpdateParams", "Position", "PositionIndex", "PositionBefore", "PositionAfter"] diff --git a/src/cloudflare/types/waiting_rooms/rule_update_response.py b/src/cloudflare/types/waiting_rooms/rule_update_response.py index e947a9d5267..1dd1cacde22 100644 --- a/src/cloudflare/types/waiting_rooms/rule_update_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ...types import shared __all__ = ["RuleUpdateResponse", "RuleUpdateResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_params.py b/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_params.py index 6c65d78fe10..eda16880c9d 100644 --- a/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["RuleWaitingRoomCreateWaitingRoomRuleParams"] diff --git a/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_response.py b/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_response.py index 3420c3eeebc..dc65ade7f53 100644 --- a/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_waiting_room_create_waiting_room_rule_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ...types import shared __all__ = ["RuleWaitingRoomCreateWaitingRoomRuleResponse", "RuleWaitingRoomCreateWaitingRoomRuleResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/rule_waiting_room_list_waiting_room_rules_response.py b/src/cloudflare/types/waiting_rooms/rule_waiting_room_list_waiting_room_rules_response.py index 9fc2e1992f3..041d79cd7e5 100644 --- a/src/cloudflare/types/waiting_rooms/rule_waiting_room_list_waiting_room_rules_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_waiting_room_list_waiting_room_rules_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ...types import shared __all__ = ["RuleWaitingRoomListWaitingRoomRulesResponse", "RuleWaitingRoomListWaitingRoomRulesResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_params.py b/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_params.py index a6f06769e0e..214457e5d1d 100644 --- a/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_params.py +++ b/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 ...types import shared_params __all__ = ["RuleWaitingRoomReplaceWaitingRoomRulesParams", "Body"] diff --git a/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_response.py b/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_response.py index 3747ed5cd9c..997d362328f 100644 --- a/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_response.py +++ b/src/cloudflare/types/waiting_rooms/rule_waiting_room_replace_waiting_room_rules_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional -from datetime import datetime +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 +from ...types import shared __all__ = ["RuleWaitingRoomReplaceWaitingRoomRulesResponse", "RuleWaitingRoomReplaceWaitingRoomRulesResponseItem"] diff --git a/src/cloudflare/types/waiting_rooms/setting_get_response.py b/src/cloudflare/types/waiting_rooms/setting_get_response.py index ffd8e3eee3a..fcbaa72214c 100644 --- a/src/cloudflare/types/waiting_rooms/setting_get_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __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 099e859e568..3a8d8cbcc73 100644 --- a/src/cloudflare/types/waiting_rooms/setting_update_params.py +++ b/src/cloudflare/types/waiting_rooms/setting_update_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __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 6bb5d58ce5b..49678aeb9e2 100644 --- a/src/cloudflare/types/waiting_rooms/setting_update_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/waiting_rooms/status_waiting_room_get_waiting_room_status_response.py b/src/cloudflare/types/waiting_rooms/status_waiting_room_get_waiting_room_status_response.py index b0b42ca6bd6..940413689d9 100644 --- a/src/cloudflare/types/waiting_rooms/status_waiting_room_get_waiting_room_status_response.py +++ b/src/cloudflare/types/waiting_rooms/status_waiting_room_get_waiting_room_status_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from ...types import shared __all__ = ["StatusWaitingRoomGetWaitingRoomStatusResponse"] diff --git a/src/cloudflare/types/waiting_rooms/waitingroom_zone_settings_response.py b/src/cloudflare/types/waiting_rooms/waitingroom_zone_settings_response.py index df4cb6c9cd0..fc8dd0585ca 100644 --- a/src/cloudflare/types/waiting_rooms/waitingroom_zone_settings_response.py +++ b/src/cloudflare/types/waiting_rooms/waitingroom_zone_settings_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["WaitingroomZoneSettingsResponse", "Result"] diff --git a/src/cloudflare/types/warp_connector_create_params.py b/src/cloudflare/types/warp_connector_create_params.py index 53f22671270..3fc39ffc6b0 100644 --- a/src/cloudflare/types/warp_connector_create_params.py +++ b/src/cloudflare/types/warp_connector_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["WarpConnectorCreateParams"] diff --git a/src/cloudflare/types/warp_connector_create_response.py b/src/cloudflare/types/warp_connector_create_response.py index b41db8337c5..8f45f5abc4f 100644 --- a/src/cloudflare/types/warp_connector_create_response.py +++ b/src/cloudflare/types/warp_connector_create_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "WarpConnectorCreateResponse", diff --git a/src/cloudflare/types/warp_connector_delete_params.py b/src/cloudflare/types/warp_connector_delete_params.py index e98f4c6fe68..598296401b6 100644 --- a/src/cloudflare/types/warp_connector_delete_params.py +++ b/src/cloudflare/types/warp_connector_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["WarpConnectorDeleteParams"] diff --git a/src/cloudflare/types/warp_connector_delete_response.py b/src/cloudflare/types/warp_connector_delete_response.py index 711486863e4..5a242a0906a 100644 --- a/src/cloudflare/types/warp_connector_delete_response.py +++ b/src/cloudflare/types/warp_connector_delete_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "WarpConnectorDeleteResponse", diff --git a/src/cloudflare/types/warp_connector_get_response.py b/src/cloudflare/types/warp_connector_get_response.py index 335b09733ad..55ac6db6965 100644 --- a/src/cloudflare/types/warp_connector_get_response.py +++ b/src/cloudflare/types/warp_connector_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "WarpConnectorGetResponse", diff --git a/src/cloudflare/types/warp_connector_list_params.py b/src/cloudflare/types/warp_connector_list_params.py index 75553b17a4f..61789aa9b29 100644 --- a/src/cloudflare/types/warp_connector_list_params.py +++ b/src/cloudflare/types/warp_connector_list_params.py @@ -2,12 +2,20 @@ 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 +from ..types import shared_params + __all__ = ["WarpConnectorListParams"] diff --git a/src/cloudflare/types/warp_connector_list_response.py b/src/cloudflare/types/warp_connector_list_response.py index 7f018b27e16..7259f7ed021 100644 --- a/src/cloudflare/types/warp_connector_list_response.py +++ b/src/cloudflare/types/warp_connector_list_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "WarpConnectorListResponse", diff --git a/src/cloudflare/types/warp_connector_update_params.py b/src/cloudflare/types/warp_connector_update_params.py index ab97f1db9be..40668f0eb8a 100644 --- a/src/cloudflare/types/warp_connector_update_params.py +++ b/src/cloudflare/types/warp_connector_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ..types import shared_params __all__ = ["WarpConnectorUpdateParams"] diff --git a/src/cloudflare/types/warp_connector_update_response.py b/src/cloudflare/types/warp_connector_update_response.py index 7d8f22d47fd..738b2dc5654 100644 --- a/src/cloudflare/types/warp_connector_update_response.py +++ b/src/cloudflare/types/warp_connector_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional +from typing import Optional, List + 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 ..types import shared __all__ = [ "WarpConnectorUpdateResponse", diff --git a/src/cloudflare/types/web3s/__init__.py b/src/cloudflare/types/web3s/__init__.py index 31d60b0d1b8..878b34a05d9 100644 --- a/src/cloudflare/types/web3s/__init__.py +++ b/src/cloudflare/types/web3s/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .hostname_get_response import HostnameGetResponse as HostnameGetResponse -from .hostname_update_params import HostnameUpdateParams as HostnameUpdateParams -from .hostname_delete_response import HostnameDeleteResponse as HostnameDeleteResponse from .hostname_update_response import HostnameUpdateResponse as HostnameUpdateResponse -from .hostname_web3_hostname_create_web3_hostname_params import ( - HostnameWeb3HostnameCreateWeb3HostnameParams as HostnameWeb3HostnameCreateWeb3HostnameParams, +from .hostname_delete_response import HostnameDeleteResponse as HostnameDeleteResponse +from .hostname_get_response import HostnameGetResponse as HostnameGetResponse +from .hostname_web3_hostname_create_web3_hostname_response import ( + HostnameWeb3HostnameCreateWeb3HostnameResponse as HostnameWeb3HostnameCreateWeb3HostnameResponse, ) from .hostname_web3_hostname_list_web3_hostnames_response import ( HostnameWeb3HostnameListWeb3HostnamesResponse as HostnameWeb3HostnameListWeb3HostnamesResponse, ) -from .hostname_web3_hostname_create_web3_hostname_response import ( - HostnameWeb3HostnameCreateWeb3HostnameResponse as HostnameWeb3HostnameCreateWeb3HostnameResponse, +from .hostname_update_params import HostnameUpdateParams as HostnameUpdateParams +from .hostname_web3_hostname_create_web3_hostname_params import ( + HostnameWeb3HostnameCreateWeb3HostnameParams as HostnameWeb3HostnameCreateWeb3HostnameParams, ) diff --git a/src/cloudflare/types/web3s/hostname_delete_response.py b/src/cloudflare/types/web3s/hostname_delete_response.py index 532761ac437..ca966bda503 100644 --- a/src/cloudflare/types/web3s/hostname_delete_response.py +++ b/src/cloudflare/types/web3s/hostname_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["HostnameDeleteResponse"] diff --git a/src/cloudflare/types/web3s/hostname_get_response.py b/src/cloudflare/types/web3s/hostname_get_response.py index 3621c423da4..a4f72f8830f 100644 --- a/src/cloudflare/types/web3s/hostname_get_response.py +++ b/src/cloudflare/types/web3s/hostname_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["HostnameGetResponse"] diff --git a/src/cloudflare/types/web3s/hostname_update_params.py b/src/cloudflare/types/web3s/hostname_update_params.py index 515e8475a39..cb6f81508f9 100644 --- a/src/cloudflare/types/web3s/hostname_update_params.py +++ b/src/cloudflare/types/web3s/hostname_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["HostnameUpdateParams"] diff --git a/src/cloudflare/types/web3s/hostname_update_response.py b/src/cloudflare/types/web3s/hostname_update_response.py index f636bd25938..647e1e2a561 100644 --- a/src/cloudflare/types/web3s/hostname_update_response.py +++ b/src/cloudflare/types/web3s/hostname_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["HostnameUpdateResponse"] diff --git a/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_params.py b/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_params.py index 8f2322060a0..8563911cfe8 100644 --- a/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_params.py +++ b/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ...types import shared_params __all__ = ["HostnameWeb3HostnameCreateWeb3HostnameParams"] diff --git a/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_response.py b/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_response.py index b9dcc69dc03..d453e04ab73 100644 --- a/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_response.py +++ b/src/cloudflare/types/web3s/hostname_web3_hostname_create_web3_hostname_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ...types import shared __all__ = ["HostnameWeb3HostnameCreateWeb3HostnameResponse"] diff --git a/src/cloudflare/types/web3s/hostname_web3_hostname_list_web3_hostnames_response.py b/src/cloudflare/types/web3s/hostname_web3_hostname_list_web3_hostnames_response.py index 6032b7312d4..dfa4f8bd207 100644 --- a/src/cloudflare/types/web3s/hostname_web3_hostname_list_web3_hostnames_response.py +++ b/src/cloudflare/types/web3s/hostname_web3_hostname_list_web3_hostnames_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 ...types import shared __all__ = ["HostnameWeb3HostnameListWeb3HostnamesResponse", "HostnameWeb3HostnameListWeb3HostnamesResponseItem"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/__init__.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/__init__.py index b76c8c53103..6aec0915abc 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/__init__.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/__init__.py @@ -2,12 +2,12 @@ from __future__ import annotations -from .content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params import ( - ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListParams as ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListParams, +from .content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response import ( + ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse as ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, ) from .content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_response import ( ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse as ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, ) -from .content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response import ( - ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse as ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, +from .content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params import ( + ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListParams as ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListParams, ) diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response.py index aed854fb464..a92d4be9a79 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_ipfs_universal_path_gateway_content_list_details_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from .....types import shared __all__ = ["ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params.py index bca25838b1a..b5770e94407 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required, Literal + from typing import Iterable -from typing_extensions import Literal, Required, 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 .....types import shared_params __all__ = ["ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListParams", "Entry"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_response.py index f7d1c7a8239..9d8f71f6643 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. 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 +from .....types import shared __all__ = ["ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py index d558a724d7d..ea6cc68a57f 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/__init__.py @@ -2,16 +2,16 @@ from __future__ import annotations -from .entry_get_response import EntryGetResponse as EntryGetResponse -from .entry_update_params import EntryUpdateParams as EntryUpdateParams -from .entry_delete_response import EntryDeleteResponse as EntryDeleteResponse from .entry_update_response import EntryUpdateResponse as EntryUpdateResponse -from .entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params import ( - EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryParams as EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryParams, -) +from .entry_delete_response import EntryDeleteResponse as EntryDeleteResponse +from .entry_get_response import EntryGetResponse as EntryGetResponse from .entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_response import ( EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse as EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, ) from .entry_web3_hostname_list_ipfs_universal_path_gateway_content_list_entries_response import ( EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse as EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, ) +from .entry_update_params import EntryUpdateParams as EntryUpdateParams +from .entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params import ( + EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryParams as EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryParams, +) diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py index e9832df860a..6842bbeee2f 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ......_models import BaseModel +from ......types import shared __all__ = ["EntryDeleteResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py index 2090ded638e..a847138cb7d 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_get_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ......types import shared __all__ = ["EntryGetResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py index 7e67e1ce363..4672b08c789 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ......types import shared_params __all__ = ["EntryUpdateParams"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py index 78a731657c1..8f89a4362f1 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_update_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ......types import shared __all__ = ["EntryUpdateResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params.py index 004893f4e01..e29d5c3b399 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ......types import shared_params __all__ = ["EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryParams"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_response.py index aa867fbb152..3523796140a 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. 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 ......types import shared __all__ = ["EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse"] diff --git a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_list_ipfs_universal_path_gateway_content_list_entries_response.py b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_list_ipfs_universal_path_gateway_content_list_entries_response.py index 5189b32f9c4..7736ee08682 100644 --- a/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_list_ipfs_universal_path_gateway_content_list_entries_response.py +++ b/src/cloudflare/types/web3s/hostnames/ipfs_universal_paths/content_lists/entry_web3_hostname_list_ipfs_universal_path_gateway_content_list_entries_response.py @@ -1,10 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, List + 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 ......types import shared __all__ = ["EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse", "Entry"] diff --git a/src/cloudflare/types/worker_domain_get_response.py b/src/cloudflare/types/worker_domain_get_response.py index 4688f0daf72..871a716f601 100644 --- a/src/cloudflare/types/worker_domain_get_response.py +++ b/src/cloudflare/types/worker_domain_get_response.py @@ -2,7 +2,11 @@ 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 +from ..types import shared __all__ = ["WorkerDomainGetResponse"] diff --git a/src/cloudflare/types/worker_scripts/__init__.py b/src/cloudflare/types/worker_scripts/__init__.py index db8e8fe90cd..4173cc9c715 100644 --- a/src/cloudflare/types/worker_scripts/__init__.py +++ b/src/cloudflare/types/worker_scripts/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .content_update_params import ContentUpdateParams as ContentUpdateParams -from .setting_update_params import SettingUpdateParams as SettingUpdateParams from .content_update_response import ContentUpdateResponse as ContentUpdateResponse +from .content_update_params import ContentUpdateParams as ContentUpdateParams from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .setting_update_params import SettingUpdateParams as SettingUpdateParams diff --git a/src/cloudflare/types/worker_scripts/content_update_params.py b/src/cloudflare/types/worker_scripts/content_update_params.py index 3cd42c6abad..41724143341 100644 --- a/src/cloudflare/types/worker_scripts/content_update_params.py +++ b/src/cloudflare/types/worker_scripts/content_update_params.py @@ -2,11 +2,19 @@ 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 typing import List, Union, Dict, Optional +from typing_extensions import Literal, TypedDict, Required, Annotated from ..._types import FileTypes from ..._utils import PropertyInfo +from ...types import shared_params __all__ = ["ContentUpdateParams", "Metadata"] diff --git a/src/cloudflare/types/worker_scripts/content_update_response.py b/src/cloudflare/types/worker_scripts/content_update_response.py index 09ae17e87a1..19be10ddafe 100644 --- a/src/cloudflare/types/worker_scripts/content_update_response.py +++ b/src/cloudflare/types/worker_scripts/content_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ContentUpdateResponse", "TailConsumer"] diff --git a/src/cloudflare/types/worker_scripts/setting_get_response.py b/src/cloudflare/types/worker_scripts/setting_get_response.py index 71c8a035f8c..27e12032ea5 100644 --- a/src/cloudflare/types/worker_scripts/setting_get_response.py +++ b/src/cloudflare/types/worker_scripts/setting_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "SettingGetResponse", diff --git a/src/cloudflare/types/worker_scripts/setting_update_params.py b/src/cloudflare/types/worker_scripts/setting_update_params.py index 1062b40b077..b825edb8392 100644 --- a/src/cloudflare/types/worker_scripts/setting_update_params.py +++ b/src/cloudflare/types/worker_scripts/setting_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, 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 ...types import shared_params __all__ = [ "SettingUpdateParams", diff --git a/src/cloudflare/types/worker_scripts/setting_update_response.py b/src/cloudflare/types/worker_scripts/setting_update_response.py index 20342de9cba..7e422a46f86 100644 --- a/src/cloudflare/types/worker_scripts/setting_update_response.py +++ b/src/cloudflare/types/worker_scripts/setting_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ...types import shared __all__ = [ "SettingUpdateResponse", diff --git a/src/cloudflare/types/workers/__init__.py b/src/cloudflare/types/workers/__init__.py index b8c38581fb9..852e1f526ab 100644 --- a/src/cloudflare/types/workers/__init__.py +++ b/src/cloudflare/types/workers/__init__.py @@ -2,41 +2,48 @@ from __future__ import annotations -from .queue_get_response import QueueGetResponse as QueueGetResponse -from .route_get_response import RouteGetResponse as RouteGetResponse -from .domain_get_response import DomainGetResponse as DomainGetResponse -from .queue_list_response import QueueListResponse as QueueListResponse -from .queue_update_params import QueueUpdateParams as QueueUpdateParams -from .route_update_params import RouteUpdateParams as RouteUpdateParams -from .filter_update_params import FilterUpdateParams as FilterUpdateParams -from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams +from .script_create_response import ScriptCreateResponse as ScriptCreateResponse +from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse from .script_list_response import ScriptListResponse as ScriptListResponse from .script_update_params import ScriptUpdateParams as ScriptUpdateParams -from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse -from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse -from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse -from .route_update_response import RouteUpdateResponse as RouteUpdateResponse -from .filter_delete_response import FilterDeleteResponse as FilterDeleteResponse +from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams from .filter_update_response import FilterUpdateResponse as FilterUpdateResponse -from .script_create_response import ScriptCreateResponse as ScriptCreateResponse -from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse -from .queue_queue_create_queue_params import QueueQueueCreateQueueParams as QueueQueueCreateQueueParams -from .queue_queue_create_queue_response import QueueQueueCreateQueueResponse as QueueQueueCreateQueueResponse -from .deployments_by_script_list_response import DeploymentsByScriptListResponse as DeploymentsByScriptListResponse -from .deployments_by_script_detail_response import ( - DeploymentsByScriptDetailResponse as DeploymentsByScriptDetailResponse, +from .filter_delete_response import FilterDeleteResponse as FilterDeleteResponse +from .filter_worker_filters_deprecated_create_filter_response import ( + FilterWorkerFiltersDeprecatedCreateFilterResponse as FilterWorkerFiltersDeprecatedCreateFilterResponse, ) -from .route_worker_routes_create_route_params import ( - RouteWorkerRoutesCreateRouteParams as RouteWorkerRoutesCreateRouteParams, +from .filter_worker_filters_deprecated_list_filters_response import ( + FilterWorkerFiltersDeprecatedListFiltersResponse as FilterWorkerFiltersDeprecatedListFiltersResponse, ) -from .domain_worker_domain_list_domains_params import ( - DomainWorkerDomainListDomainsParams as DomainWorkerDomainListDomainsParams, +from .filter_update_params import FilterUpdateParams as FilterUpdateParams +from .filter_worker_filters_deprecated_create_filter_params import ( + FilterWorkerFiltersDeprecatedCreateFilterParams as FilterWorkerFiltersDeprecatedCreateFilterParams, +) +from .route_update_response import RouteUpdateResponse as RouteUpdateResponse +from .route_delete_response import RouteDeleteResponse as RouteDeleteResponse +from .route_get_response import RouteGetResponse as RouteGetResponse +from .route_worker_routes_create_route_response import ( + RouteWorkerRoutesCreateRouteResponse as RouteWorkerRoutesCreateRouteResponse, ) from .route_worker_routes_list_routes_response import ( RouteWorkerRoutesListRoutesResponse as RouteWorkerRoutesListRoutesResponse, ) -from .route_worker_routes_create_route_response import ( - RouteWorkerRoutesCreateRouteResponse as RouteWorkerRoutesCreateRouteResponse, +from .route_update_params import RouteUpdateParams as RouteUpdateParams +from .route_worker_routes_create_route_params import ( + RouteWorkerRoutesCreateRouteParams as RouteWorkerRoutesCreateRouteParams, +) +from .account_setting_worker_account_settings_create_worker_account_settings_response import ( + AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse as AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, +) +from .account_setting_worker_account_settings_fetch_worker_account_settings_response import ( + AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse as AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, +) +from .account_setting_worker_account_settings_create_worker_account_settings_params import ( + AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsParams as AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsParams, +) +from .domain_get_response import DomainGetResponse as DomainGetResponse +from .domain_worker_domain_attach_to_domain_response import ( + DomainWorkerDomainAttachToDomainResponse as DomainWorkerDomainAttachToDomainResponse, ) from .domain_worker_domain_list_domains_response import ( DomainWorkerDomainListDomainsResponse as DomainWorkerDomainListDomainsResponse, @@ -44,8 +51,18 @@ from .domain_worker_domain_attach_to_domain_params import ( DomainWorkerDomainAttachToDomainParams as DomainWorkerDomainAttachToDomainParams, ) -from .domain_worker_domain_attach_to_domain_response import ( - DomainWorkerDomainAttachToDomainResponse as DomainWorkerDomainAttachToDomainResponse, +from .domain_worker_domain_list_domains_params import ( + DomainWorkerDomainListDomainsParams as DomainWorkerDomainListDomainsParams, +) +from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse +from .queue_list_response import QueueListResponse as QueueListResponse +from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse +from .queue_get_response import QueueGetResponse as QueueGetResponse +from .queue_queue_create_queue_response import QueueQueueCreateQueueResponse as QueueQueueCreateQueueResponse +from .queue_update_params import QueueUpdateParams as QueueUpdateParams +from .queue_queue_create_queue_params import QueueQueueCreateQueueParams as QueueQueueCreateQueueParams +from .subdomain_worker_subdomain_create_subdomain_response import ( + SubdomainWorkerSubdomainCreateSubdomainResponse as SubdomainWorkerSubdomainCreateSubdomainResponse, ) from .subdomain_worker_subdomain_get_subdomain_response import ( SubdomainWorkerSubdomainGetSubdomainResponse as SubdomainWorkerSubdomainGetSubdomainResponse, @@ -53,24 +70,7 @@ from .subdomain_worker_subdomain_create_subdomain_params import ( SubdomainWorkerSubdomainCreateSubdomainParams as SubdomainWorkerSubdomainCreateSubdomainParams, ) -from .subdomain_worker_subdomain_create_subdomain_response import ( - SubdomainWorkerSubdomainCreateSubdomainResponse as SubdomainWorkerSubdomainCreateSubdomainResponse, -) -from .filter_worker_filters_deprecated_create_filter_params import ( - FilterWorkerFiltersDeprecatedCreateFilterParams as FilterWorkerFiltersDeprecatedCreateFilterParams, -) -from .filter_worker_filters_deprecated_list_filters_response import ( - FilterWorkerFiltersDeprecatedListFiltersResponse as FilterWorkerFiltersDeprecatedListFiltersResponse, -) -from .filter_worker_filters_deprecated_create_filter_response import ( - FilterWorkerFiltersDeprecatedCreateFilterResponse as FilterWorkerFiltersDeprecatedCreateFilterResponse, -) -from .account_setting_worker_account_settings_create_worker_account_settings_params import ( - AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsParams as AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsParams, -) -from .account_setting_worker_account_settings_fetch_worker_account_settings_response import ( - AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse as AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, -) -from .account_setting_worker_account_settings_create_worker_account_settings_response import ( - AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse as AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, +from .deployments_by_script_list_response import DeploymentsByScriptListResponse as DeploymentsByScriptListResponse +from .deployments_by_script_detail_response import ( + DeploymentsByScriptDetailResponse as DeploymentsByScriptDetailResponse, ) diff --git a/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_params.py b/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_params.py index 2421d2d982f..7e1a1af75bd 100644 --- a/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_params.py +++ b/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsParams"] diff --git a/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_response.py b/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_response.py index 5cb09274c06..63444c87e94 100644 --- a/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_response.py +++ b/src/cloudflare/types/workers/account_setting_worker_account_settings_create_worker_account_settings_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse"] diff --git a/src/cloudflare/types/workers/account_setting_worker_account_settings_fetch_worker_account_settings_response.py b/src/cloudflare/types/workers/account_setting_worker_account_settings_fetch_worker_account_settings_response.py index fc92d0fa455..f87e63ba86e 100644 --- a/src/cloudflare/types/workers/account_setting_worker_account_settings_fetch_worker_account_settings_response.py +++ b/src/cloudflare/types/workers/account_setting_worker_account_settings_fetch_worker_account_settings_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse"] diff --git a/src/cloudflare/types/workers/deployments/by_script_worker_deployments_list_deployments_response.py b/src/cloudflare/types/workers/deployments/by_script_worker_deployments_list_deployments_response.py index 0f95e56e1d7..d619bb54150 100644 --- a/src/cloudflare/types/workers/deployments/by_script_worker_deployments_list_deployments_response.py +++ b/src/cloudflare/types/workers/deployments/by_script_worker_deployments_list_deployments_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["ByScriptWorkerDeploymentsListDeploymentsResponse"] diff --git a/src/cloudflare/types/workers/deployments/by_scripts/detail_get_response.py b/src/cloudflare/types/workers/deployments/by_scripts/detail_get_response.py index 2982e5e3286..1c5344debd5 100644 --- a/src/cloudflare/types/workers/deployments/by_scripts/detail_get_response.py +++ b/src/cloudflare/types/workers/deployments/by_scripts/detail_get_response.py @@ -2,7 +2,11 @@ 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 +from .....types import shared __all__ = ["DetailGetResponse"] diff --git a/src/cloudflare/types/workers/deployments_by_script_detail_response.py b/src/cloudflare/types/workers/deployments_by_script_detail_response.py index ac62bfd7970..7531da0ecc2 100644 --- a/src/cloudflare/types/workers/deployments_by_script_detail_response.py +++ b/src/cloudflare/types/workers/deployments_by_script_detail_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DeploymentsByScriptDetailResponse"] diff --git a/src/cloudflare/types/workers/deployments_by_script_list_response.py b/src/cloudflare/types/workers/deployments_by_script_list_response.py index cb682ee7818..0e3ef8c6969 100644 --- a/src/cloudflare/types/workers/deployments_by_script_list_response.py +++ b/src/cloudflare/types/workers/deployments_by_script_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["DeploymentsByScriptListResponse"] diff --git a/src/cloudflare/types/workers/domain_get_response.py b/src/cloudflare/types/workers/domain_get_response.py index a97634efed2..bcbc23f6b1d 100644 --- a/src/cloudflare/types/workers/domain_get_response.py +++ b/src/cloudflare/types/workers/domain_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DomainGetResponse"] diff --git a/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_params.py b/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_params.py index 66534e24584..68a691bd4d8 100644 --- a/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_params.py +++ b/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["DomainWorkerDomainAttachToDomainParams"] diff --git a/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_response.py b/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_response.py index 471d1016efc..cd8aa1249e3 100644 --- a/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_response.py +++ b/src/cloudflare/types/workers/domain_worker_domain_attach_to_domain_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["DomainWorkerDomainAttachToDomainResponse"] diff --git a/src/cloudflare/types/workers/domain_worker_domain_list_domains_params.py b/src/cloudflare/types/workers/domain_worker_domain_list_domains_params.py index 46a8f22c175..7f3f7cfa2f8 100644 --- a/src/cloudflare/types/workers/domain_worker_domain_list_domains_params.py +++ b/src/cloudflare/types/workers/domain_worker_domain_list_domains_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["DomainWorkerDomainListDomainsParams"] diff --git a/src/cloudflare/types/workers/domain_worker_domain_list_domains_response.py b/src/cloudflare/types/workers/domain_worker_domain_list_domains_response.py index a0ac9a08da2..24d8d42d963 100644 --- a/src/cloudflare/types/workers/domain_worker_domain_list_domains_response.py +++ b/src/cloudflare/types/workers/domain_worker_domain_list_domains_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["DomainWorkerDomainListDomainsResponse", "DomainWorkerDomainListDomainsResponseItem"] diff --git a/src/cloudflare/types/workers/durable_objects/namespace_list_response.py b/src/cloudflare/types/workers/durable_objects/namespace_list_response.py index 3f98c8b62d9..b063cf3e45e 100644 --- a/src/cloudflare/types/workers/durable_objects/namespace_list_response.py +++ b/src/cloudflare/types/workers/durable_objects/namespace_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["NamespaceListResponse", "NamespaceListResponseItem"] diff --git a/src/cloudflare/types/workers/durable_objects/namespaces/__init__.py b/src/cloudflare/types/workers/durable_objects/namespaces/__init__.py index 1edc9d3929d..a722625dac2 100644 --- a/src/cloudflare/types/workers/durable_objects/namespaces/__init__.py +++ b/src/cloudflare/types/workers/durable_objects/namespaces/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .object_list_params import ObjectListParams as ObjectListParams from .object_list_response import ObjectListResponse as ObjectListResponse +from .object_list_params import ObjectListParams as ObjectListParams diff --git a/src/cloudflare/types/workers/durable_objects/namespaces/object_list_params.py b/src/cloudflare/types/workers/durable_objects/namespaces/object_list_params.py index 3579e294224..af2c45e8bee 100644 --- a/src/cloudflare/types/workers/durable_objects/namespaces/object_list_params.py +++ b/src/cloudflare/types/workers/durable_objects/namespaces/object_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 .....types import shared_params __all__ = ["ObjectListParams"] diff --git a/src/cloudflare/types/workers/durable_objects/namespaces/object_list_response.py b/src/cloudflare/types/workers/durable_objects/namespaces/object_list_response.py index 61c4e048fd1..fe6a93248c7 100644 --- a/src/cloudflare/types/workers/durable_objects/namespaces/object_list_response.py +++ b/src/cloudflare/types/workers/durable_objects/namespaces/object_list_response.py @@ -1,10 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from .....types import shared __all__ = ["ObjectListResponse", "ObjectListResponseItem"] diff --git a/src/cloudflare/types/workers/filter_delete_response.py b/src/cloudflare/types/workers/filter_delete_response.py index 224dc819d8e..69c968eb02b 100644 --- a/src/cloudflare/types/workers/filter_delete_response.py +++ b/src/cloudflare/types/workers/filter_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["FilterDeleteResponse"] diff --git a/src/cloudflare/types/workers/filter_update_params.py b/src/cloudflare/types/workers/filter_update_params.py index 2753cbe6cfd..7086d2cc2f2 100644 --- a/src/cloudflare/types/workers/filter_update_params.py +++ b/src/cloudflare/types/workers/filter_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["FilterUpdateParams"] diff --git a/src/cloudflare/types/workers/filter_update_response.py b/src/cloudflare/types/workers/filter_update_response.py index b18956509f3..ce81dfb4467 100644 --- a/src/cloudflare/types/workers/filter_update_response.py +++ b/src/cloudflare/types/workers/filter_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["FilterUpdateResponse"] diff --git a/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_params.py b/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_params.py index 260b87b413f..6d1ed28f999 100644 --- a/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_params.py +++ b/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["FilterWorkerFiltersDeprecatedCreateFilterParams"] diff --git a/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_response.py b/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_response.py index 64662ba62d8..856302bfc61 100644 --- a/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_response.py +++ b/src/cloudflare/types/workers/filter_worker_filters_deprecated_create_filter_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["FilterWorkerFiltersDeprecatedCreateFilterResponse"] diff --git a/src/cloudflare/types/workers/filter_worker_filters_deprecated_list_filters_response.py b/src/cloudflare/types/workers/filter_worker_filters_deprecated_list_filters_response.py index 5f0ca225492..8cf9ea4164c 100644 --- a/src/cloudflare/types/workers/filter_worker_filters_deprecated_list_filters_response.py +++ b/src/cloudflare/types/workers/filter_worker_filters_deprecated_list_filters_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["FilterWorkerFiltersDeprecatedListFiltersResponse", "FilterWorkerFiltersDeprecatedListFiltersResponseItem"] diff --git a/src/cloudflare/types/workers/queue_delete_response.py b/src/cloudflare/types/workers/queue_delete_response.py index 69fc8b46492..19ec4683b4b 100644 --- a/src/cloudflare/types/workers/queue_delete_response.py +++ b/src/cloudflare/types/workers/queue_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ...types import shared __all__ = ["QueueDeleteResponse"] diff --git a/src/cloudflare/types/workers/queue_get_response.py b/src/cloudflare/types/workers/queue_get_response.py index 3fc3b8e6d21..0b16a558c9c 100644 --- a/src/cloudflare/types/workers/queue_get_response.py +++ b/src/cloudflare/types/workers/queue_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["QueueGetResponse"] diff --git a/src/cloudflare/types/workers/queue_list_response.py b/src/cloudflare/types/workers/queue_list_response.py index 0f98ed30e68..07de674fdee 100644 --- a/src/cloudflare/types/workers/queue_list_response.py +++ b/src/cloudflare/types/workers/queue_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ...types import shared __all__ = ["QueueListResponse", "QueueListResponseItem"] diff --git a/src/cloudflare/types/workers/queue_queue_create_queue_params.py b/src/cloudflare/types/workers/queue_queue_create_queue_params.py index 98541daea70..3b19a052df8 100644 --- a/src/cloudflare/types/workers/queue_queue_create_queue_params.py +++ b/src/cloudflare/types/workers/queue_queue_create_queue_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["QueueQueueCreateQueueParams"] diff --git a/src/cloudflare/types/workers/queue_queue_create_queue_response.py b/src/cloudflare/types/workers/queue_queue_create_queue_response.py index 23d139f219c..c2c4a99bdd8 100644 --- a/src/cloudflare/types/workers/queue_queue_create_queue_response.py +++ b/src/cloudflare/types/workers/queue_queue_create_queue_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["QueueQueueCreateQueueResponse"] diff --git a/src/cloudflare/types/workers/queue_update_params.py b/src/cloudflare/types/workers/queue_update_params.py index ee2d98e7a0b..b6941659516 100644 --- a/src/cloudflare/types/workers/queue_update_params.py +++ b/src/cloudflare/types/workers/queue_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["QueueUpdateParams"] diff --git a/src/cloudflare/types/workers/queue_update_response.py b/src/cloudflare/types/workers/queue_update_response.py index 822d7c1781c..ace5daa91a4 100644 --- a/src/cloudflare/types/workers/queue_update_response.py +++ b/src/cloudflare/types/workers/queue_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["QueueUpdateResponse"] diff --git a/src/cloudflare/types/workers/queues/__init__.py b/src/cloudflare/types/workers/queues/__init__.py index 653ef5a07ed..08384d2a7e3 100644 --- a/src/cloudflare/types/workers/queues/__init__.py +++ b/src/cloudflare/types/workers/queues/__init__.py @@ -2,13 +2,13 @@ from __future__ import annotations +from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse from .consumer_list_response import ConsumerListResponse as ConsumerListResponse -from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams from .consumer_delete_response import ConsumerDeleteResponse as ConsumerDeleteResponse -from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse -from .consumer_queue_create_queue_consumer_params import ( - ConsumerQueueCreateQueueConsumerParams as ConsumerQueueCreateQueueConsumerParams, -) from .consumer_queue_create_queue_consumer_response import ( ConsumerQueueCreateQueueConsumerResponse as ConsumerQueueCreateQueueConsumerResponse, ) +from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams +from .consumer_queue_create_queue_consumer_params import ( + ConsumerQueueCreateQueueConsumerParams as ConsumerQueueCreateQueueConsumerParams, +) diff --git a/src/cloudflare/types/workers/queues/consumer_delete_response.py b/src/cloudflare/types/workers/queues/consumer_delete_response.py index 06a3403eb21..a02661775fd 100644 --- a/src/cloudflare/types/workers/queues/consumer_delete_response.py +++ b/src/cloudflare/types/workers/queues/consumer_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["ConsumerDeleteResponse"] diff --git a/src/cloudflare/types/workers/queues/consumer_list_response.py b/src/cloudflare/types/workers/queues/consumer_list_response.py index ce0dbbe5632..76d95c0ae97 100644 --- a/src/cloudflare/types/workers/queues/consumer_list_response.py +++ b/src/cloudflare/types/workers/queues/consumer_list_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +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 +from ....types import shared __all__ = ["ConsumerListResponse", "ConsumerListResponseItem", "ConsumerListResponseItemSettings"] diff --git a/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_params.py b/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_params.py index f1f052a3bb0..574f7952ba3 100644 --- a/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_params.py +++ b/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ConsumerQueueCreateQueueConsumerParams"] diff --git a/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_response.py b/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_response.py index 5c7d84fa651..f0778443f0b 100644 --- a/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_response.py +++ b/src/cloudflare/types/workers/queues/consumer_queue_create_queue_consumer_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ConsumerQueueCreateQueueConsumerResponse", "Settings"] diff --git a/src/cloudflare/types/workers/queues/consumer_update_params.py b/src/cloudflare/types/workers/queues/consumer_update_params.py index 147f8c6c08f..3d9d86cc582 100644 --- a/src/cloudflare/types/workers/queues/consumer_update_params.py +++ b/src/cloudflare/types/workers/queues/consumer_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ConsumerUpdateParams"] diff --git a/src/cloudflare/types/workers/queues/consumer_update_response.py b/src/cloudflare/types/workers/queues/consumer_update_response.py index 093764070b8..08c99bea56f 100644 --- a/src/cloudflare/types/workers/queues/consumer_update_response.py +++ b/src/cloudflare/types/workers/queues/consumer_update_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["ConsumerUpdateResponse", "Settings"] diff --git a/src/cloudflare/types/workers/route_delete_response.py b/src/cloudflare/types/workers/route_delete_response.py index 71f11dcee73..4c59a68dc4e 100644 --- a/src/cloudflare/types/workers/route_delete_response.py +++ b/src/cloudflare/types/workers/route_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["RouteDeleteResponse"] diff --git a/src/cloudflare/types/workers/route_get_response.py b/src/cloudflare/types/workers/route_get_response.py index 094acab8bd5..23e6f9958b9 100644 --- a/src/cloudflare/types/workers/route_get_response.py +++ b/src/cloudflare/types/workers/route_get_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["RouteGetResponse"] diff --git a/src/cloudflare/types/workers/route_update_params.py b/src/cloudflare/types/workers/route_update_params.py index fe1b84dab29..83e5373e775 100644 --- a/src/cloudflare/types/workers/route_update_params.py +++ b/src/cloudflare/types/workers/route_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RouteUpdateParams"] diff --git a/src/cloudflare/types/workers/route_update_response.py b/src/cloudflare/types/workers/route_update_response.py index a2e2a848cd0..4ab422849f7 100644 --- a/src/cloudflare/types/workers/route_update_response.py +++ b/src/cloudflare/types/workers/route_update_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from ..._models import BaseModel +from ...types import shared __all__ = ["RouteUpdateResponse"] diff --git a/src/cloudflare/types/workers/route_worker_routes_create_route_params.py b/src/cloudflare/types/workers/route_worker_routes_create_route_params.py index a923bab7815..95b30944fe9 100644 --- a/src/cloudflare/types/workers/route_worker_routes_create_route_params.py +++ b/src/cloudflare/types/workers/route_worker_routes_create_route_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["RouteWorkerRoutesCreateRouteParams"] diff --git a/src/cloudflare/types/workers/route_worker_routes_create_route_response.py b/src/cloudflare/types/workers/route_worker_routes_create_route_response.py index 93ae53ea4ba..834845aafaa 100644 --- a/src/cloudflare/types/workers/route_worker_routes_create_route_response.py +++ b/src/cloudflare/types/workers/route_worker_routes_create_route_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["RouteWorkerRoutesCreateRouteResponse"] diff --git a/src/cloudflare/types/workers/route_worker_routes_list_routes_response.py b/src/cloudflare/types/workers/route_worker_routes_list_routes_response.py index 78b89411f96..a2f77c8e548 100644 --- a/src/cloudflare/types/workers/route_worker_routes_list_routes_response.py +++ b/src/cloudflare/types/workers/route_worker_routes_list_routes_response.py @@ -1,8 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["RouteWorkerRoutesListRoutesResponse", "RouteWorkerRoutesListRoutesResponseItem"] diff --git a/src/cloudflare/types/workers/script_create_response.py b/src/cloudflare/types/workers/script_create_response.py index ac58b757a4f..5eb1292f390 100644 --- a/src/cloudflare/types/workers/script_create_response.py +++ b/src/cloudflare/types/workers/script_create_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Union +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["ScriptCreateResponse"] diff --git a/src/cloudflare/types/workers/script_delete_params.py b/src/cloudflare/types/workers/script_delete_params.py index 147475eb989..879e3c02186 100644 --- a/src/cloudflare/types/workers/script_delete_params.py +++ b/src/cloudflare/types/workers/script_delete_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["ScriptDeleteParams"] diff --git a/src/cloudflare/types/workers/script_list_response.py b/src/cloudflare/types/workers/script_list_response.py index 62eabae9a9e..9d1e8270628 100644 --- a/src/cloudflare/types/workers/script_list_response.py +++ b/src/cloudflare/types/workers/script_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ScriptListResponse", "ScriptListResponseItem", "ScriptListResponseItemTailConsumer"] diff --git a/src/cloudflare/types/workers/script_update_params.py b/src/cloudflare/types/workers/script_update_params.py index 12d7bf12702..a7bdf8722f7 100644 --- a/src/cloudflare/types/workers/script_update_params.py +++ b/src/cloudflare/types/workers/script_update_params.py @@ -2,11 +2,19 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import TypedDict, Required, Annotated, Literal +from typing import List, Iterable, Union + +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 +from ...types import shared_params __all__ = [ "ScriptUpdateParams", diff --git a/src/cloudflare/types/workers/script_update_response.py b/src/cloudflare/types/workers/script_update_response.py index 98be45339df..626e9e7fa5e 100644 --- a/src/cloudflare/types/workers/script_update_response.py +++ b/src/cloudflare/types/workers/script_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ...types import shared __all__ = ["ScriptUpdateResponse", "TailConsumer"] diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py index c7afda96eec..865faf03a2b 100644 --- a/src/cloudflare/types/workers/scripts/__init__.py +++ b/src/cloudflare/types/workers/scripts/__init__.py @@ -2,29 +2,29 @@ from __future__ import annotations -from .tail_delete_response import TailDeleteResponse as TailDeleteResponse from .binding_list_response import BindingListResponse as BindingListResponse +from .schedule_worker_cron_trigger_get_cron_triggers_response import ( + ScheduleWorkerCronTriggerGetCronTriggersResponse as ScheduleWorkerCronTriggerGetCronTriggersResponse, +) +from .schedule_worker_cron_trigger_update_cron_triggers_response import ( + ScheduleWorkerCronTriggerUpdateCronTriggersResponse as ScheduleWorkerCronTriggerUpdateCronTriggersResponse, +) +from .schedule_worker_cron_trigger_update_cron_triggers_params import ( + ScheduleWorkerCronTriggerUpdateCronTriggersParams as ScheduleWorkerCronTriggerUpdateCronTriggersParams, +) +from .tail_delete_response import TailDeleteResponse as TailDeleteResponse from .tail_worker_tail_logs_list_tails_response import ( TailWorkerTailLogsListTailsResponse as TailWorkerTailLogsListTailsResponse, ) from .tail_worker_tail_logs_start_tail_response import ( TailWorkerTailLogsStartTailResponse as TailWorkerTailLogsStartTailResponse, ) -from .usage_model_worker_script_update_usage_model_params import ( - UsageModelWorkerScriptUpdateUsageModelParams as UsageModelWorkerScriptUpdateUsageModelParams, -) from .usage_model_worker_script_fetch_usage_model_response import ( UsageModelWorkerScriptFetchUsageModelResponse as UsageModelWorkerScriptFetchUsageModelResponse, ) from .usage_model_worker_script_update_usage_model_response import ( UsageModelWorkerScriptUpdateUsageModelResponse as UsageModelWorkerScriptUpdateUsageModelResponse, ) -from .schedule_worker_cron_trigger_get_cron_triggers_response import ( - ScheduleWorkerCronTriggerGetCronTriggersResponse as ScheduleWorkerCronTriggerGetCronTriggersResponse, -) -from .schedule_worker_cron_trigger_update_cron_triggers_params import ( - ScheduleWorkerCronTriggerUpdateCronTriggersParams as ScheduleWorkerCronTriggerUpdateCronTriggersParams, -) -from .schedule_worker_cron_trigger_update_cron_triggers_response import ( - ScheduleWorkerCronTriggerUpdateCronTriggersResponse as ScheduleWorkerCronTriggerUpdateCronTriggersResponse, +from .usage_model_worker_script_update_usage_model_params import ( + UsageModelWorkerScriptUpdateUsageModelParams as UsageModelWorkerScriptUpdateUsageModelParams, ) diff --git a/src/cloudflare/types/workers/scripts/binding_list_response.py b/src/cloudflare/types/workers/scripts/binding_list_response.py index 120c6c05e14..478b08b7e29 100644 --- a/src/cloudflare/types/workers/scripts/binding_list_response.py +++ b/src/cloudflare/types/workers/scripts/binding_list_response.py @@ -1,9 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, 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 from ...._models import BaseModel +from ....types import shared __all__ = [ "BindingListResponse", diff --git a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_get_cron_triggers_response.py b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_get_cron_triggers_response.py index 0f1c91045f2..144b0025cc7 100644 --- a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_get_cron_triggers_response.py +++ b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_get_cron_triggers_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["ScheduleWorkerCronTriggerGetCronTriggersResponse", "Schedule"] diff --git a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_params.py b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_params.py index 14a16ca4bd1..4f14814bb72 100644 --- a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_params.py +++ b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["ScheduleWorkerCronTriggerUpdateCronTriggersParams"] diff --git a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_response.py b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_response.py index ed055b82425..104b22a501d 100644 --- a/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_response.py +++ b/src/cloudflare/types/workers/scripts/schedule_worker_cron_trigger_update_cron_triggers_response.py @@ -1,8 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ....types import shared __all__ = ["ScheduleWorkerCronTriggerUpdateCronTriggersResponse", "Schedule"] diff --git a/src/cloudflare/types/workers/scripts/tail_delete_response.py b/src/cloudflare/types/workers/scripts/tail_delete_response.py index 12858c10d01..c3a1a97749e 100644 --- a/src/cloudflare/types/workers/scripts/tail_delete_response.py +++ b/src/cloudflare/types/workers/scripts/tail_delete_response.py @@ -1,6 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union +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 +from ....types import shared __all__ = ["TailDeleteResponse"] diff --git a/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_list_tails_response.py b/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_list_tails_response.py index cc00c3b7666..2fc48e9be57 100644 --- a/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_list_tails_response.py +++ b/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_list_tails_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["TailWorkerTailLogsListTailsResponse"] diff --git a/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_start_tail_response.py b/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_start_tail_response.py index c218ec20791..6b7180a5ce2 100644 --- a/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_start_tail_response.py +++ b/src/cloudflare/types/workers/scripts/tail_worker_tail_logs_start_tail_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["TailWorkerTailLogsStartTailResponse"] diff --git a/src/cloudflare/types/workers/scripts/usage_model_worker_script_fetch_usage_model_response.py b/src/cloudflare/types/workers/scripts/usage_model_worker_script_fetch_usage_model_response.py index e3351d9da77..db0fef115be 100644 --- a/src/cloudflare/types/workers/scripts/usage_model_worker_script_fetch_usage_model_response.py +++ b/src/cloudflare/types/workers/scripts/usage_model_worker_script_fetch_usage_model_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["UsageModelWorkerScriptFetchUsageModelResponse"] diff --git a/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_params.py b/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_params.py index eabdf7deeff..09604565e42 100644 --- a/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_params.py +++ b/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ....types import shared_params __all__ = ["UsageModelWorkerScriptUpdateUsageModelParams"] diff --git a/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_response.py b/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_response.py index 94d3e60284c..c0068055966 100644 --- a/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_response.py +++ b/src/cloudflare/types/workers/scripts/usage_model_worker_script_update_usage_model_response.py @@ -2,7 +2,11 @@ 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 +from ....types import shared __all__ = ["UsageModelWorkerScriptUpdateUsageModelResponse"] diff --git a/src/cloudflare/types/workers/services/environments/__init__.py b/src/cloudflare/types/workers/services/environments/__init__.py index 1a0d2215b63..cfa08c51294 100644 --- a/src/cloudflare/types/workers/services/environments/__init__.py +++ b/src/cloudflare/types/workers/services/environments/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .content_update_params import ContentUpdateParams as ContentUpdateParams -from .setting_modify_params import SettingModifyParams as SettingModifyParams from .content_update_response import ContentUpdateResponse as ContentUpdateResponse +from .content_update_params import ContentUpdateParams as ContentUpdateParams +from .setting_get_response import SettingGetResponse as SettingGetResponse from .setting_modify_response import SettingModifyResponse as SettingModifyResponse +from .setting_modify_params import SettingModifyParams as SettingModifyParams diff --git a/src/cloudflare/types/workers/services/environments/content_update_params.py b/src/cloudflare/types/workers/services/environments/content_update_params.py index b3cacce77bb..803a317a8f6 100644 --- a/src/cloudflare/types/workers/services/environments/content_update_params.py +++ b/src/cloudflare/types/workers/services/environments/content_update_params.py @@ -2,11 +2,19 @@ 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 typing import List, Union, Dict, Optional +from typing_extensions import Literal, TypedDict, Required, Annotated from ....._types import FileTypes from ....._utils import PropertyInfo +from .....types import shared_params __all__ = ["ContentUpdateParams", "Metadata"] diff --git a/src/cloudflare/types/workers/services/environments/content_update_response.py b/src/cloudflare/types/workers/services/environments/content_update_response.py index a9e7c2f507d..1a941ef1bff 100644 --- a/src/cloudflare/types/workers/services/environments/content_update_response.py +++ b/src/cloudflare/types/workers/services/environments/content_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from .....types import shared __all__ = ["ContentUpdateResponse", "TailConsumer"] diff --git a/src/cloudflare/types/workers/services/environments/setting_get_response.py b/src/cloudflare/types/workers/services/environments/setting_get_response.py index 135e62b48fd..819c29224e5 100644 --- a/src/cloudflare/types/workers/services/environments/setting_get_response.py +++ b/src/cloudflare/types/workers/services/environments/setting_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = [ "SettingGetResponse", diff --git a/src/cloudflare/types/workers/services/environments/setting_modify_params.py b/src/cloudflare/types/workers/services/environments/setting_modify_params.py index bee809fa0f3..487866ad72b 100644 --- a/src/cloudflare/types/workers/services/environments/setting_modify_params.py +++ b/src/cloudflare/types/workers/services/environments/setting_modify_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, 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 .....types import shared_params __all__ = [ "SettingModifyParams", diff --git a/src/cloudflare/types/workers/services/environments/setting_modify_response.py b/src/cloudflare/types/workers/services/environments/setting_modify_response.py index 3a20de2ec92..b36cdf1f809 100644 --- a/src/cloudflare/types/workers/services/environments/setting_modify_response.py +++ b/src/cloudflare/types/workers/services/environments/setting_modify_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 .....types import shared __all__ = [ "SettingModifyResponse", diff --git a/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_params.py b/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_params.py index c7df57e2c62..8b95bb7aaf9 100644 --- a/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_params.py +++ b/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["SubdomainWorkerSubdomainCreateSubdomainParams"] diff --git a/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_response.py b/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_response.py index de33327144b..f0ff7923011 100644 --- a/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_response.py +++ b/src/cloudflare/types/workers/subdomain_worker_subdomain_create_subdomain_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SubdomainWorkerSubdomainCreateSubdomainResponse"] diff --git a/src/cloudflare/types/workers/subdomain_worker_subdomain_get_subdomain_response.py b/src/cloudflare/types/workers/subdomain_worker_subdomain_get_subdomain_response.py index ab7a19fc1bb..bbf2f4cc29a 100644 --- a/src/cloudflare/types/workers/subdomain_worker_subdomain_get_subdomain_response.py +++ b/src/cloudflare/types/workers/subdomain_worker_subdomain_get_subdomain_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["SubdomainWorkerSubdomainGetSubdomainResponse"] 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 db8e8fe90cd..4173cc9c715 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,8 +2,8 @@ from __future__ import annotations -from .setting_get_response import SettingGetResponse as SettingGetResponse -from .content_update_params import ContentUpdateParams as ContentUpdateParams -from .setting_update_params import SettingUpdateParams as SettingUpdateParams from .content_update_response import ContentUpdateResponse as ContentUpdateResponse +from .content_update_params import ContentUpdateParams as ContentUpdateParams from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse +from .setting_get_response import SettingGetResponse as SettingGetResponse +from .setting_update_params import SettingUpdateParams as SettingUpdateParams 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 dfa0fa598bf..316b4fee8fd 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,11 +2,19 @@ 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 typing import List, Union, Dict, Optional +from typing_extensions import Literal, TypedDict, Required, Annotated from ......_types import FileTypes from ......_utils import PropertyInfo +from ......types import shared_params __all__ = ["ContentUpdateParams", "Metadata"] diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_response.py index 3a6aa6ddf43..00468f46403 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ......types import shared __all__ = ["ContentUpdateResponse", "TailConsumer"] 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 d1f888d26f2..21cde71d302 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,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "SettingGetResponse", diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_params.py index ddbc6dddddc..420442ca5e0 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_params.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations -from typing import List, Union, Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import TypedDict, Required, Literal + +from typing import Iterable, List, 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 ......types import shared_params __all__ = [ "SettingUpdateParams", diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_response.py index 083f34f2a8c..b6b453b0503 100644 --- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_response.py +++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Union, Optional from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ......types import shared __all__ = [ "SettingUpdateResponse", diff --git a/src/cloudflare/types/zaraz/__init__.py b/src/cloudflare/types/zaraz/__init__.py index b028b91cb0b..fd6d86c529d 100644 --- a/src/cloudflare/types/zaraz/__init__.py +++ b/src/cloudflare/types/zaraz/__init__.py @@ -2,15 +2,15 @@ from __future__ import annotations +from .config_update_response import ConfigUpdateResponse as ConfigUpdateResponse from .config_get_response import ConfigGetResponse as ConfigGetResponse -from .export_get_response import ExportGetResponse as ExportGetResponse -from .history_list_params import HistoryListParams as HistoryListParams from .config_update_params import ConfigUpdateParams as ConfigUpdateParams from .default_get_response import DefaultGetResponse as DefaultGetResponse +from .export_get_response import ExportGetResponse as ExportGetResponse +from .history_update_response import HistoryUpdateResponse as HistoryUpdateResponse from .history_list_response import HistoryListResponse as HistoryListResponse from .history_update_params import HistoryUpdateParams as HistoryUpdateParams +from .history_list_params import HistoryListParams as HistoryListParams +from .publish_create_response import PublishCreateResponse as PublishCreateResponse from .publish_create_params import PublishCreateParams as PublishCreateParams from .workflow_get_response import WorkflowGetResponse as WorkflowGetResponse -from .config_update_response import ConfigUpdateResponse as ConfigUpdateResponse -from .history_update_response import HistoryUpdateResponse as HistoryUpdateResponse -from .publish_create_response import PublishCreateResponse as PublishCreateResponse diff --git a/src/cloudflare/types/zaraz/config_get_response.py b/src/cloudflare/types/zaraz/config_get_response.py index eff42e93855..bd90d865054 100644 --- a/src/cloudflare/types/zaraz/config_get_response.py +++ b/src/cloudflare/types/zaraz/config_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict, 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 - from ..._models import BaseModel +from ...types import shared __all__ = [ "ConfigGetResponse", diff --git a/src/cloudflare/types/zaraz/config_update_params.py b/src/cloudflare/types/zaraz/config_update_params.py index 3eefc00d217..b384f448628 100644 --- a/src/cloudflare/types/zaraz/config_update_params.py +++ b/src/cloudflare/types/zaraz/config_update_params.py @@ -2,10 +2,17 @@ from __future__ import annotations +from typing_extensions import TypedDict, Annotated, Required, Literal + +from ..._utils import PropertyInfo + from typing import Dict, List, Union, Iterable -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 +from ...types import shared_params __all__ = [ "ConfigUpdateParams", diff --git a/src/cloudflare/types/zaraz/config_update_response.py b/src/cloudflare/types/zaraz/config_update_response.py index dde9e666e22..a0d2f8da785 100644 --- a/src/cloudflare/types/zaraz/config_update_response.py +++ b/src/cloudflare/types/zaraz/config_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict, 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 - from ..._models import BaseModel +from ...types import shared __all__ = [ "ConfigUpdateResponse", diff --git a/src/cloudflare/types/zaraz/default_get_response.py b/src/cloudflare/types/zaraz/default_get_response.py index 626a306aa60..0ba1becf88d 100644 --- a/src/cloudflare/types/zaraz/default_get_response.py +++ b/src/cloudflare/types/zaraz/default_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict, 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 - from ..._models import BaseModel +from ...types import shared __all__ = [ "DefaultGetResponse", diff --git a/src/cloudflare/types/zaraz/export_get_response.py b/src/cloudflare/types/zaraz/export_get_response.py index acc021284dd..7a884a8c038 100644 --- a/src/cloudflare/types/zaraz/export_get_response.py +++ b/src/cloudflare/types/zaraz/export_get_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict, 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 - from ..._models import BaseModel +from ...types import shared __all__ = [ "ExportGetResponse", diff --git a/src/cloudflare/types/zaraz/history/__init__.py b/src/cloudflare/types/zaraz/history/__init__.py index 0e541683e9c..1eadf588ade 100644 --- a/src/cloudflare/types/zaraz/history/__init__.py +++ b/src/cloudflare/types/zaraz/history/__init__.py @@ -2,5 +2,5 @@ from __future__ import annotations -from .config_get_params import ConfigGetParams as ConfigGetParams from .config_get_response import ConfigGetResponse as ConfigGetResponse +from .config_get_params import ConfigGetParams as ConfigGetParams diff --git a/src/cloudflare/types/zaraz/history/config_get_params.py b/src/cloudflare/types/zaraz/history/config_get_params.py index 4cbcceb9be6..23eadb46713 100644 --- a/src/cloudflare/types/zaraz/history/config_get_params.py +++ b/src/cloudflare/types/zaraz/history/config_get_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Required + from typing import Iterable -from typing_extensions import Required, 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 ....types import shared_params __all__ = ["ConfigGetParams"] diff --git a/src/cloudflare/types/zaraz/history/config_get_response.py b/src/cloudflare/types/zaraz/history/config_get_response.py index ec264094959..458888ba791 100644 --- a/src/cloudflare/types/zaraz/history/config_get_response.py +++ b/src/cloudflare/types/zaraz/history/config_get_response.py @@ -1,12 +1,16 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional -from datetime import datetime +from typing import Optional, List, Dict, Union + from typing_extensions import Literal -from pydantic import Field as FieldInfo +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 ....types import shared __all__ = [ "ConfigGetResponse", diff --git a/src/cloudflare/types/zaraz/history_list_params.py b/src/cloudflare/types/zaraz/history_list_params.py index b0555077fa5..2dc644d80ba 100644 --- a/src/cloudflare/types/zaraz/history_list_params.py +++ b/src/cloudflare/types/zaraz/history_list_params.py @@ -2,10 +2,16 @@ from __future__ import annotations -from typing_extensions import Literal, Annotated, TypedDict +from typing_extensions import TypedDict, Literal, Annotated 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 ...types import shared_params + __all__ = ["HistoryListParams"] diff --git a/src/cloudflare/types/zaraz/history_list_response.py b/src/cloudflare/types/zaraz/history_list_response.py index 2d408aea72d..0fbe0fb6e8c 100644 --- a/src/cloudflare/types/zaraz/history_list_response.py +++ b/src/cloudflare/types/zaraz/history_list_response.py @@ -1,11 +1,12 @@ # File generated from our OpenAPI spec by Stainless. -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 +from ...types import shared __all__ = ["HistoryListResponse", "HistoryListResponseItem"] diff --git a/src/cloudflare/types/zaraz/history_update_params.py b/src/cloudflare/types/zaraz/history_update_params.py index 48223b558b8..1211ddd0673 100644 --- a/src/cloudflare/types/zaraz/history_update_params.py +++ b/src/cloudflare/types/zaraz/history_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["HistoryUpdateParams"] diff --git a/src/cloudflare/types/zaraz/history_update_response.py b/src/cloudflare/types/zaraz/history_update_response.py index b6b89062cc3..af5ce3f7f3e 100644 --- a/src/cloudflare/types/zaraz/history_update_response.py +++ b/src/cloudflare/types/zaraz/history_update_response.py @@ -1,11 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import Dict, List, Union, Optional +from typing import Optional, List, Dict, 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 - from ..._models import BaseModel +from ...types import shared __all__ = [ "HistoryUpdateResponse", diff --git a/src/cloudflare/types/zaraz/publish_create_params.py b/src/cloudflare/types/zaraz/publish_create_params.py index 436ad1ce00d..c973f067d35 100644 --- a/src/cloudflare/types/zaraz/publish_create_params.py +++ b/src/cloudflare/types/zaraz/publish_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +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 ...types import shared_params __all__ = ["PublishCreateParams"] diff --git a/src/cloudflare/types/zaraz/publish_create_response.py b/src/cloudflare/types/zaraz/publish_create_response.py index b2aedc0b101..6244d4f20de 100644 --- a/src/cloudflare/types/zaraz/publish_create_response.py +++ b/src/cloudflare/types/zaraz/publish_create_response.py @@ -1,5 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo +from ..._models import BaseModel +from ...types import shared __all__ = ["PublishCreateResponse"] diff --git a/src/cloudflare/types/zaraz/workflow_get_response.py b/src/cloudflare/types/zaraz/workflow_get_response.py index 9d96444aeb0..c83709b5d8f 100644 --- a/src/cloudflare/types/zaraz/workflow_get_response.py +++ b/src/cloudflare/types/zaraz/workflow_get_response.py @@ -2,6 +2,12 @@ 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 ...types import shared + __all__ = ["WorkflowGetResponse"] WorkflowGetResponse = Literal["realtime", "preview"] diff --git a/src/cloudflare/types/zaraz_workflow_update_params.py b/src/cloudflare/types/zaraz_workflow_update_params.py index 74e11687908..787a67a4c51 100644 --- a/src/cloudflare/types/zaraz_workflow_update_params.py +++ b/src/cloudflare/types/zaraz_workflow_update_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["ZarazWorkflowUpdateParams"] diff --git a/src/cloudflare/types/zaraz_workflow_update_response.py b/src/cloudflare/types/zaraz_workflow_update_response.py index 4a775dfb37b..d714169f232 100644 --- a/src/cloudflare/types/zaraz_workflow_update_response.py +++ b/src/cloudflare/types/zaraz_workflow_update_response.py @@ -2,6 +2,12 @@ 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 ..types import shared + __all__ = ["ZarazWorkflowUpdateResponse"] ZarazWorkflowUpdateResponse = Literal["realtime", "preview"] diff --git a/src/cloudflare/types/zerotrust/__init__.py b/src/cloudflare/types/zerotrust/__init__.py index ee2dc401005..336961c75b6 100644 --- a/src/cloudflare/types/zerotrust/__init__.py +++ b/src/cloudflare/types/zerotrust/__init__.py @@ -2,6 +2,6 @@ from __future__ import annotations +from .connectivity_setting_update_response import ConnectivitySettingUpdateResponse as ConnectivitySettingUpdateResponse from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse from .connectivity_setting_update_params import ConnectivitySettingUpdateParams as ConnectivitySettingUpdateParams -from .connectivity_setting_update_response import ConnectivitySettingUpdateResponse as ConnectivitySettingUpdateResponse diff --git a/src/cloudflare/types/zerotrust/connectivity_setting_get_response.py b/src/cloudflare/types/zerotrust/connectivity_setting_get_response.py index 0bf78255c73..1b1ce2fba26 100644 --- a/src/cloudflare/types/zerotrust/connectivity_setting_get_response.py +++ b/src/cloudflare/types/zerotrust/connectivity_setting_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConnectivitySettingGetResponse"] diff --git a/src/cloudflare/types/zerotrust/connectivity_setting_update_params.py b/src/cloudflare/types/zerotrust/connectivity_setting_update_params.py index 439591d2b57..fdfb8bd809a 100644 --- a/src/cloudflare/types/zerotrust/connectivity_setting_update_params.py +++ b/src/cloudflare/types/zerotrust/connectivity_setting_update_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["ConnectivitySettingUpdateParams"] diff --git a/src/cloudflare/types/zerotrust/connectivity_setting_update_response.py b/src/cloudflare/types/zerotrust/connectivity_setting_update_response.py index 33c9f2e33ef..3d547ac5fb4 100644 --- a/src/cloudflare/types/zerotrust/connectivity_setting_update_response.py +++ b/src/cloudflare/types/zerotrust/connectivity_setting_update_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["ConnectivitySettingUpdateResponse"] diff --git a/src/cloudflare/types/zone_create_params.py b/src/cloudflare/types/zone_create_params.py index 4be5d708a1c..4b43ce70ba8 100644 --- a/src/cloudflare/types/zone_create_params.py +++ b/src/cloudflare/types/zone_create_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +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 ..types import shared_params __all__ = ["ZoneCreateParams", "Account"] diff --git a/src/cloudflare/types/zone_create_response.py b/src/cloudflare/types/zone_create_response.py index 9ca97708a54..45c14a94adf 100644 --- a/src/cloudflare/types/zone_create_response.py +++ b/src/cloudflare/types/zone_create_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["ZoneCreateResponse", "Account", "Meta", "Owner"] diff --git a/src/cloudflare/types/zone_delete_response.py b/src/cloudflare/types/zone_delete_response.py index 65d27926aac..ed3a3305f6a 100644 --- a/src/cloudflare/types/zone_delete_response.py +++ b/src/cloudflare/types/zone_delete_response.py @@ -1,6 +1,10 @@ # File generated from our OpenAPI spec by Stainless. +from typing import Optional, Union, List, Dict, Any +from typing_extensions import Literal +from pydantic import Field as FieldInfo from .._models import BaseModel +from ..types import shared __all__ = ["ZoneDeleteResponse"] diff --git a/src/cloudflare/types/zone_get_response.py b/src/cloudflare/types/zone_get_response.py index 3dd55ccb875..4b14fcbb4c2 100644 --- a/src/cloudflare/types/zone_get_response.py +++ b/src/cloudflare/types/zone_get_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["ZoneGetResponse", "Account", "Meta", "Owner"] diff --git a/src/cloudflare/types/zone_list_params.py b/src/cloudflare/types/zone_list_params.py index 2d33d66cdae..a48a3fe6b17 100644 --- a/src/cloudflare/types/zone_list_params.py +++ b/src/cloudflare/types/zone_list_params.py @@ -2,7 +2,13 @@ from __future__ import annotations -from typing_extensions import Literal, TypedDict +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 ..types import shared_params __all__ = ["ZoneListParams", "Account"] diff --git a/src/cloudflare/types/zone_list_response.py b/src/cloudflare/types/zone_list_response.py index 561beec66f8..9f67e82df79 100644 --- a/src/cloudflare/types/zone_list_response.py +++ b/src/cloudflare/types/zone_list_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = [ "ZoneListResponse", diff --git a/src/cloudflare/types/zone_update_params.py b/src/cloudflare/types/zone_update_params.py index 6fad1a8d7e3..f285b10e2d0 100644 --- a/src/cloudflare/types/zone_update_params.py +++ b/src/cloudflare/types/zone_update_params.py @@ -2,8 +2,15 @@ from __future__ import annotations +from typing_extensions import TypedDict, Literal + from typing import List -from typing_extensions import Literal, 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 ..types import shared_params __all__ = ["ZoneUpdateParams", "Plan"] diff --git a/src/cloudflare/types/zone_update_response.py b/src/cloudflare/types/zone_update_response.py index 80db24dcb44..816c2de81d7 100644 --- a/src/cloudflare/types/zone_update_response.py +++ b/src/cloudflare/types/zone_update_response.py @@ -1,9 +1,14 @@ # File generated from our OpenAPI spec by Stainless. -from typing import List, Optional +from typing import Optional, 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 +from ..types import shared __all__ = ["ZoneUpdateResponse", "Account", "Meta", "Owner"] diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py index 09cbc5edbd2..96d1579adee 100644 --- a/src/cloudflare/types/zones/__init__.py +++ b/src/cloudflare/types/zones/__init__.py @@ -2,8 +2,8 @@ from __future__ import annotations +from .hold_enforce_response import HoldEnforceResponse as HoldEnforceResponse from .hold_get_response import HoldGetResponse as HoldGetResponse -from .hold_remove_params import HoldRemoveParams as HoldRemoveParams -from .hold_enforce_params import HoldEnforceParams as HoldEnforceParams from .hold_remove_response import HoldRemoveResponse as HoldRemoveResponse -from .hold_enforce_response import HoldEnforceResponse as HoldEnforceResponse +from .hold_enforce_params import HoldEnforceParams as HoldEnforceParams +from .hold_remove_params import HoldRemoveParams as HoldRemoveParams diff --git a/src/cloudflare/types/zones/hold_enforce_params.py b/src/cloudflare/types/zones/hold_enforce_params.py index 5791d9a49dd..d9cf27ae2b9 100644 --- a/src/cloudflare/types/zones/hold_enforce_params.py +++ b/src/cloudflare/types/zones/hold_enforce_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["HoldEnforceParams"] diff --git a/src/cloudflare/types/zones/hold_enforce_response.py b/src/cloudflare/types/zones/hold_enforce_response.py index 27b20c170cd..73c97566e1a 100644 --- a/src/cloudflare/types/zones/hold_enforce_response.py +++ b/src/cloudflare/types/zones/hold_enforce_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HoldEnforceResponse"] diff --git a/src/cloudflare/types/zones/hold_get_response.py b/src/cloudflare/types/zones/hold_get_response.py index 7620c7114d9..8ec3dc21946 100644 --- a/src/cloudflare/types/zones/hold_get_response.py +++ b/src/cloudflare/types/zones/hold_get_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HoldGetResponse"] diff --git a/src/cloudflare/types/zones/hold_remove_params.py b/src/cloudflare/types/zones/hold_remove_params.py index d76d44d6213..d2fc01473ab 100644 --- a/src/cloudflare/types/zones/hold_remove_params.py +++ b/src/cloudflare/types/zones/hold_remove_params.py @@ -4,6 +4,12 @@ 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 +from ...types import shared_params + __all__ = ["HoldRemoveParams"] diff --git a/src/cloudflare/types/zones/hold_remove_response.py b/src/cloudflare/types/zones/hold_remove_response.py index 913bb94b0d5..87505afa3eb 100644 --- a/src/cloudflare/types/zones/hold_remove_response.py +++ b/src/cloudflare/types/zones/hold_remove_response.py @@ -2,7 +2,11 @@ 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 +from ...types import shared __all__ = ["HoldRemoveResponse"] diff --git a/tests/api_resources/access/apps/test_cas.py b/tests/api_resources/access/apps/test_cas.py index 807226377a2..766be48ca0f 100644 --- a/tests/api_resources/access/apps/test_cas.py +++ b/tests/api_resources/access/apps/test_cas.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.access.apps import CaCreateResponse, CaListResponse, CaDeleteResponse, CaGetResponse -import pytest +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.access.apps import CaGetResponse, CaListResponse, CaCreateResponse, CaDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/apps/test_policies.py b/tests/api_resources/access/apps/test_policies.py index 697b2a3bed2..54876d6f4d6 100644 --- a/tests/api_resources/access/apps/test_policies.py +++ b/tests/api_resources/access/apps/test_policies.py @@ -2,22 +2,29 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access.apps import ( - PolicyGetResponse, PolicyCreateResponse, - PolicyDeleteResponse, PolicyUpdateResponse, - PolicyAccessPoliciesListAccessPoliciesResponse, + PolicyDeleteResponse, PolicyAccessPoliciesCreateAnAccessPolicyResponse, + PolicyAccessPoliciesListAccessPoliciesResponse, + PolicyGetResponse, ) +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.access.apps import policy_create_params +from cloudflare.types.access.apps import policy_update_params +from cloudflare.types.access.apps import policy_access_policies_create_an_access_policy_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/apps/test_revoke_tokens.py b/tests/api_resources/access/apps/test_revoke_tokens.py index 4ccef207ced..0a6d9a4fba3 100644 --- a/tests/api_resources/access/apps/test_revoke_tokens.py +++ b/tests/api_resources/access/apps/test_revoke_tokens.py @@ -2,11 +2,14 @@ from __future__ import annotations -import os -from typing import Any, cast +from typing import Optional, 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/access/apps/test_user_policy_checks.py b/tests/api_resources/access/apps/test_user_policy_checks.py index e10d1569ef8..e224348ecac 100644 --- a/tests/api_resources/access/apps/test_user_policy_checks.py +++ b/tests/api_resources/access/apps/test_user_policy_checks.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.access.apps import UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse + 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.access.apps import UserPolicyCheckAccessApplicationsTestAccessPoliciesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/certificates/test_settings.py b/tests/api_resources/access/certificates/test_settings.py index 7b092690466..d344dffce8d 100644 --- a/tests/api_resources/access/certificates/test_settings.py +++ b/tests/api_resources/access/certificates/test_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access.certificates import SettingUpdateResponse, SettingListResponse +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.access.certificates import SettingListResponse, SettingUpdateResponse +from cloudflare.types.access.certificates import setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/keys/test_rotates.py b/tests/api_resources/access/keys/test_rotates.py index 25ccb1b83ca..8d171270540 100644 --- a/tests/api_resources/access/keys/test_rotates.py +++ b/tests/api_resources/access/keys/test_rotates.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.access.keys import RotateAccessKeyConfigurationRotateAccessKeysResponse + 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.access.keys import RotateAccessKeyConfigurationRotateAccessKeysResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/logs/test_access_requests.py b/tests/api_resources/access/logs/test_access_requests.py index bcb32748b44..f399a95966e 100644 --- a/tests/api_resources/access/logs/test_access_requests.py +++ b/tests/api_resources/access/logs/test_access_requests.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access.logs import AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse +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.access.logs import AccessRequestAccessAuthenticationLogsGetAccessAuthenticationLogsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/organizations/test_revoke_users.py b/tests/api_resources/access/organizations/test_revoke_users.py index a240189ca48..ce2c33fbef7 100644 --- a/tests/api_resources/access/organizations/test_revoke_users.py +++ b/tests/api_resources/access/organizations/test_revoke_users.py @@ -2,15 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access.organizations import RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse +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.access.organizations import ( - RevokeUserZeroTrustOrganizationRevokeAllAccessTokensForAUserResponse, + revoke_user_zero_trust_organization_revoke_all_access_tokens_for_a_user_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/service_tokens/test_refreshes.py b/tests/api_resources/access/service_tokens/test_refreshes.py index 125dce83dee..d6c6a34a6dd 100644 --- a/tests/api_resources/access/service_tokens/test_refreshes.py +++ b/tests/api_resources/access/service_tokens/test_refreshes.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.access.service_tokens import RefreshAccessServiceTokensRefreshAServiceTokenResponse + 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.access.service_tokens import RefreshAccessServiceTokensRefreshAServiceTokenResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/service_tokens/test_rotates.py b/tests/api_resources/access/service_tokens/test_rotates.py index 32399da0837..776bf3a9584 100644 --- a/tests/api_resources/access/service_tokens/test_rotates.py +++ b/tests/api_resources/access/service_tokens/test_rotates.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.access.service_tokens import RotateAccessServiceTokensRotateAServiceTokenResponse + 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.access.service_tokens import RotateAccessServiceTokensRotateAServiceTokenResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_apps.py b/tests/api_resources/access/test_apps.py index d969a6bf686..5f0e449f376 100644 --- a/tests/api_resources/access/test_apps.py +++ b/tests/api_resources/access/test_apps.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - AppGetResponse, - AppListResponse, AppCreateResponse, - AppDeleteResponse, AppUpdateResponse, + AppListResponse, + AppDeleteResponse, + AppGetResponse, ) +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.access import app_create_params +from cloudflare.types.access import app_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_bookmarks.py b/tests/api_resources/access/test_bookmarks.py index 1daf45f38b3..ac6e7e13355 100644 --- a/tests/api_resources/access/test_bookmarks.py +++ b/tests/api_resources/access/test_bookmarks.py @@ -2,20 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - BookmarkGetResponse, - BookmarkDeleteResponse, BookmarkUpdateResponse, + BookmarkDeleteResponse, BookmarkAccessBookmarkApplicationsDeprecatedListBookmarkApplicationsResponse, + BookmarkGetResponse, ) +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 + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_certificates.py b/tests/api_resources/access/test_certificates.py index 9e032977f3b..3a7764e6155 100644 --- a/tests/api_resources/access/test_certificates.py +++ b/tests/api_resources/access/test_certificates.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - CertificateGetResponse, - CertificateDeleteResponse, CertificateUpdateResponse, + CertificateDeleteResponse, CertificateAccessMTLSAuthenticationAddAnMTLSCertificateResponse, CertificateAccessMTLSAuthenticationListMTLSCertificatesResponse, + CertificateGetResponse, ) +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.access import certificate_update_params +from cloudflare.types.access import certificate_access_m_tls_authentication_add_an_m_tls_certificate_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_custom_pages.py b/tests/api_resources/access/test_custom_pages.py index 91b2d8d7d6b..11dedac9449 100644 --- a/tests/api_resources/access/test_custom_pages.py +++ b/tests/api_resources/access/test_custom_pages.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - CustomPageGetResponse, - CustomPageListResponse, CustomPageCreateResponse, - CustomPageDeleteResponse, CustomPageUpdateResponse, + CustomPageListResponse, + CustomPageDeleteResponse, + CustomPageGetResponse, ) +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.access import custom_page_create_params +from cloudflare.types.access import custom_page_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_groups.py b/tests/api_resources/access/test_groups.py index 3a05f7d476e..4a2d2e9d4f8 100644 --- a/tests/api_resources/access/test_groups.py +++ b/tests/api_resources/access/test_groups.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - GroupGetResponse, - GroupDeleteResponse, GroupUpdateResponse, - GroupAccessGroupsListAccessGroupsResponse, + GroupDeleteResponse, GroupAccessGroupsCreateAnAccessGroupResponse, + GroupAccessGroupsListAccessGroupsResponse, + GroupGetResponse, ) +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.access import group_update_params +from cloudflare.types.access import group_access_groups_create_an_access_group_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_identity_providers.py b/tests/api_resources/access/test_identity_providers.py index fcd2d8e1c7e..7496effa82a 100644 --- a/tests/api_resources/access/test_identity_providers.py +++ b/tests/api_resources/access/test_identity_providers.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - IdentityProviderGetResponse, - IdentityProviderDeleteResponse, IdentityProviderUpdateResponse, + IdentityProviderDeleteResponse, IdentityProviderAccessIdentityProvidersAddAnAccessIdentityProviderResponse, IdentityProviderAccessIdentityProvidersListAccessIdentityProvidersResponse, + IdentityProviderGetResponse, ) +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.access import identity_provider_update_params +from cloudflare.types.access import identity_provider_access_identity_providers_add_an_access_identity_provider_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_keys.py b/tests/api_resources/access/test_keys.py index 2e862efb7ba..4d280b2fe55 100644 --- a/tests/api_resources/access/test_keys.py +++ b/tests/api_resources/access/test_keys.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.access import ( + KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, + KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, +) + 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.access import ( - KeyAccessKeyConfigurationGetTheAccessKeyConfigurationResponse, - KeyAccessKeyConfigurationUpdateTheAccessKeyConfigurationResponse, -) +from cloudflare.types.access import key_access_key_configuration_update_the_access_key_configuration_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_organizations.py b/tests/api_resources/access/test_organizations.py index 041ea814655..2b325fa3242 100644 --- a/tests/api_resources/access/test_organizations.py +++ b/tests/api_resources/access/test_organizations.py @@ -2,18 +2,24 @@ from __future__ import annotations -import os +from cloudflare.types.access import ( + OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, + OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, + OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, +) + 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.access import ( - OrganizationZeroTrustOrganizationGetYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationCreateYourZeroTrustOrganizationResponse, - OrganizationZeroTrustOrganizationUpdateYourZeroTrustOrganizationResponse, -) +from cloudflare.types.access import organization_zero_trust_organization_create_your_zero_trust_organization_params +from cloudflare.types.access import organization_zero_trust_organization_update_your_zero_trust_organization_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_seats.py b/tests/api_resources/access/test_seats.py index 0a98b0b0ea5..61351f1b388 100644 --- a/tests/api_resources/access/test_seats.py +++ b/tests/api_resources/access/test_seats.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access import SeatZeroTrustSeatsUpdateAUserSeatResponse +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.access import ( - SeatZeroTrustSeatsUpdateAUserSeatResponse, -) +from cloudflare.types.access import seat_zero_trust_seats_update_a_user_seat_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_service_tokens.py b/tests/api_resources/access/test_service_tokens.py index 3ff153d439b..8121b844442 100644 --- a/tests/api_resources/access/test_service_tokens.py +++ b/tests/api_resources/access/test_service_tokens.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.access import ( - ServiceTokenDeleteResponse, ServiceTokenUpdateResponse, - ServiceTokenAccessServiceTokensListServiceTokensResponse, + ServiceTokenDeleteResponse, ServiceTokenAccessServiceTokensCreateAServiceTokenResponse, + ServiceTokenAccessServiceTokensListServiceTokensResponse, ) +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.access import service_token_update_params +from cloudflare.types.access import service_token_access_service_tokens_create_a_service_token_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_tags.py b/tests/api_resources/access/test_tags.py index 9136f3a4f7f..335be2bc033 100644 --- a/tests/api_resources/access/test_tags.py +++ b/tests/api_resources/access/test_tags.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access import TagListResponse +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.access import TagListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/test_users.py b/tests/api_resources/access/test_users.py index 3777c0f9790..e82ffecb282 100644 --- a/tests/api_resources/access/test_users.py +++ b/tests/api_resources/access/test_users.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access import UserListResponse +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.access import UserListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/users/test_active_sessions.py b/tests/api_resources/access/users/test_active_sessions.py index 6dbbc94cff4..a2261b8be5e 100644 --- a/tests/api_resources/access/users/test_active_sessions.py +++ b/tests/api_resources/access/users/test_active_sessions.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access.users import ActiveSessionListResponse, ActiveSessionGetResponse +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.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/access/users/test_failed_logins.py b/tests/api_resources/access/users/test_failed_logins.py index 7c5b14a6df0..4423c7d8ba4 100644 --- a/tests/api_resources/access/users/test_failed_logins.py +++ b/tests/api_resources/access/users/test_failed_logins.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.access.users import FailedLoginZeroTrustUsersGetFailedLoginsResponse +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.access.users import FailedLoginZeroTrustUsersGetFailedLoginsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/access/users/test_last_seen_identity.py b/tests/api_resources/access/users/test_last_seen_identity.py index 88dcad254b2..76815099db8 100644 --- a/tests/api_resources/access/users/test_last_seen_identity.py +++ b/tests/api_resources/access/users/test_last_seen_identity.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.access.users import LastSeenIdentityGetResponse + 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.access.users import LastSeenIdentityGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/acms/test_total_tls.py b/tests/api_resources/acms/test_total_tls.py index 4ea1208e949..a194c9bfd4d 100644 --- a/tests/api_resources/acms/test_total_tls.py +++ b/tests/api_resources/acms/test_total_tls.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.acms import TotalTLSUpdateResponse, TotalTLSGetResponse + 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.acms import TotalTLSGetResponse, TotalTLSUpdateResponse +from cloudflare.types.acms import total_tls_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addresses/address_maps/test_accounts.py b/tests/api_resources/addresses/address_maps/test_accounts.py index 4056d32978b..0b5953f0f47 100644 --- a/tests/api_resources/addresses/address_maps/test_accounts.py +++ b/tests/api_resources/addresses/address_maps/test_accounts.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.addresses.address_maps import AccountUpdateResponse, AccountDeleteResponse +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.addresses.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/addresses/address_maps/test_ips.py b/tests/api_resources/addresses/address_maps/test_ips.py index 381bfbe2115..bb9560c0c1b 100644 --- a/tests/api_resources/addresses/address_maps/test_ips.py +++ b/tests/api_resources/addresses/address_maps/test_ips.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.addresses.address_maps import IPUpdateResponse, IPDeleteResponse +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.addresses.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/addresses/address_maps/test_zones.py b/tests/api_resources/addresses/address_maps/test_zones.py index 490172dcf4b..522a5b62acc 100644 --- a/tests/api_resources/addresses/address_maps/test_zones.py +++ b/tests/api_resources/addresses/address_maps/test_zones.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.addresses.address_maps import ZoneUpdateResponse, ZoneDeleteResponse +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.addresses.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/addresses/loa_documents/test_downloads.py b/tests/api_resources/addresses/loa_documents/test_downloads.py index 4e7bbfbd876..5086a36c4a4 100644 --- a/tests/api_resources/addresses/loa_documents/test_downloads.py +++ b/tests/api_resources/addresses/loa_documents/test_downloads.py @@ -2,11 +2,14 @@ from __future__ import annotations -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/addresses/prefixes/bgps/test_statuses.py b/tests/api_resources/addresses/prefixes/bgps/test_statuses.py index 8709c74b79c..a78dcf02e20 100644 --- a/tests/api_resources/addresses/prefixes/bgps/test_statuses.py +++ b/tests/api_resources/addresses/prefixes/bgps/test_statuses.py @@ -2,16 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.addresses.prefixes.bgps import ( + StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, + StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, +) + 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.addresses.prefixes.bgps import ( - StatusIPAddressManagementDynamicAdvertisementGetAdvertisementStatusResponse, - StatusIPAddressManagementDynamicAdvertisementUpdatePrefixDynamicAdvertisementStatusResponse, + status_ip_address_management_dynamic_advertisement_update_prefix_dynamic_advertisement_status_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addresses/prefixes/test_delegations.py b/tests/api_resources/addresses/prefixes/test_delegations.py index 980c9544f89..841baefd035 100644 --- a/tests/api_resources/addresses/prefixes/test_delegations.py +++ b/tests/api_resources/addresses/prefixes/test_delegations.py @@ -2,17 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.addresses.prefixes import ( + DelegationDeleteResponse, + DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, + DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, +) -import pytest +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.addresses.prefixes import ( - DelegationDeleteResponse, - DelegationIPAddressManagementPrefixDelegationListPrefixDelegationsResponse, - DelegationIPAddressManagementPrefixDelegationCreatePrefixDelegationResponse, + delegation_ip_address_management_prefix_delegation_create_prefix_delegation_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addresses/test_address_maps.py b/tests/api_resources/addresses/test_address_maps.py index 3589d4478d9..451b742a0cb 100644 --- a/tests/api_resources/addresses/test_address_maps.py +++ b/tests/api_resources/addresses/test_address_maps.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.addresses import ( - AddressMapGetResponse, - AddressMapListResponse, AddressMapCreateResponse, - AddressMapDeleteResponse, AddressMapUpdateResponse, + AddressMapListResponse, + AddressMapDeleteResponse, + AddressMapGetResponse, ) +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.addresses import address_map_create_params +from cloudflare.types.addresses import address_map_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addresses/test_loa_documents.py b/tests/api_resources/addresses/test_loa_documents.py index ec733878fcd..b5c4031bb84 100644 --- a/tests/api_resources/addresses/test_loa_documents.py +++ b/tests/api_resources/addresses/test_loa_documents.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.addresses import LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse + 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.addresses import ( - LoaDocumentIPAddressManagementPrefixesUploadLoaDocumentResponse, -) +from cloudflare.types.addresses import loa_document_ip_address_management_prefixes_upload_loa_document_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addresses/test_prefixes.py b/tests/api_resources/addresses/test_prefixes.py index 33ccc2b096f..a20b74461d9 100644 --- a/tests/api_resources/addresses/test_prefixes.py +++ b/tests/api_resources/addresses/test_prefixes.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.addresses import ( - PrefixGetResponse, - PrefixDeleteResponse, PrefixUpdateResponse, + PrefixDeleteResponse, + PrefixGetResponse, PrefixIPAddressManagementPrefixesAddPrefixResponse, PrefixIPAddressManagementPrefixesListPrefixesResponse, ) +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.addresses import prefix_update_params +from cloudflare.types.addresses import prefix_ip_address_management_prefixes_add_prefix_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py b/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py index 320cea9b8bd..6b765bb7177 100644 --- a/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py +++ b/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py @@ -2,18 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.addressing.prefixes import BGPPrefixUpdateResponse, BGPPrefixListResponse, BGPPrefixGetResponse -import pytest +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.addressing.prefixes import ( - BGPPrefixGetResponse, - BGPPrefixListResponse, - BGPPrefixUpdateResponse, -) +from cloudflare.types.addressing.prefixes import bgp_prefix_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/test_bindings.py b/tests/api_resources/addressing/prefixes/test_bindings.py index 91d3da46454..bca1f4e53f3 100644 --- a/tests/api_resources/addressing/prefixes/test_bindings.py +++ b/tests/api_resources/addressing/prefixes/test_bindings.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os +from cloudflare.types.addressing.prefixes import ( + BindingCreateResponse, + BindingListResponse, + BindingDeleteResponse, + BindingGetResponse, +) + 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.prefixes import ( - BindingGetResponse, - BindingListResponse, - BindingCreateResponse, - BindingDeleteResponse, -) +from cloudflare.types.addressing.prefixes import binding_create_params 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 3e1968c130a..9582315c1b9 100644 --- a/tests/api_resources/addressing/test_services.py +++ b/tests/api_resources/addressing/test_services.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.addressing import ServiceListResponse + 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 import ServiceListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/v3/destinations/test_pagerduty.py b/tests/api_resources/alerting/v3/destinations/test_pagerduty.py index 4263cea2529..770de0ff4ac 100644 --- a/tests/api_resources/alerting/v3/destinations/test_pagerduty.py +++ b/tests/api_resources/alerting/v3/destinations/test_pagerduty.py @@ -2,18 +2,22 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.alerting.v3.destinations import ( + PagerdutyCreateTokenResponse, + PagerdutyDeleteAllResponse, + PagerdutyLinkResponse, +) -import pytest +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.alerting.v3.destinations import ( - PagerdutyLinkResponse, - PagerdutyDeleteAllResponse, - PagerdutyCreateTokenResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/v3/test_available_alerts.py b/tests/api_resources/alerting/v3/test_available_alerts.py index 42754b2091b..f0de2334317 100644 --- a/tests/api_resources/alerting/v3/test_available_alerts.py +++ b/tests/api_resources/alerting/v3/test_available_alerts.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.alerting.v3 import AvailableAlertListResponse +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.v3 import AvailableAlertListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/v3s/destinations/test_eligibles.py b/tests/api_resources/alerting/v3s/destinations/test_eligibles.py index 25021d28cd2..1b9ca2fb573 100644 --- a/tests/api_resources/alerting/v3s/destinations/test_eligibles.py +++ b/tests/api_resources/alerting/v3s/destinations/test_eligibles.py @@ -2,17 +2,21 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.alerting.v3s.destinations import ( EligibleNotificationMechanismEligibilityGetDeliveryMechanismEligibilityResponse, ) +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/alerting/v3s/destinations/test_pagerduties.py b/tests/api_resources/alerting/v3s/destinations/test_pagerduties.py index 8f3ad3858cb..6819d48c680 100644 --- a/tests/api_resources/alerting/v3s/destinations/test_pagerduties.py +++ b/tests/api_resources/alerting/v3s/destinations/test_pagerduties.py @@ -2,17 +2,21 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.alerting.v3s.destinations import ( PagerdutyNotificationDestinationsWithPagerDutyListPagerDutyServicesResponse, ) +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/alerting/v3s/destinations/test_webhooks.py b/tests/api_resources/alerting/v3s/destinations/test_webhooks.py index a2c8e7845d9..377c7e048da 100644 --- a/tests/api_resources/alerting/v3s/destinations/test_webhooks.py +++ b/tests/api_resources/alerting/v3s/destinations/test_webhooks.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.alerting.v3s.destinations import ( - WebhookGetResponse, - WebhookDeleteResponse, WebhookUpdateResponse, - WebhookNotificationWebhooksListWebhooksResponse, + WebhookDeleteResponse, + WebhookGetResponse, WebhookNotificationWebhooksCreateAWebhookResponse, + WebhookNotificationWebhooksListWebhooksResponse, ) +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.alerting.v3s.destinations import webhook_update_params +from cloudflare.types.alerting.v3s.destinations import webhook_notification_webhooks_create_a_webhook_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/v3s/test_histories.py b/tests/api_resources/alerting/v3s/test_histories.py index 25029bc6900..e6ccbc1504c 100644 --- a/tests/api_resources/alerting/v3s/test_histories.py +++ b/tests/api_resources/alerting/v3s/test_histories.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.alerting.v3s import HistoryNotificationHistoryListHistoryResponse +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.v3s import history_notification_history_list_history_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.alerting.v3s import ( - HistoryNotificationHistoryListHistoryResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/v3s/test_policies.py b/tests/api_resources/alerting/v3s/test_policies.py index 3f3ff5a8515..2a2f6f5920f 100644 --- a/tests/api_resources/alerting/v3s/test_policies.py +++ b/tests/api_resources/alerting/v3s/test_policies.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.alerting.v3s import ( - PolicyGetResponse, - PolicyDeleteResponse, PolicyUpdateResponse, - PolicyNotificationPoliciesListNotificationPoliciesResponse, + PolicyDeleteResponse, + PolicyGetResponse, PolicyNotificationPoliciesCreateANotificationPolicyResponse, + PolicyNotificationPoliciesListNotificationPoliciesResponse, ) +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.alerting.v3s import policy_update_params +from cloudflare.types.alerting.v3s import policy_notification_policies_create_a_notification_policy_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/analytics/latencies/test_colos.py b/tests/api_resources/analytics/latencies/test_colos.py index 7af914af8d2..825593f1245 100644 --- a/tests/api_resources/analytics/latencies/test_colos.py +++ b/tests/api_resources/analytics/latencies/test_colos.py @@ -2,16 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.analytics.latencies import ( + ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse, +) + 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.analytics.latencies import ( - ColoArgoAnalyticsForGeolocationArgoAnalyticsForAZoneAtDifferentPoPsResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/analytics/test_colo.py b/tests/api_resources/analytics/test_colo.py index 059eb0ffe11..7960d97dc27 100644 --- a/tests/api_resources/analytics/test_colo.py +++ b/tests/api_resources/analytics/test_colo.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.analytics import ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse + 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.analytics import ( - ColoZoneAnalyticsDeprecatedGetAnalyticsByCoLocationsResponse, -) +from cloudflare.types.analytics import colo_zone_analytics_deprecated_get_analytics_by_co_locations_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/analytics/test_dashboards.py b/tests/api_resources/analytics/test_dashboards.py index 54440cfd9da..3500e0f4969 100644 --- a/tests/api_resources/analytics/test_dashboards.py +++ b/tests/api_resources/analytics/test_dashboards.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.analytics import DashboardZoneAnalyticsDeprecatedGetDashboardResponse + 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.analytics import ( - DashboardZoneAnalyticsDeprecatedGetDashboardResponse, -) +from cloudflare.types.analytics import dashboard_zone_analytics_deprecated_get_dashboard_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/analytics/test_latencies.py b/tests/api_resources/analytics/test_latencies.py index b777841d24c..f3b1685b816 100644 --- a/tests/api_resources/analytics/test_latencies.py +++ b/tests/api_resources/analytics/test_latencies.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.analytics import LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse + 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.analytics import ( - LatencyArgoAnalyticsForZoneArgoAnalyticsForAZoneResponse, -) +from cloudflare.types.analytics import latency_argo_analytics_for_zone_argo_analytics_for_a_zone_params 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 d382966b317..e8b0657c812 100644 --- a/tests/api_resources/argo/test_smart_routing.py +++ b/tests/api_resources/argo/test_smart_routing.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.argo import SmartRoutingUpdateResponse, SmartRoutingGetResponse + 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 SmartRoutingGetResponse, SmartRoutingUpdateResponse +from cloudflare.types.argo import smart_routing_update_params 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 fa2a13449e6..cb03d7b7ccb 100644 --- a/tests/api_resources/argo/test_tiered_caching.py +++ b/tests/api_resources/argo/test_tiered_caching.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.argo import ( + TieredCachingTieredCachingGetTieredCachingSettingResponse, + TieredCachingTieredCachingPatchTieredCachingSettingResponse, +) + 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 ( - TieredCachingTieredCachingGetTieredCachingSettingResponse, - TieredCachingTieredCachingPatchTieredCachingSettingResponse, -) +from cloudflare.types.argo import tiered_caching_tiered_caching_patch_tiered_caching_setting_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/billings/test_profiles.py b/tests/api_resources/billings/test_profiles.py index 8f9c23ad1fa..605d80d8f37 100644 --- a/tests/api_resources/billings/test_profiles.py +++ b/tests/api_resources/billings/test_profiles.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.billings import ProfileAccountBillingProfileBillingProfileDetailsResponse + 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.billings import ProfileAccountBillingProfileBillingProfileDetailsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/brand_protections/test_submits.py b/tests/api_resources/brand_protections/test_submits.py index 1e90ef73528..f4be429b89b 100644 --- a/tests/api_resources/brand_protections/test_submits.py +++ b/tests/api_resources/brand_protections/test_submits.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.brand_protections import SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse + 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.brand_protections import ( - SubmitPhishingURLScannerSubmitSuspiciousURLForScanningResponse, -) +from cloudflare.types.brand_protections import submit_phishing_url_scanner_submit_suspicious_url_for_scanning_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/brand_protections/test_url_infos.py b/tests/api_resources/brand_protections/test_url_infos.py index 4df4cef8b7c..47c716482ed 100644 --- a/tests/api_resources/brand_protections/test_url_infos.py +++ b/tests/api_resources/brand_protections/test_url_infos.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.brand_protections import URLInfoPhishingURLInformationGetResultsForAURLScanResponse + 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.brand_protections import ( - URLInfoPhishingURLInformationGetResultsForAURLScanResponse, -) +from cloudflare.types.brand_protections import url_info_phishing_url_information_get_results_for_a_url_scan_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/caches/test_cache_reserves.py b/tests/api_resources/caches/test_cache_reserves.py index d235133f409..760fdab1a78 100644 --- a/tests/api_resources/caches/test_cache_reserves.py +++ b/tests/api_resources/caches/test_cache_reserves.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.caches import ( + CacheReserveListResponse, + CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, +) + 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.caches import ( - CacheReserveListResponse, - CacheReserveZoneCacheSettingsChangeCacheReserveSettingResponse, -) +from cloudflare.types.caches import cache_reserve_zone_cache_settings_change_cache_reserve_setting_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/caches/test_tiered_cache_smart_topology_enables.py b/tests/api_resources/caches/test_tiered_cache_smart_topology_enables.py index b7b5ebbd858..dab0dbfa1c1 100644 --- a/tests/api_resources/caches/test_tiered_cache_smart_topology_enables.py +++ b/tests/api_resources/caches/test_tiered_cache_smart_topology_enables.py @@ -2,17 +2,24 @@ from __future__ import annotations -import os +from cloudflare.types.caches import ( + TieredCacheSmartTopologyEnableDeleteResponse, + TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, + TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, +) + 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.caches import ( - TieredCacheSmartTopologyEnableDeleteResponse, - TieredCacheSmartTopologyEnableSmartTieredCacheGetSmartTieredCacheSettingResponse, - TieredCacheSmartTopologyEnableSmartTieredCachePatchSmartTieredCacheSettingResponse, + tiered_cache_smart_topology_enable_smart_tiered_cache_patch_smart_tiered_cache_setting_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/caches/test_variants.py b/tests/api_resources/caches/test_variants.py index 0a00d4a1b13..fded50ae973 100644 --- a/tests/api_resources/caches/test_variants.py +++ b/tests/api_resources/caches/test_variants.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.caches import ( VariantListResponse, VariantDeleteResponse, VariantZoneCacheSettingsChangeVariantsSettingResponse, ) +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.caches import variant_zone_cache_settings_change_variants_setting_params + 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 cc3c8578517..ff8ba8f3fbe 100644 --- a/tests/api_resources/certificate_authorities/test_hostname_associations.py +++ b/tests/api_resources/certificate_authorities/test_hostname_associations.py @@ -2,16 +2,26 @@ from __future__ import annotations -import os +from cloudflare.types.certificate_authorities import ( + HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, + HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, +) + 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.certificate_authorities import ( - HostnameAssociationClientCertificateForAZonePutHostnameAssociationsResponse, - HostnameAssociationClientCertificateForAZoneListHostnameAssociationsResponse, + hostname_association_client_certificate_for_a_zone_list_hostname_associations_params, +) +from cloudflare.types.certificate_authorities import ( + hostname_association_client_certificate_for_a_zone_put_hostname_associations_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cfd_tunnels/test_configurations.py b/tests/api_resources/cfd_tunnels/test_configurations.py index 259fcf12a4b..7ab059c21ab 100644 --- a/tests/api_resources/cfd_tunnels/test_configurations.py +++ b/tests/api_resources/cfd_tunnels/test_configurations.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.cfd_tunnels import ( + ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, + ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, +) + 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.cfd_tunnels import ( - ConfigurationCloudflareTunnelConfigurationGetConfigurationResponse, - ConfigurationCloudflareTunnelConfigurationPutConfigurationResponse, -) +from cloudflare.types.cfd_tunnels import configuration_cloudflare_tunnel_configuration_put_configuration_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cfd_tunnels/test_connections.py b/tests/api_resources/cfd_tunnels/test_connections.py index 06ef95d6e6b..208fe892867 100644 --- a/tests/api_resources/cfd_tunnels/test_connections.py +++ b/tests/api_resources/cfd_tunnels/test_connections.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.cfd_tunnels import ( ConnectionDeleteResponse, ConnectionCloudflareTunnelListCloudflareTunnelConnectionsResponse, ) +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.cfd_tunnels import connection_delete_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cfd_tunnels/test_connectors.py b/tests/api_resources/cfd_tunnels/test_connectors.py index 652accf2b2a..3309bc69215 100644 --- a/tests/api_resources/cfd_tunnels/test_connectors.py +++ b/tests/api_resources/cfd_tunnels/test_connectors.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.cfd_tunnels import ConnectorGetResponse + 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.cfd_tunnels import ConnectorGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cfd_tunnels/test_management.py b/tests/api_resources/cfd_tunnels/test_management.py index 1d6c40dd094..d2adb0f2e3e 100644 --- a/tests/api_resources/cfd_tunnels/test_management.py +++ b/tests/api_resources/cfd_tunnels/test_management.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.cfd_tunnels import ManagementCreateResponse + 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.cfd_tunnels import ManagementCreateResponse +from cloudflare.types.cfd_tunnels import management_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cfd_tunnels/test_tokens.py b/tests/api_resources/cfd_tunnels/test_tokens.py index 21551f2117b..575ea4c4f36 100644 --- a/tests/api_resources/cfd_tunnels/test_tokens.py +++ b/tests/api_resources/cfd_tunnels/test_tokens.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.cfd_tunnels import TokenCloudflareTunnelGetACloudflareTunnelTokenResponse + 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.cfd_tunnels import TokenCloudflareTunnelGetACloudflareTunnelTokenResponse 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 edaee66d872..cee8af3691f 100644 --- a/tests/api_resources/challenges/test_widgets.py +++ b/tests/api_resources/challenges/test_widgets.py @@ -2,22 +2,30 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.challenges import ( - WidgetGetResponse, - WidgetListResponse, WidgetCreateResponse, - WidgetDeleteResponse, WidgetUpdateResponse, + WidgetListResponse, + WidgetDeleteResponse, + WidgetGetResponse, WidgetRotateSecretResponse, ) +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.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 + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_certificates/test_prioritizes.py b/tests/api_resources/custom_certificates/test_prioritizes.py index a2443c247d6..e3501d02aee 100644 --- a/tests/api_resources/custom_certificates/test_prioritizes.py +++ b/tests/api_resources/custom_certificates/test_prioritizes.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.custom_certificates import PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse +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.custom_certificates import ( - PrioritizeCustomSSLForAZoneRePrioritizeSSLCertificatesResponse, -) +from cloudflare.types.custom_certificates import prioritize_custom_ssl_for_a_zone_re_prioritize_ssl_certificates_params 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_origins.py b/tests/api_resources/custom_hostnames/test_fallback_origins.py index ec89fed853a..5e3f738b5c6 100644 --- a/tests/api_resources/custom_hostnames/test_fallback_origins.py +++ b/tests/api_resources/custom_hostnames/test_fallback_origins.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.custom_hostnames import ( + FallbackOriginUpdateResponse, + FallbackOriginDeleteResponse, + FallbackOriginGetResponse, +) + 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.custom_hostnames import ( - FallbackOriginGetResponse, - FallbackOriginDeleteResponse, - FallbackOriginUpdateResponse, -) +from cloudflare.types.custom_hostnames import fallback_origin_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_ns/test_availabilities.py b/tests/api_resources/custom_ns/test_availabilities.py index b70539d334a..2df36141813 100644 --- a/tests/api_resources/custom_ns/test_availabilities.py +++ b/tests/api_resources/custom_ns/test_availabilities.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.custom_ns import AvailabilityGetResponse +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.custom_ns import AvailabilityGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_ns/test_verifies.py b/tests/api_resources/custom_ns/test_verifies.py index 460697ff8ac..879400d6f7f 100644 --- a/tests/api_resources/custom_ns/test_verifies.py +++ b/tests/api_resources/custom_ns/test_verifies.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.custom_ns import VerifyUpdateResponse +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.custom_ns import VerifyUpdateResponse 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 18b33063e27..10ec73dae0b 100644 --- a/tests/api_resources/d1/test_database.py +++ b/tests/api_resources/d1/test_database.py @@ -2,18 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.d1 import DatabaseDeleteResponse, DatabaseGetResponse, DatabaseQueryResponse +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.d1 import ( - DatabaseGetResponse, - DatabaseQueryResponse, - DatabaseDeleteResponse, -) +from cloudflare.types.d1 import database_query_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/d1/test_databases.py b/tests/api_resources/d1/test_databases.py index 4999eeb1de6..7f51d7982db 100644 --- a/tests/api_resources/d1/test_databases.py +++ b/tests/api_resources/d1/test_databases.py @@ -2,17 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.d1 import DatabaseCreateResponse, DatabaseListResponse + 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.d1 import ( - DatabaseListResponse, - DatabaseCreateResponse, -) +from cloudflare.types.d1 import database_create_params +from cloudflare.types.d1 import database_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dcv_delegation/test_uuid.py b/tests/api_resources/dcv_delegation/test_uuid.py index aa72d0419ce..869ff524a3e 100644 --- a/tests/api_resources/dcv_delegation/test_uuid.py +++ b/tests/api_resources/dcv_delegation/test_uuid.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.dcv_delegation import UuidGetResponse + 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.dcv_delegation import UuidGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/policies/test_excludes.py b/tests/api_resources/devices/policies/test_excludes.py index ac04bf67175..a7185a860ff 100644 --- a/tests/api_resources/devices/policies/test_excludes.py +++ b/tests/api_resources/devices/policies/test_excludes.py @@ -2,20 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices.policies import ( ExcludeDevicesGetSplitTunnelExcludeListResponse, - ExcludeDevicesSetSplitTunnelExcludeListResponse, ExcludeDevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, + ExcludeDevicesSetSplitTunnelExcludeListResponse, ExcludeDevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyResponse, ) +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.devices.policies import exclude_devices_set_split_tunnel_exclude_list_params +from cloudflare.types.devices.policies import ( + exclude_devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_params, +) + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/policies/test_fallback_domains.py b/tests/api_resources/devices/policies/test_fallback_domains.py index 4cb5a1a1301..65bc2712ecf 100644 --- a/tests/api_resources/devices/policies/test_fallback_domains.py +++ b/tests/api_resources/devices/policies/test_fallback_domains.py @@ -2,20 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices.policies import ( FallbackDomainDevicesGetLocalDomainFallbackListResponse, - FallbackDomainDevicesSetLocalDomainFallbackListResponse, FallbackDomainDevicesGetLocalDomainFallbackListForADeviceSettingsPolicyResponse, + FallbackDomainDevicesSetLocalDomainFallbackListResponse, FallbackDomainDevicesSetLocalDomainFallbackListForADeviceSettingsPolicyResponse, ) +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.devices.policies import fallback_domain_devices_set_local_domain_fallback_list_params +from cloudflare.types.devices.policies import ( + fallback_domain_devices_set_local_domain_fallback_list_for_a_device_settings_policy_params, +) + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/policies/test_includes.py b/tests/api_resources/devices/policies/test_includes.py index 83af94835da..48d545c7c10 100644 --- a/tests/api_resources/devices/policies/test_includes.py +++ b/tests/api_resources/devices/policies/test_includes.py @@ -2,20 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices.policies import ( IncludeDevicesGetSplitTunnelIncludeListResponse, - IncludeDevicesSetSplitTunnelIncludeListResponse, IncludeDevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, + IncludeDevicesSetSplitTunnelIncludeListResponse, IncludeDevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyResponse, ) +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.devices.policies import include_devices_set_split_tunnel_include_list_params +from cloudflare.types.devices.policies import ( + include_devices_set_split_tunnel_include_list_for_a_device_settings_policy_params, +) + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/postures/test_integrations.py b/tests/api_resources/devices/postures/test_integrations.py index ba4b2d4d87e..7c58d517ee7 100644 --- a/tests/api_resources/devices/postures/test_integrations.py +++ b/tests/api_resources/devices/postures/test_integrations.py @@ -2,19 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.devices.postures import ( + IntegrationUpdateResponse, + IntegrationDeleteResponse, + IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, + IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, + IntegrationGetResponse, +) +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.devices.postures import integration_update_params from cloudflare.types.devices.postures import ( - IntegrationGetResponse, - IntegrationDeleteResponse, - IntegrationUpdateResponse, - IntegrationDevicePostureIntegrationsListDevicePostureIntegrationsResponse, - IntegrationDevicePostureIntegrationsCreateDevicePostureIntegrationResponse, + integration_device_posture_integrations_create_device_posture_integration_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_dex_tests.py b/tests/api_resources/devices/test_dex_tests.py index 648ed0f54de..980e38d68ab 100644 --- a/tests/api_resources/devices/test_dex_tests.py +++ b/tests/api_resources/devices/test_dex_tests.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices import ( - DEXTestGetResponse, - DEXTestDeleteResponse, DEXTestUpdateResponse, - DEXTestDeviceDEXTestDetailsResponse, + DEXTestDeleteResponse, DEXTestDeviceDEXTestCreateDeviceDEXTestResponse, + DEXTestDeviceDEXTestDetailsResponse, + DEXTestGetResponse, ) +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.devices import dex_test_update_params +from cloudflare.types.devices import dex_test_device_dex_test_create_device_dex_test_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_networks.py b/tests/api_resources/devices/test_networks.py index f2379f52193..04c6cdfc2ae 100644 --- a/tests/api_resources/devices/test_networks.py +++ b/tests/api_resources/devices/test_networks.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices import ( - NetworkGetResponse, - NetworkDeleteResponse, NetworkUpdateResponse, - NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, + NetworkDeleteResponse, NetworkDeviceManagedNetworksCreateDeviceManagedNetworkResponse, + NetworkDeviceManagedNetworksListDeviceManagedNetworksResponse, + NetworkGetResponse, ) +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.devices import network_update_params +from cloudflare.types.devices import network_device_managed_networks_create_device_managed_network_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_override_codes.py b/tests/api_resources/devices/test_override_codes.py index 88aa5f477da..ccf01f81e4f 100644 --- a/tests/api_resources/devices/test_override_codes.py +++ b/tests/api_resources/devices/test_override_codes.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.devices import OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse +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.devices import OverrideCodeDevicesListAdminOverrideCodeForDeviceResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_policies.py b/tests/api_resources/devices/test_policies.py index 71645df3341..f4bdf28a37e 100644 --- a/tests/api_resources/devices/test_policies.py +++ b/tests/api_resources/devices/test_policies.py @@ -2,23 +2,30 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices import ( - PolicyGetResponse, - PolicyDeleteResponse, PolicyUpdateResponse, + PolicyDeleteResponse, PolicyDevicesCreateDeviceSettingsPolicyResponse, - PolicyDevicesListDeviceSettingsPoliciesResponse, PolicyDevicesGetDefaultDeviceSettingsPolicyResponse, + PolicyDevicesListDeviceSettingsPoliciesResponse, PolicyDevicesUpdateDefaultDeviceSettingsPolicyResponse, + PolicyGetResponse, ) +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.devices import policy_update_params +from cloudflare.types.devices import policy_devices_create_device_settings_policy_params +from cloudflare.types.devices import policy_devices_update_default_device_settings_policy_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_postures.py b/tests/api_resources/devices/test_postures.py index d68dcfdb9b7..12166ae74b2 100644 --- a/tests/api_resources/devices/test_postures.py +++ b/tests/api_resources/devices/test_postures.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.devices import ( - PostureGetResponse, - PostureDeleteResponse, PostureUpdateResponse, - PostureDevicePostureRulesListDevicePostureRulesResponse, + PostureDeleteResponse, PostureDevicePostureRulesCreateDevicePostureRuleResponse, + PostureDevicePostureRulesListDevicePostureRulesResponse, + PostureGetResponse, ) +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.devices import posture_update_params +from cloudflare.types.devices import posture_device_posture_rules_create_device_posture_rule_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_revokes.py b/tests/api_resources/devices/test_revokes.py index 05b9cb5b053..cccddb91c73 100644 --- a/tests/api_resources/devices/test_revokes.py +++ b/tests/api_resources/devices/test_revokes.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.devices import RevokeDevicesRevokeDevicesResponse +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.devices import RevokeDevicesRevokeDevicesResponse +from cloudflare.types.devices import revoke_devices_revoke_devices_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_settings.py b/tests/api_resources/devices/test_settings.py index 48f7d2ecfcd..24b370861b3 100644 --- a/tests/api_resources/devices/test_settings.py +++ b/tests/api_resources/devices/test_settings.py @@ -2,16 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.devices import ( + SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, + SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, +) +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.devices import ( - SettingZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountResponse, - SettingZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountResponse, + setting_zero_trust_accounts_update_device_settings_for_the_zero_trust_account_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/devices/test_unrevokes.py b/tests/api_resources/devices/test_unrevokes.py index 2a98d9daa43..7ba42558a05 100644 --- a/tests/api_resources/devices/test_unrevokes.py +++ b/tests/api_resources/devices/test_unrevokes.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.devices import UnrevokeDevicesUnrevokeDevicesResponse +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.devices import UnrevokeDevicesUnrevokeDevicesResponse +from cloudflare.types.devices import unrevoke_devices_unrevoke_devices_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/fleet_status/test_devices.py b/tests/api_resources/dex/fleet_status/test_devices.py index a4b92934485..1a4d9069bd3 100644 --- a/tests/api_resources/dex/fleet_status/test_devices.py +++ b/tests/api_resources/dex/fleet_status/test_devices.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.dex.fleet_status import DeviceListResponse +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.dex.fleet_status import DeviceListResponse +from cloudflare.types.dex.fleet_status import device_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/fleet_status/test_live.py b/tests/api_resources/dex/fleet_status/test_live.py index e363a2f7089..8aad1645617 100644 --- a/tests/api_resources/dex/fleet_status/test_live.py +++ b/tests/api_resources/dex/fleet_status/test_live.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dex.fleet_status import LiveListResponse + 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.dex.fleet_status import LiveListResponse +from cloudflare.types.dex.fleet_status import live_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/fleet_status/test_over_time.py b/tests/api_resources/dex/fleet_status/test_over_time.py index ad2c0b9149a..67f2df65283 100644 --- a/tests/api_resources/dex/fleet_status/test_over_time.py +++ b/tests/api_resources/dex/fleet_status/test_over_time.py @@ -2,12 +2,17 @@ from __future__ import annotations -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.dex.fleet_status import over_time_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/http_tests/test_percentiles.py b/tests/api_resources/dex/http_tests/test_percentiles.py index 1d71704cbc3..3e035dbc057 100644 --- a/tests/api_resources/dex/http_tests/test_percentiles.py +++ b/tests/api_resources/dex/http_tests/test_percentiles.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dex.http_tests import PercentileListResponse + 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.dex.http_tests import PercentileListResponse +from cloudflare.types.dex.http_tests import percentile_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/test_colos.py b/tests/api_resources/dex/test_colos.py index 48f5e01fd88..f4f2f8bddf3 100644 --- a/tests/api_resources/dex/test_colos.py +++ b/tests/api_resources/dex/test_colos.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.dex import ColoListResponse +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.dex import ColoListResponse +from cloudflare.types.dex import colo_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/test_http_tests.py b/tests/api_resources/dex/test_http_tests.py index 4d1be97c02e..ff6e2ea3ff8 100644 --- a/tests/api_resources/dex/test_http_tests.py +++ b/tests/api_resources/dex/test_http_tests.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dex import HTTPTestGetResponse + 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.dex import HTTPTestGetResponse +from cloudflare.types.dex import http_test_get_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/test_tests.py b/tests/api_resources/dex/test_tests.py index 8dc27512b83..5a6eb491583 100644 --- a/tests/api_resources/dex/test_tests.py +++ b/tests/api_resources/dex/test_tests.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dex import TestListResponse + 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.dex import TestListResponse +from cloudflare.types.dex import test_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/test_traceroute_tests.py b/tests/api_resources/dex/test_traceroute_tests.py index 28b112c5c1f..7bf5d890b22 100644 --- a/tests/api_resources/dex/test_traceroute_tests.py +++ b/tests/api_resources/dex/test_traceroute_tests.py @@ -2,19 +2,26 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.dex import ( TracerouteTestGetResponse, TracerouteTestNetworkPathResponse, TracerouteTestPercentilesResponse, ) +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.dex import traceroute_test_get_params +from cloudflare.types.dex import traceroute_test_network_path_params +from cloudflare.types.dex import traceroute_test_percentiles_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/tests/test_unique_devices.py b/tests/api_resources/dex/tests/test_unique_devices.py index e0725d915ea..8fbe2bd98e1 100644 --- a/tests/api_resources/dex/tests/test_unique_devices.py +++ b/tests/api_resources/dex/tests/test_unique_devices.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dex.tests import UniqueDeviceListResponse + 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.dex.tests import UniqueDeviceListResponse +from cloudflare.types.dex.tests import unique_device_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dex/traceroute_test_results/test_network_path.py b/tests/api_resources/dex/traceroute_test_results/test_network_path.py index 3e5221d0e45..01b98df74ff 100644 --- a/tests/api_resources/dex/traceroute_test_results/test_network_path.py +++ b/tests/api_resources/dex/traceroute_test_results/test_network_path.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.dex.traceroute_test_results import NetworkPathListResponse + 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.dex.traceroute_test_results import NetworkPathListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dispatchers/test_scripts.py b/tests/api_resources/dispatchers/test_scripts.py index b1fd9ffc53e..8f96b90d04f 100644 --- a/tests/api_resources/dispatchers/test_scripts.py +++ b/tests/api_resources/dispatchers/test_scripts.py @@ -2,17 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.dispatchers import ScriptUpdateResponse, ScriptGetResponse + 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.dispatchers import ( - ScriptGetResponse, - ScriptUpdateResponse, -) +from cloudflare.types.dispatchers import script_update_params +from cloudflare.types.dispatchers import script_delete_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlp/test_datasets.py b/tests/api_resources/dlp/test_datasets.py index aea7cf8b110..0d63eb6f277 100644 --- a/tests/api_resources/dlp/test_datasets.py +++ b/tests/api_resources/dlp/test_datasets.py @@ -2,22 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.dlp import ( - DatasetGetResponse, - DatasetListResponse, DatasetCreateResponse, DatasetUpdateResponse, + DatasetListResponse, + DatasetGetResponse, DatasetUploadResponse, DatasetUploadPrepareResponse, ) +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.dlp import dataset_create_params +from cloudflare.types.dlp import dataset_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlps/patterns/test_validates.py b/tests/api_resources/dlps/patterns/test_validates.py index 445750eb601..f0132b765aa 100644 --- a/tests/api_resources/dlps/patterns/test_validates.py +++ b/tests/api_resources/dlps/patterns/test_validates.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dlps.patterns import ValidateDLPPatternValidationValidatePatternResponse + 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.dlps.patterns import ( - ValidateDLPPatternValidationValidatePatternResponse, -) +from cloudflare.types.dlps.patterns import validate_dlp_pattern_validation_validate_pattern_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlps/profiles/test_customs.py b/tests/api_resources/dlps/profiles/test_customs.py index 19e51bc78d8..4e5a5f78f69 100644 --- a/tests/api_resources/dlps/profiles/test_customs.py +++ b/tests/api_resources/dlps/profiles/test_customs.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.dlps.profiles import ( - CustomGetResponse, - CustomDeleteResponse, CustomUpdateResponse, + CustomDeleteResponse, CustomDLPProfilesCreateCustomProfilesResponse, + CustomGetResponse, ) +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.dlps.profiles import custom_update_params +from cloudflare.types.dlps.profiles import custom_dlp_profiles_create_custom_profiles_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlps/profiles/test_predefineds.py b/tests/api_resources/dlps/profiles/test_predefineds.py index 09deb5f598d..fca1c828437 100644 --- a/tests/api_resources/dlps/profiles/test_predefineds.py +++ b/tests/api_resources/dlps/profiles/test_predefineds.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.dlps.profiles import PredefinedUpdateResponse, PredefinedGetResponse + 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.dlps.profiles import PredefinedGetResponse, PredefinedUpdateResponse +from cloudflare.types.dlps.profiles import predefined_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlps/test_payload_logs.py b/tests/api_resources/dlps/test_payload_logs.py index ea805b24b00..8e5d3f5c7e5 100644 --- a/tests/api_resources/dlps/test_payload_logs.py +++ b/tests/api_resources/dlps/test_payload_logs.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.dlps import ( + PayloadLogDLPPayloadLogSettingsGetSettingsResponse, + PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, +) + 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.dlps import ( - PayloadLogDLPPayloadLogSettingsGetSettingsResponse, - PayloadLogDLPPayloadLogSettingsUpdateSettingsResponse, -) +from cloudflare.types.dlps import payload_log_dlp_payload_log_settings_update_settings_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dlps/test_profiles.py b/tests/api_resources/dlps/test_profiles.py index f8518d0c56d..12bd58abf7e 100644 --- a/tests/api_resources/dlps/test_profiles.py +++ b/tests/api_resources/dlps/test_profiles.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.dlps import ProfileDLPProfilesListAllProfilesResponse, ProfileGetResponse +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.dlps import ProfileGetResponse, ProfileDLPProfilesListAllProfilesResponse 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 090ed972926..c184db0e046 100644 --- a/tests/api_resources/dns_analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns_analytics/reports/test_bytimes.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.dns_analytics.reports import BytimeListResponse + 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.dns_analytics.reports import bytime_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.dns_analytics.reports import BytimeListResponse 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 b7e469f9b1f..2796ca7ac4f 100644 --- a/tests/api_resources/dns_analytics/test_reports.py +++ b/tests/api_resources/dns_analytics/test_reports.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.dns_analytics import ReportListResponse + 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.dns_analytics import report_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.dns_analytics import ReportListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns_firewalls/dns_analytics/reports/test_bytimes.py b/tests/api_resources/dns_firewalls/dns_analytics/reports/test_bytimes.py index 8fce1fc8f00..16dbede6884 100644 --- a/tests/api_resources/dns_firewalls/dns_analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns_firewalls/dns_analytics/reports/test_bytimes.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.dns_firewalls.dns_analytics.reports import BytimeListResponse + 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.dns_firewalls.dns_analytics.reports import bytime_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.dns_firewalls.dns_analytics.reports import BytimeListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns_firewalls/dns_analytics/test_reports.py b/tests/api_resources/dns_firewalls/dns_analytics/test_reports.py index 8d3ad6c185b..fc744e31ae2 100644 --- a/tests/api_resources/dns_firewalls/dns_analytics/test_reports.py +++ b/tests/api_resources/dns_firewalls/dns_analytics/test_reports.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.dns_firewalls.dns_analytics import ReportListResponse + 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.dns_firewalls.dns_analytics import report_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.dns_firewalls.dns_analytics import ReportListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/rules/test_catch_alls.py b/tests/api_resources/emails/routings/rules/test_catch_alls.py index 75d5f210a05..bd1dd562a84 100644 --- a/tests/api_resources/emails/routings/rules/test_catch_alls.py +++ b/tests/api_resources/emails/routings/rules/test_catch_alls.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.emails.routings.rules import ( + CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, + CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, +) + 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.emails.routings.rules import ( - CatchAllEmailRoutingRoutingRulesGetCatchAllRuleResponse, - CatchAllEmailRoutingRoutingRulesUpdateCatchAllRuleResponse, -) +from cloudflare.types.emails.routings.rules import catch_all_email_routing_routing_rules_update_catch_all_rule_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/test_addresses.py b/tests/api_resources/emails/routings/test_addresses.py index 5a650a8eed7..806df8ee60a 100644 --- a/tests/api_resources/emails/routings/test_addresses.py +++ b/tests/api_resources/emails/routings/test_addresses.py @@ -2,18 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.emails.routings import ( + AddressDeleteResponse, + AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, + AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, + AddressGetResponse, +) -import pytest +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.emails.routings import ( - AddressGetResponse, - AddressDeleteResponse, - AddressEmailRoutingDestinationAddressesListDestinationAddressesResponse, - AddressEmailRoutingDestinationAddressesCreateADestinationAddressResponse, + address_email_routing_destination_addresses_create_a_destination_address_params, +) +from cloudflare.types.emails.routings import ( + address_email_routing_destination_addresses_list_destination_addresses_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/test_disables.py b/tests/api_resources/emails/routings/test_disables.py index 3691cdfa0b1..de5d125007f 100644 --- a/tests/api_resources/emails/routings/test_disables.py +++ b/tests/api_resources/emails/routings/test_disables.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.emails.routings import DisableEmailRoutingSettingsDisableEmailRoutingResponse + 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.emails.routings import DisableEmailRoutingSettingsDisableEmailRoutingResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/test_dns.py b/tests/api_resources/emails/routings/test_dns.py index 62d9f6f9379..70befc4aa09 100644 --- a/tests/api_resources/emails/routings/test_dns.py +++ b/tests/api_resources/emails/routings/test_dns.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.emails.routings import DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse +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.emails.routings import DNSEmailRoutingSettingsEmailRoutingDNSSettingsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/test_enables.py b/tests/api_resources/emails/routings/test_enables.py index 1ce57a9233f..5ebce5f5b66 100644 --- a/tests/api_resources/emails/routings/test_enables.py +++ b/tests/api_resources/emails/routings/test_enables.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.emails.routings import EnableEmailRoutingSettingsEnableEmailRoutingResponse + 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.emails.routings import EnableEmailRoutingSettingsEnableEmailRoutingResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/routings/test_rules.py b/tests/api_resources/emails/routings/test_rules.py index 2a43226cf97..c11aa803973 100644 --- a/tests/api_resources/emails/routings/test_rules.py +++ b/tests/api_resources/emails/routings/test_rules.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.emails.routings import ( - RuleGetResponse, - RuleDeleteResponse, RuleUpdateResponse, - RuleEmailRoutingRoutingRulesListRoutingRulesResponse, + RuleDeleteResponse, RuleEmailRoutingRoutingRulesCreateRoutingRuleResponse, + RuleEmailRoutingRoutingRulesListRoutingRulesResponse, + RuleGetResponse, ) +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.emails.routings import rule_update_params +from cloudflare.types.emails.routings import rule_email_routing_routing_rules_create_routing_rule_params +from cloudflare.types.emails.routings import rule_email_routing_routing_rules_list_routing_rules_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/emails/test_routings.py b/tests/api_resources/emails/test_routings.py index 503463eb33f..b046e06fc08 100644 --- a/tests/api_resources/emails/test_routings.py +++ b/tests/api_resources/emails/test_routings.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.emails import RoutingEmailRoutingSettingsGetEmailRoutingSettingsResponse + 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.emails import RoutingEmailRoutingSettingsGetEmailRoutingSettingsResponse 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 a7fb7a39281..8969d8ef9af 100644 --- a/tests/api_resources/firewall/waf/packages/test_groups.py +++ b/tests/api_resources/firewall/waf/packages/test_groups.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.firewall.waf.packages import GroupUpdateResponse, GroupListResponse, GroupGetResponse -import pytest +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.firewall.waf.packages import ( - GroupGetResponse, - GroupListResponse, - GroupUpdateResponse, -) +from cloudflare.types.firewall.waf.packages import group_update_params +from cloudflare.types.firewall.waf.packages import group_list_params 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 9309cf86960..f91c8c62012 100644 --- a/tests/api_resources/firewall/waf/packages/test_rules.py +++ b/tests/api_resources/firewall/waf/packages/test_rules.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.firewall.waf.packages import RuleUpdateResponse, RuleGetResponse + 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 RuleGetResponse, RuleUpdateResponse +from cloudflare.types.firewall.waf.packages import rule_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/test_access_rules.py b/tests/api_resources/firewalls/test_access_rules.py index dd468fd5862..9d7b551df2b 100644 --- a/tests/api_resources/firewalls/test_access_rules.py +++ b/tests/api_resources/firewalls/test_access_rules.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls import ( - AccessRuleGetResponse, - AccessRuleListResponse, AccessRuleCreateResponse, - AccessRuleDeleteResponse, AccessRuleUpdateResponse, + AccessRuleListResponse, + AccessRuleDeleteResponse, + AccessRuleGetResponse, ) +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.firewalls import access_rule_create_params +from cloudflare.types.firewalls import access_rule_update_params +from cloudflare.types.firewalls import access_rule_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/test_lockdowns.py b/tests/api_resources/firewalls/test_lockdowns.py index 7a00410c9d5..dcaf16b115f 100644 --- a/tests/api_resources/firewalls/test_lockdowns.py +++ b/tests/api_resources/firewalls/test_lockdowns.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls import ( - LockdownGetResponse, - LockdownDeleteResponse, LockdownUpdateResponse, - LockdownZoneLockdownListZoneLockdownRulesResponse, + LockdownDeleteResponse, + LockdownGetResponse, LockdownZoneLockdownCreateAZoneLockdownRuleResponse, + LockdownZoneLockdownListZoneLockdownRulesResponse, ) +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.firewalls import lockdown_update_params +from cloudflare.types.firewalls import lockdown_zone_lockdown_create_a_zone_lockdown_rule_params +from cloudflare.types.firewalls import lockdown_zone_lockdown_list_zone_lockdown_rules_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/test_rules.py b/tests/api_resources/firewalls/test_rules.py index fb8a340f1f4..ec3ea0aca2d 100644 --- a/tests/api_resources/firewalls/test_rules.py +++ b/tests/api_resources/firewalls/test_rules.py @@ -2,23 +2,33 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls import ( - RuleGetResponse, - RuleDeleteResponse, RuleUpdateResponse, - RuleFirewallRulesListFirewallRulesResponse, + RuleDeleteResponse, RuleFirewallRulesCreateFirewallRulesResponse, + RuleFirewallRulesListFirewallRulesResponse, RuleFirewallRulesUpdateFirewallRulesResponse, RuleFirewallRulesUpdatePriorityOfFirewallRulesResponse, + RuleGetResponse, ) +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.firewalls import rule_update_params +from cloudflare.types.firewalls import rule_delete_params +from cloudflare.types.firewalls import rule_firewall_rules_create_firewall_rules_params +from cloudflare.types.firewalls import rule_firewall_rules_list_firewall_rules_params +from cloudflare.types.firewalls import rule_firewall_rules_update_firewall_rules_params +from cloudflare.types.firewalls import rule_firewall_rules_update_priority_of_firewall_rules_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/test_ua_rules.py b/tests/api_resources/firewalls/test_ua_rules.py index c6adb5cbaea..62cd6a4d0ed 100644 --- a/tests/api_resources/firewalls/test_ua_rules.py +++ b/tests/api_resources/firewalls/test_ua_rules.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls import ( - UaRuleGetResponse, - UaRuleDeleteResponse, UaRuleUpdateResponse, - UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, + UaRuleDeleteResponse, + UaRuleGetResponse, UaRuleUserAgentBlockingRulesCreateAUserAgentBlockingRuleResponse, + UaRuleUserAgentBlockingRulesListUserAgentBlockingRulesResponse, ) +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.firewalls import ua_rule_update_params +from cloudflare.types.firewalls import ua_rule_user_agent_blocking_rules_create_a_user_agent_blocking_rule_params +from cloudflare.types.firewalls import ua_rule_user_agent_blocking_rules_list_user_agent_blocking_rules_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/waf/packages/test_groups.py b/tests/api_resources/firewalls/waf/packages/test_groups.py index ab19226a6c3..5fccaedf955 100644 --- a/tests/api_resources/firewalls/waf/packages/test_groups.py +++ b/tests/api_resources/firewalls/waf/packages/test_groups.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls.waf.packages import ( - GroupGetResponse, GroupUpdateResponse, + GroupGetResponse, GroupWAFRuleGroupsListWAFRuleGroupsResponse, ) +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.firewalls.waf.packages import group_update_params +from cloudflare.types.firewalls.waf.packages import group_waf_rule_groups_list_waf_rule_groups_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/waf/packages/test_rules.py b/tests/api_resources/firewalls/waf/packages/test_rules.py index 97058e78a8d..7642fbfa708 100644 --- a/tests/api_resources/firewalls/waf/packages/test_rules.py +++ b/tests/api_resources/firewalls/waf/packages/test_rules.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls.waf.packages import ( - RuleGetResponse, RuleUpdateResponse, + RuleGetResponse, RuleWAFRulesListWAFRulesResponse, ) +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.firewalls.waf.packages import rule_update_params +from cloudflare.types.firewalls.waf.packages import rule_waf_rules_list_waf_rules_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/waf/test_overrides.py b/tests/api_resources/firewalls/waf/test_overrides.py index dc412edd3f6..9413a77b6fb 100644 --- a/tests/api_resources/firewalls/waf/test_overrides.py +++ b/tests/api_resources/firewalls/waf/test_overrides.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.firewalls.waf import ( - OverrideGetResponse, - OverrideDeleteResponse, OverrideUpdateResponse, - OverrideWAFOverridesListWAFOverridesResponse, + OverrideDeleteResponse, + OverrideGetResponse, OverrideWAFOverridesCreateAWAFOverrideResponse, + OverrideWAFOverridesListWAFOverridesResponse, ) +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.firewalls.waf import override_update_params +from cloudflare.types.firewalls.waf import override_waf_overrides_create_a_waf_override_params +from cloudflare.types.firewalls.waf import override_waf_overrides_list_waf_overrides_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewalls/waf/test_packages.py b/tests/api_resources/firewalls/waf/test_packages.py index 279852ae66c..74e1cffe7e8 100644 --- a/tests/api_resources/firewalls/waf/test_packages.py +++ b/tests/api_resources/firewalls/waf/test_packages.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.firewalls.waf import PackageListResponse, PackageGetResponse + 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.firewalls.waf import PackageGetResponse, PackageListResponse +from cloudflare.types.firewalls.waf import package_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateway/test_audit_ssh_settings.py b/tests/api_resources/gateway/test_audit_ssh_settings.py index 24e58f9be5b..1df2aebae62 100644 --- a/tests/api_resources/gateway/test_audit_ssh_settings.py +++ b/tests/api_resources/gateway/test_audit_ssh_settings.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.gateway import AuditSSHSettingUpdateResponse, AuditSSHSettingGetResponse + 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.gateway import ( - AuditSSHSettingGetResponse, - AuditSSHSettingUpdateResponse, -) +from cloudflare.types.gateway import audit_ssh_setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/lists/test_items.py b/tests/api_resources/gateways/lists/test_items.py index 9f7f33b7f4f..7d419a1669d 100644 --- a/tests/api_resources/gateways/lists/test_items.py +++ b/tests/api_resources/gateways/lists/test_items.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.gateways.lists import ItemZeroTrustListsZeroTrustListItemsResponse +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.gateways.lists import ItemZeroTrustListsZeroTrustListItemsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_app_types.py b/tests/api_resources/gateways/test_app_types.py index d3911954110..47c89a41d9a 100644 --- a/tests/api_resources/gateways/test_app_types.py +++ b/tests/api_resources/gateways/test_app_types.py @@ -2,17 +2,21 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( AppTypeZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsResponse, ) +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/gateways/test_categories.py b/tests/api_resources/gateways/test_categories.py index 8f4944313ec..371cf17eae5 100644 --- a/tests/api_resources/gateways/test_categories.py +++ b/tests/api_resources/gateways/test_categories.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.gateways import CategoryZeroTrustGatewayCategoriesListCategoriesResponse +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.gateways import CategoryZeroTrustGatewayCategoriesListCategoriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_configurations.py b/tests/api_resources/gateways/test_configurations.py index 3acbc7c0dc7..14af5bcd804 100644 --- a/tests/api_resources/gateways/test_configurations.py +++ b/tests/api_resources/gateways/test_configurations.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( ConfigurationZeroTrustAccountsGetZeroTrustAccountConfigurationResponse, ConfigurationZeroTrustAccountsPatchZeroTrustAccountConfigurationResponse, ConfigurationZeroTrustAccountsUpdateZeroTrustAccountConfigurationResponse, ) +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.gateways import configuration_zero_trust_accounts_patch_zero_trust_account_configuration_params +from cloudflare.types.gateways import configuration_zero_trust_accounts_update_zero_trust_account_configuration_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_lists.py b/tests/api_resources/gateways/test_lists.py index 468945924b1..5d2f796e97a 100644 --- a/tests/api_resources/gateways/test_lists.py +++ b/tests/api_resources/gateways/test_lists.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( - ListGetResponse, - ListDeleteResponse, ListUpdateResponse, - ListZeroTrustListsListZeroTrustListsResponse, + ListDeleteResponse, + ListGetResponse, ListZeroTrustListsCreateZeroTrustListResponse, + ListZeroTrustListsListZeroTrustListsResponse, ) +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.gateways import list_update_params +from cloudflare.types.gateways import list_zero_trust_lists_create_zero_trust_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_locations.py b/tests/api_resources/gateways/test_locations.py index bc363035d77..47de60ab26d 100644 --- a/tests/api_resources/gateways/test_locations.py +++ b/tests/api_resources/gateways/test_locations.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( - LocationGetResponse, - LocationDeleteResponse, LocationUpdateResponse, - LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, + LocationDeleteResponse, + LocationGetResponse, LocationZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationResponse, + LocationZeroTrustGatewayLocationsListZeroTrustGatewayLocationsResponse, ) +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.gateways import location_update_params +from cloudflare.types.gateways import location_zero_trust_gateway_locations_create_zero_trust_gateway_location_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_loggings.py b/tests/api_resources/gateways/test_loggings.py index f548bd0b486..3a5036e4b0a 100644 --- a/tests/api_resources/gateways/test_loggings.py +++ b/tests/api_resources/gateways/test_loggings.py @@ -2,16 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.gateways import ( + LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, + LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, +) + 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.gateways import ( - LoggingZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountResponse, - LoggingZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountResponse, + logging_zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_proxy_endpoints.py b/tests/api_resources/gateways/test_proxy_endpoints.py index 94f27298983..977f136cb26 100644 --- a/tests/api_resources/gateways/test_proxy_endpoints.py +++ b/tests/api_resources/gateways/test_proxy_endpoints.py @@ -2,22 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( - ProxyEndpointGetResponse, + ProxyEndpointUpdateResponse, ProxyEndpointListResponse, ProxyEndpointDeleteResponse, - ProxyEndpointUpdateResponse, - ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, + ProxyEndpointGetResponse, ProxyEndpointZeroTrustGatewayProxyEndpointsCreateProxyEndpointResponse, + ProxyEndpointZeroTrustGatewayProxyEndpointsListProxyEndpointsResponse, ) +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.gateways import proxy_endpoint_update_params +from cloudflare.types.gateways import proxy_endpoint_zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/gateways/test_rules.py b/tests/api_resources/gateways/test_rules.py index 60172d14421..5b3862095ff 100644 --- a/tests/api_resources/gateways/test_rules.py +++ b/tests/api_resources/gateways/test_rules.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.gateways import ( - RuleGetResponse, - RuleDeleteResponse, RuleUpdateResponse, - RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, + RuleDeleteResponse, + RuleGetResponse, RuleZeroTrustGatewayRulesCreateZeroTrustGatewayRuleResponse, + RuleZeroTrustGatewayRulesListZeroTrustGatewayRulesResponse, ) +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.gateways import rule_update_params +from cloudflare.types.gateways import rule_zero_trust_gateway_rules_create_zero_trust_gateway_rule_params + 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 573162f253f..d6ecc9df10c 100644 --- a/tests/api_resources/healthchecks/test_previews.py +++ b/tests/api_resources/healthchecks/test_previews.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.healthchecks import ( + PreviewDeleteResponse, + PreviewGetResponse, + PreviewHealthChecksCreatePreviewHealthCheckResponse, +) + 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 ( - PreviewGetResponse, - PreviewDeleteResponse, - PreviewHealthChecksCreatePreviewHealthCheckResponse, -) +from cloudflare.types.healthchecks import preview_health_checks_create_preview_health_check_params 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 1c90f380e79..e3602e54fbe 100644 --- a/tests/api_resources/hostnames/settings/test_tls.py +++ b/tests/api_resources/hostnames/settings/test_tls.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.hostnames.settings import TLSUpdateResponse, TLSDeleteResponse, TLSGetResponse -import pytest +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.hostnames.settings import TLSGetResponse, TLSDeleteResponse, TLSUpdateResponse +from cloudflare.types.hostnames.settings import tls_update_params 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 acb30ba2032..24f8f8560f8 100644 --- a/tests/api_resources/hyperdrive/test_configs.py +++ b/tests/api_resources/hyperdrive/test_configs.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.hyperdrive import ( - ConfigGetResponse, - ConfigListResponse, ConfigCreateResponse, - ConfigDeleteResponse, ConfigUpdateResponse, + ConfigListResponse, + ConfigDeleteResponse, + ConfigGetResponse, ) +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.hyperdrive import config_create_params +from cloudflare.types.hyperdrive import config_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v1s.py b/tests/api_resources/images/test_v1s.py index 6c089b8b45d..0fd45abbe26 100644 --- a/tests/api_resources/images/test_v1s.py +++ b/tests/api_resources/images/test_v1s.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.images import ( - V1GetResponse, - V1DeleteResponse, V1UpdateResponse, + V1DeleteResponse, V1CloudflareImagesListImagesResponse, V1CloudflareImagesUploadAnImageViaURLResponse, + V1GetResponse, ) +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 v1_update_params +from cloudflare.types.images import v1_cloudflare_images_list_images_params +from cloudflare.types.images import v1_cloudflare_images_upload_an_image_via_url_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v2s.py b/tests/api_resources/images/test_v2s.py index 22306d58204..1b41e029532 100644 --- a/tests/api_resources/images/test_v2s.py +++ b/tests/api_resources/images/test_v2s.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.images import V2ListResponse + 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 V2ListResponse +from cloudflare.types.images import v2_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1s/test_blobs.py b/tests/api_resources/images/v1s/test_blobs.py index e80c0cd8d7c..9b82522cb55 100644 --- a/tests/api_resources/images/v1s/test_blobs.py +++ b/tests/api_resources/images/v1s/test_blobs.py @@ -2,21 +2,24 @@ from __future__ import annotations -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, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, 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/v1s/test_keys.py b/tests/api_resources/images/v1s/test_keys.py index aabc5b23f75..a716d3b5f6c 100644 --- a/tests/api_resources/images/v1s/test_keys.py +++ b/tests/api_resources/images/v1s/test_keys.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.images.v1s import KeyCloudflareImagesKeysListSigningKeysResponse + 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.v1s import KeyCloudflareImagesKeysListSigningKeysResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1s/test_stats.py b/tests/api_resources/images/v1s/test_stats.py index cf6549b190d..6fc4d697391 100644 --- a/tests/api_resources/images/v1s/test_stats.py +++ b/tests/api_resources/images/v1s/test_stats.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.images.v1s import StatCloudflareImagesImagesUsageStatisticsResponse + 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.v1s import StatCloudflareImagesImagesUsageStatisticsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1s/test_variants.py b/tests/api_resources/images/v1s/test_variants.py index 766425e10ed..b238a3256bf 100644 --- a/tests/api_resources/images/v1s/test_variants.py +++ b/tests/api_resources/images/v1s/test_variants.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os +from cloudflare.types.images.v1s import ( + VariantUpdateResponse, + VariantDeleteResponse, + VariantCloudflareImagesVariantsCreateAVariantResponse, + VariantCloudflareImagesVariantsListVariantsResponse, + VariantGetResponse, +) + 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.v1s import ( - VariantGetResponse, - VariantDeleteResponse, - VariantUpdateResponse, - VariantCloudflareImagesVariantsListVariantsResponse, - VariantCloudflareImagesVariantsCreateAVariantResponse, -) +from cloudflare.types.images.v1s import variant_update_params +from cloudflare.types.images.v1s import variant_cloudflare_images_variants_create_a_variant_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v2s/test_direct_uploads.py b/tests/api_resources/images/v2s/test_direct_uploads.py index 8838be477d7..003565020c1 100644 --- a/tests/api_resources/images/v2s/test_direct_uploads.py +++ b/tests/api_resources/images/v2s/test_direct_uploads.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.images.v2s import DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response + 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._utils import parse_datetime from cloudflare.types.images.v2s import ( - DirectUploadCloudflareImagesCreateAuthenticatedDirectUploadURLV2Response, + direct_upload_cloudflare_images_create_authenticated_direct_upload_url_v_2_params, ) +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/intel/test_indicator_feeds.py b/tests/api_resources/intel/test_indicator_feeds.py index 0fbdf84ee90..6a41403506b 100644 --- a/tests/api_resources/intel/test_indicator_feeds.py +++ b/tests/api_resources/intel/test_indicator_feeds.py @@ -2,23 +2,32 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.intel import ( - IndicatorFeedGetResponse, - IndicatorFeedListResponse, IndicatorFeedCreateResponse, - IndicatorFeedSnapshotResponse, + IndicatorFeedListResponse, + IndicatorFeedDataResponse, + IndicatorFeedGetResponse, IndicatorFeedPermissionsAddResponse, - IndicatorFeedPermissionsViewResponse, IndicatorFeedPermissionsRemoveResponse, + IndicatorFeedPermissionsViewResponse, + IndicatorFeedSnapshotResponse, ) +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 indicator_feed_create_params +from cloudflare.types.intel import indicator_feed_permissions_add_params +from cloudflare.types.intel import indicator_feed_permissions_remove_params +from cloudflare.types.intel import indicator_feed_snapshot_params + 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 591f9459f36..fd9fae19179 100644 --- a/tests/api_resources/intel/test_sinkholes.py +++ b/tests/api_resources/intel/test_sinkholes.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.intel import SinkholeListResponse + 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 SinkholeListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/asn/test_subnets.py b/tests/api_resources/intels/asn/test_subnets.py index 3b449773556..63e1954d65e 100644 --- a/tests/api_resources/intels/asn/test_subnets.py +++ b/tests/api_resources/intels/asn/test_subnets.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.intels.asn import SubnetListResponse + 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.intels.asn import SubnetListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/domains/test_bulks.py b/tests/api_resources/intels/domains/test_bulks.py index 7ec3bcafa7c..648f46006db 100644 --- a/tests/api_resources/intels/domains/test_bulks.py +++ b/tests/api_resources/intels/domains/test_bulks.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.intels.domains import BulkDomainIntelligenceGetMultipleDomainDetailsResponse +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.intels.domains import ( - BulkDomainIntelligenceGetMultipleDomainDetailsResponse, -) +from cloudflare.types.intels.domains import bulk_domain_intelligence_get_multiple_domain_details_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_asn.py b/tests/api_resources/intels/test_asn.py index 5f04b9f298b..d65719d6ea0 100644 --- a/tests/api_resources/intels/test_asn.py +++ b/tests/api_resources/intels/test_asn.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.intels import AsnGetResponse + 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.intels import AsnGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_dns.py b/tests/api_resources/intels/test_dns.py index d1a196923fa..2b4c92484dd 100644 --- a/tests/api_resources/intels/test_dns.py +++ b/tests/api_resources/intels/test_dns.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.intels import DNSPassiveDNSByIPGetPassiveDNSByIPResponse + 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.intels import dns_passive_dns_by_ip_get_passive_dns_by_ip_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.types.intels import ( - DNSPassiveDNSByIPGetPassiveDNSByIPResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_domain_histories.py b/tests/api_resources/intels/test_domain_histories.py index c36ba716bba..3d991f8f4bd 100644 --- a/tests/api_resources/intels/test_domain_histories.py +++ b/tests/api_resources/intels/test_domain_histories.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.intels import DomainHistoryListResponse +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.intels import DomainHistoryListResponse +from cloudflare.types.intels import domain_history_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_domains.py b/tests/api_resources/intels/test_domains.py index 31734cca9e3..ffbf7741968 100644 --- a/tests/api_resources/intels/test_domains.py +++ b/tests/api_resources/intels/test_domains.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.intels import DomainDomainIntelligenceGetDomainDetailsResponse + 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.intels import ( - DomainDomainIntelligenceGetDomainDetailsResponse, -) +from cloudflare.types.intels import domain_domain_intelligence_get_domain_details_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_ip_lists.py b/tests/api_resources/intels/test_ip_lists.py index ee3e623463c..b34b11f434a 100644 --- a/tests/api_resources/intels/test_ip_lists.py +++ b/tests/api_resources/intels/test_ip_lists.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.intels import IPListIPListGetIPListsResponse +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.intels import IPListIPListGetIPListsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_ips.py b/tests/api_resources/intels/test_ips.py index 63d61553709..208077afb1c 100644 --- a/tests/api_resources/intels/test_ips.py +++ b/tests/api_resources/intels/test_ips.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.intels import IPIPIntelligenceGetIPOverviewResponse +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.intels import IPIPIntelligenceGetIPOverviewResponse +from cloudflare.types.intels import ip_ip_intelligence_get_ip_overview_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_miscategorizations.py b/tests/api_resources/intels/test_miscategorizations.py index 6581c7a02b7..f10d2567b05 100644 --- a/tests/api_resources/intels/test_miscategorizations.py +++ b/tests/api_resources/intels/test_miscategorizations.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.intels import MiscategorizationMiscategorizationCreateMiscategorizationResponse + 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.intels import ( - MiscategorizationMiscategorizationCreateMiscategorizationResponse, -) +from cloudflare.types.intels import miscategorization_miscategorization_create_miscategorization_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intels/test_whois.py b/tests/api_resources/intels/test_whois.py index dce7fd70977..c3566e20194 100644 --- a/tests/api_resources/intels/test_whois.py +++ b/tests/api_resources/intels/test_whois.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.intels import WhoisWhoisRecordGetWhoisRecordResponse + 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.intels import WhoisWhoisRecordGetWhoisRecordResponse +from cloudflare.types.intels import whois_whois_record_get_whois_record_params 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 fa6e7cc7f75..77a6e235dbc 100644 --- a/tests/api_resources/load_balancers/monitors/test_previews.py +++ b/tests/api_resources/load_balancers/monitors/test_previews.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.load_balancers.monitors import PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse + 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 ( - PreviewAccountLoadBalancerMonitorsPreviewMonitorResponse, -) +from cloudflare.types.load_balancers.monitors import preview_account_load_balancer_monitors_preview_monitor_params 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 1ffc41ae32d..e0ae9735897 100644 --- a/tests/api_resources/load_balancers/monitors/test_references.py +++ b/tests/api_resources/load_balancers/monitors/test_references.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.load_balancers.monitors import ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse +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 ReferenceAccountLoadBalancerMonitorsListMonitorReferencesResponse 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 711dee525e0..419e8a8019d 100644 --- a/tests/api_resources/load_balancers/pools/test_health.py +++ b/tests/api_resources/load_balancers/pools/test_health.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.load_balancers.pools import HealthGetResponse, HealthPreviewResponse + 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 HealthGetResponse, HealthPreviewResponse +from cloudflare.types.load_balancers.pools import health_preview_params 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 e675b056e2d..f6b385d06c3 100644 --- a/tests/api_resources/load_balancers/pools/test_references.py +++ b/tests/api_resources/load_balancers/pools/test_references.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.load_balancers.pools import ReferenceListResponse +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 ReferenceListResponse 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 c40b9bef91e..75eaba1d868 100644 --- a/tests/api_resources/load_balancers/test_monitors.py +++ b/tests/api_resources/load_balancers/test_monitors.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.load_balancers import ( - MonitorGetResponse, - MonitorListResponse, MonitorCreateResponse, - MonitorDeleteResponse, MonitorUpdateResponse, + MonitorListResponse, + MonitorDeleteResponse, + MonitorGetResponse, ) +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.load_balancers import monitor_create_params +from cloudflare.types.load_balancers import monitor_update_params + 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 7a4a185443c..fa76848a967 100644 --- a/tests/api_resources/load_balancers/test_pools.py +++ b/tests/api_resources/load_balancers/test_pools.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.load_balancers import ( - PoolGetResponse, - PoolListResponse, PoolCreateResponse, - PoolDeleteResponse, PoolUpdateResponse, + PoolListResponse, + PoolDeleteResponse, + PoolGetResponse, ) +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.load_balancers import pool_create_params +from cloudflare.types.load_balancers import pool_update_params +from cloudflare.types.load_balancers import pool_list_params + 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 6c82df3d96b..f68521ac6e7 100644 --- a/tests/api_resources/load_balancers/test_previews.py +++ b/tests/api_resources/load_balancers/test_previews.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.load_balancers import PreviewGetResponse + 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 b1886430efd..0b76ebdbad9 100644 --- a/tests/api_resources/load_balancers/test_regions.py +++ b/tests/api_resources/load_balancers/test_regions.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.load_balancers import RegionGetResponse, RegionLoadBalancerRegionsListRegionsResponse + 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 ( - RegionGetResponse, - RegionLoadBalancerRegionsListRegionsResponse, -) +from cloudflare.types.load_balancers import region_load_balancer_regions_list_regions_params 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 ca9e580f09a..9f209e1a388 100644 --- a/tests/api_resources/load_balancers/test_searches.py +++ b/tests/api_resources/load_balancers/test_searches.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.load_balancers import SearchListResponse +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 SearchListResponse +from cloudflare.types.load_balancers import search_list_params 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 06eaf04cdad..4cbc4ca0d6a 100644 --- a/tests/api_resources/logpush/datasets/test_fields.py +++ b/tests/api_resources/logpush/datasets/test_fields.py @@ -2,11 +2,14 @@ from __future__ import annotations -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/logpush/datasets/test_jobs.py b/tests/api_resources/logpush/datasets/test_jobs.py index 1c397eabd53..ab5431649dd 100644 --- a/tests/api_resources/logpush/datasets/test_jobs.py +++ b/tests/api_resources/logpush/datasets/test_jobs.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.logpush.datasets import JobListResponse + 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.logpush.datasets import JobListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/ownerships/test_validates.py b/tests/api_resources/logpush/ownerships/test_validates.py index 080b5b7df04..7719edd91b3 100644 --- a/tests/api_resources/logpush/ownerships/test_validates.py +++ b/tests/api_resources/logpush/ownerships/test_validates.py @@ -2,15 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.logpush.ownerships import ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse +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.logpush.ownerships import ( - ValidatePostAccountsAccountIdentifierLogpushOwnershipValidateResponse, + validate_post_accounts_account_identifier_logpush_ownership_validate_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_edges.py b/tests/api_resources/logpush/test_edges.py index 743f2cf7ec5..cac60270522 100644 --- a/tests/api_resources/logpush/test_edges.py +++ b/tests/api_resources/logpush/test_edges.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.logpush import EdgeUpdateResponse, EdgeGetResponse +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.logpush import EdgeGetResponse, EdgeUpdateResponse +from cloudflare.types.logpush import edge_update_params 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 573648e6199..72662cefae9 100644 --- a/tests/api_resources/logpush/test_jobs.py +++ b/tests/api_resources/logpush/test_jobs.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.logpush import ( - JobGetResponse, - JobListResponse, JobCreateResponse, - JobDeleteResponse, JobUpdateResponse, + JobListResponse, + JobDeleteResponse, + JobGetResponse, ) +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.logpush import job_create_params +from cloudflare.types.logpush import job_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_ownerships.py b/tests/api_resources/logpush/test_ownerships.py index 887e6373e33..a21155270a5 100644 --- a/tests/api_resources/logpush/test_ownerships.py +++ b/tests/api_resources/logpush/test_ownerships.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.logpush import OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse +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.logpush import ( - OwnershipPostAccountsAccountIdentifierLogpushOwnershipResponse, -) +from cloudflare.types.logpush import ownership_post_accounts_account_identifier_logpush_ownership_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/validates/destinations/test_exists.py b/tests/api_resources/logpush/validates/destinations/test_exists.py index e9bee6404f8..5d8dde1d1c8 100644 --- a/tests/api_resources/logpush/validates/destinations/test_exists.py +++ b/tests/api_resources/logpush/validates/destinations/test_exists.py @@ -2,15 +2,22 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.logpush.validates.destinations import ( + ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, +) +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.logpush.validates.destinations import ( - ExistDeleteAccountsAccountIdentifierLogpushValidateDestinationExistsResponse, + exist_delete_accounts_account_identifier_logpush_validate_destination_exists_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/validates/test_origins.py b/tests/api_resources/logpush/validates/test_origins.py index f7c4bb11962..003da8916d1 100644 --- a/tests/api_resources/logpush/validates/test_origins.py +++ b/tests/api_resources/logpush/validates/test_origins.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.logpush.validates import OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse +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.logpush.validates import ( - OriginPostAccountsAccountIdentifierLogpushValidateOriginResponse, -) +from cloudflare.types.logpush.validates import origin_post_accounts_account_identifier_logpush_validate_origin_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/controls/cmb/test_configs.py b/tests/api_resources/logs/controls/cmb/test_configs.py index 6dbf54c2767..497cfa73261 100644 --- a/tests/api_resources/logs/controls/cmb/test_configs.py +++ b/tests/api_resources/logs/controls/cmb/test_configs.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.logs.controls.cmb import ( ConfigDeleteResponse, ConfigGetAccountsAccountIdentifierLogsControlCmbConfigResponse, ConfigPutAccountsAccountIdentifierLogsControlCmbConfigResponse, ) +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.controls.cmb import config_put_accounts_account_identifier_logs_control_cmb_config_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/controls/retentions/test_flags.py b/tests/api_resources/logs/controls/retentions/test_flags.py index e56a5848d5c..b8591940369 100644 --- a/tests/api_resources/logs/controls/retentions/test_flags.py +++ b/tests/api_resources/logs/controls/retentions/test_flags.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.logs.controls.retentions import ( + FlagLogsReceivedGetLogRetentionFlagResponse, + FlagLogsReceivedUpdateLogRetentionFlagResponse, +) + 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.controls.retentions import ( - FlagLogsReceivedGetLogRetentionFlagResponse, - FlagLogsReceivedUpdateLogRetentionFlagResponse, -) +from cloudflare.types.logs.controls.retentions import flag_logs_received_update_log_retention_flag_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/receiveds/test_fields.py b/tests/api_resources/logs/receiveds/test_fields.py index c3d68bc523b..c9e64ffafcb 100644 --- a/tests/api_resources/logs/receiveds/test_fields.py +++ b/tests/api_resources/logs/receiveds/test_fields.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.logs.receiveds import FieldLogsReceivedListFieldsResponse + 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.receiveds import FieldLogsReceivedListFieldsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_rayids.py b/tests/api_resources/logs/test_rayids.py index 5a5ba75ec32..bacf29b906e 100644 --- a/tests/api_resources/logs/test_rayids.py +++ b/tests/api_resources/logs/test_rayids.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.logs import RayidGetResponse + 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 RayidGetResponse +from cloudflare.types.logs import rayid_get_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_receiveds.py b/tests/api_resources/logs/test_receiveds.py index 3f58852393f..4eb83abf7ec 100644 --- a/tests/api_resources/logs/test_receiveds.py +++ b/tests/api_resources/logs/test_receiveds.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.logs import ReceivedReceivedGetLogsReceivedResponse + 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 ReceivedReceivedGetLogsReceivedResponse +from cloudflare.types.logs import received_received_get_logs_received_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magics/ipsec_tunnels/test_psk_generates.py b/tests/api_resources/magics/ipsec_tunnels/test_psk_generates.py index 1fea05bb4a2..5560a67b162 100644 --- a/tests/api_resources/magics/ipsec_tunnels/test_psk_generates.py +++ b/tests/api_resources/magics/ipsec_tunnels/test_psk_generates.py @@ -2,16 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.magics.ipsec_tunnels import ( + PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse, +) + 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.magics.ipsec_tunnels import ( - PskGenerateMagicIPsecTunnelsGeneratePreSharedKeyPskForIPsecTunnelsResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magics/test_cf_interconnects.py b/tests/api_resources/magics/test_cf_interconnects.py index 5831762caf5..99a76833af5 100644 --- a/tests/api_resources/magics/test_cf_interconnects.py +++ b/tests/api_resources/magics/test_cf_interconnects.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.magics import ( - CfInterconnectGetResponse, CfInterconnectUpdateResponse, + CfInterconnectGetResponse, CfInterconnectMagicInterconnectsListInterconnectsResponse, CfInterconnectMagicInterconnectsUpdateMultipleInterconnectsResponse, ) +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.magics import cf_interconnect_update_params +from cloudflare.types.magics import cf_interconnect_magic_interconnects_update_multiple_interconnects_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magics/test_gre_tunnels.py b/tests/api_resources/magics/test_gre_tunnels.py index d114d7dccb1..55075ca24d3 100644 --- a/tests/api_resources/magics/test_gre_tunnels.py +++ b/tests/api_resources/magics/test_gre_tunnels.py @@ -2,22 +2,29 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.magics import ( - GreTunnelGetResponse, - GreTunnelDeleteResponse, GreTunnelUpdateResponse, - GreTunnelMagicGreTunnelsListGreTunnelsResponse, + GreTunnelDeleteResponse, + GreTunnelGetResponse, GreTunnelMagicGreTunnelsCreateGreTunnelsResponse, + GreTunnelMagicGreTunnelsListGreTunnelsResponse, GreTunnelMagicGreTunnelsUpdateMultipleGreTunnelsResponse, ) +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.magics import gre_tunnel_update_params +from cloudflare.types.magics import gre_tunnel_magic_gre_tunnels_create_gre_tunnels_params +from cloudflare.types.magics import gre_tunnel_magic_gre_tunnels_update_multiple_gre_tunnels_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magics/test_ipsec_tunnels.py b/tests/api_resources/magics/test_ipsec_tunnels.py index f65807146d3..85cc7d94193 100644 --- a/tests/api_resources/magics/test_ipsec_tunnels.py +++ b/tests/api_resources/magics/test_ipsec_tunnels.py @@ -2,22 +2,29 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.magics import ( - IpsecTunnelGetResponse, - IpsecTunnelDeleteResponse, IpsecTunnelUpdateResponse, - IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, + IpsecTunnelDeleteResponse, + IpsecTunnelGetResponse, IpsecTunnelMagicIPsecTunnelsCreateIPsecTunnelsResponse, + IpsecTunnelMagicIPsecTunnelsListIPsecTunnelsResponse, IpsecTunnelMagicIPsecTunnelsUpdateMultipleIPsecTunnelsResponse, ) +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.magics import ipsec_tunnel_update_params +from cloudflare.types.magics import ipsec_tunnel_magic_i_psec_tunnels_create_i_psec_tunnels_params +from cloudflare.types.magics import ipsec_tunnel_magic_i_psec_tunnels_update_multiple_i_psec_tunnels_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magics/test_routes.py b/tests/api_resources/magics/test_routes.py index 70884ebb793..91aa1024dd6 100644 --- a/tests/api_resources/magics/test_routes.py +++ b/tests/api_resources/magics/test_routes.py @@ -2,22 +2,29 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.magics import ( - RouteGetResponse, - RouteDeleteResponse, RouteUpdateResponse, - RouteMagicStaticRoutesListRoutesResponse, + RouteDeleteResponse, + RouteGetResponse, RouteMagicStaticRoutesCreateRoutesResponse, + RouteMagicStaticRoutesListRoutesResponse, RouteMagicStaticRoutesUpdateManyRoutesResponse, ) +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.magics import route_update_params +from cloudflare.types.magics import route_magic_static_routes_create_routes_params +from cloudflare.types.magics import route_magic_static_routes_update_many_routes_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mnms/configs/test_fulls.py b/tests/api_resources/mnms/configs/test_fulls.py index bb1229ef880..ce8370aac86 100644 --- a/tests/api_resources/mnms/configs/test_fulls.py +++ b/tests/api_resources/mnms/configs/test_fulls.py @@ -2,16 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.mnms.configs import ( + FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse, +) + 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.mnms.configs import ( - FullMagicNetworkMonitoringConfigurationListRulesAndAccountConfigurationResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mnms/rules/test_advertisements.py b/tests/api_resources/mnms/rules/test_advertisements.py index df7f2a42b98..aa367ebd4fe 100644 --- a/tests/api_resources/mnms/rules/test_advertisements.py +++ b/tests/api_resources/mnms/rules/test_advertisements.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.mnms.rules import AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse +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.mnms.rules import AdvertisementMagicNetworkMonitoringRulesUpdateAdvertisementForRuleResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mnms/test_configs.py b/tests/api_resources/mnms/test_configs.py index 49e6d52a9ad..008cd7d5b63 100644 --- a/tests/api_resources/mnms/test_configs.py +++ b/tests/api_resources/mnms/test_configs.py @@ -2,21 +2,25 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.mnms import ( ConfigDeleteResponse, - ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationCreateAccountConfigurationResponse, + ConfigMagicNetworkMonitoringConfigurationListAccountConfigurationResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAccountConfigurationFieldsResponse, ConfigMagicNetworkMonitoringConfigurationUpdateAnEntireAccountConfigurationResponse, ) +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 + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mnms/test_rules.py b/tests/api_resources/mnms/test_rules.py index 7756766838d..e530c1b4828 100644 --- a/tests/api_resources/mnms/test_rules.py +++ b/tests/api_resources/mnms/test_rules.py @@ -2,22 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.mnms import ( - RuleGetResponse, - RuleDeleteResponse, RuleUpdateResponse, - RuleMagicNetworkMonitoringRulesListRulesResponse, + RuleDeleteResponse, + RuleGetResponse, RuleMagicNetworkMonitoringRulesCreateRulesResponse, + RuleMagicNetworkMonitoringRulesListRulesResponse, RuleMagicNetworkMonitoringRulesUpdateRulesResponse, ) +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/mtls_certificates/test_associations.py b/tests/api_resources/mtls_certificates/test_associations.py index ea0b5c6cfc9..8aab5f13605 100644 --- a/tests/api_resources/mtls_certificates/test_associations.py +++ b/tests/api_resources/mtls_certificates/test_associations.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.mtls_certificates import AssociationListResponse +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.mtls_certificates import AssociationListResponse 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 0e7f1287f7c..4c5ec3d70b9 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,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.origin_tls_client_auth.hostnames import ( - CertificateGetResponse, - CertificateListResponse, CertificateCreateResponse, + CertificateListResponse, CertificateDeleteResponse, + CertificateGetResponse, ) +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.origin_tls_client_auth.hostnames import certificate_create_params + 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 2d5d511f214..5f443ea46dd 100644 --- a/tests/api_resources/origin_tls_client_auth/test_hostnames.py +++ b/tests/api_resources/origin_tls_client_auth/test_hostnames.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.origin_tls_client_auth import HostnameUpdateResponse, HostnameGetResponse +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.origin_tls_client_auth import HostnameGetResponse, HostnameUpdateResponse +from cloudflare.types.origin_tls_client_auth import hostname_update_params 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 adf3e193f47..3d7efc049b0 100644 --- a/tests/api_resources/origin_tls_client_auth/test_settings.py +++ b/tests/api_resources/origin_tls_client_auth/test_settings.py @@ -2,16 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.origin_tls_client_auth import ( + SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, + SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, +) + 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.origin_tls_client_auth import ( - SettingZoneLevelAuthenticatedOriginPullsSetEnablementForZoneResponse, - SettingZoneLevelAuthenticatedOriginPullsGetEnablementSettingForZoneResponse, + setting_zone_level_authenticated_origin_pulls_set_enablement_for_zone_params, ) 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 ec87eea4772..ed528800d09 100644 --- a/tests/api_resources/page_shield/test_connections.py +++ b/tests/api_resources/page_shield/test_connections.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.page_shield import ConnectionGetResponse + 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.page_shield import ConnectionGetResponse 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 822ff07eeaa..4b6348d140b 100644 --- a/tests/api_resources/page_shield/test_policies.py +++ b/tests/api_resources/page_shield/test_policies.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.page_shield import ( - PolicyGetResponse, - PolicyListResponse, PolicyCreateResponse, PolicyUpdateResponse, + PolicyListResponse, + PolicyGetResponse, ) +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.page_shield import policy_create_params +from cloudflare.types.page_shield import policy_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shields/test_connections.py b/tests/api_resources/page_shields/test_connections.py index ac6590436c6..d8f6b9acb68 100644 --- a/tests/api_resources/page_shields/test_connections.py +++ b/tests/api_resources/page_shields/test_connections.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.page_shields import ConnectionGetResponse, ConnectionPageShieldListPageShieldConnectionsResponse -import pytest +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.page_shields import ( - ConnectionGetResponse, - ConnectionPageShieldListPageShieldConnectionsResponse, -) +from cloudflare.types.page_shields import connection_page_shield_list_page_shield_connections_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shields/test_scripts.py b/tests/api_resources/page_shields/test_scripts.py index be901fbd8fc..444269ff1a4 100644 --- a/tests/api_resources/page_shields/test_scripts.py +++ b/tests/api_resources/page_shields/test_scripts.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.page_shields import ScriptGetResponse, ScriptPageShieldListPageShieldScriptsResponse -import pytest +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.page_shields import ( - ScriptGetResponse, - ScriptPageShieldListPageShieldScriptsResponse, -) +from cloudflare.types.page_shields import script_page_shield_list_page_shield_scripts_params 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 0e0b805e1c1..8936a592a87 100644 --- a/tests/api_resources/pagerules/test_settings.py +++ b/tests/api_resources/pagerules/test_settings.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.pagerules import SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse + 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 SettingAvailablePageRulesSettingsListAvailablePageRulesSettingsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/deployments/histories/test_logs.py b/tests/api_resources/pages/projects/deployments/histories/test_logs.py index 20d0c31dfe6..da3783af32b 100644 --- a/tests/api_resources/pages/projects/deployments/histories/test_logs.py +++ b/tests/api_resources/pages/projects/deployments/histories/test_logs.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.pages.projects.deployments.histories import LogPagesDeploymentGetDeploymentLogsResponse + 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.histories import LogPagesDeploymentGetDeploymentLogsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/deployments/test_retries.py b/tests/api_resources/pages/projects/deployments/test_retries.py index fe5b3462b26..302fb89e7fc 100644 --- a/tests/api_resources/pages/projects/deployments/test_retries.py +++ b/tests/api_resources/pages/projects/deployments/test_retries.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.pages.projects.deployments import RetryPagesDeploymentRetryDeploymentResponse + 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 import RetryPagesDeploymentRetryDeploymentResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/deployments/test_rollbacks.py b/tests/api_resources/pages/projects/deployments/test_rollbacks.py index f95a8dcf795..2455616c829 100644 --- a/tests/api_resources/pages/projects/deployments/test_rollbacks.py +++ b/tests/api_resources/pages/projects/deployments/test_rollbacks.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.pages.projects.deployments import RollbackPagesDeploymentRollbackDeploymentResponse + 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 import RollbackPagesDeploymentRollbackDeploymentResponse 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 147f191d7b4..0cd8429fc1d 100644 --- a/tests/api_resources/pages/projects/test_deployments.py +++ b/tests/api_resources/pages/projects/test_deployments.py @@ -2,18 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.pages.projects import DeploymentCreateResponse, DeploymentListResponse, DeploymentGetResponse + 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 import ( - DeploymentGetResponse, - DeploymentListResponse, - DeploymentCreateResponse, -) +from cloudflare.types.pages.projects import deployment_create_params 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 209b8f64a8a..137bb1901d5 100644 --- a/tests/api_resources/pages/projects/test_domains.py +++ b/tests/api_resources/pages/projects/test_domains.py @@ -2,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.pages.projects import ( - DomainGetResponse, DomainUpdateResponse, + DomainGetResponse, DomainPagesDomainsAddDomainResponse, DomainPagesDomainsGetDomainsResponse, ) +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 domain_pages_domains_add_domain_params + 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 701fa2f7504..08a3f3cbe0f 100644 --- a/tests/api_resources/pages/test_projects.py +++ b/tests/api_resources/pages/test_projects.py @@ -2,19 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.pages import ProjectCreateResponse, ProjectUpdateResponse, ProjectListResponse, ProjectGetResponse + 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 import ( - ProjectGetResponse, - ProjectListResponse, - ProjectCreateResponse, - ProjectUpdateResponse, -) +from cloudflare.types.pages import project_create_params +from cloudflare.types.pages import project_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pcaps/ownerships/test_validates.py b/tests/api_resources/pcaps/ownerships/test_validates.py index 2f345395f5c..7296d2ade17 100644 --- a/tests/api_resources/pcaps/ownerships/test_validates.py +++ b/tests/api_resources/pcaps/ownerships/test_validates.py @@ -2,15 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.pcaps.ownerships import ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse + 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.pcaps.ownerships import ( - ValidateMagicPcapCollectionValidateBucketsForFullPacketCapturesResponse, + validate_magic_pcap_collection_validate_buckets_for_full_packet_captures_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pcaps/test_downloads.py b/tests/api_resources/pcaps/test_downloads.py index 9e6a2b062d7..3c70ad5268c 100644 --- a/tests/api_resources/pcaps/test_downloads.py +++ b/tests/api_resources/pcaps/test_downloads.py @@ -2,21 +2,24 @@ from __future__ import annotations -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, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, 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_ownerships.py b/tests/api_resources/pcaps/test_ownerships.py index b0d79100be5..2ce2530582f 100644 --- a/tests/api_resources/pcaps/test_ownerships.py +++ b/tests/api_resources/pcaps/test_ownerships.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Any, cast, Optional -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.pcaps import ( - OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, OwnershipMagicPcapCollectionAddBucketsForFullPacketCapturesResponse, + OwnershipMagicPcapCollectionListPcaPsBucketOwnershipResponse, ) +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 ownership_magic_pcap_collection_add_buckets_for_full_packet_captures_params + 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 72846ad201f..77395bd970b 100644 --- a/tests/api_resources/r2/test_buckets.py +++ b/tests/api_resources/r2/test_buckets.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.r2 import BucketCreateResponse, BucketListResponse, BucketGetResponse + 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 ( - BucketGetResponse, - BucketListResponse, - BucketCreateResponse, -) +from cloudflare.types.r2 import bucket_create_params +from cloudflare.types.r2 import bucket_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/annotations/outages/test_locations.py b/tests/api_resources/radar/annotations/outages/test_locations.py index f4817209b06..09f3e082e14 100644 --- a/tests/api_resources/radar/annotations/outages/test_locations.py +++ b/tests/api_resources/radar/annotations/outages/test_locations.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar.annotations.outages import LocationListResponse + 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.outages import location_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.annotations.outages import LocationListResponse 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 1c1457ae404..cfee1866890 100644 --- a/tests/api_resources/radar/annotations/test_outages.py +++ b/tests/api_resources/radar/annotations/test_outages.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar.annotations import OutageListResponse + 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_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.annotations import OutageListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/timeseries_groups/test_dnssec.py b/tests/api_resources/radar/as112/timeseries_groups/test_dnssec.py index d02e1c92abd..d051030cc8f 100644 --- a/tests/api_resources/radar/as112/timeseries_groups/test_dnssec.py +++ b/tests/api_resources/radar/as112/timeseries_groups/test_dnssec.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.as112.timeseries_groups import DNSSECListResponse + 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.timeseries_groups import dnssec_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._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.timeseries_groups import DNSSECListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/timeseries_groups/test_edns.py b/tests/api_resources/radar/as112/timeseries_groups/test_edns.py index f917120d1b1..a3017842619 100644 --- a/tests/api_resources/radar/as112/timeseries_groups/test_edns.py +++ b/tests/api_resources/radar/as112/timeseries_groups/test_edns.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.as112.timeseries_groups import EdnListResponse + 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.timeseries_groups import edn_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._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.timeseries_groups import EdnListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/timeseries_groups/test_ip_version.py b/tests/api_resources/radar/as112/timeseries_groups/test_ip_version.py index 4c022c486d5..f1f21fcade4 100644 --- a/tests/api_resources/radar/as112/timeseries_groups/test_ip_version.py +++ b/tests/api_resources/radar/as112/timeseries_groups/test_ip_version.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.as112.timeseries_groups import IPVersionListResponse + 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.timeseries_groups import ip_version_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._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.timeseries_groups import IPVersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_industry.py b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_industry.py index c8dfd9a6f0c..bef44a32373 100644 --- a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_industry.py +++ b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_industry.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.timeseries_groups import IndustryListResponse + 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.timeseries_groups import industry_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._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.timeseries_groups import IndustryListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_ip_version.py b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_ip_version.py index b3842e79144..5780d935684 100644 --- a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_ip_version.py +++ b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_ip_version.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.timeseries_groups import IPVersionListResponse + 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.timeseries_groups import ip_version_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._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.timeseries_groups import IPVersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_protocol.py b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_protocol.py index 0a11c08a9ad..3842bc3e05b 100644 --- a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_protocol.py +++ b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_protocol.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.timeseries_groups import ProtocolListResponse + 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.timeseries_groups import protocol_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._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.timeseries_groups import ProtocolListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vector.py b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vector.py index 713bb403606..80c96794c39 100644 --- a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vector.py +++ b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vector.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.timeseries_groups import VectorListResponse + 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.timeseries_groups import vector_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._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.timeseries_groups import VectorListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vertical.py b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vertical.py index 6cd35656b72..1a0fcd8b451 100644 --- a/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vertical.py +++ b/tests/api_resources/radar/attacks/layer3/timeseries_groups/test_vertical.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.timeseries_groups import VerticalListResponse + 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.timeseries_groups import vertical_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._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.timeseries_groups import VerticalListResponse 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/locations/test_origin.py b/tests/api_resources/radar/attacks/layer3/top/locations/test_origin.py index eb4b69525f1..da94f9c90ac 100644 --- a/tests/api_resources/radar/attacks/layer3/top/locations/test_origin.py +++ b/tests/api_resources/radar/attacks/layer3/top/locations/test_origin.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.top.locations import OriginListResponse + 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.locations import origin_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._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.locations import OriginListResponse 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/locations/test_target.py b/tests/api_resources/radar/attacks/layer3/top/locations/test_target.py index afc0c670842..138de91ba5e 100644 --- a/tests/api_resources/radar/attacks/layer3/top/locations/test_target.py +++ b/tests/api_resources/radar/attacks/layer3/top/locations/test_target.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.top.locations import TargetListResponse + 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.locations import target_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._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.locations import TargetListResponse 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_attacks.py b/tests/api_resources/radar/attacks/layer3/top/test_attacks.py index 46ab2314c5b..dd85875b4c2 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_attacks.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_attacks.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.top import AttackListResponse + 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 attack_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._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 AttackListResponse 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_industry.py b/tests/api_resources/radar/attacks/layer3/top/test_industry.py index ab51babe40f..5ffbcec63f5 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_industry.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_industry.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.top import IndustryListResponse + 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 industry_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._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 IndustryListResponse 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_vertical.py b/tests/api_resources/radar/attacks/layer3/top/test_vertical.py index a5220608147..d2b1f93d1f5 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_vertical.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_vertical.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.attacks.layer3.top import VerticalListResponse + 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 vertical_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._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 VerticalListResponse 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 73f1bdbc6b5..6927e59b437 100644 --- a/tests/api_resources/radar/bgp/leaks/test_events.py +++ b/tests/api_resources/radar/bgp/leaks/test_events.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp.leaks import EventListResponse + 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.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_hijacks.py b/tests/api_resources/radar/bgp/test_hijacks.py index 68e95399b02..6162b46f8fb 100644 --- a/tests/api_resources/radar/bgp/test_hijacks.py +++ b/tests/api_resources/radar/bgp/test_hijacks.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp import HijackEventsResponse + 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 hijack_events_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.bgp import HijackEventsResponse 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 59a0eda1ab3..ca1c2359523 100644 --- a/tests/api_resources/radar/bgp/test_routes.py +++ b/tests/api_resources/radar/bgp/test_routes.py @@ -2,18 +2,21 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp import RouteMoasResponse, RoutePfx2asResponse, RouteStatsResponse + 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 ( - RouteMoasResponse, - RouteStatsResponse, - RoutePfx2asResponse, -) +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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/test_timeseries.py b/tests/api_resources/radar/bgp/test_timeseries.py index b1eadd85230..22f96bf65d2 100644 --- a/tests/api_resources/radar/bgp/test_timeseries.py +++ b/tests/api_resources/radar/bgp/test_timeseries.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp import TimeseryListResponse + 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 timesery_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._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 TimeseryListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/tops/test_ases.py b/tests/api_resources/radar/bgp/tops/test_ases.py index 3854c2a147f..12e8fbbe239 100644 --- a/tests/api_resources/radar/bgp/tops/test_ases.py +++ b/tests/api_resources/radar/bgp/tops/test_ases.py @@ -2,15 +2,32 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp.tops import AseListResponse, AsePrefixesResponse + 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.tops import ase_list_params +from cloudflare.types.radar.bgp.tops 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.tops import AseListResponse, AsePrefixesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/tops/test_prefixes.py b/tests/api_resources/radar/bgp/tops/test_prefixes.py index ccb6bd20e1d..03231c185f0 100644 --- a/tests/api_resources/radar/bgp/tops/test_prefixes.py +++ b/tests/api_resources/radar/bgp/tops/test_prefixes.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.bgp.tops import PrefixListResponse + 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.tops import prefix_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._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.tops import PrefixListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/connection_tampering/test_timeseries_groups.py b/tests/api_resources/radar/connection_tampering/test_timeseries_groups.py index cd7a58da3e0..b20cc3865a4 100644 --- a/tests/api_resources/radar/connection_tampering/test_timeseries_groups.py +++ b/tests/api_resources/radar/connection_tampering/test_timeseries_groups.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.connection_tampering import TimeseriesGroupListResponse + 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.connection_tampering import timeseries_group_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._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.connection_tampering import TimeseriesGroupListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/datasets/test_downloads.py b/tests/api_resources/radar/datasets/test_downloads.py index 9099faf477e..d394701d068 100644 --- a/tests/api_resources/radar/datasets/test_downloads.py +++ b/tests/api_resources/radar/datasets/test_downloads.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.radar.datasets import DownloadRadarPostDatasetDownloadResponse + 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.datasets import ( - DownloadRadarPostDatasetDownloadResponse, -) +from cloudflare.types.radar.datasets import download_radar_post_dataset_download_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/dns/tops/test_ases.py b/tests/api_resources/radar/dns/tops/test_ases.py index 8b69dc0d540..e637127b7d5 100644 --- a/tests/api_resources/radar/dns/tops/test_ases.py +++ b/tests/api_resources/radar/dns/tops/test_ases.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.dns.tops import AseListResponse + 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.tops import ase_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._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.tops import AseListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/dns/tops/test_locations.py b/tests/api_resources/radar/dns/tops/test_locations.py index 86697bbbe91..6b334f0be2c 100644 --- a/tests/api_resources/radar/dns/tops/test_locations.py +++ b/tests/api_resources/radar/dns/tops/test_locations.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.dns.tops import LocationListResponse + 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.tops import location_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._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.tops import LocationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_arcs.py b/tests/api_resources/radar/email/security/summaries/test_arcs.py index f18d4cbbdc0..128b423e657 100644 --- a/tests/api_resources/radar/email/security/summaries/test_arcs.py +++ b/tests/api_resources/radar/email/security/summaries/test_arcs.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import ArcListResponse + 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.summaries import arc_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._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.summaries import ArcListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_dkims.py b/tests/api_resources/radar/email/security/summaries/test_dkims.py index fa02d8ef5fe..cb91e065738 100644 --- a/tests/api_resources/radar/email/security/summaries/test_dkims.py +++ b/tests/api_resources/radar/email/security/summaries/test_dkims.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import DKIMListResponse + 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.summaries import dkim_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._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.summaries import DKIMListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_dmarcs.py b/tests/api_resources/radar/email/security/summaries/test_dmarcs.py index f1102eb18f0..7c057249096 100644 --- a/tests/api_resources/radar/email/security/summaries/test_dmarcs.py +++ b/tests/api_resources/radar/email/security/summaries/test_dmarcs.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import DmarcListResponse + 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.summaries import dmarc_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._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.summaries import DmarcListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_malicious.py b/tests/api_resources/radar/email/security/summaries/test_malicious.py index 20acca50253..3f85d8bed18 100644 --- a/tests/api_resources/radar/email/security/summaries/test_malicious.py +++ b/tests/api_resources/radar/email/security/summaries/test_malicious.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import MaliciousListResponse + 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.summaries import malicious_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._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.summaries import MaliciousListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_spams.py b/tests/api_resources/radar/email/security/summaries/test_spams.py index 1f01260c22e..50dacc3a12f 100644 --- a/tests/api_resources/radar/email/security/summaries/test_spams.py +++ b/tests/api_resources/radar/email/security/summaries/test_spams.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import SpamGetResponse + 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.summaries 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.summaries 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/summaries/test_spfs.py b/tests/api_resources/radar/email/security/summaries/test_spfs.py index cdb0d38dfba..47464c668da 100644 --- a/tests/api_resources/radar/email/security/summaries/test_spfs.py +++ b/tests/api_resources/radar/email/security/summaries/test_spfs.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import SPFListResponse + 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.summaries import spf_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._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.summaries import SPFListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/summaries/test_threat_categories.py b/tests/api_resources/radar/email/security/summaries/test_threat_categories.py index 9b0c84af4df..3aca5de3ca1 100644 --- a/tests/api_resources/radar/email/security/summaries/test_threat_categories.py +++ b/tests/api_resources/radar/email/security/summaries/test_threat_categories.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.summaries import ThreatCategoryListResponse + 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.summaries import threat_category_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._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.summaries import ThreatCategoryListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/timeseries_groups/test_arcs.py b/tests/api_resources/radar/email/security/timeseries_groups/test_arcs.py index a489bc95edd..0dea7d05530 100644 --- a/tests/api_resources/radar/email/security/timeseries_groups/test_arcs.py +++ b/tests/api_resources/radar/email/security/timeseries_groups/test_arcs.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.timeseries_groups import ArcListResponse + 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.timeseries_groups import arc_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._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.timeseries_groups import ArcListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/timeseries_groups/test_dkims.py b/tests/api_resources/radar/email/security/timeseries_groups/test_dkims.py index 395f7447fc9..07292b46be4 100644 --- a/tests/api_resources/radar/email/security/timeseries_groups/test_dkims.py +++ b/tests/api_resources/radar/email/security/timeseries_groups/test_dkims.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.email.security.timeseries_groups import DKIMListResponse + 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.timeseries_groups import dkim_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._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.timeseries_groups import DKIMListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/test_dmarc.py b/tests/api_resources/radar/emails/security/test_dmarc.py index 109d1bbf944..82ddde43d69 100644 --- a/tests/api_resources/radar/emails/security/test_dmarc.py +++ b/tests/api_resources/radar/emails/security/test_dmarc.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security import DmarcListResponse + 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.emails.security import dmarc_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._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.emails.security import DmarcListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/test_malicious.py b/tests/api_resources/radar/emails/security/test_malicious.py index 0c00485b805..86b38e794da 100644 --- a/tests/api_resources/radar/emails/security/test_malicious.py +++ b/tests/api_resources/radar/emails/security/test_malicious.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security import MaliciousListResponse + 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.emails.security import malicious_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._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.emails.security import MaliciousListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/test_spam.py b/tests/api_resources/radar/emails/security/test_spam.py index 5df58d46413..1d9d055d5cc 100644 --- a/tests/api_resources/radar/emails/security/test_spam.py +++ b/tests/api_resources/radar/emails/security/test_spam.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security import SpamListResponse + 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.emails.security import spam_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._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.emails.security import SpamListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/test_spf.py b/tests/api_resources/radar/emails/security/test_spf.py index a8045cf6ab3..a645810d6b7 100644 --- a/tests/api_resources/radar/emails/security/test_spf.py +++ b/tests/api_resources/radar/emails/security/test_spf.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security import SPFListResponse + 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.emails.security import spf_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._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.emails.security import SPFListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/test_threat_category.py b/tests/api_resources/radar/emails/security/test_threat_category.py index 5f4394b1ec5..8347d053ebc 100644 --- a/tests/api_resources/radar/emails/security/test_threat_category.py +++ b/tests/api_resources/radar/emails/security/test_threat_category.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security import ThreatCategoryListResponse + 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.emails.security import threat_category_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._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.emails.security import ThreatCategoryListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/top/ases/test_arc.py b/tests/api_resources/radar/emails/security/top/ases/test_arc.py index b1363bad30a..6bbca7cbd8a 100644 --- a/tests/api_resources/radar/emails/security/top/ases/test_arc.py +++ b/tests/api_resources/radar/emails/security/top/ases/test_arc.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security.top.ases import ArcGetResponse + 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.emails.security.top.ases import arc_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.emails.security.top.ases import ArcGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/top/ases/test_dkim.py b/tests/api_resources/radar/emails/security/top/ases/test_dkim.py index a06bdce9bd3..102750c93bf 100644 --- a/tests/api_resources/radar/emails/security/top/ases/test_dkim.py +++ b/tests/api_resources/radar/emails/security/top/ases/test_dkim.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security.top.ases import DKIMGetResponse + 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.emails.security.top.ases import dkim_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.emails.security.top.ases import DKIMGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/top/ases/test_dmarc.py b/tests/api_resources/radar/emails/security/top/ases/test_dmarc.py index 09adea6b8af..26b9f5fabe4 100644 --- a/tests/api_resources/radar/emails/security/top/ases/test_dmarc.py +++ b/tests/api_resources/radar/emails/security/top/ases/test_dmarc.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security.top.ases import DmarcGetResponse + 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.emails.security.top.ases import dmarc_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.emails.security.top.ases import DmarcGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/emails/security/top/test_ases.py b/tests/api_resources/radar/emails/security/top/test_ases.py index c6c49d36b9f..ab683ab18d2 100644 --- a/tests/api_resources/radar/emails/security/top/test_ases.py +++ b/tests/api_resources/radar/emails/security/top/test_ases.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.emails.security.top import AseListResponse + 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.emails.security.top import ase_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._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.emails.security.top import AseListResponse 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 95a0064c94c..903e8b657c1 100644 --- a/tests/api_resources/radar/entities/test_asns.py +++ b/tests/api_resources/radar/entities/test_asns.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.radar.entities import AsnRelResponse + 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 AsnRelResponse +from cloudflare.types.radar.entities import asn_rel_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_tls_version.py b/tests/api_resources/radar/http/test_tls_version.py index 89b637651b8..2eb222bde06 100644 --- a/tests/api_resources/radar/http/test_tls_version.py +++ b/tests/api_resources/radar/http/test_tls_version.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.http import TLSVersionListResponse + 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 tls_version_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._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 TLSVersionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/netflows/test_timeseries.py b/tests/api_resources/radar/netflows/test_timeseries.py index 5f3595eae25..2ee07d5b827 100644 --- a/tests/api_resources/radar/netflows/test_timeseries.py +++ b/tests/api_resources/radar/netflows/test_timeseries.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.netflows import TimeseryListResponse + 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 timesery_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._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 TimeseryListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/netflows/tops/test_ases.py b/tests/api_resources/radar/netflows/tops/test_ases.py index e714a0f1845..adada83548d 100644 --- a/tests/api_resources/radar/netflows/tops/test_ases.py +++ b/tests/api_resources/radar/netflows/tops/test_ases.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.netflows.tops import AseListResponse + 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.tops import ase_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._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.tops import AseListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/netflows/tops/test_locations.py b/tests/api_resources/radar/netflows/tops/test_locations.py index 89554bed072..82b9d72b8b4 100644 --- a/tests/api_resources/radar/netflows/tops/test_locations.py +++ b/tests/api_resources/radar/netflows/tops/test_locations.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.netflows.tops import LocationListResponse + 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.tops import location_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._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.tops import LocationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/iqi/test_timeseries_groups.py b/tests/api_resources/radar/quality/iqi/test_timeseries_groups.py index 310f7971c87..f0aef966e6a 100644 --- a/tests/api_resources/radar/quality/iqi/test_timeseries_groups.py +++ b/tests/api_resources/radar/quality/iqi/test_timeseries_groups.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality.iqi import TimeseriesGroupListResponse + 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.iqi import timeseries_group_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._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.iqi import TimeseriesGroupListResponse 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_histogram.py b/tests/api_resources/radar/quality/speed/test_histogram.py index 7b78a3f1417..b67ed05f456 100644 --- a/tests/api_resources/radar/quality/speed/test_histogram.py +++ b/tests/api_resources/radar/quality/speed/test_histogram.py @@ -2,15 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality.speed import HistogramGetResponse + 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 histogram_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.types.radar.quality.speed import HistogramGetResponse 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_summary.py b/tests/api_resources/radar/quality/speed/test_summary.py index 30b5ce875b4..9f264acdcf9 100644 --- a/tests/api_resources/radar/quality/speed/test_summary.py +++ b/tests/api_resources/radar/quality/speed/test_summary.py @@ -2,15 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality.speed import SummaryGetResponse + 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 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._utils import parse_datetime from cloudflare._utils import parse_datetime -from cloudflare.types.radar.quality.speed import SummaryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/speed/top/test_ases.py b/tests/api_resources/radar/quality/speed/top/test_ases.py index bbd890c99f7..547412ba1b8 100644 --- a/tests/api_resources/radar/quality/speed/top/test_ases.py +++ b/tests/api_resources/radar/quality/speed/top/test_ases.py @@ -2,15 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality.speed.top import AseListResponse + 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.top import ase_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.types.radar.quality.speed.top import AseListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/speed/top/test_locations.py b/tests/api_resources/radar/quality/speed/top/test_locations.py index 984f9e47e3b..8cf3a4dc4d5 100644 --- a/tests/api_resources/radar/quality/speed/top/test_locations.py +++ b/tests/api_resources/radar/quality/speed/top/test_locations.py @@ -2,15 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality.speed.top import LocationListResponse + 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.top import location_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.types.radar.quality.speed.top import LocationListResponse 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 e0f0dd6ccfc..55eec1514de 100644 --- a/tests/api_resources/radar/quality/test_iqi.py +++ b/tests/api_resources/radar/quality/test_iqi.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.quality import IqiGetResponse + 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_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.quality import IqiGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/ranking/test_timeseries_groups.py b/tests/api_resources/radar/ranking/test_timeseries_groups.py index 1c7ebae1603..bbbeac7d349 100644 --- a/tests/api_resources/radar/ranking/test_timeseries_groups.py +++ b/tests/api_resources/radar/ranking/test_timeseries_groups.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.ranking import TimeseriesGroupListResponse + 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 timeseries_group_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._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.ranking import TimeseriesGroupListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/searches/test_globals.py b/tests/api_resources/radar/searches/test_globals.py index 576c5abf61d..b1c74372635 100644 --- a/tests/api_resources/radar/searches/test_globals.py +++ b/tests/api_resources/radar/searches/test_globals.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.radar.searches import GlobalListResponse + 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.searches import GlobalListResponse +from cloudflare.types.radar.searches import global_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_connection_tampering.py b/tests/api_resources/radar/test_connection_tampering.py index fb7a37ee55c..41df6bbad81 100644 --- a/tests/api_resources/radar/test_connection_tampering.py +++ b/tests/api_resources/radar/test_connection_tampering.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar import ConnectionTamperingSummaryResponse + 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 connection_tampering_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 import ConnectionTamperingSummaryResponse 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 68d1d421c0a..7bc7f4b7ff1 100644 --- a/tests/api_resources/radar/test_datasets.py +++ b/tests/api_resources/radar/test_datasets.py @@ -2,14 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.radar import DatasetListResponse, DatasetGetResponse + 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 DatasetListResponse +from cloudflare.types.radar import dataset_list_params +from cloudflare.types.radar import dataset_get_params 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 53426f1ad9b..8389be6eb35 100644 --- a/tests/api_resources/radar/test_entities.py +++ b/tests/api_resources/radar/test_entities.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.radar import EntityIPsResponse + 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 EntityIPsResponse +from cloudflare.types.radar import entity_ips_params 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 4c907d2a59a..80d8ddda6c7 100644 --- a/tests/api_resources/radar/test_http.py +++ b/tests/api_resources/radar/test_http.py @@ -2,24 +2,131 @@ from __future__ import annotations -import os +from cloudflare.types.radar import ( + HTTPBotClassesResponse, + HTTPBrowserFamiliesResponse, + HTTPBrowsersResponse, + HTTPDeviceTypesResponse, + HTTPHTTPProtocolsResponse, + HTTPHTTPVersionsResponse, + HTTPIPVersionsResponse, + HTTPOssResponse, +) + 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_bot_classes_params +from cloudflare.types.radar import http_browser_families_params +from cloudflare.types.radar import http_browsers_params +from cloudflare.types.radar import http_device_types_params +from cloudflare.types.radar import http_http_protocols_params +from cloudflare.types.radar import http_http_versions_params +from cloudflare.types.radar import http_ip_versions_params +from cloudflare.types.radar import http_oss_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 import ( - HTTPOssResponse, - HTTPBrowsersResponse, - HTTPBotClassesResponse, - HTTPIPVersionsResponse, - HTTPDeviceTypesResponse, - HTTPHTTPVersionsResponse, - HTTPHTTPProtocolsResponse, - HTTPBrowserFamiliesResponse, -) 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 607e9214d27..fb24e1f7d4f 100644 --- a/tests/api_resources/radar/test_traffic_anomalies.py +++ b/tests/api_resources/radar/test_traffic_anomalies.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar import TrafficAnomalyListResponse + 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_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 TrafficAnomalyListResponse 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 d2cfd1eb66f..76379983686 100644 --- a/tests/api_resources/radar/traffic_anomalies/test_locations.py +++ b/tests/api_resources/radar/traffic_anomalies/test_locations.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.radar.traffic_anomalies import LocationListResponse + 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_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.traffic_anomalies import LocationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/verified_bots/tops/test_bots.py b/tests/api_resources/radar/verified_bots/tops/test_bots.py index 5711d8d61b8..7aadad31640 100644 --- a/tests/api_resources/radar/verified_bots/tops/test_bots.py +++ b/tests/api_resources/radar/verified_bots/tops/test_bots.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.verified_bots.tops import BotListResponse + 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.tops import bot_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._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.tops import BotListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/verified_bots/tops/test_categories.py b/tests/api_resources/radar/verified_bots/tops/test_categories.py index 20baf7b62de..7e9efb08fee 100644 --- a/tests/api_resources/radar/verified_bots/tops/test_categories.py +++ b/tests/api_resources/radar/verified_bots/tops/test_categories.py @@ -2,15 +2,31 @@ from __future__ import annotations -import os +from cloudflare.types.radar.verified_bots.tops import CategoryListResponse + 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.tops import category_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._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.tops import CategoryListResponse 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 c59a92df5aa..b31d27b77f2 100644 --- a/tests/api_resources/registrar/test_domains.py +++ b/tests/api_resources/registrar/test_domains.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.registrar import DomainUpdateResponse, DomainListResponse, DomainGetResponse +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.registrar import DomainGetResponse, DomainListResponse, DomainUpdateResponse +from cloudflare.types.registrar import domain_update_params 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 3aefa19d9ef..15b241592d9 100644 --- a/tests/api_resources/request_tracers/test_traces.py +++ b/tests/api_resources/request_tracers/test_traces.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.request_tracers import TraceCreateResponse + 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.request_tracers import TraceCreateResponse +from cloudflare.types.request_tracers import trace_create_params 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 fe7d5dcbd0c..0394be2d6cc 100644 --- a/tests/api_resources/rules/lists/test_bulk_operations.py +++ b/tests/api_resources/rules/lists/test_bulk_operations.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.rules.lists import BulkOperationGetResponse +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.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 56dbfeaec7d..8441b8a2896 100644 --- a/tests/api_resources/rules/lists/test_items.py +++ b/tests/api_resources/rules/lists/test_items.py @@ -2,21 +2,29 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.rules.lists import ( - ItemGetResponse, ItemDeleteResponse, - ItemListsGetListItemsResponse, + ItemGetResponse, ItemListsCreateListItemsResponse, + ItemListsGetListItemsResponse, ItemListsUpdateAllListItemsResponse, ) +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.rules.lists import item_delete_params +from cloudflare.types.rules.lists import item_lists_create_list_items_params +from cloudflare.types.rules.lists import item_lists_get_list_items_params +from cloudflare.types.rules.lists import item_lists_update_all_list_items_params + 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 141741afd4f..b7107385992 100644 --- a/tests/api_resources/rules/test_lists.py +++ b/tests/api_resources/rules/test_lists.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.rules import ( - ListGetResponse, - ListDeleteResponse, ListUpdateResponse, - ListListsGetListsResponse, + ListDeleteResponse, + ListGetResponse, ListListsCreateAListResponse, + ListListsGetListsResponse, ) +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.rules import list_update_params +from cloudflare.types.rules import list_lists_create_a_list_params + 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 d79a1cdfb44..52ab4641f93 100644 --- a/tests/api_resources/rulesets/test_phases.py +++ b/tests/api_resources/rulesets/test_phases.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.rulesets import PhaseGetResponse + 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 PhaseGetResponse 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 c11aade33c9..292dbdf70b1 100644 --- a/tests/api_resources/rulesets/test_rules.py +++ b/tests/api_resources/rulesets/test_rules.py @@ -2,18 +2,24 @@ from __future__ import annotations -import os +from cloudflare.types.rulesets import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, +) + 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 ( - RuleDeleteResponse, - RuleUpdateResponse, - RuleAccountRulesetsCreateAnAccountRulesetRuleResponse, -) +from cloudflare.types.rulesets import rule_update_params +from cloudflare.types.rulesets import rule_account_rulesets_create_an_account_ruleset_rule_params 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 391b3896b46..7372cf947e4 100644 --- a/tests/api_resources/rulesets/test_versions.py +++ b/tests/api_resources/rulesets/test_versions.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os from typing import Any, cast -import pytest +from cloudflare.types.rulesets import VersionAccountRulesetsListAnAccountRulesetSVersionsResponse, VersionGetResponse +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 VersionGetResponse, VersionAccountRulesetsListAnAccountRulesetSVersionsResponse 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_tags.py b/tests/api_resources/rulesets/versions/test_by_tags.py index f1f90afcc9a..12570140f1a 100644 --- a/tests/api_resources/rulesets/versions/test_by_tags.py +++ b/tests/api_resources/rulesets/versions/test_by_tags.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.rulesets.versions import ByTagGetResponse + 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 6c2378c482e..f3c813afe84 100644 --- a/tests/api_resources/rum/test_rules.py +++ b/tests/api_resources/rum/test_rules.py @@ -2,19 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.rum import RuleCreateResponse, RuleUpdateResponse, RuleListResponse, RuleDeleteResponse +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.rum import ( - RuleListResponse, - RuleCreateResponse, - RuleDeleteResponse, - RuleUpdateResponse, -) +from cloudflare.types.rum import rule_create_params +from cloudflare.types.rum import rule_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rum/test_site_infos.py b/tests/api_resources/rum/test_site_infos.py index bb2b351fe14..15c4b694b3f 100644 --- a/tests/api_resources/rum/test_site_infos.py +++ b/tests/api_resources/rum/test_site_infos.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.rum import ( - SiteInfoGetResponse, - SiteInfoListResponse, SiteInfoCreateResponse, - SiteInfoDeleteResponse, SiteInfoUpdateResponse, + SiteInfoListResponse, + SiteInfoDeleteResponse, + SiteInfoGetResponse, ) +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.rum import site_info_create_params +from cloudflare.types.rum import site_info_update_params +from cloudflare.types.rum import site_info_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/outgoings/test_disables.py b/tests/api_resources/secondary_dns/outgoings/test_disables.py index 71d9b6a0c69..77192f5bf4a 100644 --- a/tests/api_resources/secondary_dns/outgoings/test_disables.py +++ b/tests/api_resources/secondary_dns/outgoings/test_disables.py @@ -2,11 +2,16 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns.outgoings import DisableSecondaryDNSPrimaryZoneDisableOutgoingZoneTransfersResponse + 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/secondary_dns/outgoings/test_enables.py b/tests/api_resources/secondary_dns/outgoings/test_enables.py index 09ee07f0ad2..92cb88b9eec 100644 --- a/tests/api_resources/secondary_dns/outgoings/test_enables.py +++ b/tests/api_resources/secondary_dns/outgoings/test_enables.py @@ -2,11 +2,16 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns.outgoings import EnableSecondaryDNSPrimaryZoneEnableOutgoingZoneTransfersResponse + 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/secondary_dns/outgoings/test_force_notifies.py b/tests/api_resources/secondary_dns/outgoings/test_force_notifies.py index 78396ca8a2c..b0c46514d96 100644 --- a/tests/api_resources/secondary_dns/outgoings/test_force_notifies.py +++ b/tests/api_resources/secondary_dns/outgoings/test_force_notifies.py @@ -2,11 +2,16 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns.outgoings import ForceNotifySecondaryDNSPrimaryZoneForceDNSNotifyResponse + 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/secondary_dns/outgoings/test_statuses.py b/tests/api_resources/secondary_dns/outgoings/test_statuses.py index 5b6ce06812f..dc841aac39b 100644 --- a/tests/api_resources/secondary_dns/outgoings/test_statuses.py +++ b/tests/api_resources/secondary_dns/outgoings/test_statuses.py @@ -2,11 +2,16 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns.outgoings import StatusSecondaryDNSPrimaryZoneGetOutgoingZoneTransferStatusResponse + 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/secondary_dns/test_acls.py b/tests/api_resources/secondary_dns/test_acls.py index 34528bda297..363319ba45c 100644 --- a/tests/api_resources/secondary_dns/test_acls.py +++ b/tests/api_resources/secondary_dns/test_acls.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.secondary_dns import ( - ACLGetResponse, - ACLDeleteResponse, ACLUpdateResponse, - ACLSecondaryDNSACLListACLsResponse, + ACLDeleteResponse, + ACLGetResponse, ACLSecondaryDNSACLCreateACLResponse, + ACLSecondaryDNSACLListACLsResponse, ) +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.secondary_dns import acl_update_params +from cloudflare.types.secondary_dns import acl_secondary_dns_acl_create_acl_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_force_axfrs.py b/tests/api_resources/secondary_dns/test_force_axfrs.py index f277f990321..e8dcd2ed701 100644 --- a/tests/api_resources/secondary_dns/test_force_axfrs.py +++ b/tests/api_resources/secondary_dns/test_force_axfrs.py @@ -2,11 +2,16 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns import ForceAxfrSecondaryDNSSecondaryZoneForceAxfrResponse + 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/secondary_dns/test_incomings.py b/tests/api_resources/secondary_dns/test_incomings.py index 4a2c3349c50..2ea4944cace 100644 --- a/tests/api_resources/secondary_dns/test_incomings.py +++ b/tests/api_resources/secondary_dns/test_incomings.py @@ -2,18 +2,28 @@ from __future__ import annotations -import os +from cloudflare.types.secondary_dns import ( + IncomingDeleteResponse, + IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, + IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, + IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, +) + 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.secondary_dns import ( - IncomingDeleteResponse, - IncomingSecondaryDNSSecondaryZoneCreateSecondaryZoneConfigurationResponse, - IncomingSecondaryDNSSecondaryZoneUpdateSecondaryZoneConfigurationResponse, - IncomingSecondaryDNSSecondaryZoneSecondaryZoneConfigurationDetailsResponse, + incoming_secondary_dns_secondary_zone_create_secondary_zone_configuration_params, +) +from cloudflare.types.secondary_dns import ( + incoming_secondary_dns_secondary_zone_update_secondary_zone_configuration_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_outgoings.py b/tests/api_resources/secondary_dns/test_outgoings.py index 433c40a4fc1..767699d8df7 100644 --- a/tests/api_resources/secondary_dns/test_outgoings.py +++ b/tests/api_resources/secondary_dns/test_outgoings.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.secondary_dns import ( OutgoingDeleteResponse, OutgoingSecondaryDNSPrimaryZoneCreatePrimaryZoneConfigurationResponse, - OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, OutgoingSecondaryDNSPrimaryZonePrimaryZoneConfigurationDetailsResponse, + OutgoingSecondaryDNSPrimaryZoneUpdatePrimaryZoneConfigurationResponse, ) +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.secondary_dns import outgoing_secondary_dns_primary_zone_create_primary_zone_configuration_params +from cloudflare.types.secondary_dns import outgoing_secondary_dns_primary_zone_update_primary_zone_configuration_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_peers.py b/tests/api_resources/secondary_dns/test_peers.py index 3c11c6f69a7..986d3d2a463 100644 --- a/tests/api_resources/secondary_dns/test_peers.py +++ b/tests/api_resources/secondary_dns/test_peers.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.secondary_dns import ( - PeerGetResponse, - PeerDeleteResponse, PeerUpdateResponse, - PeerSecondaryDNSPeerListPeersResponse, + PeerDeleteResponse, + PeerGetResponse, PeerSecondaryDNSPeerCreatePeerResponse, + PeerSecondaryDNSPeerListPeersResponse, ) +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.secondary_dns import peer_update_params +from cloudflare.types.secondary_dns import peer_secondary_dns_peer_create_peer_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_tsigs.py b/tests/api_resources/secondary_dns/test_tsigs.py index e83a4d9ab8d..ea5e9e711f1 100644 --- a/tests/api_resources/secondary_dns/test_tsigs.py +++ b/tests/api_resources/secondary_dns/test_tsigs.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.secondary_dns import ( - TsigGetResponse, - TsigDeleteResponse, TsigUpdateResponse, - TsigSecondaryDNSTsigListTsiGsResponse, + TsigDeleteResponse, + TsigGetResponse, TsigSecondaryDNSTsigCreateTsigResponse, + TsigSecondaryDNSTsigListTsiGsResponse, ) +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.secondary_dns import tsig_update_params +from cloudflare.types.secondary_dns import tsig_secondary_dns_tsig_create_tsig_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_advanced_ddos.py b/tests/api_resources/settings/test_advanced_ddos.py index ecfe67b81b6..cd977bd50f6 100644 --- a/tests/api_resources/settings/test_advanced_ddos.py +++ b/tests/api_resources/settings/test_advanced_ddos.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import AdvancedDDOSGetResponse +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.settings import AdvancedDDOSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_always_online.py b/tests/api_resources/settings/test_always_online.py index 953a619e294..6603bd1326b 100644 --- a/tests/api_resources/settings/test_always_online.py +++ b/tests/api_resources/settings/test_always_online.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import AlwaysOnlineUpdateResponse, AlwaysOnlineGetResponse +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.settings import AlwaysOnlineGetResponse, AlwaysOnlineUpdateResponse +from cloudflare.types.settings import always_online_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_always_use_https.py b/tests/api_resources/settings/test_always_use_https.py index ae1b8d7c796..5fb5624f8bd 100644 --- a/tests/api_resources/settings/test_always_use_https.py +++ b/tests/api_resources/settings/test_always_use_https.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import AlwaysUseHTTPSUpdateResponse, AlwaysUseHTTPSGetResponse +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.settings import ( - AlwaysUseHTTPSGetResponse, - AlwaysUseHTTPSUpdateResponse, -) +from cloudflare.types.settings import always_use_https_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_automatic_https_rewrites.py b/tests/api_resources/settings/test_automatic_https_rewrites.py index c4990a270cf..8b7b6a57fda 100644 --- a/tests/api_resources/settings/test_automatic_https_rewrites.py +++ b/tests/api_resources/settings/test_automatic_https_rewrites.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import AutomaticHTTPSRewriteUpdateResponse, AutomaticHTTPSRewriteGetResponse +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.settings import ( - AutomaticHTTPSRewriteGetResponse, - AutomaticHTTPSRewriteUpdateResponse, -) +from cloudflare.types.settings import automatic_https_rewrite_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_automatic_platform_optimization.py b/tests/api_resources/settings/test_automatic_platform_optimization.py index 2d1d98ed7ce..b393d63032d 100644 --- a/tests/api_resources/settings/test_automatic_platform_optimization.py +++ b/tests/api_resources/settings/test_automatic_platform_optimization.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.settings import ( - AutomaticPlatformOptimizationGetResponse, AutomaticPlatformOptimizationUpdateResponse, + AutomaticPlatformOptimizationGetResponse, ) +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.settings import automatic_platform_optimization_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_brotli.py b/tests/api_resources/settings/test_brotli.py index d29aa0e0157..be19c271e49 100644 --- a/tests/api_resources/settings/test_brotli.py +++ b/tests/api_resources/settings/test_brotli.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import BrotliUpdateResponse, BrotliGetResponse +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.settings import BrotliGetResponse, BrotliUpdateResponse +from cloudflare.types.settings import brotli_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_browser_cache_ttl.py b/tests/api_resources/settings/test_browser_cache_ttl.py index aea6ba8cf67..c19e22a8c9d 100644 --- a/tests/api_resources/settings/test_browser_cache_ttl.py +++ b/tests/api_resources/settings/test_browser_cache_ttl.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import BrowserCacheTTLUpdateResponse, BrowserCacheTTLGetResponse +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.settings import ( - BrowserCacheTTLGetResponse, - BrowserCacheTTLUpdateResponse, -) +from cloudflare.types.settings import browser_cache_ttl_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_browser_check.py b/tests/api_resources/settings/test_browser_check.py index 0a93bce7bc3..0407957781b 100644 --- a/tests/api_resources/settings/test_browser_check.py +++ b/tests/api_resources/settings/test_browser_check.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import BrowserCheckUpdateResponse, BrowserCheckGetResponse +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.settings import BrowserCheckGetResponse, BrowserCheckUpdateResponse +from cloudflare.types.settings import browser_check_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_cache_level.py b/tests/api_resources/settings/test_cache_level.py index 41bf8113342..03d694964aa 100644 --- a/tests/api_resources/settings/test_cache_level.py +++ b/tests/api_resources/settings/test_cache_level.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import CacheLevelUpdateResponse, CacheLevelGetResponse +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.settings import CacheLevelGetResponse, CacheLevelUpdateResponse +from cloudflare.types.settings import cache_level_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_challenge_ttl.py b/tests/api_resources/settings/test_challenge_ttl.py index e7126a6bb8b..37a613786cd 100644 --- a/tests/api_resources/settings/test_challenge_ttl.py +++ b/tests/api_resources/settings/test_challenge_ttl.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ChallengeTTLUpdateResponse, ChallengeTTLGetResponse +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.settings import ChallengeTTLGetResponse, ChallengeTTLUpdateResponse +from cloudflare.types.settings import challenge_ttl_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_ciphers.py b/tests/api_resources/settings/test_ciphers.py index 8474bb0380c..f9d700cb935 100644 --- a/tests/api_resources/settings/test_ciphers.py +++ b/tests/api_resources/settings/test_ciphers.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import CipherUpdateResponse, CipherGetResponse +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.settings import CipherGetResponse, CipherUpdateResponse +from cloudflare.types.settings import cipher_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_development_mode.py b/tests/api_resources/settings/test_development_mode.py index 6744281f19b..b1875403cf9 100644 --- a/tests/api_resources/settings/test_development_mode.py +++ b/tests/api_resources/settings/test_development_mode.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import DevelopmentModeUpdateResponse, DevelopmentModeGetResponse +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.settings import ( - DevelopmentModeGetResponse, - DevelopmentModeUpdateResponse, -) +from cloudflare.types.settings import development_mode_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_early_hint.py b/tests/api_resources/settings/test_early_hint.py index 34e1dd5285b..73c75d60987 100644 --- a/tests/api_resources/settings/test_early_hint.py +++ b/tests/api_resources/settings/test_early_hint.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import EarlyHintUpdateResponse, EarlyHintGetResponse +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.settings import EarlyHintGetResponse, EarlyHintUpdateResponse +from cloudflare.types.settings import early_hint_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_email_obfuscation.py b/tests/api_resources/settings/test_email_obfuscation.py index 767a018b885..ce042c09b0f 100644 --- a/tests/api_resources/settings/test_email_obfuscation.py +++ b/tests/api_resources/settings/test_email_obfuscation.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import EmailObfuscationUpdateResponse, EmailObfuscationGetResponse +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.settings import ( - EmailObfuscationGetResponse, - EmailObfuscationUpdateResponse, -) +from cloudflare.types.settings import email_obfuscation_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_h2_prioritization.py b/tests/api_resources/settings/test_h2_prioritization.py index fb738a4a54b..8708bc58f3e 100644 --- a/tests/api_resources/settings/test_h2_prioritization.py +++ b/tests/api_resources/settings/test_h2_prioritization.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import H2PrioritizationUpdateResponse, H2PrioritizationGetResponse +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.settings import ( - H2PrioritizationGetResponse, - H2PrioritizationUpdateResponse, -) +from cloudflare.types.settings import h2_prioritization_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_hotlink_protection.py b/tests/api_resources/settings/test_hotlink_protection.py index 01aa3b9ecf4..9d8ac71fc9d 100644 --- a/tests/api_resources/settings/test_hotlink_protection.py +++ b/tests/api_resources/settings/test_hotlink_protection.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import HotlinkProtectionUpdateResponse, HotlinkProtectionGetResponse +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.settings import ( - HotlinkProtectionGetResponse, - HotlinkProtectionUpdateResponse, -) +from cloudflare.types.settings import hotlink_protection_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_http2.py b/tests/api_resources/settings/test_http2.py index b642715a97a..16f014e3882 100644 --- a/tests/api_resources/settings/test_http2.py +++ b/tests/api_resources/settings/test_http2.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import HTTP2UpdateResponse, HTTP2GetResponse +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.settings import HTTP2GetResponse, HTTP2UpdateResponse +from cloudflare.types.settings import http2_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_http3.py b/tests/api_resources/settings/test_http3.py index fdba6a02490..5b3069c59c3 100644 --- a/tests/api_resources/settings/test_http3.py +++ b/tests/api_resources/settings/test_http3.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import HTTP3UpdateResponse, HTTP3GetResponse +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.settings import HTTP3GetResponse, HTTP3UpdateResponse +from cloudflare.types.settings import http3_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_image_resizing.py b/tests/api_resources/settings/test_image_resizing.py index f89a092c2ac..43433ef6901 100644 --- a/tests/api_resources/settings/test_image_resizing.py +++ b/tests/api_resources/settings/test_image_resizing.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ImageResizingUpdateResponse, ImageResizingGetResponse +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.settings import ( - ImageResizingGetResponse, - ImageResizingUpdateResponse, -) +from cloudflare.types.settings import image_resizing_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_ip_geolocation.py b/tests/api_resources/settings/test_ip_geolocation.py index b7bec57ab78..9cbec73f25e 100644 --- a/tests/api_resources/settings/test_ip_geolocation.py +++ b/tests/api_resources/settings/test_ip_geolocation.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import IPGeolocationUpdateResponse, IPGeolocationGetResponse +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.settings import ( - IPGeolocationGetResponse, - IPGeolocationUpdateResponse, -) +from cloudflare.types.settings import ip_geolocation_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_ipv6.py b/tests/api_resources/settings/test_ipv6.py index b181affe4dc..193056e3ea5 100644 --- a/tests/api_resources/settings/test_ipv6.py +++ b/tests/api_resources/settings/test_ipv6.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import IPV6UpdateResponse, IPV6GetResponse +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.settings import IPV6GetResponse, IPV6UpdateResponse +from cloudflare.types.settings import ipv6_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_min_tls_version.py b/tests/api_resources/settings/test_min_tls_version.py index 57df3a53005..2a71a3526c1 100644 --- a/tests/api_resources/settings/test_min_tls_version.py +++ b/tests/api_resources/settings/test_min_tls_version.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import MinTLSVersionUpdateResponse, MinTLSVersionGetResponse +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.settings import ( - MinTLSVersionGetResponse, - MinTLSVersionUpdateResponse, -) +from cloudflare.types.settings import min_tls_version_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_minify.py b/tests/api_resources/settings/test_minify.py index a4deba4152c..74e97a18c9c 100644 --- a/tests/api_resources/settings/test_minify.py +++ b/tests/api_resources/settings/test_minify.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import MinifyUpdateResponse, MinifyGetResponse +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.settings import MinifyGetResponse, MinifyUpdateResponse +from cloudflare.types.settings import minify_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_mirage.py b/tests/api_resources/settings/test_mirage.py index 5a816a7a566..d53e296912b 100644 --- a/tests/api_resources/settings/test_mirage.py +++ b/tests/api_resources/settings/test_mirage.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import MirageUpdateResponse, MirageGetResponse +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.settings import MirageGetResponse, MirageUpdateResponse +from cloudflare.types.settings import mirage_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_mobile_redirect.py b/tests/api_resources/settings/test_mobile_redirect.py index 4c8f0c27e50..15cd213755a 100644 --- a/tests/api_resources/settings/test_mobile_redirect.py +++ b/tests/api_resources/settings/test_mobile_redirect.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import MobileRedirectUpdateResponse, MobileRedirectGetResponse +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.settings import ( - MobileRedirectGetResponse, - MobileRedirectUpdateResponse, -) +from cloudflare.types.settings import mobile_redirect_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_nel.py b/tests/api_resources/settings/test_nel.py index 64db8df97a0..022a5c433b0 100644 --- a/tests/api_resources/settings/test_nel.py +++ b/tests/api_resources/settings/test_nel.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import NELUpdateResponse, NELGetResponse +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.settings import NELGetResponse, NELUpdateResponse +from cloudflare.types.settings import nel_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_opportunistic_encryption.py b/tests/api_resources/settings/test_opportunistic_encryption.py index dffb9385227..a85b4c791c4 100644 --- a/tests/api_resources/settings/test_opportunistic_encryption.py +++ b/tests/api_resources/settings/test_opportunistic_encryption.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import OpportunisticEncryptionUpdateResponse, OpportunisticEncryptionGetResponse +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.settings import ( - OpportunisticEncryptionGetResponse, - OpportunisticEncryptionUpdateResponse, -) +from cloudflare.types.settings import opportunistic_encryption_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_opportunistic_onion.py b/tests/api_resources/settings/test_opportunistic_onion.py index 62a4b4e1257..6af4525e7e0 100644 --- a/tests/api_resources/settings/test_opportunistic_onion.py +++ b/tests/api_resources/settings/test_opportunistic_onion.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import OpportunisticOnionUpdateResponse, OpportunisticOnionGetResponse +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.settings import ( - OpportunisticOnionGetResponse, - OpportunisticOnionUpdateResponse, -) +from cloudflare.types.settings import opportunistic_onion_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_orange_to_orange.py b/tests/api_resources/settings/test_orange_to_orange.py index f1db410ae6c..b94a2f0a287 100644 --- a/tests/api_resources/settings/test_orange_to_orange.py +++ b/tests/api_resources/settings/test_orange_to_orange.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import OrangeToOrangeUpdateResponse, OrangeToOrangeGetResponse +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.settings import ( - OrangeToOrangeGetResponse, - OrangeToOrangeUpdateResponse, -) +from cloudflare.types.settings import orange_to_orange_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_origin_error_page_pass_thru.py b/tests/api_resources/settings/test_origin_error_page_pass_thru.py index 6ece22d487f..35fe64b223e 100644 --- a/tests/api_resources/settings/test_origin_error_page_pass_thru.py +++ b/tests/api_resources/settings/test_origin_error_page_pass_thru.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import OriginErrorPagePassThruUpdateResponse, OriginErrorPagePassThruGetResponse +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.settings import ( - OriginErrorPagePassThruGetResponse, - OriginErrorPagePassThruUpdateResponse, -) +from cloudflare.types.settings import origin_error_page_pass_thru_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_origin_max_http_version.py b/tests/api_resources/settings/test_origin_max_http_version.py index 6df60b43f3a..b052ecb5bcd 100644 --- a/tests/api_resources/settings/test_origin_max_http_version.py +++ b/tests/api_resources/settings/test_origin_max_http_version.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.settings import OriginMaxHTTPVersionUpdateResponse, OriginMaxHTTPVersionGetResponse + 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.settings import ( - OriginMaxHTTPVersionGetResponse, - OriginMaxHTTPVersionUpdateResponse, -) +from cloudflare.types.settings import origin_max_http_version_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_polish.py b/tests/api_resources/settings/test_polish.py index a448e74340a..864f0fb0ced 100644 --- a/tests/api_resources/settings/test_polish.py +++ b/tests/api_resources/settings/test_polish.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import PolishUpdateResponse, PolishGetResponse +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.settings import PolishGetResponse, PolishUpdateResponse +from cloudflare.types.settings import polish_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_prefetch_preload.py b/tests/api_resources/settings/test_prefetch_preload.py index ff802b31faf..c55736b6abc 100644 --- a/tests/api_resources/settings/test_prefetch_preload.py +++ b/tests/api_resources/settings/test_prefetch_preload.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import PrefetchPreloadUpdateResponse, PrefetchPreloadGetResponse +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.settings import ( - PrefetchPreloadGetResponse, - PrefetchPreloadUpdateResponse, -) +from cloudflare.types.settings import prefetch_preload_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_proxy_read_timeout.py b/tests/api_resources/settings/test_proxy_read_timeout.py index f8680bb1b05..87796feb7ab 100644 --- a/tests/api_resources/settings/test_proxy_read_timeout.py +++ b/tests/api_resources/settings/test_proxy_read_timeout.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ProxyReadTimeoutUpdateResponse, ProxyReadTimeoutGetResponse +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.settings import ( - ProxyReadTimeoutGetResponse, - ProxyReadTimeoutUpdateResponse, -) +from cloudflare.types.settings import proxy_read_timeout_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_pseudo_ipv4.py b/tests/api_resources/settings/test_pseudo_ipv4.py index bb9f1d76845..a84b365710c 100644 --- a/tests/api_resources/settings/test_pseudo_ipv4.py +++ b/tests/api_resources/settings/test_pseudo_ipv4.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import PseudoIPV4UpdateResponse, PseudoIPV4GetResponse +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.settings import PseudoIPV4GetResponse, PseudoIPV4UpdateResponse +from cloudflare.types.settings import pseudo_ipv4_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_response_buffering.py b/tests/api_resources/settings/test_response_buffering.py index 0cf8b88a9cc..5a6a7341a9f 100644 --- a/tests/api_resources/settings/test_response_buffering.py +++ b/tests/api_resources/settings/test_response_buffering.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ResponseBufferingUpdateResponse, ResponseBufferingGetResponse +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.settings import ( - ResponseBufferingGetResponse, - ResponseBufferingUpdateResponse, -) +from cloudflare.types.settings import response_buffering_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_rocket_loader.py b/tests/api_resources/settings/test_rocket_loader.py index d6afe7fcf2f..7c9595837b1 100644 --- a/tests/api_resources/settings/test_rocket_loader.py +++ b/tests/api_resources/settings/test_rocket_loader.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import RocketLoaderUpdateResponse, RocketLoaderGetResponse +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.settings import RocketLoaderGetResponse, RocketLoaderUpdateResponse +from cloudflare.types.settings import rocket_loader_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_security_headers.py b/tests/api_resources/settings/test_security_headers.py index 701031668ce..b3990149aa4 100644 --- a/tests/api_resources/settings/test_security_headers.py +++ b/tests/api_resources/settings/test_security_headers.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import SecurityHeaderUpdateResponse, SecurityHeaderGetResponse +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.settings import ( - SecurityHeaderGetResponse, - SecurityHeaderUpdateResponse, -) +from cloudflare.types.settings import security_header_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_security_level.py b/tests/api_resources/settings/test_security_level.py index 5bfa4c83fc5..654671077a2 100644 --- a/tests/api_resources/settings/test_security_level.py +++ b/tests/api_resources/settings/test_security_level.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import SecurityLevelUpdateResponse, SecurityLevelGetResponse +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.settings import ( - SecurityLevelGetResponse, - SecurityLevelUpdateResponse, -) +from cloudflare.types.settings import security_level_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_server_side_excludes.py b/tests/api_resources/settings/test_server_side_excludes.py index 4d62518b64d..b64ebacdd68 100644 --- a/tests/api_resources/settings/test_server_side_excludes.py +++ b/tests/api_resources/settings/test_server_side_excludes.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ServerSideExcludeUpdateResponse, ServerSideExcludeGetResponse +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.settings import ( - ServerSideExcludeGetResponse, - ServerSideExcludeUpdateResponse, -) +from cloudflare.types.settings import server_side_exclude_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_sort_query_string_for_cache.py b/tests/api_resources/settings/test_sort_query_string_for_cache.py index a5226822269..bc3db549b07 100644 --- a/tests/api_resources/settings/test_sort_query_string_for_cache.py +++ b/tests/api_resources/settings/test_sort_query_string_for_cache.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import SortQueryStringForCacheUpdateResponse, SortQueryStringForCacheGetResponse +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.settings import ( - SortQueryStringForCacheGetResponse, - SortQueryStringForCacheUpdateResponse, -) +from cloudflare.types.settings import sort_query_string_for_cache_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_ssl.py b/tests/api_resources/settings/test_ssl.py index e0a3f8d3759..da4cdab10cf 100644 --- a/tests/api_resources/settings/test_ssl.py +++ b/tests/api_resources/settings/test_ssl.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import SSLUpdateResponse, SSLGetResponse +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.settings import SSLGetResponse, SSLUpdateResponse +from cloudflare.types.settings import ssl_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_ssl_recommender.py b/tests/api_resources/settings/test_ssl_recommender.py index 3a7b3272f45..f6b8968ad18 100644 --- a/tests/api_resources/settings/test_ssl_recommender.py +++ b/tests/api_resources/settings/test_ssl_recommender.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import SSLRecommenderUpdateResponse, SSLRecommenderGetResponse +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.settings import ( - SSLRecommenderGetResponse, - SSLRecommenderUpdateResponse, -) +from cloudflare.types.settings import ssl_recommender_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_tls_1_3.py b/tests/api_resources/settings/test_tls_1_3.py index f23fb5dc9be..d48e61702d6 100644 --- a/tests/api_resources/settings/test_tls_1_3.py +++ b/tests/api_resources/settings/test_tls_1_3.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import TLS1_3UpdateResponse, TLS1_3GetResponse +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.settings import TLS1_3GetResponse, TLS1_3UpdateResponse +from cloudflare.types.settings import tls_1_3_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_tls_client_auth.py b/tests/api_resources/settings/test_tls_client_auth.py index 349908d4d00..dac0d20941b 100644 --- a/tests/api_resources/settings/test_tls_client_auth.py +++ b/tests/api_resources/settings/test_tls_client_auth.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import TLSClientAuthUpdateResponse, TLSClientAuthGetResponse +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.settings import ( - TLSClientAuthGetResponse, - TLSClientAuthUpdateResponse, -) +from cloudflare.types.settings import tls_client_auth_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_true_client_ip_header.py b/tests/api_resources/settings/test_true_client_ip_header.py index a380465c2c8..da1c10268a3 100644 --- a/tests/api_resources/settings/test_true_client_ip_header.py +++ b/tests/api_resources/settings/test_true_client_ip_header.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import TrueClientIPHeaderUpdateResponse, TrueClientIPHeaderGetResponse +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.settings import ( - TrueClientIPHeaderGetResponse, - TrueClientIPHeaderUpdateResponse, -) +from cloudflare.types.settings import true_client_ip_header_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_waf.py b/tests/api_resources/settings/test_waf.py index 49be2a17b23..eef6be22fa5 100644 --- a/tests/api_resources/settings/test_waf.py +++ b/tests/api_resources/settings/test_waf.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import WAFUpdateResponse, WAFGetResponse +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.settings import WAFGetResponse, WAFUpdateResponse +from cloudflare.types.settings import waf_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_webp.py b/tests/api_resources/settings/test_webp.py index a513f248227..4f7e60d67d5 100644 --- a/tests/api_resources/settings/test_webp.py +++ b/tests/api_resources/settings/test_webp.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import WebpUpdateResponse, WebpGetResponse +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.settings import WebpGetResponse, WebpUpdateResponse +from cloudflare.types.settings import webp_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_websocket.py b/tests/api_resources/settings/test_websocket.py index 72a880dada4..902730bdd8b 100644 --- a/tests/api_resources/settings/test_websocket.py +++ b/tests/api_resources/settings/test_websocket.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import WebsocketUpdateResponse, WebsocketGetResponse +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.settings import WebsocketGetResponse, WebsocketUpdateResponse +from cloudflare.types.settings import websocket_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/settings/test_zero_rtt.py b/tests/api_resources/settings/test_zero_rtt.py index ba80d706d4b..aa7bf8b07a2 100644 --- a/tests/api_resources/settings/test_zero_rtt.py +++ b/tests/api_resources/settings/test_zero_rtt.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.settings import ZeroRttGetResponse, ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse +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.settings import ( - ZeroRttGetResponse, - ZeroRttZoneSettingsChange0RttSessionResumptionSettingResponse, -) +from cloudflare.types.settings import zero_rtt_zone_settings_change_0_rtt_session_resumption_setting_params 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 af9ebcd6ae7..89f14fcad7b 100644 --- a/tests/api_resources/snippets/test_content.py +++ b/tests/api_resources/snippets/test_content.py @@ -2,21 +2,24 @@ from __future__ import annotations -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, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, 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_snippet_rules.py b/tests/api_resources/snippets/test_snippet_rules.py index b35ef54611f..242446338e4 100644 --- a/tests/api_resources/snippets/test_snippet_rules.py +++ b/tests/api_resources/snippets/test_snippet_rules.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.snippets import SnippetRuleUpdateResponse, SnippetRuleListResponse + 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.snippets import SnippetRuleListResponse, SnippetRuleUpdateResponse +from cloudflare.types.snippets import snippet_rule_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrums/analytics/aggregates/test_currents.py b/tests/api_resources/spectrums/analytics/aggregates/test_currents.py index cfbb232ec83..89fb8a3e67d 100644 --- a/tests/api_resources/spectrums/analytics/aggregates/test_currents.py +++ b/tests/api_resources/spectrums/analytics/aggregates/test_currents.py @@ -2,15 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.spectrums.analytics.aggregates import ( + CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, +) + 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.spectrums.analytics.aggregates import ( - CurrentSpectrumAggregateAnalyticsGetCurrentAggregatedAnalyticsResponse, + current_spectrum_aggregate_analytics_get_current_aggregated_analytics_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrums/analytics/events/test_bytimes.py b/tests/api_resources/spectrums/analytics/events/test_bytimes.py index ad7c32cc7d1..5517c035329 100644 --- a/tests/api_resources/spectrums/analytics/events/test_bytimes.py +++ b/tests/api_resources/spectrums/analytics/events/test_bytimes.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.spectrums.analytics.events import BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse +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.spectrums.analytics.events import bytime_spectrum_analytics_by_time_get_analytics_by_time_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.spectrums.analytics.events import ( - BytimeSpectrumAnalyticsByTimeGetAnalyticsByTimeResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrums/analytics/events/test_summaries.py b/tests/api_resources/spectrums/analytics/events/test_summaries.py index 774dba04b06..01fcc89827d 100644 --- a/tests/api_resources/spectrums/analytics/events/test_summaries.py +++ b/tests/api_resources/spectrums/analytics/events/test_summaries.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.spectrums.analytics.events import SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse +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.spectrums.analytics.events import summary_spectrum_analytics_summary_get_analytics_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.types.spectrums.analytics.events import ( - SummarySpectrumAnalyticsSummaryGetAnalyticsSummaryResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrums/test_apps.py b/tests/api_resources/spectrums/test_apps.py index adae23a7fb6..e3a4d48b465 100644 --- a/tests/api_resources/spectrums/test_apps.py +++ b/tests/api_resources/spectrums/test_apps.py @@ -2,20 +2,29 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.spectrums import ( + AppUpdateResponse, + AppDeleteResponse, + AppGetResponse, + AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, + AppSpectrumApplicationsListSpectrumApplicationsResponse, +) +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.spectrums import app_update_params from cloudflare.types.spectrums import ( - AppGetResponse, - AppDeleteResponse, - AppUpdateResponse, - AppSpectrumApplicationsListSpectrumApplicationsResponse, - AppSpectrumApplicationsCreateSpectrumApplicationUsingANameForTheOriginResponse, + app_spectrum_applications_create_spectrum_application_using_a_name_for_the_origin_params, ) +from cloudflare.types.spectrums import app_spectrum_applications_list_spectrum_applications_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed_api/test_schedule.py b/tests/api_resources/speed_api/test_schedule.py index e2a000b437b..5c8cbecbb44 100644 --- a/tests/api_resources/speed_api/test_schedule.py +++ b/tests/api_resources/speed_api/test_schedule.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.speed_api import ScheduleCreateResponse +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.speed_api import ScheduleCreateResponse +from cloudflare.types.speed_api import schedule_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/certificate_packs/test_orders.py b/tests/api_resources/ssls/certificate_packs/test_orders.py index 1175734baa4..246dd351b00 100644 --- a/tests/api_resources/ssls/certificate_packs/test_orders.py +++ b/tests/api_resources/ssls/certificate_packs/test_orders.py @@ -2,15 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.ssls.certificate_packs import ( + OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, +) + 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.ssls.certificate_packs import ( - OrderCertificatePacksOrderAdvancedCertificateManagerCertificatePackResponse, + order_certificate_packs_order_advanced_certificate_manager_certificate_pack_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/certificate_packs/test_quotas.py b/tests/api_resources/ssls/certificate_packs/test_quotas.py index 80bfdf3ae97..3375df8851a 100644 --- a/tests/api_resources/ssls/certificate_packs/test_quotas.py +++ b/tests/api_resources/ssls/certificate_packs/test_quotas.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.ssls.certificate_packs import QuotaCertificatePacksGetCertificatePackQuotasResponse + 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.ssls.certificate_packs import QuotaCertificatePacksGetCertificatePackQuotasResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/test_analyzes.py b/tests/api_resources/ssls/test_analyzes.py index 99e86fbd74b..9675bf43bd7 100644 --- a/tests/api_resources/ssls/test_analyzes.py +++ b/tests/api_resources/ssls/test_analyzes.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.ssls import AnalyzeAnalyzeCertificateAnalyzeCertificateResponse + 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.ssls import ( - AnalyzeAnalyzeCertificateAnalyzeCertificateResponse, -) +from cloudflare.types.ssls import analyze_analyze_certificate_analyze_certificate_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/test_certificate_packs.py b/tests/api_resources/ssls/test_certificate_packs.py index a459910d5e6..a8880047791 100644 --- a/tests/api_resources/ssls/test_certificate_packs.py +++ b/tests/api_resources/ssls/test_certificate_packs.py @@ -2,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.ssls import ( - CertificatePackGetResponse, - CertificatePackDeleteResponse, CertificatePackUpdateResponse, + CertificatePackDeleteResponse, CertificatePackCertificatePacksListCertificatePacksResponse, + CertificatePackGetResponse, ) +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.ssls import certificate_pack_certificate_packs_list_certificate_packs_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/test_recommendations.py b/tests/api_resources/ssls/test_recommendations.py index 80895053ec3..bfedadda78d 100644 --- a/tests/api_resources/ssls/test_recommendations.py +++ b/tests/api_resources/ssls/test_recommendations.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.ssls import RecommendationListResponse +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.ssls import RecommendationListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/test_verifications.py b/tests/api_resources/ssls/test_verifications.py index 489db20b733..756050207a7 100644 --- a/tests/api_resources/ssls/test_verifications.py +++ b/tests/api_resources/ssls/test_verifications.py @@ -2,17 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.ssls import VerificationUpdateResponse, VerificationSSLVerificationSSLVerificationDetailsResponse -import pytest +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.ssls import ( - VerificationUpdateResponse, - VerificationSSLVerificationSSLVerificationDetailsResponse, -) +from cloudflare.types.ssls import verification_update_params +from cloudflare.types.ssls import verification_ssl_verification_ssl_verification_details_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssls/universals/test_settings.py b/tests/api_resources/ssls/universals/test_settings.py index 401c1346efc..85ec85647b6 100644 --- a/tests/api_resources/ssls/universals/test_settings.py +++ b/tests/api_resources/ssls/universals/test_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.ssls.universals import SettingUpdateResponse, SettingGetResponse + 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.ssls.universals import SettingGetResponse, SettingUpdateResponse +from cloudflare.types.ssls.universals import setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/storage/kv/namespaces/test_bulks.py b/tests/api_resources/storage/kv/namespaces/test_bulks.py index 27ae1451dfb..84486ed2607 100644 --- a/tests/api_resources/storage/kv/namespaces/test_bulks.py +++ b/tests/api_resources/storage/kv/namespaces/test_bulks.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.storage.kv.namespaces import ( + BulkDeleteResponse, + BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, +) + 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.storage.kv.namespaces import ( - BulkDeleteResponse, - BulkWorkersKvNamespaceWriteMultipleKeyValuePairsResponse, -) +from cloudflare.types.storage.kv.namespaces import bulk_delete_params +from cloudflare.types.storage.kv.namespaces import bulk_workers_kv_namespace_write_multiple_key_value_pairs_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/storage/kv/namespaces/test_keys.py b/tests/api_resources/storage/kv/namespaces/test_keys.py index d856924f00b..f3e4ba79863 100644 --- a/tests/api_resources/storage/kv/namespaces/test_keys.py +++ b/tests/api_resources/storage/kv/namespaces/test_keys.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.storage.kv.namespaces import KeyListResponse + 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.storage.kv.namespaces import KeyListResponse +from cloudflare.types.storage.kv.namespaces import key_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/storage/kv/namespaces/test_metadata.py b/tests/api_resources/storage/kv/namespaces/test_metadata.py index 0edbd1deef6..2ae168c5d95 100644 --- a/tests/api_resources/storage/kv/namespaces/test_metadata.py +++ b/tests/api_resources/storage/kv/namespaces/test_metadata.py @@ -2,11 +2,14 @@ from __future__ import annotations -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/storage/kv/namespaces/test_values.py b/tests/api_resources/storage/kv/namespaces/test_values.py index 8a168be274c..7994c55442b 100644 --- a/tests/api_resources/storage/kv/namespaces/test_values.py +++ b/tests/api_resources/storage/kv/namespaces/test_values.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.storage.kv.namespaces import ValueUpdateResponse, ValueDeleteResponse, ValueGetResponse + 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.storage.kv.namespaces import ( - ValueDeleteResponse, - ValueUpdateResponse, -) +from cloudflare.types.storage.kv.namespaces 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/storage/kv/test_namespaces.py b/tests/api_resources/storage/kv/test_namespaces.py index ee0e3db836f..291106f3a58 100644 --- a/tests/api_resources/storage/kv/test_namespaces.py +++ b/tests/api_resources/storage/kv/test_namespaces.py @@ -2,20 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.storage.kv import ( + NamespaceUpdateResponse, NamespaceListResponse, NamespaceDeleteResponse, - NamespaceUpdateResponse, NamespaceWorkersKvNamespaceCreateANamespaceResponse, ) +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.storage.kv import namespace_update_params +from cloudflare.types.storage.kv import namespace_list_params +from cloudflare.types.storage.kv import namespace_workers_kv_namespace_create_a_namespace_params + 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 a688a713932..6c4923a1d20 100644 --- a/tests/api_resources/storage/test_analytics.py +++ b/tests/api_resources/storage/test_analytics.py @@ -2,18 +2,28 @@ from __future__ import annotations -import os +from cloudflare.types.storage import AnalyticsListResponse, AnalyticsStoredResponse + 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.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 ( - AnalyticsListResponse, - AnalyticsStoredResponse, -) 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 e90991407ef..3d3c8fdf87a 100644 --- a/tests/api_resources/stream/live_inputs/test_outputs.py +++ b/tests/api_resources/stream/live_inputs/test_outputs.py @@ -2,17 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.stream.live_inputs import ( + OutputUpdateResponse, + OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, + OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, +) + 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.stream.live_inputs import output_update_params from cloudflare.types.stream.live_inputs import ( - OutputUpdateResponse, - OutputStreamLiveInputsCreateANewOutputConnectedToALiveInputResponse, - OutputStreamLiveInputsListAllOutputsAssociatedWithASpecifiedLiveInputResponse, + output_stream_live_inputs_create_a_new_output_connected_to_a_live_input_params, ) 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 49ff0c88fad..888efb09ecd 100644 --- a/tests/api_resources/stream/test_audio_tracks.py +++ b/tests/api_resources/stream/test_audio_tracks.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + AudioTrackUpdateResponse, + AudioTrackListResponse, + AudioTrackDeleteResponse, + AudioTrackCopyResponse, +) + 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.stream import ( - AudioTrackCopyResponse, - AudioTrackListResponse, - AudioTrackDeleteResponse, - AudioTrackUpdateResponse, -) +from cloudflare.types.stream import audio_track_update_params +from cloudflare.types.stream import audio_track_copy_params 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 57e14dbc12e..840266777bb 100644 --- a/tests/api_resources/stream/test_captions.py +++ b/tests/api_resources/stream/test_captions.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + CaptionUpdateResponse, + CaptionDeleteResponse, + CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, +) + 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.stream import ( - CaptionDeleteResponse, - CaptionUpdateResponse, - CaptionStreamSubtitlesCaptionsListCaptionsOrSubtitlesResponse, -) +from cloudflare.types.stream import caption_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_clips.py b/tests/api_resources/stream/test_clips.py index f027fcea016..fbf8b6fbb3c 100644 --- a/tests/api_resources/stream/test_clips.py +++ b/tests/api_resources/stream/test_clips.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse + 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.stream import ( - ClipStreamVideoClippingClipVideosGivenAStartAndEndTimeResponse, -) +from cloudflare.types.stream import clip_stream_video_clipping_clip_videos_given_a_start_and_end_time_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_copies.py b/tests/api_resources/stream/test_copies.py index 78d722e1296..28829255b28 100644 --- a/tests/api_resources/stream/test_copies.py +++ b/tests/api_resources/stream/test_copies.py @@ -2,17 +2,21 @@ from __future__ import annotations -import os +from cloudflare.types.stream import CopyStreamVideosUploadVideosFromAURLResponse + 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.stream import copy_stream_videos_upload_videos_from_a_url_params +from cloudflare._utils import parse_datetime from cloudflare._utils import parse_datetime -from cloudflare.types.stream import ( - CopyStreamVideosUploadVideosFromAURLResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_direct_uploads.py b/tests/api_resources/stream/test_direct_uploads.py index 61238b6a44e..3b17a712936 100644 --- a/tests/api_resources/stream/test_direct_uploads.py +++ b/tests/api_resources/stream/test_direct_uploads.py @@ -2,17 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.stream import DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse + 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.stream import direct_upload_stream_videos_upload_videos_via_direct_upload_urls_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 ( - DirectUploadStreamVideosUploadVideosViaDirectUploadURLsResponse, -) 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 ff479829316..b172214dfe6 100644 --- a/tests/api_resources/stream/test_downloads.py +++ b/tests/api_resources/stream/test_downloads.py @@ -2,18 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + DownloadDeleteResponse, + DownloadStreamMP4DownloadsCreateDownloadsResponse, + DownloadStreamMP4DownloadsListDownloadsResponse, +) + 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.stream import ( - DownloadDeleteResponse, - DownloadStreamMP4DownloadsListDownloadsResponse, - DownloadStreamMP4DownloadsCreateDownloadsResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_embeds.py b/tests/api_resources/stream/test_embeds.py index 3160339ef1a..94311a547fe 100644 --- a/tests/api_resources/stream/test_embeds.py +++ b/tests/api_resources/stream/test_embeds.py @@ -2,11 +2,14 @@ from __future__ import annotations -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 c547e099ab2..f945228dbbe 100644 --- a/tests/api_resources/stream/test_keys.py +++ b/tests/api_resources/stream/test_keys.py @@ -2,18 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + KeyDeleteResponse, + KeyStreamSigningKeysCreateSigningKeysResponse, + KeyStreamSigningKeysListSigningKeysResponse, +) + 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.stream import ( - KeyDeleteResponse, - KeyStreamSigningKeysListSigningKeysResponse, - KeyStreamSigningKeysCreateSigningKeysResponse, -) 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 d2087d63d64..d26f70d2efc 100644 --- a/tests/api_resources/stream/test_live_inputs.py +++ b/tests/api_resources/stream/test_live_inputs.py @@ -2,19 +2,26 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + LiveInputUpdateResponse, + LiveInputGetResponse, + LiveInputStreamLiveInputsCreateALiveInputResponse, + LiveInputStreamLiveInputsListLiveInputsResponse, +) + 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.stream import ( - LiveInputGetResponse, - LiveInputUpdateResponse, - LiveInputStreamLiveInputsListLiveInputsResponse, - LiveInputStreamLiveInputsCreateALiveInputResponse, -) +from cloudflare.types.stream import live_input_update_params +from cloudflare.types.stream import live_input_stream_live_inputs_create_a_live_input_params +from cloudflare.types.stream import live_input_stream_live_inputs_list_live_inputs_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_tokens.py b/tests/api_resources/stream/test_tokens.py index af2a6ef9620..c7deb671c24 100644 --- a/tests/api_resources/stream/test_tokens.py +++ b/tests/api_resources/stream/test_tokens.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.stream import TokenStreamVideosCreateSignedURLTokensForVideosResponse + 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.stream import ( - TokenStreamVideosCreateSignedURLTokensForVideosResponse, -) +from cloudflare.types.stream import token_stream_videos_create_signed_url_tokens_for_videos_params 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 0b7aa21858c..83f6a1fbd29 100644 --- a/tests/api_resources/stream/test_videos.py +++ b/tests/api_resources/stream/test_videos.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.stream import VideoStorageUsageResponse + 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.stream import VideoStorageUsageResponse +from cloudflare.types.stream import video_storage_usage_params 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 9951273b92d..1fda4d5046e 100644 --- a/tests/api_resources/stream/test_watermarks.py +++ b/tests/api_resources/stream/test_watermarks.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + WatermarkDeleteResponse, + WatermarkGetResponse, + WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, + WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, +) + 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.stream import ( - WatermarkGetResponse, - WatermarkDeleteResponse, - WatermarkStreamWatermarkProfileListWatermarkProfilesResponse, - WatermarkStreamWatermarkProfileCreateWatermarkProfilesViaBasicUploadResponse, -) +from cloudflare.types.stream import watermark_stream_watermark_profile_create_watermark_profiles_via_basic_upload_params 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 e97d2cd8adc..a4370b92da8 100644 --- a/tests/api_resources/stream/test_webhooks.py +++ b/tests/api_resources/stream/test_webhooks.py @@ -2,18 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.stream import ( + WebhookDeleteResponse, + WebhookStreamWebhookCreateWebhooksResponse, + WebhookStreamWebhookViewWebhooksResponse, +) + 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.stream import ( - WebhookDeleteResponse, - WebhookStreamWebhookViewWebhooksResponse, - WebhookStreamWebhookCreateWebhooksResponse, -) +from cloudflare.types.stream import webhook_stream_webhook_create_webhooks_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/teamnet/test_routes.py b/tests/api_resources/teamnet/test_routes.py index c367846f322..2f1e99f1127 100644 --- a/tests/api_resources/teamnet/test_routes.py +++ b/tests/api_resources/teamnet/test_routes.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.teamnet import RouteCreateResponse, RouteUpdateResponse, RouteDeleteResponse + 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.teamnet import ( - RouteCreateResponse, - RouteDeleteResponse, - RouteUpdateResponse, -) +from cloudflare.types.teamnet import route_create_params +from cloudflare.types.teamnet import route_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/teamnets/routes/test_ips.py b/tests/api_resources/teamnets/routes/test_ips.py index 82a462dedfd..f342c9aac2a 100644 --- a/tests/api_resources/teamnets/routes/test_ips.py +++ b/tests/api_resources/teamnets/routes/test_ips.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.teamnets.routes import IPGetResponse + 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.teamnets.routes import IPGetResponse +from cloudflare.types.teamnets.routes import ip_get_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/teamnets/routes/test_networks.py b/tests/api_resources/teamnets/routes/test_networks.py index f7168bfb7b7..76fa7c0072c 100644 --- a/tests/api_resources/teamnets/routes/test_networks.py +++ b/tests/api_resources/teamnets/routes/test_networks.py @@ -2,17 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.teamnets.routes import NetworkUpdateResponse, NetworkDeleteResponse + 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.teamnets.routes import ( - NetworkDeleteResponse, - NetworkUpdateResponse, -) +from cloudflare.types.teamnets.routes import network_update_params +from cloudflare.types.teamnets.routes import network_delete_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/teamnets/test_routes.py b/tests/api_resources/teamnets/test_routes.py index 69dd61a544a..c936b8b6fe3 100644 --- a/tests/api_resources/teamnets/test_routes.py +++ b/tests/api_resources/teamnets/test_routes.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.teamnets import RouteTunnelRouteListTunnelRoutesResponse +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.teamnets import ( - RouteTunnelRouteListTunnelRoutesResponse, -) +from cloudflare.types.teamnets import route_tunnel_route_list_tunnel_routes_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/teamnets/test_virtual_networks.py b/tests/api_resources/teamnets/test_virtual_networks.py index 46981025121..bee6ebaef3f 100644 --- a/tests/api_resources/teamnets/test_virtual_networks.py +++ b/tests/api_resources/teamnets/test_virtual_networks.py @@ -2,20 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.teamnets import ( - VirtualNetworkDeleteResponse, VirtualNetworkUpdateResponse, - VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, + VirtualNetworkDeleteResponse, VirtualNetworkTunnelVirtualNetworkCreateAVirtualNetworkResponse, + VirtualNetworkTunnelVirtualNetworkListVirtualNetworksResponse, ) +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.teamnets import virtual_network_update_params +from cloudflare.types.teamnets import virtual_network_tunnel_virtual_network_create_a_virtual_network_params +from cloudflare.types.teamnets import virtual_network_tunnel_virtual_network_list_virtual_networks_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_access_tags.py b/tests/api_resources/test_access_tags.py index 895f59f4d32..1d295fbc8cf 100644 --- a/tests/api_resources/test_access_tags.py +++ b/tests/api_resources/test_access_tags.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os +from cloudflare.types import ( + AccessTagCreateResponse, + AccessTagUpdateResponse, + AccessTagDeleteResponse, + AccessTagGetResponse, +) + 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 ( - AccessTagGetResponse, - AccessTagCreateResponse, - AccessTagDeleteResponse, - AccessTagUpdateResponse, -) +from cloudflare.types import access_tag_create_params +from cloudflare.types import access_tag_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_account_members.py b/tests/api_resources/test_account_members.py index 4430b0f691f..f53f0d42bde 100644 --- a/tests/api_resources/test_account_members.py +++ b/tests/api_resources/test_account_members.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - AccountMemberGetResponse, - AccountMemberListResponse, AccountMemberCreateResponse, - AccountMemberDeleteResponse, AccountMemberUpdateResponse, + AccountMemberListResponse, + AccountMemberDeleteResponse, + AccountMemberGetResponse, ) +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 import account_member_create_params +from cloudflare.types import account_member_update_params +from cloudflare.types import account_member_list_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 4f76d54c162..7891dc6a522 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types import AccountUpdateResponse, AccountListResponse, AccountGetResponse -import pytest +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 import ( - AccountGetResponse, - AccountListResponse, - AccountUpdateResponse, -) +from cloudflare.types import account_update_params +from cloudflare.types import account_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_activation_checks.py b/tests/api_resources/test_activation_checks.py index 9c03c2a6f1f..0ab1f6dcad0 100644 --- a/tests/api_resources/test_activation_checks.py +++ b/tests/api_resources/test_activation_checks.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types import ActivationCheckPutZonesZoneIDActivationCheckResponse + 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 ActivationCheckPutZonesZoneIDActivationCheckResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_ai.py b/tests/api_resources/test_ai.py index 66bd1544d0d..cf4cf2b7b90 100644 --- a/tests/api_resources/test_ai.py +++ b/tests/api_resources/test_ai.py @@ -2,13 +2,17 @@ from __future__ import annotations -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 ai_run_params 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 e6bfdd8326c..54bd0f522dd 100644 --- a/tests/api_resources/test_audit_logs.py +++ b/tests/api_resources/test_audit_logs.py @@ -2,16 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types import AuditLogAuditLogsGetAccountAuditLogsResponse + 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 ( - AuditLogAuditLogsGetAccountAuditLogsResponse, -) +from cloudflare.types import audit_log_audit_logs_get_account_audit_logs_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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_available_plans.py b/tests/api_resources/test_available_plans.py index b9d4d794d83..64f215ae9bb 100644 --- a/tests/api_resources/test_available_plans.py +++ b/tests/api_resources/test_available_plans.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import AvailablePlanListResponse, AvailablePlanGetResponse +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 AvailablePlanGetResponse, AvailablePlanListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_available_rate_plans.py b/tests/api_resources/test_available_rate_plans.py index 692eab3ed01..066a8768e84 100644 --- a/tests/api_resources/test_available_rate_plans.py +++ b/tests/api_resources/test_available_rate_plans.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse +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 AvailableRatePlanZoneRatePlanListAvailableRatePlansResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_bot_managements.py b/tests/api_resources/test_bot_managements.py index 5e7d1174085..7c44960d5ba 100644 --- a/tests/api_resources/test_bot_managements.py +++ b/tests/api_resources/test_bot_managements.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import BotManagementUpdateResponse, BotManagementGetResponse + 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 BotManagementGetResponse, BotManagementUpdateResponse +from cloudflare.types import bot_management_update_params 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 e9a99b182ab..4c8425c3187 100644 --- a/tests/api_resources/test_cache.py +++ b/tests/api_resources/test_cache.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import CacheRegionalTieredCachesResponse, CacheUpdateRegionalTieredCacheResponse + 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 ( - CacheRegionalTieredCachesResponse, - CacheUpdateRegionalTieredCacheResponse, -) +from cloudflare.types import cache_update_regional_tiered_cache_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_cache_reserves.py b/tests/api_resources/test_cache_reserves.py index 2b790b4fc37..c8f0d11daf2 100644 --- a/tests/api_resources/test_cache_reserves.py +++ b/tests/api_resources/test_cache_reserves.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types import CacheReserveCreateResponse, CacheReserveClearResponse + 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 CacheReserveClearResponse, CacheReserveCreateResponse 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 913bb547078..538d837b9ee 100644 --- a/tests/api_resources/test_calls.py +++ b/tests/api_resources/test_calls.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os +from cloudflare.types import ( + CallCreateResponse, + CallUpdateResponse, + CallListResponse, + CallDeleteResponse, + CallGetResponse, +) + 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 ( - CallGetResponse, - CallListResponse, - CallCreateResponse, - CallDeleteResponse, - CallUpdateResponse, -) +from cloudflare.types import call_create_params +from cloudflare.types import call_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_certificates.py b/tests/api_resources/test_certificates.py index 346bff5385d..d0a0f9bcb82 100644 --- a/tests/api_resources/test_certificates.py +++ b/tests/api_resources/test_certificates.py @@ -2,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - CertificateGetResponse, CertificateDeleteResponse, - CertificateOriginCaListCertificatesResponse, + CertificateGetResponse, CertificateOriginCaCreateCertificateResponse, + CertificateOriginCaListCertificatesResponse, ) +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 import certificate_origin_ca_create_certificate_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_cfd_tunnels.py b/tests/api_resources/test_cfd_tunnels.py index 612f49ab530..d65998d3efa 100644 --- a/tests/api_resources/test_cfd_tunnels.py +++ b/tests/api_resources/test_cfd_tunnels.py @@ -2,20 +2,33 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - CfdTunnelGetResponse, - CfdTunnelDeleteResponse, CfdTunnelUpdateResponse, - CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, + CfdTunnelDeleteResponse, CfdTunnelCloudflareTunnelCreateACloudflareTunnelResponse, + CfdTunnelCloudflareTunnelListCloudflareTunnelsResponse, + CfdTunnelGetResponse, ) + +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 import cfd_tunnel_update_params +from cloudflare.types import cfd_tunnel_delete_params +from cloudflare.types import cfd_tunnel_cloudflare_tunnel_create_a_cloudflare_tunnel_params +from cloudflare.types import cfd_tunnel_cloudflare_tunnel_list_cloudflare_tunnels_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 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 ad9a3c273b1..7bc70e2195a 100644 --- a/tests/api_resources/test_client_certificates.py +++ b/tests/api_resources/test_client_certificates.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - ClientCertificateGetResponse, - ClientCertificateDeleteResponse, ClientCertificateUpdateResponse, - ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, + ClientCertificateDeleteResponse, ClientCertificateClientCertificateForAZoneCreateClientCertificateResponse, + ClientCertificateClientCertificateForAZoneListClientCertificatesResponse, + ClientCertificateGetResponse, ) +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 import client_certificate_client_certificate_for_a_zone_create_client_certificate_params +from cloudflare.types import client_certificate_client_certificate_for_a_zone_list_client_certificates_params + 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 5b54c52489d..f73e3f2aae5 100644 --- a/tests/api_resources/test_custom_certificates.py +++ b/tests/api_resources/test_custom_certificates.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - CustomCertificateGetResponse, - CustomCertificateListResponse, CustomCertificateCreateResponse, - CustomCertificateDeleteResponse, CustomCertificateUpdateResponse, + CustomCertificateListResponse, + CustomCertificateDeleteResponse, + CustomCertificateGetResponse, ) +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 import custom_certificate_create_params +from cloudflare.types import custom_certificate_update_params +from cloudflare.types import custom_certificate_list_params + 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 be90d4a91f4..cd66da77449 100644 --- a/tests/api_resources/test_custom_hostnames.py +++ b/tests/api_resources/test_custom_hostnames.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - CustomHostnameGetResponse, - CustomHostnameDeleteResponse, CustomHostnameUpdateResponse, - CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, + CustomHostnameDeleteResponse, CustomHostnameCustomHostnameForAZoneCreateCustomHostnameResponse, + CustomHostnameCustomHostnameForAZoneListCustomHostnamesResponse, + CustomHostnameGetResponse, ) +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 import custom_hostname_update_params +from cloudflare.types import custom_hostname_custom_hostname_for_a_zone_create_custom_hostname_params +from cloudflare.types import custom_hostname_custom_hostname_for_a_zone_list_custom_hostnames_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_ns.py b/tests/api_resources/test_custom_ns.py index a3ea2833fae..988f2b746a5 100644 --- a/tests/api_resources/test_custom_ns.py +++ b/tests/api_resources/test_custom_ns.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types import CustomNCreateResponse, CustomNListResponse, CustomNDeleteResponse -import pytest +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 import CustomNListResponse, CustomNCreateResponse, CustomNDeleteResponse +from cloudflare.types import custom_n_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_devices.py b/tests/api_resources/test_devices.py index 0d8e1ebc933..082aa7d5c11 100644 --- a/tests/api_resources/test_devices.py +++ b/tests/api_resources/test_devices.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import DeviceDevicesListDevicesResponse, DeviceGetResponse +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 DeviceGetResponse, DeviceDevicesListDevicesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_dns_firewalls.py b/tests/api_resources/test_dns_firewalls.py index 3e2d85a68d7..c3b42497109 100644 --- a/tests/api_resources/test_dns_firewalls.py +++ b/tests/api_resources/test_dns_firewalls.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - DNSFirewallGetResponse, - DNSFirewallListResponse, DNSFirewallCreateResponse, - DNSFirewallDeleteResponse, DNSFirewallUpdateResponse, + DNSFirewallListResponse, + DNSFirewallDeleteResponse, + DNSFirewallGetResponse, ) +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 import dns_firewall_create_params +from cloudflare.types import dns_firewall_update_params +from cloudflare.types import dns_firewall_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_dns_records.py b/tests/api_resources/test_dns_records.py index af2e9d4270d..511187b5240 100644 --- a/tests/api_resources/test_dns_records.py +++ b/tests/api_resources/test_dns_records.py @@ -2,23 +2,32 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - DNSRecordGetResponse, - DNSRecordListResponse, - DNSRecordScanResponse, DNSRecordCreateResponse, + DNSRecordUpdateResponse, + DNSRecordListResponse, DNSRecordDeleteResponse, + DNSRecordExportResponse, + DNSRecordGetResponse, DNSRecordImportResponse, - DNSRecordUpdateResponse, + DNSRecordScanResponse, ) +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 import dns_record_create_params +from cloudflare.types import dns_record_update_params +from cloudflare.types import dns_record_list_params +from cloudflare.types import dns_record_import_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_dnssecs.py b/tests/api_resources/test_dnssecs.py index 0f6652f03ea..7eaa542cfd5 100644 --- a/tests/api_resources/test_dnssecs.py +++ b/tests/api_resources/test_dnssecs.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import DNSSECUpdateResponse, DNSSECGetResponse + 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 DNSSECGetResponse, DNSSECUpdateResponse +from cloudflare.types import dnssec_update_params 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 4a433cfad9c..1bc1c216e3b 100644 --- a/tests/api_resources/test_filters.py +++ b/tests/api_resources/test_filters.py @@ -2,22 +2,30 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - FilterGetResponse, - FilterDeleteResponse, FilterUpdateResponse, - FilterFiltersListFiltersResponse, + FilterDeleteResponse, FilterFiltersCreateFiltersResponse, + FilterFiltersListFiltersResponse, FilterFiltersUpdateFiltersResponse, + FilterGetResponse, ) +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 filter_update_params +from cloudflare.types import filter_filters_create_filters_params +from cloudflare.types import filter_filters_list_filters_params +from cloudflare.types import filter_filters_update_filters_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_font_settings.py b/tests/api_resources/test_font_settings.py index 95a13bdcfe5..7610c49e00e 100644 --- a/tests/api_resources/test_font_settings.py +++ b/tests/api_resources/test_font_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import FontSettingUpdateResponse, FontSettingGetResponse +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 FontSettingGetResponse, FontSettingUpdateResponse +from cloudflare.types import font_setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_gateways.py b/tests/api_resources/test_gateways.py index ee561ac9085..8664088b0d3 100644 --- a/tests/api_resources/test_gateways.py +++ b/tests/api_resources/test_gateways.py @@ -2,17 +2,21 @@ from __future__ import annotations -import os +from cloudflare.types import ( + GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, + GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, +) + 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 ( - GatewayZeroTrustAccountsCreateZeroTrustAccountResponse, - GatewayZeroTrustAccountsGetZeroTrustAccountInformationResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_healthchecks.py b/tests/api_resources/test_healthchecks.py index d80d0f9b362..e7dc3de7238 100644 --- a/tests/api_resources/test_healthchecks.py +++ b/tests/api_resources/test_healthchecks.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - HealthcheckGetResponse, - HealthcheckDeleteResponse, HealthcheckUpdateResponse, - HealthcheckHealthChecksListHealthChecksResponse, + HealthcheckDeleteResponse, + HealthcheckGetResponse, HealthcheckHealthChecksCreateHealthCheckResponse, + HealthcheckHealthChecksListHealthChecksResponse, ) +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 import healthcheck_update_params +from cloudflare.types import healthcheck_health_checks_create_health_check_params + 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 b326f5fd009..b168b3e7956 100644 --- a/tests/api_resources/test_ips.py +++ b/tests/api_resources/test_ips.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import IPListResponse + 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 IPListResponse +from cloudflare.types import ip_list_params 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 ac3551a4b5f..8894152a03c 100644 --- a/tests/api_resources/test_keyless_certificates.py +++ b/tests/api_resources/test_keyless_certificates.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - KeylessCertificateGetResponse, - KeylessCertificateListResponse, KeylessCertificateCreateResponse, - KeylessCertificateDeleteResponse, KeylessCertificateUpdateResponse, + KeylessCertificateListResponse, + KeylessCertificateDeleteResponse, + KeylessCertificateGetResponse, ) +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 import keyless_certificate_create_params +from cloudflare.types import keyless_certificate_update_params + 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 b68a5a016bb..be02fab30d8 100644 --- a/tests/api_resources/test_load_balancers.py +++ b/tests/api_resources/test_load_balancers.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - LoadBalancerGetResponse, - LoadBalancerListResponse, LoadBalancerCreateResponse, - LoadBalancerDeleteResponse, LoadBalancerUpdateResponse, + LoadBalancerListResponse, + LoadBalancerDeleteResponse, + LoadBalancerGetResponse, ) +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 import load_balancer_create_params +from cloudflare.types import load_balancer_update_params + 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 890005e73fa..80ca1c0211d 100644 --- a/tests/api_resources/test_managed_headers.py +++ b/tests/api_resources/test_managed_headers.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types import ( + ManagedHeaderListResponse, + ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, +) + 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 ( - ManagedHeaderListResponse, - ManagedHeaderManagedTransformsUpdateStatusOfManagedTransformsResponse, -) +from cloudflare.types import managed_header_managed_transforms_update_status_of_managed_transforms_params 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 5d0b8bba82d..e1e75f3cea9 100644 --- a/tests/api_resources/test_memberships.py +++ b/tests/api_resources/test_memberships.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - MembershipGetResponse, + MembershipUpdateResponse, MembershipListResponse, MembershipDeleteResponse, - MembershipUpdateResponse, + MembershipGetResponse, ) +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 import membership_update_params +from cloudflare.types import membership_list_params + 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 2be87e3ad6a..5d08c789e85 100644 --- a/tests/api_resources/test_mtls_certificates.py +++ b/tests/api_resources/test_mtls_certificates.py @@ -2,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - MtlsCertificateGetResponse, + MtlsCertificateUpdateResponse, MtlsCertificateListResponse, MtlsCertificateDeleteResponse, - MtlsCertificateUpdateResponse, + MtlsCertificateGetResponse, ) +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 import mtls_certificate_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_post_quantum_encryptions.py b/tests/api_resources/test_origin_post_quantum_encryptions.py index 479420bfb40..53733ced4a8 100644 --- a/tests/api_resources/test_origin_post_quantum_encryptions.py +++ b/tests/api_resources/test_origin_post_quantum_encryptions.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import OriginPostQuantumEncryptionUpdateResponse, OriginPostQuantumEncryptionGetResponse + 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 ( - OriginPostQuantumEncryptionGetResponse, - OriginPostQuantumEncryptionUpdateResponse, -) +from cloudflare.types 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 07c69f540a2..02927f60c8f 100644 --- a/tests/api_resources/test_origin_tls_client_auth.py +++ b/tests/api_resources/test_origin_tls_client_auth.py @@ -2,20 +2,25 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - OriginTLSClientAuthGetResponse, - OriginTLSClientAuthListResponse, OriginTLSClientAuthCreateResponse, + OriginTLSClientAuthListResponse, OriginTLSClientAuthDeleteResponse, + OriginTLSClientAuthGetResponse, ) +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 import origin_tls_client_auth_create_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_page_shields.py b/tests/api_resources/test_page_shields.py index d26a14ae422..5260b03f453 100644 --- a/tests/api_resources/test_page_shields.py +++ b/tests/api_resources/test_page_shields.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import PageShieldListResponse, PageShieldPageShieldUpdatePageShieldSettingsResponse + 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 ( - PageShieldListResponse, - PageShieldPageShieldUpdatePageShieldSettingsResponse, -) +from cloudflare.types import page_shield_page_shield_update_page_shield_settings_params 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 5bdc1827887..f05c1d37733 100644 --- a/tests/api_resources/test_pagerules.py +++ b/tests/api_resources/test_pagerules.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - PageruleGetResponse, - PageruleListResponse, PageruleCreateResponse, - PageruleDeleteResponse, PageruleUpdateResponse, + PageruleListResponse, + PageruleDeleteResponse, + PageruleGetResponse, ) +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 import pagerule_create_params +from cloudflare.types import pagerule_update_params +from cloudflare.types import pagerule_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_pcaps.py b/tests/api_resources/test_pcaps.py index 65a4a8984f7..16fd1a47452 100644 --- a/tests/api_resources/test_pcaps.py +++ b/tests/api_resources/test_pcaps.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( PcapGetResponse, PcapMagicPcapCollectionCreatePcapRequestResponse, PcapMagicPcapCollectionListPacketCaptureRequestsResponse, ) +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 import pcap_magic_pcap_collection_create_pcap_request_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_purge_caches.py b/tests/api_resources/test_purge_caches.py index 0ef655b6b97..3c27c384803 100644 --- a/tests/api_resources/test_purge_caches.py +++ b/tests/api_resources/test_purge_caches.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import PurgeCachZonePurgeResponse +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 PurgeCachZonePurgeResponse +from cloudflare.types import purge_cach_zone_purge_params 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 d1484305cb7..8be833e7d84 100644 --- a/tests/api_resources/test_rate_limits.py +++ b/tests/api_resources/test_rate_limits.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import RateLimitUpdateResponse, RateLimitListResponse, RateLimitGetResponse +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 ( - RateLimitGetResponse, - RateLimitListResponse, - RateLimitUpdateResponse, -) +from cloudflare.types import rate_limit_update_params +from cloudflare.types import rate_limit_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_roles.py b/tests/api_resources/test_roles.py index add6b7affd7..658c6d354e2 100644 --- a/tests/api_resources/test_roles.py +++ b/tests/api_resources/test_roles.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import RoleAccountRolesListRolesResponse, RoleGetResponse +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 RoleGetResponse, RoleAccountRolesListRolesResponse 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 1a22599d96e..98b73b4d5b9 100644 --- a/tests/api_resources/test_rulesets.py +++ b/tests/api_resources/test_rulesets.py @@ -2,19 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types import RulesetCreateResponse, RulesetUpdateResponse, RulesetListResponse, RulesetGetResponse + 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 ( - RulesetGetResponse, - RulesetListResponse, - RulesetCreateResponse, - RulesetUpdateResponse, -) +from cloudflare.types import ruleset_create_params +from cloudflare.types import ruleset_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_settings.py b/tests/api_resources/test_settings.py index cf0f1403569..becadea2672 100644 --- a/tests/api_resources/test_settings.py +++ b/tests/api_resources/test_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types import SettingListResponse, SettingEditResponse +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 SettingEditResponse, SettingListResponse +from cloudflare.types import setting_edit_params 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 b6424a587fc..62de69202e2 100644 --- a/tests/api_resources/test_snippets.py +++ b/tests/api_resources/test_snippets.py @@ -2,19 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import SnippetUpdateResponse, SnippetListResponse, SnippetDeleteResponse, SnippetGetResponse + 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 ( - SnippetGetResponse, - SnippetListResponse, - SnippetDeleteResponse, - SnippetUpdateResponse, -) +from cloudflare.types import snippet_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_speed_api.py b/tests/api_resources/test_speed_api.py index 4ecbd1699b3..85e796d35b2 100644 --- a/tests/api_resources/test_speed_api.py +++ b/tests/api_resources/test_speed_api.py @@ -2,25 +2,35 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - SpeedAPITestsGetResponse, + SpeedAPIAvailabilitiesListResponse, SpeedAPIPagesListResponse, - SpeedAPITestsListResponse, - SpeedAPITrendsListResponse, + SpeedAPIScheduleDeleteResponse, SpeedAPIScheduleGetResponse, SpeedAPITestsCreateResponse, SpeedAPITestsDeleteResponse, - SpeedAPIScheduleDeleteResponse, - SpeedAPIAvailabilitiesListResponse, + SpeedAPITestsGetResponse, + SpeedAPITestsListResponse, + SpeedAPITrendsListResponse, ) +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 speed_api_schedule_delete_params +from cloudflare.types import speed_api_schedule_get_params +from cloudflare.types import speed_api_tests_create_params +from cloudflare.types import speed_api_tests_delete_params +from cloudflare.types import speed_api_tests_list_params +from cloudflare.types import speed_api_trends_list_params + 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 53301de57b6..4bde45a5a40 100644 --- a/tests/api_resources/test_stream.py +++ b/tests/api_resources/test_stream.py @@ -2,18 +2,27 @@ from __future__ import annotations -import os +from cloudflare.types import StreamUpdateResponse, StreamGetResponse, StreamStreamVideosListVideosResponse + 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 ( - StreamGetResponse, - StreamUpdateResponse, - StreamStreamVideosListVideosResponse, -) +from cloudflare.types import stream_update_params +from cloudflare.types import stream_stream_videos_list_videos_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 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 e657c9e756e..f6023fbc23c 100644 --- a/tests/api_resources/test_subscriptions.py +++ b/tests/api_resources/test_subscriptions.py @@ -2,23 +2,31 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - SubscriptionDeleteResponse, SubscriptionUpdateResponse, - SubscriptionAccountSubscriptionsListSubscriptionsResponse, + SubscriptionDeleteResponse, SubscriptionAccountSubscriptionsCreateSubscriptionResponse, + SubscriptionAccountSubscriptionsListSubscriptionsResponse, SubscriptionZoneSubscriptionCreateZoneSubscriptionResponse, SubscriptionZoneSubscriptionUpdateZoneSubscriptionResponse, SubscriptionZoneSubscriptionZoneSubscriptionDetailsResponse, ) +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 import subscription_update_params +from cloudflare.types import subscription_account_subscriptions_create_subscription_params +from cloudflare.types import subscription_zone_subscription_create_zone_subscription_params +from cloudflare.types import subscription_zone_subscription_update_zone_subscription_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_tunnels.py b/tests/api_resources/test_tunnels.py index c343f827102..ae73c99f9fe 100644 --- a/tests/api_resources/test_tunnels.py +++ b/tests/api_resources/test_tunnels.py @@ -2,19 +2,31 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - TunnelGetResponse, TunnelDeleteResponse, - TunnelArgoTunnelListArgoTunnelsResponse, TunnelArgoTunnelCreateAnArgoTunnelResponse, + TunnelArgoTunnelListArgoTunnelsResponse, + TunnelGetResponse, ) + +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 import tunnel_delete_params +from cloudflare.types import tunnel_argo_tunnel_create_an_argo_tunnel_params +from cloudflare.types import tunnel_argo_tunnel_list_argo_tunnels_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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_url_normalizations.py b/tests/api_resources/test_url_normalizations.py index 4afc91da37f..50c39dd1600 100644 --- a/tests/api_resources/test_url_normalizations.py +++ b/tests/api_resources/test_url_normalizations.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types import ( + URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, + URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, +) + 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 ( - URLNormalizationURLNormalizationGetURLNormalizationSettingsResponse, - URLNormalizationURLNormalizationUpdateURLNormalizationSettingsResponse, -) +from cloudflare.types import url_normalization_url_normalization_update_url_normalization_settings_params 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 4a8a91a3ea3..0a885dde661 100644 --- a/tests/api_resources/test_url_scanner.py +++ b/tests/api_resources/test_url_scanner.py @@ -2,14 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types import URLScannerScanResponse + 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 URLScannerScanResponse +from cloudflare.types 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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_users.py b/tests/api_resources/test_users.py index 02d18899b32..f4791904c40 100644 --- a/tests/api_resources/test_users.py +++ b/tests/api_resources/test_users.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import UserUserEditUserResponse, UserUserUserDetailsResponse + 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 UserUserEditUserResponse, UserUserUserDetailsResponse +from cloudflare.types import user_user_edit_user_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 4fc741f07f8..3cfbfdffdf1 100644 --- a/tests/api_resources/test_waiting_rooms.py +++ b/tests/api_resources/test_waiting_rooms.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - WaitingRoomGetResponse, - WaitingRoomListResponse, WaitingRoomCreateResponse, - WaitingRoomDeleteResponse, WaitingRoomUpdateResponse, + WaitingRoomListResponse, + WaitingRoomDeleteResponse, + WaitingRoomGetResponse, ) +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 import waiting_room_create_params +from cloudflare.types import waiting_room_update_params + 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 44d944bafcd..485bf853667 100644 --- a/tests/api_resources/test_warp_connector.py +++ b/tests/api_resources/test_warp_connector.py @@ -2,20 +2,33 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - WarpConnectorGetResponse, - WarpConnectorListResponse, WarpConnectorCreateResponse, - WarpConnectorDeleteResponse, WarpConnectorUpdateResponse, + WarpConnectorListResponse, + WarpConnectorDeleteResponse, + WarpConnectorGetResponse, ) + +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 import warp_connector_create_params +from cloudflare.types import warp_connector_update_params +from cloudflare.types import warp_connector_list_params +from cloudflare.types import warp_connector_delete_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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_worker_domains.py b/tests/api_resources/test_worker_domains.py index fc6678c1b8b..8ae4b6cf41c 100644 --- a/tests/api_resources/test_worker_domains.py +++ b/tests/api_resources/test_worker_domains.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os from typing import Any, cast -import pytest +from cloudflare.types import WorkerDomainGetResponse +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 WorkerDomainGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_zaraz.py b/tests/api_resources/test_zaraz.py index 6ea02351f38..f28ec9b5ca9 100644 --- a/tests/api_resources/test_zaraz.py +++ b/tests/api_resources/test_zaraz.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types import ZarazWorkflowUpdateResponse + 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 ZarazWorkflowUpdateResponse +from cloudflare.types import zaraz_workflow_update_params 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 3ec8f00082b..42b66174c94 100644 --- a/tests/api_resources/test_zones.py +++ b/tests/api_resources/test_zones.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types import ( - ZoneGetResponse, - ZoneListResponse, ZoneCreateResponse, - ZoneDeleteResponse, ZoneUpdateResponse, + ZoneListResponse, + ZoneDeleteResponse, + ZoneGetResponse, ) +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 zone_create_params +from cloudflare.types import zone_update_params +from cloudflare.types import zone_list_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/tunnels/test_connections.py b/tests/api_resources/tunnels/test_connections.py index 6bd70f6a75c..e830da9d62e 100644 --- a/tests/api_resources/tunnels/test_connections.py +++ b/tests/api_resources/tunnels/test_connections.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.tunnels import ConnectionDeleteResponse + 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.tunnels import ConnectionDeleteResponse +from cloudflare.types.tunnels import connection_delete_params 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 545ffb0fda1..433d2728a20 100644 --- a/tests/api_resources/url_scanner/test_scans.py +++ b/tests/api_resources/url_scanner/test_scans.py @@ -2,26 +2,27 @@ from __future__ import annotations -import os -from typing import Any, cast +from cloudflare.types.url_scanner import ScanCreateResponse, ScanGetResponse, ScanHarResponse -import httpx -import pytest -from respx import MockRouter +from typing import Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare._response import ( BinaryAPIResponse, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.url_scanner import ( - ScanGetResponse, - ScanHarResponse, - ScanCreateResponse, -) + +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 scan_create_params +from cloudflare.types.url_scanner import scan_screenshot_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/billings/test_histories.py b/tests/api_resources/users/billings/test_histories.py index 364643a5cdc..5f7b072177e 100644 --- a/tests/api_resources/users/billings/test_histories.py +++ b/tests/api_resources/users/billings/test_histories.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.billings import HistoryUserBillingHistoryBillingHistoryDetailsResponse +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.users.billings import ( - HistoryUserBillingHistoryBillingHistoryDetailsResponse, -) +from cloudflare.types.users.billings import history_user_billing_history_billing_history_details_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/billings/test_profiles.py b/tests/api_resources/users/billings/test_profiles.py index 3786123f46f..10382c02eba 100644 --- a/tests/api_resources/users/billings/test_profiles.py +++ b/tests/api_resources/users/billings/test_profiles.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.users.billings import ProfileUserBillingProfileBillingProfileDetailsResponse + 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.users.billings import ProfileUserBillingProfileBillingProfileDetailsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/firewalls/access_rules/test_rules.py b/tests/api_resources/users/firewalls/access_rules/test_rules.py index 7955c7cca4a..d6d9629ebaf 100644 --- a/tests/api_resources/users/firewalls/access_rules/test_rules.py +++ b/tests/api_resources/users/firewalls/access_rules/test_rules.py @@ -2,19 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.firewalls.access_rules import ( + RuleUpdateResponse, + RuleDeleteResponse, + RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, + RuleIPAccessRulesForAUserListIPAccessRulesResponse, +) +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.users.firewalls.access_rules import rule_update_params from cloudflare.types.users.firewalls.access_rules import ( - RuleDeleteResponse, - RuleUpdateResponse, - RuleIPAccessRulesForAUserListIPAccessRulesResponse, - RuleIPAccessRulesForAUserCreateAnIPAccessRuleResponse, + rule_ip_access_rules_for_a_user_create_an_ip_access_rule_params, ) +from cloudflare.types.users.firewalls.access_rules import rule_ip_access_rules_for_a_user_list_ip_access_rules_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/monitors/test_previews.py b/tests/api_resources/users/load_balancers/monitors/test_previews.py index 98e7b24d8bf..9227d018452 100644 --- a/tests/api_resources/users/load_balancers/monitors/test_previews.py +++ b/tests/api_resources/users/load_balancers/monitors/test_previews.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.users.load_balancers.monitors import PreviewLoadBalancerMonitorsPreviewMonitorResponse + 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.users.load_balancers.monitors import ( - PreviewLoadBalancerMonitorsPreviewMonitorResponse, -) +from cloudflare.types.users.load_balancers.monitors import preview_load_balancer_monitors_preview_monitor_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/monitors/test_references.py b/tests/api_resources/users/load_balancers/monitors/test_references.py index 7858b6859fc..07a53a471b6 100644 --- a/tests/api_resources/users/load_balancers/monitors/test_references.py +++ b/tests/api_resources/users/load_balancers/monitors/test_references.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.load_balancers.monitors import ReferenceLoadBalancerMonitorsListMonitorReferencesResponse +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.users.load_balancers.monitors import ReferenceLoadBalancerMonitorsListMonitorReferencesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/pools/test_health.py b/tests/api_resources/users/load_balancers/pools/test_health.py index 227cc089f07..7e77b3e2779 100644 --- a/tests/api_resources/users/load_balancers/pools/test_health.py +++ b/tests/api_resources/users/load_balancers/pools/test_health.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.users.load_balancers.pools import HealthLoadBalancerPoolsPoolHealthDetailsResponse + 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.users.load_balancers.pools import HealthLoadBalancerPoolsPoolHealthDetailsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/pools/test_previews.py b/tests/api_resources/users/load_balancers/pools/test_previews.py index 23c81e0af70..23e011fe401 100644 --- a/tests/api_resources/users/load_balancers/pools/test_previews.py +++ b/tests/api_resources/users/load_balancers/pools/test_previews.py @@ -2,16 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.users.load_balancers.pools import PreviewLoadBalancerPoolsPreviewPoolResponse + 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.users.load_balancers.pools import ( - PreviewLoadBalancerPoolsPreviewPoolResponse, -) +from cloudflare.types.users.load_balancers.pools import preview_load_balancer_pools_preview_pool_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/pools/test_references.py b/tests/api_resources/users/load_balancers/pools/test_references.py index f500427f682..c73fd9bc806 100644 --- a/tests/api_resources/users/load_balancers/pools/test_references.py +++ b/tests/api_resources/users/load_balancers/pools/test_references.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.load_balancers.pools import ReferenceLoadBalancerPoolsListPoolReferencesResponse +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.users.load_balancers.pools import ReferenceLoadBalancerPoolsListPoolReferencesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/test_monitors.py b/tests/api_resources/users/load_balancers/test_monitors.py index 8181335a690..6350e7b5cb3 100644 --- a/tests/api_resources/users/load_balancers/test_monitors.py +++ b/tests/api_resources/users/load_balancers/test_monitors.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.users.load_balancers import ( - MonitorGetResponse, - MonitorListResponse, MonitorCreateResponse, - MonitorDeleteResponse, MonitorUpdateResponse, + MonitorListResponse, + MonitorDeleteResponse, + MonitorGetResponse, ) +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.users.load_balancers import monitor_create_params +from cloudflare.types.users.load_balancers import monitor_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/test_pools.py b/tests/api_resources/users/load_balancers/test_pools.py index a4baa521e33..da3238ba444 100644 --- a/tests/api_resources/users/load_balancers/test_pools.py +++ b/tests/api_resources/users/load_balancers/test_pools.py @@ -2,22 +2,30 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.users.load_balancers import ( - PoolGetResponse, - PoolDeleteResponse, PoolUpdateResponse, - PoolLoadBalancerPoolsListPoolsResponse, + PoolDeleteResponse, + PoolGetResponse, PoolLoadBalancerPoolsCreatePoolResponse, + PoolLoadBalancerPoolsListPoolsResponse, PoolLoadBalancerPoolsPatchPoolsResponse, ) +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.users.load_balancers import pool_update_params +from cloudflare.types.users.load_balancers import pool_load_balancer_pools_create_pool_params +from cloudflare.types.users.load_balancers import pool_load_balancer_pools_list_pools_params +from cloudflare.types.users.load_balancers import pool_load_balancer_pools_patch_pools_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/load_balancers/test_previews.py b/tests/api_resources/users/load_balancers/test_previews.py index a5cd4a1d933..629bc40c283 100644 --- a/tests/api_resources/users/load_balancers/test_previews.py +++ b/tests/api_resources/users/load_balancers/test_previews.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.users.load_balancers import PreviewGetResponse + 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.users.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/users/load_balancing_analytics/test_events.py b/tests/api_resources/users/load_balancing_analytics/test_events.py index 1152f664225..bd0a4e5a27c 100644 --- a/tests/api_resources/users/load_balancing_analytics/test_events.py +++ b/tests/api_resources/users/load_balancing_analytics/test_events.py @@ -2,17 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.load_balancing_analytics import ( + EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse, +) +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._utils import parse_datetime from cloudflare.types.users.load_balancing_analytics import ( - EventLoadBalancerHealthcheckEventsListHealthcheckEventsResponse, + event_load_balancer_healthcheck_events_list_healthcheck_events_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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/test_audit_logs.py b/tests/api_resources/users/test_audit_logs.py index 9de1c9ce8db..72c3c7319ef 100644 --- a/tests/api_resources/users/test_audit_logs.py +++ b/tests/api_resources/users/test_audit_logs.py @@ -2,15 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.users import AuditLogListResponse + 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.users 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.types.users import AuditLogListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/test_invites.py b/tests/api_resources/users/test_invites.py index 4d49932f8ae..363eb179c7d 100644 --- a/tests/api_resources/users/test_invites.py +++ b/tests/api_resources/users/test_invites.py @@ -2,18 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.users import InviteUpdateResponse, InviteGetResponse, InviteUserSInvitesListInvitationsResponse -import pytest +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.users import ( - InviteGetResponse, - InviteUpdateResponse, - InviteUserSInvitesListInvitationsResponse, -) +from cloudflare.types.users import invite_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/test_organizations.py b/tests/api_resources/users/test_organizations.py index ffe3bf78d8a..2a4208fa4fb 100644 --- a/tests/api_resources/users/test_organizations.py +++ b/tests/api_resources/users/test_organizations.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.users import ( - OrganizationGetResponse, OrganizationDeleteResponse, + OrganizationGetResponse, OrganizationUserSOrganizationsListOrganizationsResponse, ) +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.users import organization_user_s_organizations_list_organizations_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/test_subscriptions.py b/tests/api_resources/users/test_subscriptions.py index 98a256fdc44..8a1179948ee 100644 --- a/tests/api_resources/users/test_subscriptions.py +++ b/tests/api_resources/users/test_subscriptions.py @@ -2,19 +2,24 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.users import ( - SubscriptionDeleteResponse, SubscriptionUpdateResponse, + SubscriptionDeleteResponse, SubscriptionUserSubscriptionGetUserSubscriptionsResponse, ) +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.users import subscription_update_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/test_tokens.py b/tests/api_resources/users/test_tokens.py index 07ad2dd1be2..43ee59b9ed7 100644 --- a/tests/api_resources/users/test_tokens.py +++ b/tests/api_resources/users/test_tokens.py @@ -2,21 +2,35 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.users import ( + TokenUpdateResponse, + TokenDeleteResponse, + TokenGetResponse, + TokenUserAPITokensCreateTokenResponse, + TokenUserAPITokensListTokensResponse, +) -import pytest +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.users import token_update_params +from cloudflare.types.users import token_user_api_tokens_create_token_params +from cloudflare.types.users import token_user_api_tokens_list_tokens_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.users import ( - TokenGetResponse, - TokenDeleteResponse, - TokenUpdateResponse, - TokenUserAPITokensListTokensResponse, - TokenUserAPITokensCreateTokenResponse, -) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/tokens/test_permission_groups.py b/tests/api_resources/users/tokens/test_permission_groups.py index c149897bacc..edaade00e92 100644 --- a/tests/api_resources/users/tokens/test_permission_groups.py +++ b/tests/api_resources/users/tokens/test_permission_groups.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.users.tokens import PermissionGroupPermissionGroupsListPermissionGroupsResponse +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.users.tokens import PermissionGroupPermissionGroupsListPermissionGroupsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/tokens/test_values.py b/tests/api_resources/users/tokens/test_values.py index 8e014b6247d..4271dc0fd25 100644 --- a/tests/api_resources/users/tokens/test_values.py +++ b/tests/api_resources/users/tokens/test_values.py @@ -2,13 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.users.tokens import ValueUserAPITokensRollTokenResponse + 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.users.tokens import value_user_api_tokens_roll_token_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/users/tokens/test_verifies.py b/tests/api_resources/users/tokens/test_verifies.py index 1f127c62522..656f2decfa7 100644 --- a/tests/api_resources/users/tokens/test_verifies.py +++ b/tests/api_resources/users/tokens/test_verifies.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.users.tokens import VerifyUserAPITokensVerifyTokenResponse + 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.users.tokens import VerifyUserAPITokensVerifyTokenResponse 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 6fd818e1f49..5bd80a0b1ff 100644 --- a/tests/api_resources/vectorize/test_indexes.py +++ b/tests/api_resources/vectorize/test_indexes.py @@ -2,25 +2,34 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.vectorize import ( - IndexGetResponse, - IndexListResponse, - IndexQueryResponse, IndexCreateResponse, + IndexUpdateResponse, + IndexListResponse, IndexDeleteResponse, + IndexDeleteByIDsResponse, + IndexGetResponse, IndexInsertResponse, - IndexUpdateResponse, + IndexQueryResponse, IndexUpsertResponse, - IndexDeleteByIDsResponse, ) +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.vectorize import index_create_params +from cloudflare.types.vectorize import index_update_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_query_params + 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 7895b27da28..f0180bdd2d4 100644 --- a/tests/api_resources/waiting_rooms/events/test_details.py +++ b/tests/api_resources/waiting_rooms/events/test_details.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.waiting_rooms.events import DetailWaitingRoomPreviewActiveEventDetailsResponse + 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 DetailWaitingRoomPreviewActiveEventDetailsResponse 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 7e2c306c5db..7e9495b321a 100644 --- a/tests/api_resources/waiting_rooms/test_events.py +++ b/tests/api_resources/waiting_rooms/test_events.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.waiting_rooms import ( - EventGetResponse, - EventDeleteResponse, EventUpdateResponse, - EventWaitingRoomListEventsResponse, + EventDeleteResponse, + EventGetResponse, EventWaitingRoomCreateEventResponse, + EventWaitingRoomListEventsResponse, ) +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.waiting_rooms import event_update_params +from cloudflare.types.waiting_rooms import event_waiting_room_create_event_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_previews.py b/tests/api_resources/waiting_rooms/test_previews.py index b37753c41e9..f0a1ce398e4 100644 --- a/tests/api_resources/waiting_rooms/test_previews.py +++ b/tests/api_resources/waiting_rooms/test_previews.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.waiting_rooms import PreviewCreateResponse + 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 PreviewCreateResponse +from cloudflare.types.waiting_rooms import preview_create_params 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 68e89d4a759..c96b9564b4a 100644 --- a/tests/api_resources/waiting_rooms/test_rules.py +++ b/tests/api_resources/waiting_rooms/test_rules.py @@ -2,21 +2,28 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.waiting_rooms import ( - RuleDeleteResponse, RuleUpdateResponse, - RuleWaitingRoomListWaitingRoomRulesResponse, + RuleDeleteResponse, RuleWaitingRoomCreateWaitingRoomRuleResponse, + RuleWaitingRoomListWaitingRoomRulesResponse, RuleWaitingRoomReplaceWaitingRoomRulesResponse, ) +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 rule_update_params +from cloudflare.types.waiting_rooms import rule_waiting_room_create_waiting_room_rule_params +from cloudflare.types.waiting_rooms import rule_waiting_room_replace_waiting_room_rules_params + 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 29aabfb97a0..5227cc865fe 100644 --- a/tests/api_resources/waiting_rooms/test_settings.py +++ b/tests/api_resources/waiting_rooms/test_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.waiting_rooms import SettingUpdateResponse, SettingGetResponse + 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 SettingGetResponse, SettingUpdateResponse +from cloudflare.types.waiting_rooms import setting_update_params 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 077386c6aa1..2d973d527e8 100644 --- a/tests/api_resources/waiting_rooms/test_statuses.py +++ b/tests/api_resources/waiting_rooms/test_statuses.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.waiting_rooms import StatusWaitingRoomGetWaitingRoomStatusResponse + 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 StatusWaitingRoomGetWaitingRoomStatusResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3s/hostnames/ipfs_universal_paths/content_lists/test_entries.py b/tests/api_resources/web3s/hostnames/ipfs_universal_paths/content_lists/test_entries.py index 5d3ddd1950e..7041714b6e1 100644 --- a/tests/api_resources/web3s/hostnames/ipfs_universal_paths/content_lists/test_entries.py +++ b/tests/api_resources/web3s/hostnames/ipfs_universal_paths/content_lists/test_entries.py @@ -2,19 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.web3s.hostnames.ipfs_universal_paths.content_lists import ( + EntryUpdateResponse, + EntryDeleteResponse, + EntryGetResponse, + EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, + EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, +) -import pytest +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.web3s.hostnames.ipfs_universal_paths.content_lists import entry_update_params from cloudflare.types.web3s.hostnames.ipfs_universal_paths.content_lists import ( - EntryGetResponse, - EntryDeleteResponse, - EntryUpdateResponse, - EntryWeb3HostnameCreateIpfsUniversalPathGatewayContentListEntryResponse, - EntryWeb3HostnameListIpfsUniversalPathGatewayContentListEntriesResponse, + entry_web3_hostname_create_ipfs_universal_path_gateway_content_list_entry_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3s/hostnames/ipfs_universal_paths/test_content_lists.py b/tests/api_resources/web3s/hostnames/ipfs_universal_paths/test_content_lists.py index 79621c63a32..46e3ede50de 100644 --- a/tests/api_resources/web3s/hostnames/ipfs_universal_paths/test_content_lists.py +++ b/tests/api_resources/web3s/hostnames/ipfs_universal_paths/test_content_lists.py @@ -2,16 +2,23 @@ from __future__ import annotations -import os +from cloudflare.types.web3s.hostnames.ipfs_universal_paths import ( + ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, + ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, +) + 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.web3s.hostnames.ipfs_universal_paths import ( - ContentListWeb3HostnameUpdateIpfsUniversalPathGatewayContentListResponse, - ContentListWeb3HostnameIpfsUniversalPathGatewayContentListDetailsResponse, + content_list_web3_hostname_update_ipfs_universal_path_gateway_content_list_params, ) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3s/test_hostnames.py b/tests/api_resources/web3s/test_hostnames.py index da84f1d3f9a..f8916eed0b1 100644 --- a/tests/api_resources/web3s/test_hostnames.py +++ b/tests/api_resources/web3s/test_hostnames.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.web3s import ( - HostnameGetResponse, - HostnameDeleteResponse, HostnameUpdateResponse, - HostnameWeb3HostnameListWeb3HostnamesResponse, + HostnameDeleteResponse, + HostnameGetResponse, HostnameWeb3HostnameCreateWeb3HostnameResponse, + HostnameWeb3HostnameListWeb3HostnamesResponse, ) +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.web3s import hostname_update_params +from cloudflare.types.web3s import hostname_web3_hostname_create_web3_hostname_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/worker_scripts/test_content.py b/tests/api_resources/worker_scripts/test_content.py index 7e4237cbb3d..431473dd3d3 100644 --- a/tests/api_resources/worker_scripts/test_content.py +++ b/tests/api_resources/worker_scripts/test_content.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.worker_scripts import ContentUpdateResponse + 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.worker_scripts import ContentUpdateResponse +from cloudflare.types.worker_scripts import content_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/worker_scripts/test_content_v2.py b/tests/api_resources/worker_scripts/test_content_v2.py index a3215279974..f528d4f5471 100644 --- a/tests/api_resources/worker_scripts/test_content_v2.py +++ b/tests/api_resources/worker_scripts/test_content_v2.py @@ -2,21 +2,24 @@ from __future__ import annotations -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, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, 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/worker_scripts/test_settings.py b/tests/api_resources/worker_scripts/test_settings.py index 2a8d991455e..078b7c08262 100644 --- a/tests/api_resources/worker_scripts/test_settings.py +++ b/tests/api_resources/worker_scripts/test_settings.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.worker_scripts import SettingUpdateResponse, SettingGetResponse + 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.worker_scripts import SettingGetResponse, SettingUpdateResponse +from cloudflare.types.worker_scripts import setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/deployments/by_scripts/test_details.py b/tests/api_resources/workers/deployments/by_scripts/test_details.py index d4bc487357c..69ffd3baae4 100644 --- a/tests/api_resources/workers/deployments/by_scripts/test_details.py +++ b/tests/api_resources/workers/deployments/by_scripts/test_details.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.workers.deployments.by_scripts import DetailGetResponse + 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.deployments.by_scripts import DetailGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/deployments/test_by_scripts.py b/tests/api_resources/workers/deployments/test_by_scripts.py index 1a411921740..5c4b7c0a706 100644 --- a/tests/api_resources/workers/deployments/test_by_scripts.py +++ b/tests/api_resources/workers/deployments/test_by_scripts.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.workers.deployments import ByScriptWorkerDeploymentsListDeploymentsResponse + 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.deployments import ByScriptWorkerDeploymentsListDeploymentsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/durable_objects/namespaces/test_objects.py b/tests/api_resources/workers/durable_objects/namespaces/test_objects.py index 83ea92295a9..190cf808fba 100644 --- a/tests/api_resources/workers/durable_objects/namespaces/test_objects.py +++ b/tests/api_resources/workers/durable_objects/namespaces/test_objects.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.workers.durable_objects.namespaces import ObjectListResponse +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.durable_objects.namespaces import ObjectListResponse +from cloudflare.types.workers.durable_objects.namespaces import object_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/durable_objects/test_namespaces.py b/tests/api_resources/workers/durable_objects/test_namespaces.py index 042d177925d..472979409d7 100644 --- a/tests/api_resources/workers/durable_objects/test_namespaces.py +++ b/tests/api_resources/workers/durable_objects/test_namespaces.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from typing import Optional, Any, cast -import pytest +from cloudflare.types.workers.durable_objects import NamespaceListResponse +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.durable_objects import NamespaceListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/queues/test_consumers.py b/tests/api_resources/workers/queues/test_consumers.py index 0fbb713255b..7a5bbf917cb 100644 --- a/tests/api_resources/workers/queues/test_consumers.py +++ b/tests/api_resources/workers/queues/test_consumers.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.workers.queues import ( + ConsumerUpdateResponse, ConsumerListResponse, ConsumerDeleteResponse, - ConsumerUpdateResponse, ConsumerQueueCreateQueueConsumerResponse, ) +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.queues import consumer_update_params +from cloudflare.types.workers.queues import consumer_queue_create_queue_consumer_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_bindings.py b/tests/api_resources/workers/scripts/test_bindings.py index e4f8e287d9e..d3eea639ebd 100644 --- a/tests/api_resources/workers/scripts/test_bindings.py +++ b/tests/api_resources/workers/scripts/test_bindings.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.workers.scripts import BindingListResponse + 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.scripts import BindingListResponse 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 c6f89d232ed..2a5ce7511eb 100644 --- a/tests/api_resources/workers/scripts/test_schedules.py +++ b/tests/api_resources/workers/scripts/test_schedules.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.workers.scripts import ( + ScheduleWorkerCronTriggerGetCronTriggersResponse, + ScheduleWorkerCronTriggerUpdateCronTriggersResponse, +) + 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.scripts import ( - ScheduleWorkerCronTriggerGetCronTriggersResponse, - ScheduleWorkerCronTriggerUpdateCronTriggersResponse, -) +from cloudflare.types.workers.scripts import schedule_worker_cron_trigger_update_cron_triggers_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_tails.py b/tests/api_resources/workers/scripts/test_tails.py index 263805d264d..5c69026e550 100644 --- a/tests/api_resources/workers/scripts/test_tails.py +++ b/tests/api_resources/workers/scripts/test_tails.py @@ -2,19 +2,23 @@ from __future__ import annotations -import os -from typing import Any, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.workers.scripts import ( TailDeleteResponse, TailWorkerTailLogsListTailsResponse, TailWorkerTailLogsStartTailResponse, ) +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 + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_usage_models.py b/tests/api_resources/workers/scripts/test_usage_models.py index fef7ff61b5c..6aa9fc30a48 100644 --- a/tests/api_resources/workers/scripts/test_usage_models.py +++ b/tests/api_resources/workers/scripts/test_usage_models.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.workers.scripts import ( + UsageModelWorkerScriptFetchUsageModelResponse, + UsageModelWorkerScriptUpdateUsageModelResponse, +) + 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.scripts import ( - UsageModelWorkerScriptFetchUsageModelResponse, - UsageModelWorkerScriptUpdateUsageModelResponse, -) +from cloudflare.types.workers.scripts import usage_model_worker_script_update_usage_model_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/services/environments/test_content.py b/tests/api_resources/workers/services/environments/test_content.py index a8f01033740..fbeee7c8c91 100644 --- a/tests/api_resources/workers/services/environments/test_content.py +++ b/tests/api_resources/workers/services/environments/test_content.py @@ -2,22 +2,26 @@ from __future__ import annotations -import os -from typing import Any, cast +from cloudflare.types.workers.services.environments import ContentUpdateResponse -import httpx -import pytest -from respx import MockRouter +from typing import Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare._response import ( BinaryAPIResponse, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.workers.services.environments import ContentUpdateResponse + +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.services.environments import content_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/services/environments/test_settings.py b/tests/api_resources/workers/services/environments/test_settings.py index 02a1110c1e2..192c02adb61 100644 --- a/tests/api_resources/workers/services/environments/test_settings.py +++ b/tests/api_resources/workers/services/environments/test_settings.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.workers.services.environments import SettingGetResponse, SettingModifyResponse + 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.services.environments import ( - SettingGetResponse, - SettingModifyResponse, -) +from cloudflare.types.workers.services.environments import setting_modify_params 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 7f41c33f202..7a78776bb48 100644 --- a/tests/api_resources/workers/test_account_settings.py +++ b/tests/api_resources/workers/test_account_settings.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.workers import ( + AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, + AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, +) + 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 import ( - AccountSettingWorkerAccountSettingsFetchWorkerAccountSettingsResponse, - AccountSettingWorkerAccountSettingsCreateWorkerAccountSettingsResponse, -) +from cloudflare.types.workers import account_setting_worker_account_settings_create_worker_account_settings_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_deployments_by_script.py b/tests/api_resources/workers/test_deployments_by_script.py index 222fefa051b..a9a176b0f4a 100644 --- a/tests/api_resources/workers/test_deployments_by_script.py +++ b/tests/api_resources/workers/test_deployments_by_script.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.workers import DeploymentsByScriptListResponse, DeploymentsByScriptDetailResponse + 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 import DeploymentsByScriptListResponse, DeploymentsByScriptDetailResponse 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 9911a8cd594..506e5bece8a 100644 --- a/tests/api_resources/workers/test_domains.py +++ b/tests/api_resources/workers/test_domains.py @@ -2,19 +2,25 @@ from __future__ import annotations -import os from typing import Any, cast -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.workers import ( DomainGetResponse, - DomainWorkerDomainListDomainsResponse, DomainWorkerDomainAttachToDomainResponse, + DomainWorkerDomainListDomainsResponse, ) +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 import domain_worker_domain_attach_to_domain_params +from cloudflare.types.workers import domain_worker_domain_list_domains_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_filters.py b/tests/api_resources/workers/test_filters.py index 5a97f492d39..4c3d348e3c3 100644 --- a/tests/api_resources/workers/test_filters.py +++ b/tests/api_resources/workers/test_filters.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest - -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.workers import ( - FilterDeleteResponse, FilterUpdateResponse, - FilterWorkerFiltersDeprecatedListFiltersResponse, + FilterDeleteResponse, FilterWorkerFiltersDeprecatedCreateFilterResponse, + FilterWorkerFiltersDeprecatedListFiltersResponse, ) +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.workers import filter_update_params +from cloudflare.types.workers import filter_worker_filters_deprecated_create_filter_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_queues.py b/tests/api_resources/workers/test_queues.py index 352b563d5c9..bbe3297590d 100644 --- a/tests/api_resources/workers/test_queues.py +++ b/tests/api_resources/workers/test_queues.py @@ -2,21 +2,27 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast - -import pytest +from typing import Optional, Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare.types.workers import ( - QueueGetResponse, + QueueUpdateResponse, QueueListResponse, QueueDeleteResponse, - QueueUpdateResponse, + QueueGetResponse, QueueQueueCreateQueueResponse, ) +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 import queue_update_params +from cloudflare.types.workers import queue_queue_create_queue_params + base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_routes.py b/tests/api_resources/workers/test_routes.py index f8e70528526..1c8c5d3e3b7 100644 --- a/tests/api_resources/workers/test_routes.py +++ b/tests/api_resources/workers/test_routes.py @@ -2,20 +2,26 @@ from __future__ import annotations -import os +from cloudflare.types.workers import ( + RouteUpdateResponse, + RouteDeleteResponse, + RouteGetResponse, + RouteWorkerRoutesCreateRouteResponse, + RouteWorkerRoutesListRoutesResponse, +) + 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 import ( - RouteGetResponse, - RouteDeleteResponse, - RouteUpdateResponse, - RouteWorkerRoutesListRoutesResponse, - RouteWorkerRoutesCreateRouteResponse, -) +from cloudflare.types.workers import route_update_params +from cloudflare.types.workers import route_worker_routes_create_route_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_script.py b/tests/api_resources/workers/test_script.py index 569b75f078b..5df5b67cb1f 100644 --- a/tests/api_resources/workers/test_script.py +++ b/tests/api_resources/workers/test_script.py @@ -2,12 +2,16 @@ from __future__ import annotations -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 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 2fb16cb4677..d96b4210f55 100644 --- a/tests/api_resources/workers/test_scripts.py +++ b/tests/api_resources/workers/test_scripts.py @@ -2,26 +2,27 @@ from __future__ import annotations -import os -from typing import Any, cast +from cloudflare.types.workers import ScriptCreateResponse, ScriptUpdateResponse, ScriptListResponse -import httpx -import pytest -from respx import MockRouter +from typing import Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare._response import ( BinaryAPIResponse, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.workers import ( - ScriptListResponse, - ScriptCreateResponse, - ScriptUpdateResponse, -) + +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 import script_update_params +from cloudflare.types.workers import script_delete_params 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 f2944e5d98b..3c449f25555 100644 --- a/tests/api_resources/workers/test_subdomains.py +++ b/tests/api_resources/workers/test_subdomains.py @@ -2,17 +2,22 @@ from __future__ import annotations -import os +from cloudflare.types.workers import ( + SubdomainWorkerSubdomainCreateSubdomainResponse, + SubdomainWorkerSubdomainGetSubdomainResponse, +) + 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 import ( - SubdomainWorkerSubdomainGetSubdomainResponse, - SubdomainWorkerSubdomainCreateSubdomainResponse, -) +from cloudflare.types.workers import subdomain_worker_subdomain_create_subdomain_params 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 939c02115ba..fe8fb7e4c88 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,24 +2,26 @@ from __future__ import annotations -import os -from typing import Any, cast +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ContentUpdateResponse -import httpx -import pytest -from respx import MockRouter +from typing import Any, cast -from cloudflare import Cloudflare, AsyncCloudflare -from tests.utils import assert_matches_type from cloudflare._response import ( BinaryAPIResponse, - AsyncBinaryAPIResponse, StreamedBinaryAPIResponse, + AsyncBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( - ContentUpdateResponse, -) + +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_for_platforms.dispatch.namespaces.scripts import content_update_params 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 132b0f92567..ee50b04831f 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,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import SettingUpdateResponse, SettingGetResponse + 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_for_platforms.dispatch.namespaces.scripts import ( - SettingGetResponse, - SettingUpdateResponse, -) +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/history/test_configs.py b/tests/api_resources/zaraz/history/test_configs.py index 2909db697cf..2a8cfcd8460 100644 --- a/tests/api_resources/zaraz/history/test_configs.py +++ b/tests/api_resources/zaraz/history/test_configs.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz.history import ConfigGetResponse + 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.zaraz.history import ConfigGetResponse +from cloudflare.types.zaraz.history import config_get_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_config.py b/tests/api_resources/zaraz/test_config.py index 44b0f20b769..7b56d8a45de 100644 --- a/tests/api_resources/zaraz/test_config.py +++ b/tests/api_resources/zaraz/test_config.py @@ -2,14 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import ConfigUpdateResponse, ConfigGetResponse + 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.zaraz import ConfigGetResponse, ConfigUpdateResponse +from cloudflare.types.zaraz import config_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_default.py b/tests/api_resources/zaraz/test_default.py index 2c40eda2394..3e3c0553902 100644 --- a/tests/api_resources/zaraz/test_default.py +++ b/tests/api_resources/zaraz/test_default.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import DefaultGetResponse + 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.zaraz import DefaultGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_export.py b/tests/api_resources/zaraz/test_export.py index 3bcd060a90d..9051f2ffdf2 100644 --- a/tests/api_resources/zaraz/test_export.py +++ b/tests/api_resources/zaraz/test_export.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import ExportGetResponse + 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.zaraz import ExportGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_history.py b/tests/api_resources/zaraz/test_history.py index cab0d31939c..66ea278ff36 100644 --- a/tests/api_resources/zaraz/test_history.py +++ b/tests/api_resources/zaraz/test_history.py @@ -2,17 +2,20 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import HistoryUpdateResponse, HistoryListResponse + 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.zaraz import ( - HistoryListResponse, - HistoryUpdateResponse, -) +from cloudflare.types.zaraz import history_update_params +from cloudflare.types.zaraz import history_list_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_publish.py b/tests/api_resources/zaraz/test_publish.py index 642a31ac150..d3e3ac0b34e 100644 --- a/tests/api_resources/zaraz/test_publish.py +++ b/tests/api_resources/zaraz/test_publish.py @@ -2,13 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import PublishCreateResponse + 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.zaraz import publish_create_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zaraz/test_workflow.py b/tests/api_resources/zaraz/test_workflow.py index 759999fedeb..28f53c62f23 100644 --- a/tests/api_resources/zaraz/test_workflow.py +++ b/tests/api_resources/zaraz/test_workflow.py @@ -2,14 +2,18 @@ from __future__ import annotations -import os +from cloudflare.types.zaraz import WorkflowGetResponse + 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.zaraz import WorkflowGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zerotrust/test_connectivity_settings.py b/tests/api_resources/zerotrust/test_connectivity_settings.py index 2c76aba2784..bb9cdbde61e 100644 --- a/tests/api_resources/zerotrust/test_connectivity_settings.py +++ b/tests/api_resources/zerotrust/test_connectivity_settings.py @@ -2,17 +2,19 @@ from __future__ import annotations -import os +from cloudflare.types.zerotrust import ConnectivitySettingUpdateResponse, ConnectivitySettingGetResponse + 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.zerotrust import ( - ConnectivitySettingGetResponse, - ConnectivitySettingUpdateResponse, -) +from cloudflare.types.zerotrust import connectivity_setting_update_params base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_hold.py b/tests/api_resources/zones/test_hold.py index 7c1a5ba1143..f833b01da16 100644 --- a/tests/api_resources/zones/test_hold.py +++ b/tests/api_resources/zones/test_hold.py @@ -2,18 +2,20 @@ from __future__ import annotations -import os -from typing import Any, Optional, cast +from cloudflare.types.zones import HoldEnforceResponse, HoldGetResponse, HoldRemoveResponse -import pytest +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.zones import ( - HoldGetResponse, - HoldRemoveResponse, - HoldEnforceResponse, -) +from cloudflare.types.zones import hold_enforce_params +from cloudflare.types.zones import hold_remove_params 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 ceb70fba47c..ecd17c442c6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,12 +1,14 @@ from __future__ import annotations -import os import asyncio import logging -from typing import TYPE_CHECKING, Iterator, AsyncIterator +from typing import Iterator 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 f0d3503b822..539aeb6025f 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -2,32 +2,40 @@ from __future__ import annotations -import gc -import os -import json +import httpx + +from cloudflare._client import Cloudflare, AsyncCloudflare + +from cloudflare._exceptions import APITimeoutError, APIStatusError, APIResponseValidationError + +from pydantic import ValidationError + import asyncio +import gc import inspect +import json +import os import tracemalloc -from typing import Any, Union, cast +from typing import Dict, 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._client import Cloudflare, AsyncCloudflare -from cloudflare._models import BaseModel, FinalRequestOptions -from cloudflare._constants import RAW_RESPONSE_HEADER -from cloudflare._exceptions import APIStatusError, APITimeoutError, APIResponseValidationError +from cloudflare._models import FinalRequestOptions, BaseModel +from cloudflare._types import NOT_GIVEN, Headers, NotGiven, Query, Body, Timeout, Omit 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 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")