From 9bdbc20a2e48471115f31ca4ec18b5b1e1a9aa25 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:13:53 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#366) --- .stats.yml | 1 + .../types/accounts/member_delete_response.py | 2 ++ .../types/cache/cache_purge_response.py | 2 ++ .../firewall/access_rule_delete_response.py | 2 ++ .../types/firewall/deleted_filter.py | 2 ++ .../types/keyless_certificates/tunnel.py | 2 ++ .../pagerules/pagerule_delete_response.py | 2 ++ .../types/radar/bgp/route_stats_response.py | 2 ++ .../types/radar/dataset_download_response.py | 2 ++ .../radar/entities/location_get_response.py | 1 + .../types/radar/entity_get_response.py | 1 + src/cloudflare/types/radar/http/browser.py | 2 ++ .../types/radar/radar_email_summary.py | 1 + src/cloudflare/types/rules/hostname.py | 2 ++ src/cloudflare/types/rulesets/logging.py | 2 ++ src/cloudflare/types/secondary_dns/acl.py | 2 ++ src/cloudflare/types/secondary_dns/tsig.py | 2 ++ .../types/user/token_delete_response.py | 2 ++ .../waiting_rooms/setting_edit_response.py | 2 ++ .../waiting_rooms/setting_get_response.py | 2 ++ .../waiting_rooms/setting_update_response.py | 2 ++ .../types/web3/hostname_delete_response.py | 2 ++ .../content_lists/entry_delete_response.py | 2 ++ .../certificates/certificate_settings.py | 2 ++ .../zero_trust/access_device_posture_rule.py | 2 ++ .../any_valid_service_token_rule.py | 2 ++ .../zero_trust/authentication_method_rule.py | 2 ++ .../types/zero_trust/azure_group_rule.py | 1 + .../types/zero_trust/certificate_rule.py | 2 ++ .../types/zero_trust/country_rule.py | 2 ++ .../zero_trust/device_experience_monitor.py | 2 ++ .../devices/client_certificate_input.py | 2 ++ .../zero_trust/dex/tests/unique_devices.py | 1 + .../zero_trust/dlp/skip_configuration.py | 2 ++ .../types/zero_trust/domain_rule.py | 2 ++ .../types/zero_trust/email_list_rule.py | 2 ++ src/cloudflare/types/zero_trust/email_rule.py | 2 ++ .../types/zero_trust/everyone_rule.py | 2 ++ .../zero_trust/external_evaluation_rule.py | 2 ++ .../zero_trust/gateway/location_network.py | 2 ++ .../zero_trust/github_organization_rule.py | 1 + src/cloudflare/types/zero_trust/group_rule.py | 2 ++ .../types/zero_trust/gsuite_group_rule.py | 2 ++ .../types/zero_trust/ip_list_rule.py | 2 ++ src/cloudflare/types/zero_trust/ip_rule.py | 2 ++ .../types/zero_trust/okta_group_rule.py | 2 ++ .../types/zero_trust/saml_group_rule.py | 2 ++ .../types/zero_trust/service_token_rule.py | 2 ++ src/cloudflare/types/zones/zone.py | 8 ++++---- .../types/zones/zone_delete_response.py | 2 ++ tests/api_resources/accounts/test_members.py | 10 ++++++---- tests/api_resources/accounts/test_roles.py | 4 ++-- tests/api_resources/acm/test_total_tls.py | 3 +-- .../addressing/address_maps/test_accounts.py | 3 +-- .../addressing/address_maps/test_ips.py | 3 +-- .../addressing/address_maps/test_zones.py | 3 +-- .../addressing/prefixes/bgp/test_bindings.py | 3 +-- .../addressing/prefixes/bgp/test_prefixes.py | 2 +- .../addressing/prefixes/bgp/test_statuses.py | 3 +-- .../addressing/prefixes/test_delegations.py | 3 +-- .../addressing/test_address_maps.py | 10 ++++++---- .../addressing/test_loa_documents.py | 2 +- .../api_resources/addressing/test_prefixes.py | 3 +-- .../api_resources/addressing/test_services.py | 2 +- .../alerting/destinations/test_eligible.py | 2 +- .../alerting/destinations/test_pagerduty.py | 10 ++++++---- .../alerting/destinations/test_webhooks.py | 10 ++++++---- .../alerting/test_available_alerts.py | 2 +- tests/api_resources/alerting/test_history.py | 2 +- tests/api_resources/alerting/test_policies.py | 10 ++++++---- .../api_resources/argo/test_smart_routing.py | 3 +-- .../api_resources/argo/test_tiered_caching.py | 3 +-- tests/api_resources/billing/test_profiles.py | 2 +- .../api_resources/cache/test_cache_reserve.py | 10 ++++++---- .../cache/test_regional_tiered_cache.py | 6 ++++-- .../cache/test_smart_tiered_cache.py | 8 +++++--- tests/api_resources/cache/test_variants.py | 4 +--- .../test_hostname_associations.py | 4 ++-- .../api_resources/challenges/test_widgets.py | 6 ++++-- .../cloudforce_one/requests/test_message.py | 8 +++++--- .../cloudforce_one/requests/test_priority.py | 9 +++++---- .../cloudforce_one/test_requests.py | 14 +++++++------ .../custom_certificates/test_prioritize.py | 2 +- .../custom_hostnames/test_fallback_origin.py | 8 +++++--- tests/api_resources/d1/test_database.py | 12 ++++++----- .../api_resources/dcv_delegation/test_uuid.py | 2 +- .../diagnostics/test_traceroutes.py | 2 +- .../dns/analytics/reports/test_bytimes.py | 2 +- .../dns/analytics/test_reports.py | 2 +- .../analytics/reports/test_bytimes.py | 2 +- .../dns/firewall/analytics/test_reports.py | 2 +- tests/api_resources/dns/test_firewall.py | 6 ++++-- tests/api_resources/dns/test_records.py | 10 ++++++---- .../namespaces/test_objects.py | 2 +- .../durable_objects/test_namespaces.py | 2 +- .../email_routing/rules/test_catch_alls.py | 3 +-- .../email_routing/test_addresses.py | 2 +- tests/api_resources/email_routing/test_dns.py | 2 +- .../api_resources/email_routing/test_rules.py | 2 +- .../r2/configuration/test_queues.py | 6 ++++-- .../r2/test_configuration.py | 2 +- .../firewall/test_access_rules.py | 10 ++++++---- .../api_resources/firewall/test_lockdowns.py | 6 ++++-- tests/api_resources/firewall/test_rules.py | 8 +++++--- tests/api_resources/firewall/test_ua_rules.py | 12 ++++++----- .../firewall/waf/packages/test_groups.py | 8 +++++--- .../firewall/waf/packages/test_rules.py | 8 +++++--- .../firewall/waf/test_overrides.py | 6 ++++-- .../firewall/waf/test_packages.py | 3 +-- .../healthchecks/test_previews.py | 6 ++++-- .../hostnames/settings/test_tls.py | 8 +++++--- .../api_resources/hyperdrive/test_configs.py | 6 ++++-- tests/api_resources/images/test_v1.py | 8 +++++--- tests/api_resources/images/test_v2.py | 2 +- tests/api_resources/images/v1/test_keys.py | 4 +--- tests/api_resources/images/v1/test_stats.py | 2 +- .../api_resources/images/v1/test_variants.py | 12 ++++++----- .../images/v2/test_direct_uploads.py | 2 +- tests/api_resources/intel/asn/test_subnets.py | 2 +- .../attack_surface_report/test_issue_types.py | 2 +- .../attack_surface_report/test_issues.py | 12 ++++++----- .../api_resources/intel/domains/test_bulks.py | 2 +- .../intel/indicator_feeds/test_permissions.py | 8 +++++--- tests/api_resources/intel/test_asn.py | 2 +- tests/api_resources/intel/test_dns.py | 2 +- .../intel/test_domain_history.py | 2 +- tests/api_resources/intel/test_domains.py | 2 +- .../intel/test_indicator_feeds.py | 10 ++++++---- tests/api_resources/intel/test_ip_lists.py | 2 +- tests/api_resources/intel/test_ips.py | 2 +- .../intel/test_miscategorizations.py | 2 +- tests/api_resources/intel/test_sinkholes.py | 2 +- tests/api_resources/intel/test_whois.py | 2 +- .../api_resources/kv/namespaces/test_bulk.py | 3 +-- .../api_resources/kv/namespaces/test_keys.py | 2 +- .../kv/namespaces/test_values.py | 6 ++++-- tests/api_resources/kv/test_namespaces.py | 8 +++++--- .../load_balancers/monitors/test_previews.py | 2 +- .../monitors/test_references.py | 2 +- .../load_balancers/pools/test_health.py | 3 +-- .../load_balancers/pools/test_references.py | 2 +- .../load_balancers/test_monitors.py | 6 ++++-- .../load_balancers/test_pools.py | 6 ++++-- .../load_balancers/test_previews.py | 2 +- .../load_balancers/test_regions.py | 3 +-- .../load_balancers/test_searches.py | 2 +- .../logpush/datasets/test_jobs.py | 2 +- tests/api_resources/logpush/test_edge.py | 3 +-- tests/api_resources/logpush/test_jobs.py | 2 +- tests/api_resources/logpush/test_ownership.py | 6 ++++-- tests/api_resources/logpush/test_validate.py | 6 ++++-- .../logs/control/cmb/test_config.py | 2 +- .../logs/control/retention/test_flag.py | 3 +-- .../logs/received/test_fields.py | 2 +- tests/api_resources/logs/test_rayid.py | 2 +- tests/api_resources/logs/test_received.py | 2 +- .../configs/test_full.py | 2 +- .../rules/test_advertisements.py | 2 +- .../magic_network_monitoring/test_configs.py | 4 +++- .../magic_network_monitoring/test_rules.py | 4 +++- .../magic_transit/sites/test_acls.py | 2 +- .../magic_transit/sites/test_lans.py | 6 ++++-- .../magic_transit/sites/test_wans.py | 6 ++++-- .../magic_transit/test_cf_interconnects.py | 8 +++++--- .../magic_transit/test_gre_tunnels.py | 12 ++++++----- .../magic_transit/test_ipsec_tunnels.py | 14 +++++++------ .../magic_transit/test_routes.py | 14 +++++++------ .../api_resources/magic_transit/test_sites.py | 2 +- .../mtls_certificates/test_associations.py | 2 +- .../hostnames/test_certificates.py | 10 ++++++---- .../origin_tls_client_auth/test_hostnames.py | 6 ++++-- .../origin_tls_client_auth/test_settings.py | 3 +-- .../page_shield/test_connections.py | 2 +- .../page_shield/test_policies.py | 2 +- .../api_resources/page_shield/test_scripts.py | 3 +-- .../api_resources/pagerules/test_settings.py | 2 +- .../projects/deployments/history/test_logs.py | 2 +- .../pages/projects/test_deployments.py | 2 +- .../pages/projects/test_domains.py | 8 +++++--- tests/api_resources/pages/test_projects.py | 11 +++++----- tests/api_resources/pcaps/test_ownership.py | 3 +-- tests/api_resources/queues/test_consumers.py | 10 ++++++---- tests/api_resources/queues/test_messages.py | 3 +-- tests/api_resources/r2/test_buckets.py | 2 +- tests/api_resources/r2/test_sippy.py | 3 +-- .../radar/annotations/test_outages.py | 6 ++++-- .../api_resources/radar/as112/test_summary.py | 14 +++++++------ .../radar/as112/test_timeseries_groups.py | 14 +++++++------ tests/api_resources/radar/as112/test_top.py | 10 ++++++---- .../radar/attacks/layer3/test_summary.py | 14 +++++++------ .../attacks/layer3/test_timeseries_groups.py | 18 +++++++++-------- .../radar/attacks/layer3/test_top.py | 8 +++++--- .../attacks/layer3/top/test_locations.py | 6 ++++-- .../radar/attacks/layer7/test_summary.py | 14 +++++++------ .../attacks/layer7/test_timeseries_groups.py | 16 +++++---------- .../radar/attacks/layer7/test_top.py | 8 +++++--- .../radar/attacks/layer7/top/test_ases.py | 2 +- .../attacks/layer7/top/test_locations.py | 6 ++++-- .../radar/attacks/test_layer3.py | 2 +- .../radar/attacks/test_layer7.py | 2 +- .../radar/bgp/hijacks/test_events.py | 2 +- .../radar/bgp/leaks/test_events.py | 2 +- tests/api_resources/radar/bgp/test_routes.py | 10 ++++++---- tests/api_resources/radar/bgp/test_top.py | 2 +- .../api_resources/radar/bgp/top/test_ases.py | 3 +-- tests/api_resources/radar/dns/test_top.py | 3 +-- .../radar/email/routing/test_summary.py | 14 +++++++------ .../email/routing/test_timeseries_groups.py | 14 +++++++------ .../radar/email/security/test_summary.py | 20 ++++++++++--------- .../email/security/test_timeseries_groups.py | 18 ++++++++--------- .../radar/email/security/top/test_tlds.py | 2 +- .../email/security/top/tlds/test_malicious.py | 2 +- .../email/security/top/tlds/test_spam.py | 2 +- .../email/security/top/tlds/test_spoof.py | 2 +- .../api_resources/radar/entities/test_asns.py | 10 ++++++---- .../radar/entities/test_locations.py | 6 ++++-- .../radar/http/ases/test_bot_class.py | 2 +- .../radar/http/ases/test_device_type.py | 2 +- .../radar/http/ases/test_http_method.py | 2 +- .../radar/http/ases/test_http_protocol.py | 2 +- .../radar/http/ases/test_ip_version.py | 2 +- .../api_resources/radar/http/ases/test_os.py | 2 +- .../radar/http/ases/test_tls_version.py | 2 +- .../radar/http/locations/test_bot_class.py | 2 +- .../radar/http/locations/test_device_type.py | 2 +- .../radar/http/locations/test_http_method.py | 2 +- .../http/locations/test_http_protocol.py | 2 +- .../radar/http/locations/test_ip_version.py | 2 +- .../radar/http/locations/test_os.py | 2 +- .../radar/http/locations/test_tls_version.py | 2 +- tests/api_resources/radar/http/test_ases.py | 2 +- .../radar/http/test_locations.py | 2 +- .../api_resources/radar/http/test_summary.py | 16 ++++++++------- .../radar/http/test_timeseries_groups.py | 20 ++++++++++--------- tests/api_resources/radar/http/test_top.py | 6 ++++-- .../api_resources/radar/netflows/test_top.py | 3 +-- .../radar/quality/speed/test_top.py | 6 ++++-- tests/api_resources/radar/quality/test_iqi.py | 6 ++++-- .../api_resources/radar/quality/test_speed.py | 6 ++++-- .../radar/ranking/test_domain.py | 2 +- tests/api_resources/radar/test_as112.py | 2 +- tests/api_resources/radar/test_bgp.py | 2 +- .../radar/test_connection_tampering.py | 4 ++-- tests/api_resources/radar/test_datasets.py | 6 ++++-- tests/api_resources/radar/test_entities.py | 2 +- tests/api_resources/radar/test_netflows.py | 2 +- tests/api_resources/radar/test_ranking.py | 6 ++++-- tests/api_resources/radar/test_search.py | 2 +- .../radar/test_traffic_anomalies.py | 2 +- .../radar/traffic_anomalies/test_locations.py | 2 +- .../radar/verified_bots/test_top.py | 6 ++++-- tests/api_resources/registrar/test_domains.py | 4 +--- .../request_tracers/test_traces.py | 2 +- .../rules/lists/test_bulk_operations.py | 2 +- tests/api_resources/rules/lists/test_items.py | 10 ++++++---- tests/api_resources/rules/test_lists.py | 3 +-- .../rulesets/phases/test_versions.py | 4 ++-- tests/api_resources/rulesets/test_phases.py | 3 +-- tests/api_resources/rulesets/test_rules.py | 8 +++++--- tests/api_resources/rulesets/test_versions.py | 3 +-- .../rulesets/versions/test_by_tag.py | 2 +- tests/api_resources/rum/test_rules.py | 4 +--- tests/api_resources/rum/test_site_info.py | 6 ++++-- .../api_resources/secondary_dns/test_acls.py | 3 +-- .../secondary_dns/test_incoming.py | 10 ++++++---- .../secondary_dns/test_outgoing.py | 10 ++++++---- .../api_resources/secondary_dns/test_peers.py | 3 +-- .../api_resources/secondary_dns/test_tsigs.py | 3 +-- tests/api_resources/snippets/test_rules.py | 3 +-- .../analytics/aggregates/test_currents.py | 2 +- .../spectrum/analytics/events/test_bytimes.py | 2 +- .../analytics/events/test_summaries.py | 2 +- tests/api_resources/spectrum/test_apps.py | 10 ++++++---- .../speed/test_availabilities.py | 2 +- tests/api_resources/speed/test_pages.py | 2 +- tests/api_resources/speed/test_schedule.py | 2 +- tests/api_resources/speed/test_tests.py | 8 +++++--- .../ssl/certificate_packs/test_order.py | 2 +- .../ssl/certificate_packs/test_quota.py | 2 +- tests/api_resources/ssl/test_analyze.py | 2 +- .../ssl/test_certificate_packs.py | 8 +++++--- .../api_resources/ssl/test_recommendations.py | 2 +- tests/api_resources/ssl/test_verification.py | 6 ++++-- .../ssl/universal/test_settings.py | 2 +- tests/api_resources/storage/test_analytics.py | 3 +-- .../stream/captions/test_language.py | 2 +- .../stream/live_inputs/test_outputs.py | 2 +- .../api_resources/stream/test_audio_tracks.py | 8 +++++--- tests/api_resources/stream/test_captions.py | 2 +- tests/api_resources/stream/test_clip.py | 2 +- tests/api_resources/stream/test_copy.py | 2 +- .../stream/test_direct_upload.py | 2 +- tests/api_resources/stream/test_downloads.py | 8 +++++--- tests/api_resources/stream/test_keys.py | 4 +--- .../api_resources/stream/test_live_inputs.py | 6 ++++-- tests/api_resources/stream/test_token.py | 2 +- tests/api_resources/stream/test_videos.py | 2 +- tests/api_resources/stream/test_watermarks.py | 3 +-- tests/api_resources/stream/test_webhooks.py | 8 +++++--- tests/api_resources/test_accounts.py | 6 ++++-- tests/api_resources/test_audit_logs.py | 2 +- tests/api_resources/test_bot_management.py | 6 ++++-- tests/api_resources/test_brand_protection.py | 6 ++++-- tests/api_resources/test_cache.py | 2 +- tests/api_resources/test_calls.py | 3 +-- .../api_resources/test_client_certificates.py | 4 +++- .../api_resources/test_custom_certificates.py | 12 ++++++----- tests/api_resources/test_custom_hostnames.py | 12 ++++++----- .../api_resources/test_custom_nameservers.py | 10 +++++----- tests/api_resources/test_dnssec.py | 3 +-- tests/api_resources/test_email_routing.py | 2 +- tests/api_resources/test_filters.py | 6 ++++-- tests/api_resources/test_healthchecks.py | 6 ++++-- tests/api_resources/test_ips.py | 2 +- .../test_keyless_certificates.py | 6 ++++-- tests/api_resources/test_load_balancers.py | 6 ++++-- tests/api_resources/test_managed_headers.py | 6 ++++-- tests/api_resources/test_memberships.py | 10 ++++++---- tests/api_resources/test_mtls_certificates.py | 6 ++++-- .../test_origin_ca_certificates.py | 8 +++----- .../test_origin_post_quantum_encryption.py | 4 +--- .../test_origin_tls_client_auth.py | 8 +++----- tests/api_resources/test_page_shield.py | 3 +-- tests/api_resources/test_pagerules.py | 14 +++++++------ tests/api_resources/test_pcaps.py | 4 +--- tests/api_resources/test_plans.py | 2 +- tests/api_resources/test_queues.py | 10 ++++++---- tests/api_resources/test_rate_limits.py | 12 ++++++----- tests/api_resources/test_rate_plans.py | 2 +- tests/api_resources/test_rulesets.py | 10 ++++++---- tests/api_resources/test_snippets.py | 3 +-- tests/api_resources/test_speed.py | 8 +++++--- tests/api_resources/test_stream.py | 2 +- tests/api_resources/test_subscriptions.py | 12 ++++++----- tests/api_resources/test_url_normalization.py | 6 ++++-- tests/api_resources/test_url_scanner.py | 2 +- tests/api_resources/test_user.py | 3 +-- tests/api_resources/test_waiting_rooms.py | 6 ++++-- tests/api_resources/test_warp_connector.py | 14 +++++++------ tests/api_resources/test_zones.py | 3 +-- tests/api_resources/url_scanner/test_scans.py | 8 +++++--- .../user/billing/test_history.py | 2 +- .../user/billing/test_profile.py | 2 +- tests/api_resources/user/test_audit_logs.py | 2 +- tests/api_resources/user/test_invites.py | 4 +--- .../api_resources/user/test_organizations.py | 8 +++++--- .../api_resources/user/test_subscriptions.py | 10 ++++++---- tests/api_resources/user/test_tokens.py | 12 ++++++----- tests/api_resources/vectorize/test_indexes.py | 14 +++++++------ .../waiting_rooms/events/test_details.py | 2 +- .../waiting_rooms/test_events.py | 6 ++++-- .../api_resources/waiting_rooms/test_page.py | 2 +- .../api_resources/waiting_rooms/test_rules.py | 12 ++++++----- .../waiting_rooms/test_settings.py | 8 +++++--- .../waiting_rooms/test_statuses.py | 2 +- .../content_lists/test_entries.py | 12 ++++++----- .../test_content_lists.py | 2 +- tests/api_resources/web3/test_hostnames.py | 3 +-- .../workers/scripts/test_content.py | 2 +- .../workers/scripts/test_deployments.py | 6 ++++-- .../workers/scripts/test_schedules.py | 3 +-- .../workers/scripts/test_settings.py | 2 +- .../workers/scripts/test_tail.py | 4 +--- .../workers/scripts/test_versions.py | 8 +++++--- .../workers/test_account_settings.py | 6 ++++-- tests/api_resources/workers/test_ai.py | 2 +- tests/api_resources/workers/test_domains.py | 2 +- tests/api_resources/workers/test_scripts.py | 2 +- .../api_resources/workers/test_subdomains.py | 3 +-- .../namespaces/scripts/test_bindings.py | 2 +- .../namespaces/scripts/test_content.py | 2 +- .../namespaces/scripts/test_secrets.py | 4 ++-- .../namespaces/scripts/test_settings.py | 6 ++++-- .../dispatch/namespaces/scripts/test_tags.py | 6 ++++-- .../dispatch/namespaces/test_scripts.py | 6 ++++-- .../dispatch/test_namespaces.py | 8 +++++--- .../access/applications/test_cas.py | 5 +---- .../access/applications/test_policies.py | 6 ++++-- .../applications/test_user_policy_checks.py | 2 +- .../access/certificates/test_settings.py | 6 ++++-- .../access/logs/test_access_requests.py | 2 +- .../zero_trust/access/test_applications.py | 6 ++++-- .../zero_trust/access/test_bookmarks.py | 6 ++++-- .../zero_trust/access/test_certificates.py | 6 ++++-- .../zero_trust/access/test_custom_pages.py | 8 +++++--- .../zero_trust/access/test_groups.py | 6 ++++-- .../zero_trust/access/test_keys.py | 4 +--- .../zero_trust/access/test_service_tokens.py | 8 +++++--- .../zero_trust/access/test_tags.py | 3 +-- .../zero_trust/access/test_users.py | 2 +- .../access/users/test_active_sessions.py | 3 +-- .../access/users/test_failed_logins.py | 2 +- .../access/users/test_last_seen_identity.py | 2 +- .../devices/policies/test_default_policy.py | 2 +- .../devices/policies/test_excludes.py | 8 +++++--- .../devices/policies/test_fallback_domains.py | 8 +++++--- .../devices/policies/test_includes.py | 8 +++++--- .../devices/posture/test_integrations.py | 6 ++++-- .../zero_trust/devices/test_dex_tests.py | 6 ++++-- .../zero_trust/devices/test_networks.py | 6 ++++-- .../zero_trust/devices/test_override_codes.py | 2 +- .../zero_trust/devices/test_policies.py | 6 ++++-- .../zero_trust/devices/test_posture.py | 6 ++++-- .../zero_trust/devices/test_revoke.py | 2 +- .../zero_trust/devices/test_settings.py | 2 +- .../zero_trust/devices/test_unrevoke.py | 2 +- .../dex/fleet_status/test_devices.py | 2 +- .../dex/http_tests/test_percentiles.py | 2 +- .../zero_trust/dex/test_fleet_status.py | 4 +++- .../zero_trust/dex/test_http_tests.py | 2 +- .../zero_trust/dex/test_tests.py | 2 +- .../zero_trust/dex/test_traceroute_tests.py | 8 +++++--- .../dex/tests/test_unique_devices.py | 2 +- .../test_network_path.py | 2 +- .../zero_trust/dlp/datasets/test_upload.py | 4 ++-- .../zero_trust/dlp/profiles/test_custom.py | 8 +++++--- .../dlp/profiles/test_predefined.py | 2 +- .../zero_trust/dlp/test_datasets.py | 3 +-- .../zero_trust/dlp/test_patterns.py | 2 +- .../zero_trust/dlp/test_payload_logs.py | 3 +-- .../zero_trust/dlp/test_profiles.py | 3 +-- .../zero_trust/gateway/lists/test_items.py | 2 +- .../zero_trust/gateway/test_app_types.py | 2 +- .../gateway/test_audit_ssh_settings.py | 2 +- .../zero_trust/gateway/test_categories.py | 2 +- .../zero_trust/gateway/test_configurations.py | 8 +++++--- .../zero_trust/gateway/test_lists.py | 8 +++++--- .../zero_trust/gateway/test_locations.py | 6 ++++-- .../zero_trust/gateway/test_logging.py | 2 +- .../gateway/test_proxy_endpoints.py | 6 ++++-- .../zero_trust/gateway/test_rules.py | 6 ++++-- .../zero_trust/networks/routes/test_ips.py | 2 +- .../networks/routes/test_networks.py | 2 +- .../zero_trust/networks/test_routes.py | 6 ++++-- .../networks/test_virtual_networks.py | 10 ++++++---- .../risk_scoring/test_behaviours.py | 6 ++++-- .../zero_trust/risk_scoring/test_summary.py | 2 +- .../zero_trust/test_connectivity_settings.py | 6 ++++-- .../api_resources/zero_trust/test_devices.py | 3 +-- .../api_resources/zero_trust/test_gateway.py | 3 +-- .../zero_trust/test_identity_providers.py | 8 +++++--- .../zero_trust/test_organizations.py | 6 ++++-- .../zero_trust/test_risk_scoring.py | 3 +-- tests/api_resources/zero_trust/test_seats.py | 2 +- .../api_resources/zero_trust/test_tunnels.py | 12 ++++++----- .../zero_trust/tunnels/test_configurations.py | 6 ++++-- .../zero_trust/tunnels/test_connections.py | 3 +-- .../zero_trust/tunnels/test_connectors.py | 2 +- .../zero_trust/tunnels/test_management.py | 2 +- .../zero_trust/tunnels/test_token.py | 2 +- .../zones/settings/test_advanced_ddos.py | 2 +- .../zones/settings/test_always_online.py | 2 +- .../zones/settings/test_always_use_https.py | 2 +- .../settings/test_automatic_https_rewrites.py | 2 +- .../test_automatic_platform_optimization.py | 1 - .../zones/settings/test_brotli.py | 2 +- .../zones/settings/test_browser_cache_ttl.py | 2 +- .../zones/settings/test_browser_check.py | 2 +- .../zones/settings/test_cache_level.py | 2 +- .../zones/settings/test_challenge_ttl.py | 2 +- .../zones/settings/test_ciphers.py | 2 +- .../zones/settings/test_development_mode.py | 2 +- .../zones/settings/test_early_hints.py | 2 +- .../zones/settings/test_email_obfuscation.py | 2 +- .../zones/settings/test_font_settings.py | 2 +- .../zones/settings/test_h2_prioritization.py | 1 - .../zones/settings/test_hotlink_protection.py | 2 +- .../zones/settings/test_http2.py | 2 +- .../zones/settings/test_http3.py | 2 +- .../zones/settings/test_image_resizing.py | 1 - .../zones/settings/test_ip_geolocation.py | 2 +- .../api_resources/zones/settings/test_ipv6.py | 2 +- .../zones/settings/test_min_tls_version.py | 2 +- .../zones/settings/test_minify.py | 2 +- .../zones/settings/test_mirage.py | 2 +- .../zones/settings/test_mobile_redirect.py | 2 +- .../api_resources/zones/settings/test_nel.py | 1 - .../settings/test_opportunistic_encryption.py | 2 +- .../settings/test_opportunistic_onion.py | 2 +- .../zones/settings/test_orange_to_orange.py | 1 - .../test_origin_error_page_pass_thru.py | 2 +- .../settings/test_origin_max_http_version.py | 6 ++++-- .../zones/settings/test_polish.py | 1 - .../zones/settings/test_prefetch_preload.py | 2 +- .../zones/settings/test_proxy_read_timeout.py | 1 - .../zones/settings/test_pseudo_ipv4.py | 2 +- .../zones/settings/test_response_buffering.py | 2 +- .../zones/settings/test_rocket_loader.py | 1 - .../zones/settings/test_security_headers.py | 2 +- .../zones/settings/test_security_level.py | 2 +- .../settings/test_server_side_excludes.py | 2 +- .../test_sort_query_string_for_cache.py | 2 +- .../api_resources/zones/settings/test_ssl.py | 2 +- .../zones/settings/test_ssl_recommender.py | 1 - .../zones/settings/test_tls_1_3.py | 2 +- .../zones/settings/test_tls_client_auth.py | 2 +- .../settings/test_true_client_ip_header.py | 2 +- .../api_resources/zones/settings/test_waf.py | 2 +- .../api_resources/zones/settings/test_webp.py | 2 +- .../zones/settings/test_websocket.py | 2 +- .../zones/settings/test_zero_rtt.py | 2 +- .../zones/test_activation_check.py | 2 +- .../zones/test_custom_nameservers.py | 6 ++++-- .../api_resources/zones/test_dns_settings.py | 2 +- tests/api_resources/zones/test_holds.py | 2 +- .../api_resources/zones/test_subscriptions.py | 5 ++--- tests/test_client.py | 1 - 507 files changed, 1247 insertions(+), 932 deletions(-) diff --git a/.stats.yml b/.stats.yml index 860345bb66e1..67e4f500c57b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1,2 @@ configured_endpoints: 1266 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e202d9b1bb049167a2efb5c3981c53af7bab82b6411bbbd684557eef5b435880.yml diff --git a/src/cloudflare/types/accounts/member_delete_response.py b/src/cloudflare/types/accounts/member_delete_response.py index 971bb07457fa..78ae311b6e57 100644 --- a/src/cloudflare/types/accounts/member_delete_response.py +++ b/src/cloudflare/types/accounts/member_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["MemberDeleteResponse"] diff --git a/src/cloudflare/types/cache/cache_purge_response.py b/src/cloudflare/types/cache/cache_purge_response.py index 08e7ee41a89a..ea34ba556102 100644 --- a/src/cloudflare/types/cache/cache_purge_response.py +++ b/src/cloudflare/types/cache/cache_purge_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["CachePurgeResponse"] diff --git a/src/cloudflare/types/firewall/access_rule_delete_response.py b/src/cloudflare/types/firewall/access_rule_delete_response.py index c00802e920a9..2dc451a144ca 100644 --- a/src/cloudflare/types/firewall/access_rule_delete_response.py +++ b/src/cloudflare/types/firewall/access_rule_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["AccessRuleDeleteResponse"] diff --git a/src/cloudflare/types/firewall/deleted_filter.py b/src/cloudflare/types/firewall/deleted_filter.py index 2172524a4bee..8eb4d27b96ed 100644 --- a/src/cloudflare/types/firewall/deleted_filter.py +++ b/src/cloudflare/types/firewall/deleted_filter.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["DeletedFilter"] diff --git a/src/cloudflare/types/keyless_certificates/tunnel.py b/src/cloudflare/types/keyless_certificates/tunnel.py index 825ea03f94eb..9a8b2936da6f 100644 --- a/src/cloudflare/types/keyless_certificates/tunnel.py +++ b/src/cloudflare/types/keyless_certificates/tunnel.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["Tunnel"] diff --git a/src/cloudflare/types/pagerules/pagerule_delete_response.py b/src/cloudflare/types/pagerules/pagerule_delete_response.py index c7ddf323320a..eb624fc4873c 100644 --- a/src/cloudflare/types/pagerules/pagerule_delete_response.py +++ b/src/cloudflare/types/pagerules/pagerule_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["PageruleDeleteResponse"] diff --git a/src/cloudflare/types/radar/bgp/route_stats_response.py b/src/cloudflare/types/radar/bgp/route_stats_response.py index 7ccf3b286a20..65e83a79c49d 100644 --- a/src/cloudflare/types/radar/bgp/route_stats_response.py +++ b/src/cloudflare/types/radar/bgp/route_stats_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel __all__ = ["RouteStatsResponse", "Meta", "Stats"] diff --git a/src/cloudflare/types/radar/dataset_download_response.py b/src/cloudflare/types/radar/dataset_download_response.py index d745ddc13aeb..3b8bb8376dbf 100644 --- a/src/cloudflare/types/radar/dataset_download_response.py +++ b/src/cloudflare/types/radar/dataset_download_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["DatasetDownloadResponse", "Dataset"] diff --git a/src/cloudflare/types/radar/entities/location_get_response.py b/src/cloudflare/types/radar/entities/location_get_response.py index 4a2461c1aea9..99c28d7fbb4a 100644 --- a/src/cloudflare/types/radar/entities/location_get_response.py +++ b/src/cloudflare/types/radar/entities/location_get_response.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ...._models import BaseModel diff --git a/src/cloudflare/types/radar/entity_get_response.py b/src/cloudflare/types/radar/entity_get_response.py index 77d1bfa50845..ad27e10b1a71 100644 --- a/src/cloudflare/types/radar/entity_get_response.py +++ b/src/cloudflare/types/radar/entity_get_response.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ..._models import BaseModel diff --git a/src/cloudflare/types/radar/http/browser.py b/src/cloudflare/types/radar/http/browser.py index 48c2187f1d4e..e76a9749ce13 100644 --- a/src/cloudflare/types/radar/http/browser.py +++ b/src/cloudflare/types/radar/http/browser.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel __all__ = ["Browser"] diff --git a/src/cloudflare/types/radar/radar_email_summary.py b/src/cloudflare/types/radar/radar_email_summary.py index 19a29a852e28..d98b19527cb9 100644 --- a/src/cloudflare/types/radar/radar_email_summary.py +++ b/src/cloudflare/types/radar/radar_email_summary.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ..._models import BaseModel diff --git a/src/cloudflare/types/rules/hostname.py b/src/cloudflare/types/rules/hostname.py index 32d7ce459a92..04acdbc5d7b4 100644 --- a/src/cloudflare/types/rules/hostname.py +++ b/src/cloudflare/types/rules/hostname.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["Hostname"] diff --git a/src/cloudflare/types/rulesets/logging.py b/src/cloudflare/types/rulesets/logging.py index d7a37ba86e6e..6e4bb74304da 100644 --- a/src/cloudflare/types/rulesets/logging.py +++ b/src/cloudflare/types/rulesets/logging.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["Logging"] diff --git a/src/cloudflare/types/secondary_dns/acl.py b/src/cloudflare/types/secondary_dns/acl.py index 46ca034a4e72..41bea9382938 100644 --- a/src/cloudflare/types/secondary_dns/acl.py +++ b/src/cloudflare/types/secondary_dns/acl.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["ACL"] diff --git a/src/cloudflare/types/secondary_dns/tsig.py b/src/cloudflare/types/secondary_dns/tsig.py index 2c91099f98c7..0c270b791d6f 100644 --- a/src/cloudflare/types/secondary_dns/tsig.py +++ b/src/cloudflare/types/secondary_dns/tsig.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["TSIG"] diff --git a/src/cloudflare/types/user/token_delete_response.py b/src/cloudflare/types/user/token_delete_response.py index 2229135e433d..bcf86ebe198b 100644 --- a/src/cloudflare/types/user/token_delete_response.py +++ b/src/cloudflare/types/user/token_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["TokenDeleteResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_edit_response.py b/src/cloudflare/types/waiting_rooms/setting_edit_response.py index 26f3670ed99b..bae5f32f4982 100644 --- a/src/cloudflare/types/waiting_rooms/setting_edit_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_edit_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["SettingEditResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_get_response.py b/src/cloudflare/types/waiting_rooms/setting_get_response.py index 098bb2df1ed7..1f349caa00fa 100644 --- a/src/cloudflare/types/waiting_rooms/setting_get_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_get_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["SettingGetResponse"] diff --git a/src/cloudflare/types/waiting_rooms/setting_update_response.py b/src/cloudflare/types/waiting_rooms/setting_update_response.py index e613bcf0f934..756f6b7045de 100644 --- a/src/cloudflare/types/waiting_rooms/setting_update_response.py +++ b/src/cloudflare/types/waiting_rooms/setting_update_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["SettingUpdateResponse"] diff --git a/src/cloudflare/types/web3/hostname_delete_response.py b/src/cloudflare/types/web3/hostname_delete_response.py index 7a3f3c4094e2..44db180c19cc 100644 --- a/src/cloudflare/types/web3/hostname_delete_response.py +++ b/src/cloudflare/types/web3/hostname_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["HostnameDeleteResponse"] diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py index 06acd440f411..12b157773676 100644 --- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py +++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ......_models import BaseModel __all__ = ["EntryDeleteResponse"] diff --git a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py index f2307e896f08..d120c65c65e9 100644 --- a/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py +++ b/src/cloudflare/types/zero_trust/access/certificates/certificate_settings.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ....._models import BaseModel __all__ = ["CertificateSettings"] diff --git a/src/cloudflare/types/zero_trust/access_device_posture_rule.py b/src/cloudflare/types/zero_trust/access_device_posture_rule.py index 7465d128873c..d4eb806317ed 100644 --- a/src/cloudflare/types/zero_trust/access_device_posture_rule.py +++ b/src/cloudflare/types/zero_trust/access_device_posture_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["AccessDevicePostureRule", "DevicePosture"] diff --git a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py b/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py index 2613ccdd5fdd..9ab0ef01a37b 100644 --- a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py +++ b/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["AnyValidServiceTokenRule"] diff --git a/src/cloudflare/types/zero_trust/authentication_method_rule.py b/src/cloudflare/types/zero_trust/authentication_method_rule.py index 6c95a0f424b5..ab9bdced2798 100644 --- a/src/cloudflare/types/zero_trust/authentication_method_rule.py +++ b/src/cloudflare/types/zero_trust/authentication_method_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["AuthenticationMethodRule", "AuthMethod"] diff --git a/src/cloudflare/types/zero_trust/azure_group_rule.py b/src/cloudflare/types/zero_trust/azure_group_rule.py index aecd29308850..6df84aaf221f 100644 --- a/src/cloudflare/types/zero_trust/azure_group_rule.py +++ b/src/cloudflare/types/zero_trust/azure_group_rule.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ..._models import BaseModel diff --git a/src/cloudflare/types/zero_trust/certificate_rule.py b/src/cloudflare/types/zero_trust/certificate_rule.py index 5327168c525e..fb76060608c6 100644 --- a/src/cloudflare/types/zero_trust/certificate_rule.py +++ b/src/cloudflare/types/zero_trust/certificate_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["CertificateRule"] diff --git a/src/cloudflare/types/zero_trust/country_rule.py b/src/cloudflare/types/zero_trust/country_rule.py index a2bb94373774..0d84bda7097d 100644 --- a/src/cloudflare/types/zero_trust/country_rule.py +++ b/src/cloudflare/types/zero_trust/country_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["CountryRule", "Geo"] diff --git a/src/cloudflare/types/zero_trust/device_experience_monitor.py b/src/cloudflare/types/zero_trust/device_experience_monitor.py index ca07797fd0af..cb84b45bfba9 100644 --- a/src/cloudflare/types/zero_trust/device_experience_monitor.py +++ b/src/cloudflare/types/zero_trust/device_experience_monitor.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["DeviceExperienceMonitor"] diff --git a/src/cloudflare/types/zero_trust/devices/client_certificate_input.py b/src/cloudflare/types/zero_trust/devices/client_certificate_input.py index f1884b8bcdca..e8dc8dc8ba3e 100644 --- a/src/cloudflare/types/zero_trust/devices/client_certificate_input.py +++ b/src/cloudflare/types/zero_trust/devices/client_certificate_input.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel __all__ = ["ClientCertificateInput"] diff --git a/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py b/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py index 7c43e52888b8..2b5472dbf8ef 100644 --- a/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py +++ b/src/cloudflare/types/zero_trust/dex/tests/unique_devices.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ....._models import BaseModel diff --git a/src/cloudflare/types/zero_trust/dlp/skip_configuration.py b/src/cloudflare/types/zero_trust/dlp/skip_configuration.py index c7a9139bf069..5a525608141d 100644 --- a/src/cloudflare/types/zero_trust/dlp/skip_configuration.py +++ b/src/cloudflare/types/zero_trust/dlp/skip_configuration.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel __all__ = ["SkipConfiguration"] diff --git a/src/cloudflare/types/zero_trust/domain_rule.py b/src/cloudflare/types/zero_trust/domain_rule.py index 4c75958da62e..7c469d7a2a43 100644 --- a/src/cloudflare/types/zero_trust/domain_rule.py +++ b/src/cloudflare/types/zero_trust/domain_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["DomainRule", "EmailDomain"] diff --git a/src/cloudflare/types/zero_trust/email_list_rule.py b/src/cloudflare/types/zero_trust/email_list_rule.py index 6423b3d2f6bc..4323cde054f6 100644 --- a/src/cloudflare/types/zero_trust/email_list_rule.py +++ b/src/cloudflare/types/zero_trust/email_list_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["EmailListRule", "EmailList"] diff --git a/src/cloudflare/types/zero_trust/email_rule.py b/src/cloudflare/types/zero_trust/email_rule.py index 1f344e6499a1..4e56f9563846 100644 --- a/src/cloudflare/types/zero_trust/email_rule.py +++ b/src/cloudflare/types/zero_trust/email_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["EmailRule", "Email"] diff --git a/src/cloudflare/types/zero_trust/everyone_rule.py b/src/cloudflare/types/zero_trust/everyone_rule.py index c6eb677a828b..3077a7b52b3c 100644 --- a/src/cloudflare/types/zero_trust/everyone_rule.py +++ b/src/cloudflare/types/zero_trust/everyone_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["EveryoneRule"] diff --git a/src/cloudflare/types/zero_trust/external_evaluation_rule.py b/src/cloudflare/types/zero_trust/external_evaluation_rule.py index ab6449b3a48d..c72a4dea246a 100644 --- a/src/cloudflare/types/zero_trust/external_evaluation_rule.py +++ b/src/cloudflare/types/zero_trust/external_evaluation_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["ExternalEvaluationRule", "ExternalEvaluation"] diff --git a/src/cloudflare/types/zero_trust/gateway/location_network.py b/src/cloudflare/types/zero_trust/gateway/location_network.py index 7b520e22ba16..448729f3f290 100644 --- a/src/cloudflare/types/zero_trust/gateway/location_network.py +++ b/src/cloudflare/types/zero_trust/gateway/location_network.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ...._models import BaseModel __all__ = ["LocationNetwork"] diff --git a/src/cloudflare/types/zero_trust/github_organization_rule.py b/src/cloudflare/types/zero_trust/github_organization_rule.py index 828ab5751e93..b9b297ae08b4 100644 --- a/src/cloudflare/types/zero_trust/github_organization_rule.py +++ b/src/cloudflare/types/zero_trust/github_organization_rule.py @@ -1,5 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from ..._models import BaseModel diff --git a/src/cloudflare/types/zero_trust/group_rule.py b/src/cloudflare/types/zero_trust/group_rule.py index 00aa62570723..def8e72459cf 100644 --- a/src/cloudflare/types/zero_trust/group_rule.py +++ b/src/cloudflare/types/zero_trust/group_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["GroupRule", "Group"] diff --git a/src/cloudflare/types/zero_trust/gsuite_group_rule.py b/src/cloudflare/types/zero_trust/gsuite_group_rule.py index ebc864e06666..589bb8baef38 100644 --- a/src/cloudflare/types/zero_trust/gsuite_group_rule.py +++ b/src/cloudflare/types/zero_trust/gsuite_group_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["GSuiteGroupRule", "GSuite"] diff --git a/src/cloudflare/types/zero_trust/ip_list_rule.py b/src/cloudflare/types/zero_trust/ip_list_rule.py index 30388e43ef70..44db2dcf67c4 100644 --- a/src/cloudflare/types/zero_trust/ip_list_rule.py +++ b/src/cloudflare/types/zero_trust/ip_list_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["IPListRule", "IPList"] diff --git a/src/cloudflare/types/zero_trust/ip_rule.py b/src/cloudflare/types/zero_trust/ip_rule.py index 503109876fef..9339b85191ca 100644 --- a/src/cloudflare/types/zero_trust/ip_rule.py +++ b/src/cloudflare/types/zero_trust/ip_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["IPRule", "IP"] diff --git a/src/cloudflare/types/zero_trust/okta_group_rule.py b/src/cloudflare/types/zero_trust/okta_group_rule.py index 1c9e66889d1e..9f57c867141f 100644 --- a/src/cloudflare/types/zero_trust/okta_group_rule.py +++ b/src/cloudflare/types/zero_trust/okta_group_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["OktaGroupRule", "Okta"] diff --git a/src/cloudflare/types/zero_trust/saml_group_rule.py b/src/cloudflare/types/zero_trust/saml_group_rule.py index 7a311bb901ce..c1bf9e03312c 100644 --- a/src/cloudflare/types/zero_trust/saml_group_rule.py +++ b/src/cloudflare/types/zero_trust/saml_group_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["SAMLGroupRule", "SAML"] diff --git a/src/cloudflare/types/zero_trust/service_token_rule.py b/src/cloudflare/types/zero_trust/service_token_rule.py index b8c4353ec771..a40140c3a32f 100644 --- a/src/cloudflare/types/zero_trust/service_token_rule.py +++ b/src/cloudflare/types/zero_trust/service_token_rule.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["ServiceTokenRule", "ServiceToken"] diff --git a/src/cloudflare/types/zones/zone.py b/src/cloudflare/types/zones/zone.py index 74e8da2e9ef4..38102060124d 100644 --- a/src/cloudflare/types/zones/zone.py +++ b/src/cloudflare/types/zones/zone.py @@ -78,14 +78,14 @@ class Zone(BaseModel): name: str """The domain name""" + name_servers: List[str] + """The name servers Cloudflare assigns to a zone""" + original_dnshost: Optional[str] = None """DNS host at the time of switching to Cloudflare""" original_name_servers: Optional[List[str]] = None - """ - Original name servers before moving to Cloudflare Notes: Is this only available - for full zones? - """ + """Original name servers before moving to Cloudflare""" original_registrar: Optional[str] = None """Registrar for the domain at the time of switching to Cloudflare""" diff --git a/src/cloudflare/types/zones/zone_delete_response.py b/src/cloudflare/types/zones/zone_delete_response.py index 8c55f4a3e09f..55ffb51fd698 100644 --- a/src/cloudflare/types/zones/zone_delete_response.py +++ b/src/cloudflare/types/zones/zone_delete_response.py @@ -1,5 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + from ..._models import BaseModel __all__ = ["ZoneDeleteResponse"] diff --git a/tests/api_resources/accounts/test_members.py b/tests/api_resources/accounts/test_members.py index 97ba2d55e34f..cda646bd98a2 100644 --- a/tests/api_resources/accounts/test_members.py +++ b/tests/api_resources/accounts/test_members.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.shared.member import Member -from cloudflare.types.accounts.member_list_response import MemberListResponse -from cloudflare.types.accounts.user_with_invite_code import UserWithInviteCode -from cloudflare.types.accounts.member_delete_response import MemberDeleteResponse +from cloudflare.types.shared import Member +from cloudflare.types.accounts import ( + MemberListResponse, + UserWithInviteCode, + MemberDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/accounts/test_roles.py b/tests/api_resources/accounts/test_roles.py index bf1a66c3e574..ba70f2c20fb9 100644 --- a/tests/api_resources/accounts/test_roles.py +++ b/tests/api_resources/accounts/test_roles.py @@ -10,8 +10,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.shared.role import Role -from cloudflare.types.accounts.role_get_response import RoleGetResponse +from cloudflare.types.shared import Role +from cloudflare.types.accounts import RoleGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/acm/test_total_tls.py b/tests/api_resources/acm/test_total_tls.py index 252f2eeaeafb..1f0db8a87a6b 100644 --- a/tests/api_resources/acm/test_total_tls.py +++ b/tests/api_resources/acm/test_total_tls.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.acm.total_tls_get_response import TotalTLSGetResponse -from cloudflare.types.acm.total_tls_create_response import TotalTLSCreateResponse +from cloudflare.types.acm import TotalTLSGetResponse, TotalTLSCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py index 510ed84f0fc5..ce05dd86140f 100644 --- a/tests/api_resources/addressing/address_maps/test_accounts.py +++ b/tests/api_resources/addressing/address_maps/test_accounts.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps.account_delete_response import AccountDeleteResponse -from cloudflare.types.addressing.address_maps.account_update_response import AccountUpdateResponse +from cloudflare.types.addressing.address_maps import AccountDeleteResponse, AccountUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py index 0d44f1d5c0ef..678a00fed80d 100644 --- a/tests/api_resources/addressing/address_maps/test_ips.py +++ b/tests/api_resources/addressing/address_maps/test_ips.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps.ip_delete_response import IPDeleteResponse -from cloudflare.types.addressing.address_maps.ip_update_response import IPUpdateResponse +from cloudflare.types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py index 923b63546641..219815dc6b64 100644 --- a/tests/api_resources/addressing/address_maps/test_zones.py +++ b/tests/api_resources/addressing/address_maps/test_zones.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse -from cloudflare.types.addressing.address_maps.zone_update_response import ZoneUpdateResponse +from cloudflare.types.addressing.address_maps import ZoneDeleteResponse, ZoneUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py index 3d1dc4153164..857b59c2c6bc 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.prefixes.bgp.service_binding import ServiceBinding -from cloudflare.types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse +from cloudflare.types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py b/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py index ce4a9a2793e0..a1f54805881c 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_prefixes.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix +from cloudflare.types.addressing.prefixes.bgp import BGPPrefix base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/bgp/test_statuses.py b/tests/api_resources/addressing/prefixes/bgp/test_statuses.py index c136cf598401..064d464963c9 100644 --- a/tests/api_resources/addressing/prefixes/bgp/test_statuses.py +++ b/tests/api_resources/addressing/prefixes/bgp/test_statuses.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.prefixes.bgp.status_get_response import StatusGetResponse -from cloudflare.types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse +from cloudflare.types.addressing.prefixes.bgp import StatusGetResponse, StatusEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/prefixes/test_delegations.py b/tests/api_resources/addressing/prefixes/test_delegations.py index 4cc4c7f47460..6e8c0a180ae0 100644 --- a/tests/api_resources/addressing/prefixes/test_delegations.py +++ b/tests/api_resources/addressing/prefixes/test_delegations.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.prefixes.delegations import Delegations -from cloudflare.types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse +from cloudflare.types.addressing.prefixes import Delegations, DelegationDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py index 9451f8bd562a..5c19088a341c 100644 --- a/tests/api_resources/addressing/test_address_maps.py +++ b/tests/api_resources/addressing/test_address_maps.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.address_map import AddressMap -from cloudflare.types.addressing.address_map_get_response import AddressMapGetResponse -from cloudflare.types.addressing.address_map_create_response import AddressMapCreateResponse -from cloudflare.types.addressing.address_map_delete_response import AddressMapDeleteResponse +from cloudflare.types.addressing import ( + AddressMap, + AddressMapGetResponse, + AddressMapCreateResponse, + AddressMapDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_loa_documents.py b/tests/api_resources/addressing/test_loa_documents.py index e30e833227be..7fb62037c876 100644 --- a/tests/api_resources/addressing/test_loa_documents.py +++ b/tests/api_resources/addressing/test_loa_documents.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.addressing.loa_document_create_response import LOADocumentCreateResponse +from cloudflare.types.addressing import LOADocumentCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py index 50ae289fe89a..fa8c7a26fb21 100644 --- a/tests/api_resources/addressing/test_prefixes.py +++ b/tests/api_resources/addressing/test_prefixes.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.prefix import Prefix -from cloudflare.types.addressing.prefix_delete_response import PrefixDeleteResponse +from cloudflare.types.addressing import Prefix, PrefixDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/addressing/test_services.py b/tests/api_resources/addressing/test_services.py index 76a7f62b536b..bab9eef74b08 100644 --- a/tests/api_resources/addressing/test_services.py +++ b/tests/api_resources/addressing/test_services.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.addressing.service_list_response import ServiceListResponse +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/destinations/test_eligible.py b/tests/api_resources/alerting/destinations/test_eligible.py index 72cd31f1b77e..ef1a207dbd4f 100644 --- a/tests/api_resources/alerting/destinations/test_eligible.py +++ b/tests/api_resources/alerting/destinations/test_eligible.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting.destinations.eligible_get_response import EligibleGetResponse +from cloudflare.types.alerting.destinations import EligibleGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/destinations/test_pagerduty.py b/tests/api_resources/alerting/destinations/test_pagerduty.py index 06db14e60215..07b1cb564360 100644 --- a/tests/api_resources/alerting/destinations/test_pagerduty.py +++ b/tests/api_resources/alerting/destinations/test_pagerduty.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse -from cloudflare.types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse -from cloudflare.types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse -from cloudflare.types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse +from cloudflare.types.alerting.destinations import ( + PagerdutyGetResponse, + PagerdutyLinkResponse, + PagerdutyCreateResponse, + PagerdutyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/destinations/test_webhooks.py b/tests/api_resources/alerting/destinations/test_webhooks.py index 98bd0ec89914..fbdefa33436f 100644 --- a/tests/api_resources/alerting/destinations/test_webhooks.py +++ b/tests/api_resources/alerting/destinations/test_webhooks.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.alerting.destinations.webhooks import Webhooks -from cloudflare.types.alerting.destinations.webhook_create_response import WebhookCreateResponse -from cloudflare.types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse -from cloudflare.types.alerting.destinations.webhook_update_response import WebhookUpdateResponse +from cloudflare.types.alerting.destinations import ( + Webhooks, + WebhookCreateResponse, + WebhookDeleteResponse, + WebhookUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_available_alerts.py b/tests/api_resources/alerting/test_available_alerts.py index a788c4241c67..c3c5c6dc2fe3 100644 --- a/tests/api_resources/alerting/test_available_alerts.py +++ b/tests/api_resources/alerting/test_available_alerts.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.alerting.available_alert_list_response import AvailableAlertListResponse +from cloudflare.types.alerting import AvailableAlertListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_history.py b/tests/api_resources/alerting/test_history.py index 33daab848a86..3ed58bbf83c1 100644 --- a/tests/api_resources/alerting/test_history.py +++ b/tests/api_resources/alerting/test_history.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.alerting.history import History +from cloudflare.types.alerting import History base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/alerting/test_policies.py b/tests/api_resources/alerting/test_policies.py index b776db81ba2e..0c2e2f09aecd 100644 --- a/tests/api_resources/alerting/test_policies.py +++ b/tests/api_resources/alerting/test_policies.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.alerting.policy import Policy -from cloudflare.types.alerting.policy_create_response import PolicyCreateResponse -from cloudflare.types.alerting.policy_delete_response import PolicyDeleteResponse -from cloudflare.types.alerting.policy_update_response import PolicyUpdateResponse +from cloudflare.types.alerting import ( + Policy, + PolicyCreateResponse, + PolicyDeleteResponse, + PolicyUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/argo/test_smart_routing.py b/tests/api_resources/argo/test_smart_routing.py index c5080d0ba111..27d13739d4c7 100644 --- a/tests/api_resources/argo/test_smart_routing.py +++ b/tests/api_resources/argo/test_smart_routing.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.argo.smart_routing_get_response import SmartRoutingGetResponse -from cloudflare.types.argo.smart_routing_edit_response import SmartRoutingEditResponse +from cloudflare.types.argo import SmartRoutingGetResponse, SmartRoutingEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/argo/test_tiered_caching.py b/tests/api_resources/argo/test_tiered_caching.py index e9c0d4545950..13d8943f0007 100644 --- a/tests/api_resources/argo/test_tiered_caching.py +++ b/tests/api_resources/argo/test_tiered_caching.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.argo.tiered_caching_get_response import TieredCachingGetResponse -from cloudflare.types.argo.tiered_caching_edit_response import TieredCachingEditResponse +from cloudflare.types.argo import TieredCachingGetResponse, TieredCachingEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/billing/test_profiles.py b/tests/api_resources/billing/test_profiles.py index 4b9416d2dbf1..63e0a0eca24d 100644 --- a/tests/api_resources/billing/test_profiles.py +++ b/tests/api_resources/billing/test_profiles.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.billing.profile_get_response import ProfileGetResponse +from cloudflare.types.billing import ProfileGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_cache_reserve.py b/tests/api_resources/cache/test_cache_reserve.py index ba5feb7dc37b..a6543e9e10e1 100644 --- a/tests/api_resources/cache/test_cache_reserve.py +++ b/tests/api_resources/cache/test_cache_reserve.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache.cache_reserve_get_response import CacheReserveGetResponse -from cloudflare.types.cache.cache_reserve_edit_response import CacheReserveEditResponse -from cloudflare.types.cache.cache_reserve_clear_response import CacheReserveClearResponse -from cloudflare.types.cache.cache_reserve_status_response import CacheReserveStatusResponse +from cloudflare.types.cache import ( + CacheReserveGetResponse, + CacheReserveEditResponse, + CacheReserveClearResponse, + CacheReserveStatusResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_regional_tiered_cache.py b/tests/api_resources/cache/test_regional_tiered_cache.py index 74247e9092d5..0a440eaae86f 100644 --- a/tests/api_resources/cache/test_regional_tiered_cache.py +++ b/tests/api_resources/cache/test_regional_tiered_cache.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse -from cloudflare.types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse +from cloudflare.types.cache import ( + RegionalTieredCacheGetResponse, + RegionalTieredCacheEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_smart_tiered_cache.py b/tests/api_resources/cache/test_smart_tiered_cache.py index 2e866ff3d758..2ebc31bf1e42 100644 --- a/tests/api_resources/cache/test_smart_tiered_cache.py +++ b/tests/api_resources/cache/test_smart_tiered_cache.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse -from cloudflare.types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse -from cloudflare.types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse +from cloudflare.types.cache import ( + SmartTieredCacheGetResponse, + SmartTieredCacheEditResponse, + SmartTieredCacheDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cache/test_variants.py b/tests/api_resources/cache/test_variants.py index 6ba31546a486..a77cf7c54138 100644 --- a/tests/api_resources/cache/test_variants.py +++ b/tests/api_resources/cache/test_variants.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache.cache_variant import CacheVariant -from cloudflare.types.cache.variant_get_response import VariantGetResponse -from cloudflare.types.cache.variant_edit_response import VariantEditResponse +from cloudflare.types.cache import CacheVariant, VariantGetResponse, VariantEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/certificate_authorities/test_hostname_associations.py b/tests/api_resources/certificate_authorities/test_hostname_associations.py index ce33f3b87ff0..bd14519e2c57 100644 --- a/tests/api_resources/certificate_authorities/test_hostname_associations.py +++ b/tests/api_resources/certificate_authorities/test_hostname_associations.py @@ -9,8 +9,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse -from cloudflare.types.certificate_authorities.hostname_association_update_response import ( +from cloudflare.types.certificate_authorities import ( + HostnameAssociationGetResponse, HostnameAssociationUpdateResponse, ) diff --git a/tests/api_resources/challenges/test_widgets.py b/tests/api_resources/challenges/test_widgets.py index a87a1021b162..976f29aaf827 100644 --- a/tests/api_resources/challenges/test_widgets.py +++ b/tests/api_resources/challenges/test_widgets.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.challenges.widget import Widget -from cloudflare.types.challenges.widget_list_response import WidgetListResponse +from cloudflare.types.challenges import ( + Widget, + WidgetListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/requests/test_message.py b/tests/api_resources/cloudforce_one/requests/test_message.py index 54822be59d53..ea91ab0a36ea 100644 --- a/tests/api_resources/cloudforce_one/requests/test_message.py +++ b/tests/api_resources/cloudforce_one/requests/test_message.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.cloudforce_one.requests.message import Message -from cloudflare.types.cloudforce_one.requests.message_get_response import MessageGetResponse -from cloudflare.types.cloudforce_one.requests.message_delete_response import MessageDeleteResponse +from cloudflare.types.cloudforce_one.requests import ( + Message, + MessageGetResponse, + MessageDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/requests/test_priority.py b/tests/api_resources/cloudforce_one/requests/test_priority.py index 9b3aa3fffdc8..136d392955d8 100644 --- a/tests/api_resources/cloudforce_one/requests/test_priority.py +++ b/tests/api_resources/cloudforce_one/requests/test_priority.py @@ -9,10 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cloudforce_one.item import Item -from cloudflare.types.cloudforce_one.quota import Quota -from cloudflare.types.cloudforce_one.requests.priority import Priority -from cloudflare.types.cloudforce_one.requests.priority_delete_response import PriorityDeleteResponse +from cloudflare.types.cloudforce_one import Item, Quota +from cloudflare.types.cloudforce_one.requests import ( + Priority, + PriorityDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/cloudforce_one/test_requests.py b/tests/api_resources/cloudforce_one/test_requests.py index c39acd3c50cf..ef62fc920950 100644 --- a/tests/api_resources/cloudforce_one/test_requests.py +++ b/tests/api_resources/cloudforce_one/test_requests.py @@ -11,12 +11,14 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.cloudforce_one.item import Item -from cloudflare.types.cloudforce_one.quota import Quota -from cloudflare.types.cloudforce_one.list_item import ListItem -from cloudflare.types.cloudforce_one.request_types import RequestTypes -from cloudflare.types.cloudforce_one.request_constants import RequestConstants -from cloudflare.types.cloudforce_one.request_delete_response import RequestDeleteResponse +from cloudflare.types.cloudforce_one import ( + Item, + Quota, + ListItem, + RequestTypes, + RequestConstants, + RequestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_certificates/test_prioritize.py b/tests/api_resources/custom_certificates/test_prioritize.py index 74cd185a801f..06419cda0567 100644 --- a/tests/api_resources/custom_certificates/test_prioritize.py +++ b/tests/api_resources/custom_certificates/test_prioritize.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse +from cloudflare.types.custom_certificates import PrioritizeUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/custom_hostnames/test_fallback_origin.py b/tests/api_resources/custom_hostnames/test_fallback_origin.py index 15597c38f089..4f78b5798304 100644 --- a/tests/api_resources/custom_hostnames/test_fallback_origin.py +++ b/tests/api_resources/custom_hostnames/test_fallback_origin.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_hostnames.fallback_origin_get_response import FallbackOriginGetResponse -from cloudflare.types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse -from cloudflare.types.custom_hostnames.fallback_origin_update_response import FallbackOriginUpdateResponse +from cloudflare.types.custom_hostnames import ( + FallbackOriginGetResponse, + FallbackOriginDeleteResponse, + FallbackOriginUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/d1/test_database.py b/tests/api_resources/d1/test_database.py index e651a529153b..8005deeea4bb 100644 --- a/tests/api_resources/d1/test_database.py +++ b/tests/api_resources/d1/test_database.py @@ -9,12 +9,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.d1 import ( + D1, + DatabaseListResponse, + DatabaseQueryResponse, + DatabaseCreateResponse, + DatabaseDeleteResponse, +) from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.d1.d1 import D1 -from cloudflare.types.d1.database_list_response import DatabaseListResponse -from cloudflare.types.d1.database_query_response import DatabaseQueryResponse -from cloudflare.types.d1.database_create_response import DatabaseCreateResponse -from cloudflare.types.d1.database_delete_response import DatabaseDeleteResponse 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 b579d630a431..0bb10895bed3 100644 --- a/tests/api_resources/dcv_delegation/test_uuid.py +++ b/tests/api_resources/dcv_delegation/test_uuid.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID +from cloudflare.types.dcv_delegation import DCVDelegationUUID base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/diagnostics/test_traceroutes.py b/tests/api_resources/diagnostics/test_traceroutes.py index 016476eebe58..748aa9cc8d57 100644 --- a/tests/api_resources/diagnostics/test_traceroutes.py +++ b/tests/api_resources/diagnostics/test_traceroutes.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.diagnostics.traceroute_create_response import TracerouteCreateResponse +from cloudflare.types.diagnostics import TracerouteCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/analytics/reports/test_bytimes.py b/tests/api_resources/dns/analytics/reports/test_bytimes.py index 5959ed992638..759ac8524ba6 100644 --- a/tests/api_resources/dns/analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns/analytics/reports/test_bytimes.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.dns.analytics.reports.by_time import ByTime +from cloudflare.types.dns.analytics.reports import ByTime base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/analytics/test_reports.py b/tests/api_resources/dns/analytics/test_reports.py index bdf0584439e8..e91585a73ec9 100644 --- a/tests/api_resources/dns/analytics/test_reports.py +++ b/tests/api_resources/dns/analytics/test_reports.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.dns.analytics.report import Report +from cloudflare.types.dns.analytics import Report base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py b/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py index afa2d3787af0..ba39224909a9 100644 --- a/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py +++ b/tests/api_resources/dns/firewall/analytics/reports/test_bytimes.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.dns.analytics.reports.by_time import ByTime +from cloudflare.types.dns.analytics.reports import ByTime base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/firewall/analytics/test_reports.py b/tests/api_resources/dns/firewall/analytics/test_reports.py index 3229cd5a8ac3..32369b249a70 100644 --- a/tests/api_resources/dns/firewall/analytics/test_reports.py +++ b/tests/api_resources/dns/firewall/analytics/test_reports.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.dns.analytics.report import Report +from cloudflare.types.dns.analytics import Report base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/test_firewall.py b/tests/api_resources/dns/test_firewall.py index b5374071dea6..2829440558f7 100644 --- a/tests/api_resources/dns/test_firewall.py +++ b/tests/api_resources/dns/test_firewall.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.dns import ( + FirewallDeleteResponse, +) from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.dns.firewall.firewall import Firewall -from cloudflare.types.dns.firewall_delete_response import FirewallDeleteResponse +from cloudflare.types.dns.firewall import Firewall base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index c09c25a689c0..b135d0d2b214 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -9,11 +9,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.dns import ( + Record, + RecordScanResponse, + RecordDeleteResponse, + RecordImportResponse, +) from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.dns.record import Record -from cloudflare.types.dns.record_scan_response import RecordScanResponse -from cloudflare.types.dns.record_delete_response import RecordDeleteResponse -from cloudflare.types.dns.record_import_response import RecordImportResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/durable_objects/namespaces/test_objects.py b/tests/api_resources/durable_objects/namespaces/test_objects.py index 61c1048c00e0..3273c4e5eda0 100644 --- a/tests/api_resources/durable_objects/namespaces/test_objects.py +++ b/tests/api_resources/durable_objects/namespaces/test_objects.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination -from cloudflare.types.durable_objects.namespaces.durable_object import DurableObject +from cloudflare.types.durable_objects.namespaces import DurableObject base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/durable_objects/test_namespaces.py b/tests/api_resources/durable_objects/test_namespaces.py index f983ae2a8229..ca9f1d784ccd 100644 --- a/tests/api_resources/durable_objects/test_namespaces.py +++ b/tests/api_resources/durable_objects/test_namespaces.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.durable_objects.namespace import Namespace +from cloudflare.types.durable_objects import Namespace base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/rules/test_catch_alls.py b/tests/api_resources/email_routing/rules/test_catch_alls.py index 94505eb592c2..e0901a6d6002 100644 --- a/tests/api_resources/email_routing/rules/test_catch_alls.py +++ b/tests/api_resources/email_routing/rules/test_catch_alls.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing.rules.catch_all_get_response import CatchAllGetResponse -from cloudflare.types.email_routing.rules.catch_all_update_response import CatchAllUpdateResponse +from cloudflare.types.email_routing.rules import CatchAllGetResponse, CatchAllUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_addresses.py b/tests/api_resources/email_routing/test_addresses.py index e362ccaa7f23..76bbe3c7794b 100644 --- a/tests/api_resources/email_routing/test_addresses.py +++ b/tests/api_resources/email_routing/test_addresses.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.email_routing.address import Address +from cloudflare.types.email_routing import Address base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_dns.py b/tests/api_resources/email_routing/test_dns.py index 0a5b5b2d451f..c4831f6464d3 100644 --- a/tests/api_resources/email_routing/test_dns.py +++ b/tests/api_resources/email_routing/test_dns.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing.dns_get_response import DNSGetResponse +from cloudflare.types.email_routing import DNSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/email_routing/test_rules.py b/tests/api_resources/email_routing/test_rules.py index 4e8e84f075af..f38bc2e6c60b 100644 --- a/tests/api_resources/email_routing/test_rules.py +++ b/tests/api_resources/email_routing/test_rules.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.email_routing.email_routing_rule import EmailRoutingRule +from cloudflare.types.email_routing import EmailRoutingRule base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/event_notifications/r2/configuration/test_queues.py b/tests/api_resources/event_notifications/r2/configuration/test_queues.py index 1f9bd041955c..86d441847982 100644 --- a/tests/api_resources/event_notifications/r2/configuration/test_queues.py +++ b/tests/api_resources/event_notifications/r2/configuration/test_queues.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.event_notifications.r2.configuration.queue_delete_response import QueueDeleteResponse -from cloudflare.types.event_notifications.r2.configuration.queue_update_response import QueueUpdateResponse +from cloudflare.types.event_notifications.r2.configuration import ( + QueueDeleteResponse, + QueueUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/event_notifications/r2/test_configuration.py b/tests/api_resources/event_notifications/r2/test_configuration.py index 0ce207dd3c61..7fb8bfb19656 100644 --- a/tests/api_resources/event_notifications/r2/test_configuration.py +++ b/tests/api_resources/event_notifications/r2/test_configuration.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.event_notifications.r2.configuration_get_response import ConfigurationGetResponse +from cloudflare.types.event_notifications.r2 import ConfigurationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_access_rules.py b/tests/api_resources/firewall/test_access_rules.py index 551da028952a..d89f4bda7f72 100644 --- a/tests/api_resources/firewall/test_access_rules.py +++ b/tests/api_resources/firewall/test_access_rules.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.access_rule_get_response import AccessRuleGetResponse -from cloudflare.types.firewall.access_rule_edit_response import AccessRuleEditResponse -from cloudflare.types.firewall.access_rule_create_response import AccessRuleCreateResponse -from cloudflare.types.firewall.access_rule_delete_response import AccessRuleDeleteResponse +from cloudflare.types.firewall import ( + AccessRuleGetResponse, + AccessRuleEditResponse, + AccessRuleCreateResponse, + AccessRuleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_lockdowns.py b/tests/api_resources/firewall/test_lockdowns.py index 96cb688822ea..1088333aaa42 100644 --- a/tests/api_resources/firewall/test_lockdowns.py +++ b/tests/api_resources/firewall/test_lockdowns.py @@ -11,8 +11,10 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.lockdown import Lockdown -from cloudflare.types.firewall.lockdown_delete_response import LockdownDeleteResponse +from cloudflare.types.firewall import ( + Lockdown, + LockdownDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_rules.py b/tests/api_resources/firewall/test_rules.py index d97fb08418b3..516da154557c 100644 --- a/tests/api_resources/firewall/test_rules.py +++ b/tests/api_resources/firewall/test_rules.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.firewall_rule import FirewallRule -from cloudflare.types.firewall.rule_edit_response import RuleEditResponse -from cloudflare.types.firewall.rule_create_response import RuleCreateResponse +from cloudflare.types.firewall import ( + FirewallRule, + RuleEditResponse, + RuleCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/test_ua_rules.py b/tests/api_resources/firewall/test_ua_rules.py index ef1417082620..13eaa876ad5e 100644 --- a/tests/api_resources/firewall/test_ua_rules.py +++ b/tests/api_resources/firewall/test_ua_rules.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.ua_rule_get_response import UARuleGetResponse -from cloudflare.types.firewall.ua_rule_list_response import UARuleListResponse -from cloudflare.types.firewall.ua_rule_create_response import UARuleCreateResponse -from cloudflare.types.firewall.ua_rule_delete_response import UARuleDeleteResponse -from cloudflare.types.firewall.ua_rule_update_response import UARuleUpdateResponse +from cloudflare.types.firewall import ( + UARuleGetResponse, + UARuleListResponse, + UARuleCreateResponse, + UARuleDeleteResponse, + UARuleUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/packages/test_groups.py b/tests/api_resources/firewall/waf/packages/test_groups.py index 6297b160c030..9fc8f82f4673 100644 --- a/tests/api_resources/firewall/waf/packages/test_groups.py +++ b/tests/api_resources/firewall/waf/packages/test_groups.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.waf.packages.group import Group -from cloudflare.types.firewall.waf.packages.group_get_response import GroupGetResponse -from cloudflare.types.firewall.waf.packages.group_edit_response import GroupEditResponse +from cloudflare.types.firewall.waf.packages import ( + Group, + GroupGetResponse, + GroupEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/packages/test_rules.py b/tests/api_resources/firewall/waf/packages/test_rules.py index 710c1f571177..772dd3a31288 100644 --- a/tests/api_resources/firewall/waf/packages/test_rules.py +++ b/tests/api_resources/firewall/waf/packages/test_rules.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.waf.packages.rule_get_response import RuleGetResponse -from cloudflare.types.firewall.waf.packages.rule_edit_response import RuleEditResponse -from cloudflare.types.firewall.waf.packages.rule_list_response import RuleListResponse +from cloudflare.types.firewall.waf.packages import ( + RuleGetResponse, + RuleEditResponse, + RuleListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/test_overrides.py b/tests/api_resources/firewall/waf/test_overrides.py index 8aebbb019177..6d1a278223f6 100644 --- a/tests/api_resources/firewall/waf/test_overrides.py +++ b/tests/api_resources/firewall/waf/test_overrides.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.waf.override import Override -from cloudflare.types.firewall.waf.override_delete_response import OverrideDeleteResponse +from cloudflare.types.firewall.waf import ( + Override, + OverrideDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/firewall/waf/test_packages.py b/tests/api_resources/firewall/waf/test_packages.py index 360c75560ee6..405a42b1221f 100644 --- a/tests/api_resources/firewall/waf/test_packages.py +++ b/tests/api_resources/firewall/waf/test_packages.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.firewall.waf.package_get_response import PackageGetResponse -from cloudflare.types.firewall.waf.package_list_response import PackageListResponse +from cloudflare.types.firewall.waf import PackageGetResponse, PackageListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/healthchecks/test_previews.py b/tests/api_resources/healthchecks/test_previews.py index 5f4425d4201c..935799e2c199 100644 --- a/tests/api_resources/healthchecks/test_previews.py +++ b/tests/api_resources/healthchecks/test_previews.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.healthchecks.healthcheck import Healthcheck -from cloudflare.types.healthchecks.preview_delete_response import PreviewDeleteResponse +from cloudflare.types.healthchecks import ( + Healthcheck, + PreviewDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hostnames/settings/test_tls.py b/tests/api_resources/hostnames/settings/test_tls.py index abe5159537a4..889e06e7b7e2 100644 --- a/tests/api_resources/hostnames/settings/test_tls.py +++ b/tests/api_resources/hostnames/settings/test_tls.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.hostnames.settings.setting import Setting -from cloudflare.types.hostnames.settings.tls_get_response import TLSGetResponse -from cloudflare.types.hostnames.settings.tls_delete_response import TLSDeleteResponse +from cloudflare.types.hostnames.settings import ( + Setting, + TLSGetResponse, + TLSDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hyperdrive/test_configs.py b/tests/api_resources/hyperdrive/test_configs.py index 66cfb2bf6788..1170bd21c149 100644 --- a/tests/api_resources/hyperdrive/test_configs.py +++ b/tests/api_resources/hyperdrive/test_configs.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.hyperdrive.hyperdrive import Hyperdrive -from cloudflare.types.hyperdrive.config_delete_response import ConfigDeleteResponse +from cloudflare.types.hyperdrive import ( + Hyperdrive, + ConfigDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v1.py b/tests/api_resources/images/test_v1.py index 5cc041ba1862..75e998d65c5b 100644 --- a/tests/api_resources/images/test_v1.py +++ b/tests/api_resources/images/test_v1.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.images.image import Image -from cloudflare.types.images.v1_list_response import V1ListResponse -from cloudflare.types.images.v1_delete_response import V1DeleteResponse +from cloudflare.types.images import ( + Image, + V1ListResponse, + V1DeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/test_v2.py b/tests/api_resources/images/test_v2.py index cad004cfc425..b40c7c1b94a1 100644 --- a/tests/api_resources/images/test_v2.py +++ b/tests/api_resources/images/test_v2.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v2_list_response import V2ListResponse +from cloudflare.types.images import V2ListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_keys.py b/tests/api_resources/images/v1/test_keys.py index 24ec699ed7c0..42691cb49b0b 100644 --- a/tests/api_resources/images/v1/test_keys.py +++ b/tests/api_resources/images/v1/test_keys.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v1.key_list_response import KeyListResponse -from cloudflare.types.images.v1.key_delete_response import KeyDeleteResponse -from cloudflare.types.images.v1.key_update_response import KeyUpdateResponse +from cloudflare.types.images.v1 import KeyListResponse, KeyDeleteResponse, KeyUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_stats.py b/tests/api_resources/images/v1/test_stats.py index bc63e4b32001..d2ea3b07cbb3 100644 --- a/tests/api_resources/images/v1/test_stats.py +++ b/tests/api_resources/images/v1/test_stats.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v1.stat import Stat +from cloudflare.types.images.v1 import Stat base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py index 884c31e7d696..13794df1771f 100644 --- a/tests/api_resources/images/v1/test_variants.py +++ b/tests/api_resources/images/v1/test_variants.py @@ -9,11 +9,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.images.v1.variant import Variant -from cloudflare.types.images.v1.variant_get_response import VariantGetResponse -from cloudflare.types.images.v1.variant_edit_response import VariantEditResponse -from cloudflare.types.images.v1.variant_create_response import VariantCreateResponse -from cloudflare.types.images.v1.variant_delete_response import VariantDeleteResponse +from cloudflare.types.images.v1 import ( + Variant, + VariantGetResponse, + VariantEditResponse, + VariantCreateResponse, + VariantDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/images/v2/test_direct_uploads.py b/tests/api_resources/images/v2/test_direct_uploads.py index 43d7ea9735bb..a9ed5cc45d64 100644 --- a/tests/api_resources/images/v2/test_direct_uploads.py +++ b/tests/api_resources/images/v2/test_direct_uploads.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.images.v2.direct_upload_create_response import DirectUploadCreateResponse +from cloudflare.types.images.v2 import DirectUploadCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/asn/test_subnets.py b/tests/api_resources/intel/asn/test_subnets.py index 569fbd0a4fe2..3014e7984efd 100644 --- a/tests/api_resources/intel/asn/test_subnets.py +++ b/tests/api_resources/intel/asn/test_subnets.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.asn.subnet_get_response import SubnetGetResponse +from cloudflare.types.intel.asn import SubnetGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/attack_surface_report/test_issue_types.py b/tests/api_resources/intel/attack_surface_report/test_issue_types.py index 8bc0538f087e..1274cb4c67d1 100644 --- a/tests/api_resources/intel/attack_surface_report/test_issue_types.py +++ b/tests/api_resources/intel/attack_surface_report/test_issue_types.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.attack_surface_report.issue_type_get_response import IssueTypeGetResponse +from cloudflare.types.intel.attack_surface_report import IssueTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/attack_surface_report/test_issues.py b/tests/api_resources/intel/attack_surface_report/test_issues.py index 52094c382395..31bd421e533e 100644 --- a/tests/api_resources/intel/attack_surface_report/test_issues.py +++ b/tests/api_resources/intel/attack_surface_report/test_issues.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.intel.attack_surface_report.issue_list_response import IssueListResponse -from cloudflare.types.intel.attack_surface_report.issue_type_response import IssueTypeResponse -from cloudflare.types.intel.attack_surface_report.issue_class_response import IssueClassResponse -from cloudflare.types.intel.attack_surface_report.issue_dismiss_response import IssueDismissResponse -from cloudflare.types.intel.attack_surface_report.issue_severity_response import IssueSeverityResponse +from cloudflare.types.intel.attack_surface_report import ( + IssueListResponse, + IssueTypeResponse, + IssueClassResponse, + IssueDismissResponse, + IssueSeverityResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/domains/test_bulks.py b/tests/api_resources/intel/domains/test_bulks.py index 219c656996e2..10054a63d1cf 100644 --- a/tests/api_resources/intel/domains/test_bulks.py +++ b/tests/api_resources/intel/domains/test_bulks.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.domains.bulk_get_response import BulkGetResponse +from cloudflare.types.intel.domains import BulkGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/indicator_feeds/test_permissions.py b/tests/api_resources/intel/indicator_feeds/test_permissions.py index dc86ad524b05..f7da59f2cda4 100644 --- a/tests/api_resources/intel/indicator_feeds/test_permissions.py +++ b/tests/api_resources/intel/indicator_feeds/test_permissions.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.indicator_feeds.permission_list_response import PermissionListResponse -from cloudflare.types.intel.indicator_feeds.permission_create_response import PermissionCreateResponse -from cloudflare.types.intel.indicator_feeds.permission_delete_response import PermissionDeleteResponse +from cloudflare.types.intel.indicator_feeds import ( + PermissionListResponse, + PermissionCreateResponse, + PermissionDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_asn.py b/tests/api_resources/intel/test_asn.py index e6422689e813..125ac1e76c08 100644 --- a/tests/api_resources/intel/test_asn.py +++ b/tests/api_resources/intel/test_asn.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.shared.asn import ASN +from cloudflare.types.shared import ASN base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_dns.py b/tests/api_resources/intel/test_dns.py index 160300781284..0c916acc8606 100644 --- a/tests/api_resources/intel/test_dns.py +++ b/tests/api_resources/intel/test_dns.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_date from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.intel.dns_list_response import DNSListResponse +from cloudflare.types.intel import DNSListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_domain_history.py b/tests/api_resources/intel/test_domain_history.py index f3393ae4f651..811ded0a843d 100644 --- a/tests/api_resources/intel/test_domain_history.py +++ b/tests/api_resources/intel/test_domain_history.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.domain_history_get_response import DomainHistoryGetResponse +from cloudflare.types.intel import DomainHistoryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_domains.py b/tests/api_resources/intel/test_domains.py index 181c005a1395..ccf650a33804 100644 --- a/tests/api_resources/intel/test_domains.py +++ b/tests/api_resources/intel/test_domains.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.domain import Domain +from cloudflare.types.intel import Domain base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_indicator_feeds.py b/tests/api_resources/intel/test_indicator_feeds.py index 11ae20c41d64..956f15c0233b 100644 --- a/tests/api_resources/intel/test_indicator_feeds.py +++ b/tests/api_resources/intel/test_indicator_feeds.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.intel.indicator_feed_get_response import IndicatorFeedGetResponse -from cloudflare.types.intel.indicator_feed_list_response import IndicatorFeedListResponse -from cloudflare.types.intel.indicator_feed_create_response import IndicatorFeedCreateResponse -from cloudflare.types.intel.indicator_feed_update_response import IndicatorFeedUpdateResponse +from cloudflare.types.intel import ( + IndicatorFeedGetResponse, + IndicatorFeedListResponse, + IndicatorFeedCreateResponse, + IndicatorFeedUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_ip_lists.py b/tests/api_resources/intel/test_ip_lists.py index a65b25a285a2..2adbe284b627 100644 --- a/tests/api_resources/intel/test_ip_lists.py +++ b/tests/api_resources/intel/test_ip_lists.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.ip_list_get_response import IPListGetResponse +from cloudflare.types.intel import IPListGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_ips.py b/tests/api_resources/intel/test_ips.py index 4abc4a1db52e..8956bb8c5faa 100644 --- a/tests/api_resources/intel/test_ips.py +++ b/tests/api_resources/intel/test_ips.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.ip_get_response import IPGetResponse +from cloudflare.types.intel import IPGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_miscategorizations.py b/tests/api_resources/intel/test_miscategorizations.py index 8e769f28565e..8231ba952c54 100644 --- a/tests/api_resources/intel/test_miscategorizations.py +++ b/tests/api_resources/intel/test_miscategorizations.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.miscategorization_create_response import MiscategorizationCreateResponse +from cloudflare.types.intel import MiscategorizationCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_sinkholes.py b/tests/api_resources/intel/test_sinkholes.py index e90869083832..9c3ac5abb154 100644 --- a/tests/api_resources/intel/test_sinkholes.py +++ b/tests/api_resources/intel/test_sinkholes.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.intel.sinkhole import Sinkhole +from cloudflare.types.intel import Sinkhole base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/intel/test_whois.py b/tests/api_resources/intel/test_whois.py index 00343224cdb5..5f42548c43bb 100644 --- a/tests/api_resources/intel/test_whois.py +++ b/tests/api_resources/intel/test_whois.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.intel.whois import Whois +from cloudflare.types.intel import Whois base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_bulk.py b/tests/api_resources/kv/namespaces/test_bulk.py index 7cbc6df1745b..21c3f4538389 100644 --- a/tests/api_resources/kv/namespaces/test_bulk.py +++ b/tests/api_resources/kv/namespaces/test_bulk.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv.namespaces.bulk_delete_response import BulkDeleteResponse -from cloudflare.types.kv.namespaces.bulk_update_response import BulkUpdateResponse +from cloudflare.types.kv.namespaces import BulkDeleteResponse, BulkUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_keys.py b/tests/api_resources/kv/namespaces/test_keys.py index e7fcfee6fb53..36b5cad82c64 100644 --- a/tests/api_resources/kv/namespaces/test_keys.py +++ b/tests/api_resources/kv/namespaces/test_keys.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination -from cloudflare.types.kv.namespaces.key import Key +from cloudflare.types.kv.namespaces import Key base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/namespaces/test_values.py b/tests/api_resources/kv/namespaces/test_values.py index b7861caaac3a..0327c01e662d 100644 --- a/tests/api_resources/kv/namespaces/test_values.py +++ b/tests/api_resources/kv/namespaces/test_values.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.kv.namespaces.value_delete_response import ValueDeleteResponse -from cloudflare.types.kv.namespaces.value_update_response import ValueUpdateResponse +from cloudflare.types.kv.namespaces import ( + ValueDeleteResponse, + ValueUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/kv/test_namespaces.py b/tests/api_resources/kv/test_namespaces.py index cba2aa4f8b16..df560f6668ab 100644 --- a/tests/api_resources/kv/test_namespaces.py +++ b/tests/api_resources/kv/test_namespaces.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.kv import ( + Namespace, + NamespaceDeleteResponse, + NamespaceUpdateResponse, +) from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.kv.namespace import Namespace -from cloudflare.types.kv.namespace_delete_response import NamespaceDeleteResponse -from cloudflare.types.kv.namespace_update_response import NamespaceUpdateResponse 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 3a5e48aedad2..791b255f0754 100644 --- a/tests/api_resources/load_balancers/monitors/test_previews.py +++ b/tests/api_resources/load_balancers/monitors/test_previews.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.monitors.preview_create_response import PreviewCreateResponse +from cloudflare.types.load_balancers.monitors import PreviewCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/monitors/test_references.py b/tests/api_resources/load_balancers/monitors/test_references.py index ceeaa7015c93..ac893043fecf 100644 --- a/tests/api_resources/load_balancers/monitors/test_references.py +++ b/tests/api_resources/load_balancers/monitors/test_references.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.monitors.reference_get_response import ReferenceGetResponse +from cloudflare.types.load_balancers.monitors import ReferenceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/pools/test_health.py b/tests/api_resources/load_balancers/pools/test_health.py index b10caa8c54ca..13c1108bf5d1 100644 --- a/tests/api_resources/load_balancers/pools/test_health.py +++ b/tests/api_resources/load_balancers/pools/test_health.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.pools.health_get_response import HealthGetResponse -from cloudflare.types.load_balancers.pools.health_create_response import HealthCreateResponse +from cloudflare.types.load_balancers.pools import HealthGetResponse, HealthCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/pools/test_references.py b/tests/api_resources/load_balancers/pools/test_references.py index c45476633ba1..723f890e4e72 100644 --- a/tests/api_resources/load_balancers/pools/test_references.py +++ b/tests/api_resources/load_balancers/pools/test_references.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.pools.reference_get_response import ReferenceGetResponse +from cloudflare.types.load_balancers.pools import ReferenceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_monitors.py b/tests/api_resources/load_balancers/test_monitors.py index 1982d09b0f0e..5914c124f516 100644 --- a/tests/api_resources/load_balancers/test_monitors.py +++ b/tests/api_resources/load_balancers/test_monitors.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.load_balancers.monitor import Monitor -from cloudflare.types.load_balancers.monitor_delete_response import MonitorDeleteResponse +from cloudflare.types.load_balancers import ( + Monitor, + MonitorDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_pools.py b/tests/api_resources/load_balancers/test_pools.py index 7fef30269048..8952eba8a2ca 100644 --- a/tests/api_resources/load_balancers/test_pools.py +++ b/tests/api_resources/load_balancers/test_pools.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.load_balancers.pool import Pool -from cloudflare.types.load_balancers.pool_delete_response import PoolDeleteResponse +from cloudflare.types.load_balancers import ( + Pool, + PoolDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_previews.py b/tests/api_resources/load_balancers/test_previews.py index 7be32ceecb98..588ab766d4a6 100644 --- a/tests/api_resources/load_balancers/test_previews.py +++ b/tests/api_resources/load_balancers/test_previews.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.preview_get_response import PreviewGetResponse +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 55063ddc0052..ae7e7b8f3d45 100644 --- a/tests/api_resources/load_balancers/test_regions.py +++ b/tests/api_resources/load_balancers/test_regions.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.region_get_response import RegionGetResponse -from cloudflare.types.load_balancers.region_list_response import RegionListResponse +from cloudflare.types.load_balancers import RegionGetResponse, RegionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/load_balancers/test_searches.py b/tests/api_resources/load_balancers/test_searches.py index 6ab871c30217..22949e8c586a 100644 --- a/tests/api_resources/load_balancers/test_searches.py +++ b/tests/api_resources/load_balancers/test_searches.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.load_balancers.search_get_response import SearchGetResponse +from cloudflare.types.load_balancers import SearchGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/datasets/test_jobs.py b/tests/api_resources/logpush/datasets/test_jobs.py index 1de6c7b6f158..1d2a9fe31c69 100644 --- a/tests/api_resources/logpush/datasets/test_jobs.py +++ b/tests/api_resources/logpush/datasets/test_jobs.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush.datasets.job_get_response import JobGetResponse +from cloudflare.types.logpush.datasets import JobGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_edge.py b/tests/api_resources/logpush/test_edge.py index a26292567a30..b1bdf576c704 100644 --- a/tests/api_resources/logpush/test_edge.py +++ b/tests/api_resources/logpush/test_edge.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush.edge_get_response import EdgeGetResponse -from cloudflare.types.logpush.instant_logpush_job import InstantLogpushJob +from cloudflare.types.logpush import EdgeGetResponse, InstantLogpushJob base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_jobs.py b/tests/api_resources/logpush/test_jobs.py index a4f3b116eba1..7d39a8b60150 100644 --- a/tests/api_resources/logpush/test_jobs.py +++ b/tests/api_resources/logpush/test_jobs.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.logpush.logpush_job import LogpushJob +from cloudflare.types.logpush import LogpushJob base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_ownership.py b/tests/api_resources/logpush/test_ownership.py index 98eadb69629c..a1d2e7839deb 100644 --- a/tests/api_resources/logpush/test_ownership.py +++ b/tests/api_resources/logpush/test_ownership.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush.ownership_validation import OwnershipValidation -from cloudflare.types.logpush.ownership_create_response import OwnershipCreateResponse +from cloudflare.types.logpush import ( + OwnershipValidation, + OwnershipCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logpush/test_validate.py b/tests/api_resources/logpush/test_validate.py index e701c09a4ba3..0a3cff70df59 100644 --- a/tests/api_resources/logpush/test_validate.py +++ b/tests/api_resources/logpush/test_validate.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush.validate_origin_response import ValidateOriginResponse -from cloudflare.types.logpush.validate_destination_response import ValidateDestinationResponse +from cloudflare.types.logpush import ( + ValidateOriginResponse, + ValidateDestinationResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/control/cmb/test_config.py b/tests/api_resources/logs/control/cmb/test_config.py index bb3c24cab91a..4aee26139a58 100644 --- a/tests/api_resources/logs/control/cmb/test_config.py +++ b/tests/api_resources/logs/control/cmb/test_config.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.control.cmb.cmb_config import CmbConfig +from cloudflare.types.logs.control.cmb import CmbConfig base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/control/retention/test_flag.py b/tests/api_resources/logs/control/retention/test_flag.py index d1fe897bdbcd..a6fce61750f3 100644 --- a/tests/api_resources/logs/control/retention/test_flag.py +++ b/tests/api_resources/logs/control/retention/test_flag.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.control.retention.flag_get_response import FlagGetResponse -from cloudflare.types.logs.control.retention.flag_create_response import FlagCreateResponse +from cloudflare.types.logs.control.retention import FlagGetResponse, FlagCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/received/test_fields.py b/tests/api_resources/logs/received/test_fields.py index db946844262b..38a6509bf56d 100644 --- a/tests/api_resources/logs/received/test_fields.py +++ b/tests/api_resources/logs/received/test_fields.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.received.field_get_response import FieldGetResponse +from cloudflare.types.logs.received import FieldGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_rayid.py b/tests/api_resources/logs/test_rayid.py index a52b54fc51fd..a5264c4450ac 100644 --- a/tests/api_resources/logs/test_rayid.py +++ b/tests/api_resources/logs/test_rayid.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.rayid_get_response import RayIDGetResponse +from cloudflare.types.logs import RayIDGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/logs/test_received.py b/tests/api_resources/logs/test_received.py index e47ab7841cbf..38002e7e0f91 100644 --- a/tests/api_resources/logs/test_received.py +++ b/tests/api_resources/logs/test_received.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logs.received_get_response import ReceivedGetResponse +from cloudflare.types.logs import ReceivedGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/configs/test_full.py b/tests/api_resources/magic_network_monitoring/configs/test_full.py index 19edd6942e93..27f997aab52e 100644 --- a/tests/api_resources/magic_network_monitoring/configs/test_full.py +++ b/tests/api_resources/magic_network_monitoring/configs/test_full.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring.configuration import Configuration +from cloudflare.types.magic_network_monitoring import Configuration base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py index ecd103ef4965..ab20ee89a267 100644 --- a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py +++ b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring.rules.advertisement import Advertisement +from cloudflare.types.magic_network_monitoring.rules import Advertisement base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/test_configs.py b/tests/api_resources/magic_network_monitoring/test_configs.py index ce63e10d9bb1..e675e6165bfa 100644 --- a/tests/api_resources/magic_network_monitoring/test_configs.py +++ b/tests/api_resources/magic_network_monitoring/test_configs.py @@ -9,7 +9,9 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_network_monitoring.configuration import Configuration +from cloudflare.types.magic_network_monitoring import ( + Configuration, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_network_monitoring/test_rules.py b/tests/api_resources/magic_network_monitoring/test_rules.py index 1ad3cebebfd5..fe556ed0c55a 100644 --- a/tests/api_resources/magic_network_monitoring/test_rules.py +++ b/tests/api_resources/magic_network_monitoring/test_rules.py @@ -10,7 +10,9 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.magic_network_monitoring.magic_network_monitoring_rule import MagicNetworkMonitoringRule +from cloudflare.types.magic_network_monitoring import ( + MagicNetworkMonitoringRule, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_acls.py b/tests/api_resources/magic_transit/sites/test_acls.py index 3b2f5c111db5..b9e83d9ab23e 100644 --- a/tests/api_resources/magic_transit/sites/test_acls.py +++ b/tests/api_resources/magic_transit/sites/test_acls.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.magic_transit.sites.acl import ACL +from cloudflare.types.magic_transit.sites import ACL base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_lans.py b/tests/api_resources/magic_transit/sites/test_lans.py index 05a0fde057df..54cfe328bef3 100644 --- a/tests/api_resources/magic_transit/sites/test_lans.py +++ b/tests/api_resources/magic_transit/sites/test_lans.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.magic_transit.sites.lan import LAN -from cloudflare.types.magic_transit.sites.lan_create_response import LANCreateResponse +from cloudflare.types.magic_transit.sites import ( + LAN, + LANCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/sites/test_wans.py b/tests/api_resources/magic_transit/sites/test_wans.py index 8dc7f5a7901d..8169c914b451 100644 --- a/tests/api_resources/magic_transit/sites/test_wans.py +++ b/tests/api_resources/magic_transit/sites/test_wans.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.magic_transit.sites.wan import WAN -from cloudflare.types.magic_transit.sites.wan_create_response import WANCreateResponse +from cloudflare.types.magic_transit.sites import ( + WAN, + WANCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_cf_interconnects.py b/tests/api_resources/magic_transit/test_cf_interconnects.py index 0bc70ae2298e..1c04dbbae9f9 100644 --- a/tests/api_resources/magic_transit/test_cf_interconnects.py +++ b/tests/api_resources/magic_transit/test_cf_interconnects.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.cf_interconnect_get_response import CfInterconnectGetResponse -from cloudflare.types.magic_transit.cf_interconnect_list_response import CfInterconnectListResponse -from cloudflare.types.magic_transit.cf_interconnect_update_response import CfInterconnectUpdateResponse +from cloudflare.types.magic_transit import ( + CfInterconnectGetResponse, + CfInterconnectListResponse, + CfInterconnectUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_gre_tunnels.py b/tests/api_resources/magic_transit/test_gre_tunnels.py index 7420d9cef8c5..31d91baf984f 100644 --- a/tests/api_resources/magic_transit/test_gre_tunnels.py +++ b/tests/api_resources/magic_transit/test_gre_tunnels.py @@ -9,11 +9,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.gre_tunnel_get_response import GRETunnelGetResponse -from cloudflare.types.magic_transit.gre_tunnel_list_response import GRETunnelListResponse -from cloudflare.types.magic_transit.gre_tunnel_create_response import GRETunnelCreateResponse -from cloudflare.types.magic_transit.gre_tunnel_delete_response import GRETunnelDeleteResponse -from cloudflare.types.magic_transit.gre_tunnel_update_response import GRETunnelUpdateResponse +from cloudflare.types.magic_transit import ( + GRETunnelGetResponse, + GRETunnelListResponse, + GRETunnelCreateResponse, + GRETunnelDeleteResponse, + GRETunnelUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_ipsec_tunnels.py b/tests/api_resources/magic_transit/test_ipsec_tunnels.py index 38241ce8d993..d2a44b460b4e 100644 --- a/tests/api_resources/magic_transit/test_ipsec_tunnels.py +++ b/tests/api_resources/magic_transit/test_ipsec_tunnels.py @@ -9,12 +9,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.ipsec_tunnel_get_response import IPSECTunnelGetResponse -from cloudflare.types.magic_transit.ipsec_tunnel_list_response import IPSECTunnelListResponse -from cloudflare.types.magic_transit.ipsec_tunnel_create_response import IPSECTunnelCreateResponse -from cloudflare.types.magic_transit.ipsec_tunnel_delete_response import IPSECTunnelDeleteResponse -from cloudflare.types.magic_transit.ipsec_tunnel_update_response import IPSECTunnelUpdateResponse -from cloudflare.types.magic_transit.ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse +from cloudflare.types.magic_transit import ( + IPSECTunnelGetResponse, + IPSECTunnelListResponse, + IPSECTunnelCreateResponse, + IPSECTunnelDeleteResponse, + IPSECTunnelUpdateResponse, + IPSECTunnelPSKGenerateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_routes.py b/tests/api_resources/magic_transit/test_routes.py index 3f1367e9d59f..d7e8a391a8f0 100644 --- a/tests/api_resources/magic_transit/test_routes.py +++ b/tests/api_resources/magic_transit/test_routes.py @@ -9,12 +9,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.magic_transit.route_get_response import RouteGetResponse -from cloudflare.types.magic_transit.route_list_response import RouteListResponse -from cloudflare.types.magic_transit.route_empty_response import RouteEmptyResponse -from cloudflare.types.magic_transit.route_create_response import RouteCreateResponse -from cloudflare.types.magic_transit.route_delete_response import RouteDeleteResponse -from cloudflare.types.magic_transit.route_update_response import RouteUpdateResponse +from cloudflare.types.magic_transit import ( + RouteGetResponse, + RouteListResponse, + RouteEmptyResponse, + RouteCreateResponse, + RouteDeleteResponse, + RouteUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/magic_transit/test_sites.py b/tests/api_resources/magic_transit/test_sites.py index baa96657251d..f7d405fb2cef 100644 --- a/tests/api_resources/magic_transit/test_sites.py +++ b/tests/api_resources/magic_transit/test_sites.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.magic_transit.site import Site +from cloudflare.types.magic_transit import Site base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/mtls_certificates/test_associations.py b/tests/api_resources/mtls_certificates/test_associations.py index 68a4e5673933..a253daa651a9 100644 --- a/tests/api_resources/mtls_certificates/test_associations.py +++ b/tests/api_resources/mtls_certificates/test_associations.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.mtls_certificates.association_get_response import AssociationGetResponse +from cloudflare.types.mtls_certificates import AssociationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py b/tests/api_resources/origin_tls_client_auth/hostnames/test_certificates.py index 32e4e360ccb7..e75496db6474 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 @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull -from cloudflare.types.origin_tls_client_auth.hostnames.certificate_get_response import CertificateGetResponse -from cloudflare.types.origin_tls_client_auth.hostnames.certificate_create_response import CertificateCreateResponse -from cloudflare.types.origin_tls_client_auth.hostnames.certificate_delete_response import CertificateDeleteResponse +from cloudflare.types.origin_tls_client_auth import AuthenticatedOriginPull +from cloudflare.types.origin_tls_client_auth.hostnames import ( + CertificateGetResponse, + CertificateCreateResponse, + CertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/test_hostnames.py b/tests/api_resources/origin_tls_client_auth/test_hostnames.py index 6576aedf5136..a3247d848531 100644 --- a/tests/api_resources/origin_tls_client_auth/test_hostnames.py +++ b/tests/api_resources/origin_tls_client_auth/test_hostnames.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth.hostname_update_response import HostnameUpdateResponse -from cloudflare.types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull +from cloudflare.types.origin_tls_client_auth import ( + HostnameUpdateResponse, + AuthenticatedOriginPull, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/origin_tls_client_auth/test_settings.py b/tests/api_resources/origin_tls_client_auth/test_settings.py index 4c35bbd04271..009e48b2779d 100644 --- a/tests/api_resources/origin_tls_client_auth/test_settings.py +++ b/tests/api_resources/origin_tls_client_auth/test_settings.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_tls_client_auth.setting_get_response import SettingGetResponse -from cloudflare.types.origin_tls_client_auth.setting_update_response import SettingUpdateResponse +from cloudflare.types.origin_tls_client_auth import SettingGetResponse, SettingUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_connections.py b/tests/api_resources/page_shield/test_connections.py index 7af1088e528b..77edfc01969d 100644 --- a/tests/api_resources/page_shield/test_connections.py +++ b/tests/api_resources/page_shield/test_connections.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.page_shield.connection import Connection +from cloudflare.types.page_shield import Connection base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_policies.py b/tests/api_resources/page_shield/test_policies.py index c81f6dda008b..81f6297c0e0e 100644 --- a/tests/api_resources/page_shield/test_policies.py +++ b/tests/api_resources/page_shield/test_policies.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.page_shield.policy import Policy +from cloudflare.types.page_shield import Policy base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/page_shield/test_scripts.py b/tests/api_resources/page_shield/test_scripts.py index 04693a1aa4c0..50e23e6340de 100644 --- a/tests/api_resources/page_shield/test_scripts.py +++ b/tests/api_resources/page_shield/test_scripts.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.page_shield.script import Script -from cloudflare.types.page_shield.script_get_response import ScriptGetResponse +from cloudflare.types.page_shield import Script, ScriptGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pagerules/test_settings.py b/tests/api_resources/pagerules/test_settings.py index 6e5c917c33a8..983c7e2bd057 100644 --- a/tests/api_resources/pagerules/test_settings.py +++ b/tests/api_resources/pagerules/test_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pagerules.setting_list_response import SettingListResponse +from cloudflare.types.pagerules import SettingListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/deployments/history/test_logs.py b/tests/api_resources/pages/projects/deployments/history/test_logs.py index 229d9086dc69..7e59a77f9b24 100644 --- a/tests/api_resources/pages/projects/deployments/history/test_logs.py +++ b/tests/api_resources/pages/projects/deployments/history/test_logs.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pages.projects.deployments.history.log_get_response import LogGetResponse +from cloudflare.types.pages.projects.deployments.history import LogGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/test_deployments.py b/tests/api_resources/pages/projects/test_deployments.py index 1cf71ed0b0b4..f68617ea9fe7 100644 --- a/tests/api_resources/pages/projects/test_deployments.py +++ b/tests/api_resources/pages/projects/test_deployments.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.pages.deployment import Deployment +from cloudflare.types.pages import Deployment base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/projects/test_domains.py b/tests/api_resources/pages/projects/test_domains.py index 30cebab2a0e7..9aff4e673ee1 100644 --- a/tests/api_resources/pages/projects/test_domains.py +++ b/tests/api_resources/pages/projects/test_domains.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.pages.projects.domain_get_response import DomainGetResponse -from cloudflare.types.pages.projects.domain_edit_response import DomainEditResponse -from cloudflare.types.pages.projects.domain_create_response import DomainCreateResponse +from cloudflare.types.pages.projects import ( + DomainGetResponse, + DomainEditResponse, + DomainCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pages/test_projects.py b/tests/api_resources/pages/test_projects.py index 7d8f64520547..7089853a4f10 100644 --- a/tests/api_resources/pages/test_projects.py +++ b/tests/api_resources/pages/test_projects.py @@ -10,11 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.pages import Deployment -from cloudflare.types.pages.project import Project -from cloudflare.types.pages.deployment import Deployment -from cloudflare.types.pages.project_edit_response import ProjectEditResponse -from cloudflare.types.pages.project_create_response import ProjectCreateResponse +from cloudflare.types.pages import ( + Project, + Deployment, + ProjectEditResponse, + ProjectCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/pcaps/test_ownership.py b/tests/api_resources/pcaps/test_ownership.py index ea09f6d7e9b0..d3a4f2fad812 100644 --- a/tests/api_resources/pcaps/test_ownership.py +++ b/tests/api_resources/pcaps/test_ownership.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pcaps.ownership import Ownership -from cloudflare.types.pcaps.ownership_get_response import OwnershipGetResponse +from cloudflare.types.pcaps import Ownership, OwnershipGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/queues/test_consumers.py b/tests/api_resources/queues/test_consumers.py index e67677f4e3d5..744744cd9cfc 100644 --- a/tests/api_resources/queues/test_consumers.py +++ b/tests/api_resources/queues/test_consumers.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.queues.consumer_get_response import ConsumerGetResponse -from cloudflare.types.queues.consumer_create_response import ConsumerCreateResponse -from cloudflare.types.queues.consumer_delete_response import ConsumerDeleteResponse -from cloudflare.types.queues.consumer_update_response import ConsumerUpdateResponse +from cloudflare.types.queues import ( + ConsumerGetResponse, + ConsumerCreateResponse, + ConsumerDeleteResponse, + ConsumerUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/queues/test_messages.py b/tests/api_resources/queues/test_messages.py index e9d079c14c65..1e24941e1b85 100644 --- a/tests/api_resources/queues/test_messages.py +++ b/tests/api_resources/queues/test_messages.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.queues.message_ack_response import MessageAckResponse -from cloudflare.types.queues.message_pull_response import MessagePullResponse +from cloudflare.types.queues import MessageAckResponse, MessagePullResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/test_buckets.py b/tests/api_resources/r2/test_buckets.py index 865270428929..157f4be3fe63 100644 --- a/tests/api_resources/r2/test_buckets.py +++ b/tests/api_resources/r2/test_buckets.py @@ -9,8 +9,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.r2 import Bucket from cloudflare.pagination import SyncCursorPagination, AsyncCursorPagination -from cloudflare.types.r2.bucket import Bucket base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/r2/test_sippy.py b/tests/api_resources/r2/test_sippy.py index 28ea8a332f99..364859aae670 100644 --- a/tests/api_resources/r2/test_sippy.py +++ b/tests/api_resources/r2/test_sippy.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.r2.sippy import Sippy -from cloudflare.types.r2.sippy_delete_response import SippyDeleteResponse +from cloudflare.types.r2 import Sippy, SippyDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/annotations/test_outages.py b/tests/api_resources/radar/annotations/test_outages.py index 6e01d1086b18..98c8d58fec8e 100644 --- a/tests/api_resources/radar/annotations/test_outages.py +++ b/tests/api_resources/radar/annotations/test_outages.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.annotations.outage_get_response import OutageGetResponse -from cloudflare.types.radar.annotations.outage_locations_response import OutageLocationsResponse +from cloudflare.types.radar.annotations import ( + OutageGetResponse, + OutageLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_summary.py b/tests/api_resources/radar/as112/test_summary.py index 0f5c33d4ddaf..1f6f7128b016 100644 --- a/tests/api_resources/radar/as112/test_summary.py +++ b/tests/api_resources/radar/as112/test_summary.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.as112.summary_edns_response import SummaryEdnsResponse -from cloudflare.types.radar.as112.summary_dnssec_response import SummaryDNSSECResponse -from cloudflare.types.radar.as112.summary_protocol_response import SummaryProtocolResponse -from cloudflare.types.radar.as112.summary_ip_version_response import SummaryIPVersionResponse -from cloudflare.types.radar.as112.summary_query_type_response import SummaryQueryTypeResponse -from cloudflare.types.radar.as112.summary_response_codes_response import SummaryResponseCodesResponse +from cloudflare.types.radar.as112 import ( + SummaryEdnsResponse, + SummaryDNSSECResponse, + SummaryProtocolResponse, + SummaryIPVersionResponse, + SummaryQueryTypeResponse, + SummaryResponseCodesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_timeseries_groups.py b/tests/api_resources/radar/as112/test_timeseries_groups.py index 1d58cb778069..ed291ceed6b8 100644 --- a/tests/api_resources/radar/as112/test_timeseries_groups.py +++ b/tests/api_resources/radar/as112/test_timeseries_groups.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.as112.timeseries_group_edns_response import TimeseriesGroupEdnsResponse -from cloudflare.types.radar.as112.timeseries_group_dnssec_response import TimeseriesGroupDNSSECResponse -from cloudflare.types.radar.as112.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse -from cloudflare.types.radar.as112.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse -from cloudflare.types.radar.as112.timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse -from cloudflare.types.radar.as112.timeseries_group_response_codes_response import TimeseriesGroupResponseCodesResponse +from cloudflare.types.radar.as112 import ( + TimeseriesGroupEdnsResponse, + TimeseriesGroupDNSSECResponse, + TimeseriesGroupProtocolResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupQueryTypeResponse, + TimeseriesGroupResponseCodesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/as112/test_top.py b/tests/api_resources/radar/as112/test_top.py index 8b96e7e9fbe6..9dcda9b638d7 100644 --- a/tests/api_resources/radar/as112/test_top.py +++ b/tests/api_resources/radar/as112/test_top.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.as112.top_edns_response import TopEdnsResponse -from cloudflare.types.radar.as112.top_dnssec_response import TopDNSSECResponse -from cloudflare.types.radar.as112.top_locations_response import TopLocationsResponse -from cloudflare.types.radar.as112.top_ip_version_response import TopIPVersionResponse +from cloudflare.types.radar.as112 import ( + TopEdnsResponse, + TopDNSSECResponse, + TopIPVersionResponse, + TopLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_summary.py b/tests/api_resources/radar/attacks/layer3/test_summary.py index 82a2922ffb27..fa77a34344fa 100644 --- a/tests/api_resources/radar/attacks/layer3/test_summary.py +++ b/tests/api_resources/radar/attacks/layer3/test_summary.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer3.summary_get_response import SummaryGetResponse -from cloudflare.types.radar.attacks.layer3.summary_vector_response import SummaryVectorResponse -from cloudflare.types.radar.attacks.layer3.summary_bitrate_response import SummaryBitrateResponse -from cloudflare.types.radar.attacks.layer3.summary_duration_response import SummaryDurationResponse -from cloudflare.types.radar.attacks.layer3.summary_protocol_response import SummaryProtocolResponse -from cloudflare.types.radar.attacks.layer3.summary_ip_version_response import SummaryIPVersionResponse +from cloudflare.types.radar.attacks.layer3 import ( + SummaryGetResponse, + SummaryVectorResponse, + SummaryBitrateResponse, + SummaryDurationResponse, + SummaryProtocolResponse, + SummaryIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py index 02d5501344c7..67738ff175e8 100644 --- a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py @@ -10,14 +10,16 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer3.timeseries_group_get_response import TimeseriesGroupGetResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_vector_response import TimeseriesGroupVectorResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_bitrate_response import TimeseriesGroupBitrateResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_duration_response import TimeseriesGroupDurationResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_industry_response import TimeseriesGroupIndustryResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_protocol_response import TimeseriesGroupProtocolResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse -from cloudflare.types.radar.attacks.layer3.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse +from cloudflare.types.radar.attacks.layer3 import ( + TimeseriesGroupGetResponse, + TimeseriesGroupVectorResponse, + TimeseriesGroupBitrateResponse, + TimeseriesGroupDurationResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupProtocolResponse, + TimeseriesGroupVerticalResponse, + TimeseriesGroupIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/test_top.py b/tests/api_resources/radar/attacks/layer3/test_top.py index d1af74044c41..d48011bdd671 100644 --- a/tests/api_resources/radar/attacks/layer3/test_top.py +++ b/tests/api_resources/radar/attacks/layer3/test_top.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer3.top_attacks_response import TopAttacksResponse -from cloudflare.types.radar.attacks.layer3.top_industry_response import TopIndustryResponse -from cloudflare.types.radar.attacks.layer3.top_vertical_response import TopVerticalResponse +from cloudflare.types.radar.attacks.layer3 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer3/top/test_locations.py b/tests/api_resources/radar/attacks/layer3/top/test_locations.py index 0b3c0f450b9d..194c19f4bcd1 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_locations.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer3.top.location_origin_response import LocationOriginResponse -from cloudflare.types.radar.attacks.layer3.top.location_target_response import LocationTargetResponse +from cloudflare.types.radar.attacks.layer3.top import ( + LocationOriginResponse, + LocationTargetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/test_summary.py b/tests/api_resources/radar/attacks/layer7/test_summary.py index 04f966d65f70..387fa63e6634 100644 --- a/tests/api_resources/radar/attacks/layer7/test_summary.py +++ b/tests/api_resources/radar/attacks/layer7/test_summary.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7.summary_get_response import SummaryGetResponse -from cloudflare.types.radar.attacks.layer7.summary_ip_version_response import SummaryIPVersionResponse -from cloudflare.types.radar.attacks.layer7.summary_http_method_response import SummaryHTTPMethodResponse -from cloudflare.types.radar.attacks.layer7.summary_http_version_response import SummaryHTTPVersionResponse -from cloudflare.types.radar.attacks.layer7.summary_managed_rules_response import SummaryManagedRulesResponse -from cloudflare.types.radar.attacks.layer7.summary_mitigation_product_response import SummaryMitigationProductResponse +from cloudflare.types.radar.attacks.layer7 import ( + SummaryGetResponse, + SummaryIPVersionResponse, + SummaryHTTPMethodResponse, + SummaryHTTPVersionResponse, + SummaryManagedRulesResponse, + SummaryMitigationProductResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py index 6ddbc6892552..e019a3d76fd7 100644 --- a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py @@ -10,20 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7.timeseries_group_get_response import TimeseriesGroupGetResponse -from cloudflare.types.radar.attacks.layer7.timeseries_group_industry_response import TimeseriesGroupIndustryResponse -from cloudflare.types.radar.attacks.layer7.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse -from cloudflare.types.radar.attacks.layer7.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse -from cloudflare.types.radar.attacks.layer7.timeseries_group_http_method_response import ( +from cloudflare.types.radar.attacks.layer7 import ( + TimeseriesGroupGetResponse, + TimeseriesGroupIndustryResponse, + TimeseriesGroupVerticalResponse, + TimeseriesGroupIPVersionResponse, TimeseriesGroupHTTPMethodResponse, -) -from cloudflare.types.radar.attacks.layer7.timeseries_group_http_version_response import ( TimeseriesGroupHTTPVersionResponse, -) -from cloudflare.types.radar.attacks.layer7.timeseries_group_managed_rules_response import ( TimeseriesGroupManagedRulesResponse, -) -from cloudflare.types.radar.attacks.layer7.timeseries_group_mitigation_product_response import ( TimeseriesGroupMitigationProductResponse, ) diff --git a/tests/api_resources/radar/attacks/layer7/test_top.py b/tests/api_resources/radar/attacks/layer7/test_top.py index e42d7e3911e5..6f0a9adb0a91 100644 --- a/tests/api_resources/radar/attacks/layer7/test_top.py +++ b/tests/api_resources/radar/attacks/layer7/test_top.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7.top_attacks_response import TopAttacksResponse -from cloudflare.types.radar.attacks.layer7.top_industry_response import TopIndustryResponse -from cloudflare.types.radar.attacks.layer7.top_vertical_response import TopVerticalResponse +from cloudflare.types.radar.attacks.layer7 import ( + TopAttacksResponse, + TopIndustryResponse, + TopVerticalResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/top/test_ases.py b/tests/api_resources/radar/attacks/layer7/top/test_ases.py index 837a20eb43a1..cf12547e6158 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_ases.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_ases.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7.top.ase_origin_response import AseOriginResponse +from cloudflare.types.radar.attacks.layer7.top import AseOriginResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/layer7/top/test_locations.py b/tests/api_resources/radar/attacks/layer7/top/test_locations.py index 8fc1f872afec..0752c790d232 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_locations.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7.top.location_origin_response import LocationOriginResponse -from cloudflare.types.radar.attacks.layer7.top.location_target_response import LocationTargetResponse +from cloudflare.types.radar.attacks.layer7.top import ( + LocationOriginResponse, + LocationTargetResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/test_layer3.py b/tests/api_resources/radar/attacks/test_layer3.py index 046f8f55624d..cc21487946f9 100644 --- a/tests/api_resources/radar/attacks/test_layer3.py +++ b/tests/api_resources/radar/attacks/test_layer3.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer3_timeseries_response import Layer3TimeseriesResponse +from cloudflare.types.radar.attacks import Layer3TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/attacks/test_layer7.py b/tests/api_resources/radar/attacks/test_layer7.py index 8c9bb815231d..45528ada5ace 100644 --- a/tests/api_resources/radar/attacks/test_layer7.py +++ b/tests/api_resources/radar/attacks/test_layer7.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.attacks.layer7_timeseries_response import Layer7TimeseriesResponse +from cloudflare.types.radar.attacks import Layer7TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/hijacks/test_events.py b/tests/api_resources/radar/bgp/hijacks/test_events.py index ff34479ed225..e12b3caa09f6 100644 --- a/tests/api_resources/radar/bgp/hijacks/test_events.py +++ b/tests/api_resources/radar/bgp/hijacks/test_events.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.radar.bgp.hijacks.event_list_response import EventListResponse +from cloudflare.types.radar.bgp.hijacks import EventListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/leaks/test_events.py b/tests/api_resources/radar/bgp/leaks/test_events.py index 5a98a3b965ff..a8eef2dfaf3b 100644 --- a/tests/api_resources/radar/bgp/leaks/test_events.py +++ b/tests/api_resources/radar/bgp/leaks/test_events.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.radar.bgp.leaks.event_list_response import EventListResponse +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_routes.py b/tests/api_resources/radar/bgp/test_routes.py index 73f6f629fe72..9b9ca69370b9 100644 --- a/tests/api_resources/radar/bgp/test_routes.py +++ b/tests/api_resources/radar/bgp/test_routes.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.bgp.route_moas_response import RouteMoasResponse -from cloudflare.types.radar.bgp.route_stats_response import RouteStatsResponse -from cloudflare.types.radar.bgp.route_pfx2as_response import RoutePfx2asResponse -from cloudflare.types.radar.bgp.route_timeseries_response import RouteTimeseriesResponse +from cloudflare.types.radar.bgp import ( + RouteMoasResponse, + RouteStatsResponse, + RoutePfx2asResponse, + RouteTimeseriesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/test_top.py b/tests/api_resources/radar/bgp/test_top.py index 8a7e33da87e7..7f8f9d2cccda 100644 --- a/tests/api_resources/radar/bgp/test_top.py +++ b/tests/api_resources/radar/bgp/test_top.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.bgp.top_prefixes_response import TopPrefixesResponse +from cloudflare.types.radar.bgp import TopPrefixesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/bgp/top/test_ases.py b/tests/api_resources/radar/bgp/top/test_ases.py index 3ed5a561ce7e..515a06046a6f 100644 --- a/tests/api_resources/radar/bgp/top/test_ases.py +++ b/tests/api_resources/radar/bgp/top/test_ases.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.bgp.top.ase_get_response import AseGetResponse -from cloudflare.types.radar.bgp.top.ase_prefixes_response import AsePrefixesResponse +from cloudflare.types.radar.bgp.top import AseGetResponse, AsePrefixesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/dns/test_top.py b/tests/api_resources/radar/dns/test_top.py index ebdc9f1f3c5b..e9e4494a4b1b 100644 --- a/tests/api_resources/radar/dns/test_top.py +++ b/tests/api_resources/radar/dns/test_top.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.dns.top_ases_response import TopAsesResponse -from cloudflare.types.radar.dns.top_locations_response import TopLocationsResponse +from cloudflare.types.radar.dns import TopAsesResponse, TopLocationsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/routing/test_summary.py b/tests/api_resources/radar/email/routing/test_summary.py index f308e6ebe359..f44308cbcb4d 100644 --- a/tests/api_resources/radar/email/routing/test_summary.py +++ b/tests/api_resources/radar/email/routing/test_summary.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.routing.summary_arc_response import SummaryARCResponse -from cloudflare.types.radar.email.routing.summary_spf_response import SummarySPFResponse -from cloudflare.types.radar.email.routing.summary_dkim_response import SummaryDKIMResponse -from cloudflare.types.radar.email.routing.summary_dmarc_response import SummaryDMARCResponse -from cloudflare.types.radar.email.routing.summary_encrypted_response import SummaryEncryptedResponse -from cloudflare.types.radar.email.routing.summary_ip_version_response import SummaryIPVersionResponse +from cloudflare.types.radar.email.routing import ( + SummaryARCResponse, + SummarySPFResponse, + SummaryDKIMResponse, + SummaryDMARCResponse, + SummaryEncryptedResponse, + SummaryIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/routing/test_timeseries_groups.py b/tests/api_resources/radar/email/routing/test_timeseries_groups.py index 87384aa42a4f..cc4f249e4c33 100644 --- a/tests/api_resources/radar/email/routing/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/routing/test_timeseries_groups.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.routing.timeseries_group_arc_response import TimeseriesGroupARCResponse -from cloudflare.types.radar.email.routing.timeseries_group_spf_response import TimeseriesGroupSPFResponse -from cloudflare.types.radar.email.routing.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse -from cloudflare.types.radar.email.routing.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse -from cloudflare.types.radar.email.routing.timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse -from cloudflare.types.radar.email.routing.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse +from cloudflare.types.radar.email.routing import ( + TimeseriesGroupARCResponse, + TimeseriesGroupSPFResponse, + TimeseriesGroupDKIMResponse, + TimeseriesGroupDMARCResponse, + TimeseriesGroupEncryptedResponse, + TimeseriesGroupIPVersionResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/test_summary.py b/tests/api_resources/radar/email/security/test_summary.py index 184499e541f0..e3df2f5670c4 100644 --- a/tests/api_resources/radar/email/security/test_summary.py +++ b/tests/api_resources/radar/email/security/test_summary.py @@ -10,15 +10,17 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.summary_arc_response import SummaryARCResponse -from cloudflare.types.radar.email.security.summary_spf_response import SummarySPFResponse -from cloudflare.types.radar.email.security.summary_dkim_response import SummaryDKIMResponse -from cloudflare.types.radar.email.security.summary_spam_response import SummarySpamResponse -from cloudflare.types.radar.email.security.summary_dmarc_response import SummaryDMARCResponse -from cloudflare.types.radar.email.security.summary_spoof_response import SummarySpoofResponse -from cloudflare.types.radar.email.security.summary_malicious_response import SummaryMaliciousResponse -from cloudflare.types.radar.email.security.summary_tls_version_response import SummaryTLSVersionResponse -from cloudflare.types.radar.email.security.summary_threat_category_response import SummaryThreatCategoryResponse +from cloudflare.types.radar.email.security import ( + SummaryARCResponse, + SummarySPFResponse, + SummaryDKIMResponse, + SummarySpamResponse, + SummaryDMARCResponse, + SummarySpoofResponse, + SummaryMaliciousResponse, + SummaryTLSVersionResponse, + SummaryThreatCategoryResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/test_timeseries_groups.py b/tests/api_resources/radar/email/security/test_timeseries_groups.py index ddb4b23599e4..4af4404daa97 100644 --- a/tests/api_resources/radar/email/security/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/security/test_timeseries_groups.py @@ -10,17 +10,15 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.timeseries_group_arc_response import TimeseriesGroupARCResponse -from cloudflare.types.radar.email.security.timeseries_group_spf_response import TimeseriesGroupSPFResponse -from cloudflare.types.radar.email.security.timeseries_group_dkim_response import TimeseriesGroupDKIMResponse -from cloudflare.types.radar.email.security.timeseries_group_spam_response import TimeseriesGroupSpamResponse -from cloudflare.types.radar.email.security.timeseries_group_dmarc_response import TimeseriesGroupDMARCResponse -from cloudflare.types.radar.email.security.timeseries_group_spoof_response import TimeseriesGroupSpoofResponse -from cloudflare.types.radar.email.security.timeseries_group_malicious_response import TimeseriesGroupMaliciousResponse -from cloudflare.types.radar.email.security.timeseries_group_tls_version_response import ( +from cloudflare.types.radar.email.security import ( + TimeseriesGroupARCResponse, + TimeseriesGroupSPFResponse, + TimeseriesGroupDKIMResponse, + TimeseriesGroupSpamResponse, + TimeseriesGroupDMARCResponse, + TimeseriesGroupSpoofResponse, + TimeseriesGroupMaliciousResponse, TimeseriesGroupTLSVersionResponse, -) -from cloudflare.types.radar.email.security.timeseries_group_threat_category_response import ( TimeseriesGroupThreatCategoryResponse, ) diff --git a/tests/api_resources/radar/email/security/top/test_tlds.py b/tests/api_resources/radar/email/security/top/test_tlds.py index def47cffc7b5..218f134cedf8 100644 --- a/tests/api_resources/radar/email/security/top/test_tlds.py +++ b/tests/api_resources/radar/email/security/top/test_tlds.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.top.tld_get_response import TldGetResponse +from cloudflare.types.radar.email.security.top import TldGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py index 705b7b82018c..22bf1dfcb8fe 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.top.tlds.malicious_get_response import MaliciousGetResponse +from cloudflare.types.radar.email.security.top.tlds import MaliciousGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spam.py b/tests/api_resources/radar/email/security/top/tlds/test_spam.py index 0a98e2f14edb..62b1b9692396 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spam.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spam.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.top.tlds.spam_get_response import SpamGetResponse +from cloudflare.types.radar.email.security.top.tlds import SpamGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py index 15a09dc7c6b2..185a43063975 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.email.security.top.tlds.spoof_get_response import SpoofGetResponse +from cloudflare.types.radar.email.security.top.tlds import SpoofGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/entities/test_asns.py b/tests/api_resources/radar/entities/test_asns.py index 958e4fb3ea63..8273d3fc87e9 100644 --- a/tests/api_resources/radar/entities/test_asns.py +++ b/tests/api_resources/radar/entities/test_asns.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.entities.asn_ip_response import ASNIPResponse -from cloudflare.types.radar.entities.asn_get_response import ASNGetResponse -from cloudflare.types.radar.entities.asn_rel_response import ASNRelResponse -from cloudflare.types.radar.entities.asn_list_response import ASNListResponse +from cloudflare.types.radar.entities import ( + ASNIPResponse, + ASNGetResponse, + ASNRelResponse, + ASNListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/entities/test_locations.py b/tests/api_resources/radar/entities/test_locations.py index 36ae62247907..59e8a6ff9158 100644 --- a/tests/api_resources/radar/entities/test_locations.py +++ b/tests/api_resources/radar/entities/test_locations.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.entities.location_get_response import LocationGetResponse -from cloudflare.types.radar.entities.location_list_response import LocationListResponse +from cloudflare.types.radar.entities import ( + LocationGetResponse, + LocationListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_bot_class.py b/tests/api_resources/radar/http/ases/test_bot_class.py index a804ae8a9596..177775b9dc48 100644 --- a/tests/api_resources/radar/http/ases/test_bot_class.py +++ b/tests/api_resources/radar/http/ases/test_bot_class.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.bot_class_get_response import BotClassGetResponse +from cloudflare.types.radar.http.ases import BotClassGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_device_type.py b/tests/api_resources/radar/http/ases/test_device_type.py index 391e750c55e6..15dde7829736 100644 --- a/tests/api_resources/radar/http/ases/test_device_type.py +++ b/tests/api_resources/radar/http/ases/test_device_type.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.device_type_get_response import DeviceTypeGetResponse +from cloudflare.types.radar.http.ases import DeviceTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_http_method.py b/tests/api_resources/radar/http/ases/test_http_method.py index 03efb0c4ff90..4ad2abaf200c 100644 --- a/tests/api_resources/radar/http/ases/test_http_method.py +++ b/tests/api_resources/radar/http/ases/test_http_method.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.http_method_get_response import HTTPMethodGetResponse +from cloudflare.types.radar.http.ases import HTTPMethodGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_http_protocol.py b/tests/api_resources/radar/http/ases/test_http_protocol.py index 16d31c48ba61..91b9272418a4 100644 --- a/tests/api_resources/radar/http/ases/test_http_protocol.py +++ b/tests/api_resources/radar/http/ases/test_http_protocol.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.http_protocol_get_response import HTTPProtocolGetResponse +from cloudflare.types.radar.http.ases import HTTPProtocolGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_ip_version.py b/tests/api_resources/radar/http/ases/test_ip_version.py index 395fc8f46685..6926a2d80a99 100644 --- a/tests/api_resources/radar/http/ases/test_ip_version.py +++ b/tests/api_resources/radar/http/ases/test_ip_version.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.ip_version_get_response import IPVersionGetResponse +from cloudflare.types.radar.http.ases import IPVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_os.py b/tests/api_resources/radar/http/ases/test_os.py index 57df70a027a6..aee0b72ed62f 100644 --- a/tests/api_resources/radar/http/ases/test_os.py +++ b/tests/api_resources/radar/http/ases/test_os.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.os_get_response import OSGetResponse +from cloudflare.types.radar.http.ases import OSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/ases/test_tls_version.py b/tests/api_resources/radar/http/ases/test_tls_version.py index 18b2a4677758..1d6e229862d1 100644 --- a/tests/api_resources/radar/http/ases/test_tls_version.py +++ b/tests/api_resources/radar/http/ases/test_tls_version.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ases.tls_version_get_response import TLSVersionGetResponse +from cloudflare.types.radar.http.ases import TLSVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_bot_class.py b/tests/api_resources/radar/http/locations/test_bot_class.py index 2e0daafb45a8..2494f445a5bb 100644 --- a/tests/api_resources/radar/http/locations/test_bot_class.py +++ b/tests/api_resources/radar/http/locations/test_bot_class.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.bot_class_get_response import BotClassGetResponse +from cloudflare.types.radar.http.locations import BotClassGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_device_type.py b/tests/api_resources/radar/http/locations/test_device_type.py index 412200f90b45..30431de0cd88 100644 --- a/tests/api_resources/radar/http/locations/test_device_type.py +++ b/tests/api_resources/radar/http/locations/test_device_type.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.device_type_get_response import DeviceTypeGetResponse +from cloudflare.types.radar.http.locations import DeviceTypeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_http_method.py b/tests/api_resources/radar/http/locations/test_http_method.py index c657fceb2442..6a78bd7867ac 100644 --- a/tests/api_resources/radar/http/locations/test_http_method.py +++ b/tests/api_resources/radar/http/locations/test_http_method.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.http_method_get_response import HTTPMethodGetResponse +from cloudflare.types.radar.http.locations import HTTPMethodGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_http_protocol.py b/tests/api_resources/radar/http/locations/test_http_protocol.py index 268a2cdfc18a..6dbb5bf0b0ac 100644 --- a/tests/api_resources/radar/http/locations/test_http_protocol.py +++ b/tests/api_resources/radar/http/locations/test_http_protocol.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.http_protocol_get_response import HTTPProtocolGetResponse +from cloudflare.types.radar.http.locations import HTTPProtocolGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_ip_version.py b/tests/api_resources/radar/http/locations/test_ip_version.py index 19995d31358d..0a01d8af6df7 100644 --- a/tests/api_resources/radar/http/locations/test_ip_version.py +++ b/tests/api_resources/radar/http/locations/test_ip_version.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.ip_version_get_response import IPVersionGetResponse +from cloudflare.types.radar.http.locations import IPVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_os.py b/tests/api_resources/radar/http/locations/test_os.py index 2b42985d9f18..a2975b8b9a34 100644 --- a/tests/api_resources/radar/http/locations/test_os.py +++ b/tests/api_resources/radar/http/locations/test_os.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.os_get_response import OSGetResponse +from cloudflare.types.radar.http.locations import OSGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/locations/test_tls_version.py b/tests/api_resources/radar/http/locations/test_tls_version.py index 535fc2b26d0e..e504f1110c1d 100644 --- a/tests/api_resources/radar/http/locations/test_tls_version.py +++ b/tests/api_resources/radar/http/locations/test_tls_version.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.locations.tls_version_get_response import TLSVersionGetResponse +from cloudflare.types.radar.http.locations import TLSVersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_ases.py b/tests/api_resources/radar/http/test_ases.py index 51b99a48a50e..650376b1d3dd 100644 --- a/tests/api_resources/radar/http/test_ases.py +++ b/tests/api_resources/radar/http/test_ases.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.ase_get_response import AseGetResponse +from cloudflare.types.radar.http import AseGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_locations.py b/tests/api_resources/radar/http/test_locations.py index 32c696738f80..f0dd6fbeaa75 100644 --- a/tests/api_resources/radar/http/test_locations.py +++ b/tests/api_resources/radar/http/test_locations.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.location_get_response import LocationGetResponse +from cloudflare.types.radar.http import LocationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_summary.py b/tests/api_resources/radar/http/test_summary.py index ff51e8f27a1e..3b06744b0a92 100644 --- a/tests/api_resources/radar/http/test_summary.py +++ b/tests/api_resources/radar/http/test_summary.py @@ -10,13 +10,15 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.summary_os_response import SummaryOSResponse -from cloudflare.types.radar.http.summary_bot_class_response import SummaryBotClassResponse -from cloudflare.types.radar.http.summary_ip_version_response import SummaryIPVersionResponse -from cloudflare.types.radar.http.summary_device_type_response import SummaryDeviceTypeResponse -from cloudflare.types.radar.http.summary_tls_version_response import SummaryTLSVersionResponse -from cloudflare.types.radar.http.summary_http_version_response import SummaryHTTPVersionResponse -from cloudflare.types.radar.http.summary_http_protocol_response import SummaryHTTPProtocolResponse +from cloudflare.types.radar.http import ( + SummaryOSResponse, + SummaryBotClassResponse, + SummaryIPVersionResponse, + SummaryDeviceTypeResponse, + SummaryTLSVersionResponse, + SummaryHTTPVersionResponse, + SummaryHTTPProtocolResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_timeseries_groups.py b/tests/api_resources/radar/http/test_timeseries_groups.py index eeb307b56ec4..cb362d3ff23e 100644 --- a/tests/api_resources/radar/http/test_timeseries_groups.py +++ b/tests/api_resources/radar/http/test_timeseries_groups.py @@ -10,15 +10,17 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.timeseries_group_os_response import TimeseriesGroupOSResponse -from cloudflare.types.radar.http.timeseries_group_browser_response import TimeseriesGroupBrowserResponse -from cloudflare.types.radar.http.timeseries_group_bot_class_response import TimeseriesGroupBotClassResponse -from cloudflare.types.radar.http.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse -from cloudflare.types.radar.http.timeseries_group_device_type_response import TimeseriesGroupDeviceTypeResponse -from cloudflare.types.radar.http.timeseries_group_tls_version_response import TimeseriesGroupTLSVersionResponse -from cloudflare.types.radar.http.timeseries_group_http_version_response import TimeseriesGroupHTTPVersionResponse -from cloudflare.types.radar.http.timeseries_group_http_protocol_response import TimeseriesGroupHTTPProtocolResponse -from cloudflare.types.radar.http.timeseries_group_browser_family_response import TimeseriesGroupBrowserFamilyResponse +from cloudflare.types.radar.http import ( + TimeseriesGroupOSResponse, + TimeseriesGroupBrowserResponse, + TimeseriesGroupBotClassResponse, + TimeseriesGroupIPVersionResponse, + TimeseriesGroupDeviceTypeResponse, + TimeseriesGroupTLSVersionResponse, + TimeseriesGroupHTTPVersionResponse, + TimeseriesGroupHTTPProtocolResponse, + TimeseriesGroupBrowserFamilyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/http/test_top.py b/tests/api_resources/radar/http/test_top.py index 3b356cc5326a..6f5d3213d998 100644 --- a/tests/api_resources/radar/http/test_top.py +++ b/tests/api_resources/radar/http/test_top.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.http.top_browsers_response import TopBrowsersResponse -from cloudflare.types.radar.http.top_browser_families_response import TopBrowserFamiliesResponse +from cloudflare.types.radar.http import ( + TopBrowsersResponse, + TopBrowserFamiliesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/netflows/test_top.py b/tests/api_resources/radar/netflows/test_top.py index a04766092225..8535abc74656 100644 --- a/tests/api_resources/radar/netflows/test_top.py +++ b/tests/api_resources/radar/netflows/test_top.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.netflows.top_ases_response import TopAsesResponse -from cloudflare.types.radar.netflows.top_locations_response import TopLocationsResponse +from cloudflare.types.radar.netflows import TopAsesResponse, TopLocationsResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/speed/test_top.py b/tests/api_resources/radar/quality/speed/test_top.py index ed60dd3d1257..27ff511eecb6 100644 --- a/tests/api_resources/radar/quality/speed/test_top.py +++ b/tests/api_resources/radar/quality/speed/test_top.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.quality.speed.top_ases_response import TopAsesResponse -from cloudflare.types.radar.quality.speed.top_locations_response import TopLocationsResponse +from cloudflare.types.radar.quality.speed import ( + TopAsesResponse, + TopLocationsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/test_iqi.py b/tests/api_resources/radar/quality/test_iqi.py index dc22a1944d56..06a57e35778a 100644 --- a/tests/api_resources/radar/quality/test_iqi.py +++ b/tests/api_resources/radar/quality/test_iqi.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.quality.iqi_summary_response import IQISummaryResponse -from cloudflare.types.radar.quality.iqi_timeseries_groups_response import IQITimeseriesGroupsResponse +from cloudflare.types.radar.quality import ( + IQISummaryResponse, + IQITimeseriesGroupsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/quality/test_speed.py b/tests/api_resources/radar/quality/test_speed.py index 3019b6d3a8b1..00683ae6c18f 100644 --- a/tests/api_resources/radar/quality/test_speed.py +++ b/tests/api_resources/radar/quality/test_speed.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.quality.speed_summary_response import SpeedSummaryResponse -from cloudflare.types.radar.quality.speed_histogram_response import SpeedHistogramResponse +from cloudflare.types.radar.quality import ( + SpeedSummaryResponse, + SpeedHistogramResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/ranking/test_domain.py b/tests/api_resources/radar/ranking/test_domain.py index cbaa37decfde..44269df75ae5 100644 --- a/tests/api_resources/radar/ranking/test_domain.py +++ b/tests/api_resources/radar/ranking/test_domain.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.ranking.domain_get_response import DomainGetResponse +from cloudflare.types.radar.ranking import DomainGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_as112.py b/tests/api_resources/radar/test_as112.py index 47ee30050e57..a6dde128ac61 100644 --- a/tests/api_resources/radar/test_as112.py +++ b/tests/api_resources/radar/test_as112.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.as112_timeseries_response import AS112TimeseriesResponse +from cloudflare.types.radar import AS112TimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_bgp.py b/tests/api_resources/radar/test_bgp.py index c86c2e4db70f..ab993f872e28 100644 --- a/tests/api_resources/radar/test_bgp.py +++ b/tests/api_resources/radar/test_bgp.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.bgp_timeseries_response import BGPTimeseriesResponse +from cloudflare.types.radar import BGPTimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_connection_tampering.py b/tests/api_resources/radar/test_connection_tampering.py index c91e8f1312bb..d36693462b81 100644 --- a/tests/api_resources/radar/test_connection_tampering.py +++ b/tests/api_resources/radar/test_connection_tampering.py @@ -10,8 +10,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.connection_tampering_summary_response import ConnectionTamperingSummaryResponse -from cloudflare.types.radar.connection_tampering_timeseries_groups_response import ( +from cloudflare.types.radar import ( + ConnectionTamperingSummaryResponse, ConnectionTamperingTimeseriesGroupsResponse, ) diff --git a/tests/api_resources/radar/test_datasets.py b/tests/api_resources/radar/test_datasets.py index 291fd3b8c9dc..006dca3cb20d 100644 --- a/tests/api_resources/radar/test_datasets.py +++ b/tests/api_resources/radar/test_datasets.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.dataset_list_response import DatasetListResponse -from cloudflare.types.radar.dataset_download_response import DatasetDownloadResponse +from cloudflare.types.radar import ( + DatasetListResponse, + DatasetDownloadResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_entities.py b/tests/api_resources/radar/test_entities.py index 656495e08a73..fc22e4c3f657 100644 --- a/tests/api_resources/radar/test_entities.py +++ b/tests/api_resources/radar/test_entities.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.entity_get_response import EntityGetResponse +from cloudflare.types.radar import EntityGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_netflows.py b/tests/api_resources/radar/test_netflows.py index fc8550d43b19..79002a4a227e 100644 --- a/tests/api_resources/radar/test_netflows.py +++ b/tests/api_resources/radar/test_netflows.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.netflow_timeseries_response import NetflowTimeseriesResponse +from cloudflare.types.radar import NetflowTimeseriesResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_ranking.py b/tests/api_resources/radar/test_ranking.py index a2fed566e61e..9aeac63890b8 100644 --- a/tests/api_resources/radar/test_ranking.py +++ b/tests/api_resources/radar/test_ranking.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.ranking_top_response import RankingTopResponse -from cloudflare.types.radar.ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse +from cloudflare.types.radar import ( + RankingTopResponse, + RankingTimeseriesGroupsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_search.py b/tests/api_resources/radar/test_search.py index 2a3270d07619..fbc22c27dff2 100644 --- a/tests/api_resources/radar/test_search.py +++ b/tests/api_resources/radar/test_search.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.radar.search_global_response import SearchGlobalResponse +from cloudflare.types.radar import SearchGlobalResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/test_traffic_anomalies.py b/tests/api_resources/radar/test_traffic_anomalies.py index e4b6ac48ed18..ab42d798d328 100644 --- a/tests/api_resources/radar/test_traffic_anomalies.py +++ b/tests/api_resources/radar/test_traffic_anomalies.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.traffic_anomaly_get_response import TrafficAnomalyGetResponse +from cloudflare.types.radar import TrafficAnomalyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/traffic_anomalies/test_locations.py b/tests/api_resources/radar/traffic_anomalies/test_locations.py index db7461986c4b..ba164303c0bd 100644 --- a/tests/api_resources/radar/traffic_anomalies/test_locations.py +++ b/tests/api_resources/radar/traffic_anomalies/test_locations.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.traffic_anomalies.location_get_response import LocationGetResponse +from cloudflare.types.radar.traffic_anomalies import LocationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/radar/verified_bots/test_top.py b/tests/api_resources/radar/verified_bots/test_top.py index 76b20f090c35..8ed74c070bd7 100644 --- a/tests/api_resources/radar/verified_bots/test_top.py +++ b/tests/api_resources/radar/verified_bots/test_top.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.radar.verified_bots.top_bots_response import TopBotsResponse -from cloudflare.types.radar.verified_bots.top_categories_response import TopCategoriesResponse +from cloudflare.types.radar.verified_bots import ( + TopBotsResponse, + TopCategoriesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/registrar/test_domains.py b/tests/api_resources/registrar/test_domains.py index a405f94ec25e..924582e2af1e 100644 --- a/tests/api_resources/registrar/test_domains.py +++ b/tests/api_resources/registrar/test_domains.py @@ -10,9 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.registrar.domain import Domain -from cloudflare.types.registrar.domain_get_response import DomainGetResponse -from cloudflare.types.registrar.domain_update_response import DomainUpdateResponse +from cloudflare.types.registrar import Domain, DomainGetResponse, DomainUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/request_tracers/test_traces.py b/tests/api_resources/request_tracers/test_traces.py index b62bb594f367..ebd56a1359ac 100644 --- a/tests/api_resources/request_tracers/test_traces.py +++ b/tests/api_resources/request_tracers/test_traces.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.request_tracers.trace_create_response import TraceCreateResponse +from cloudflare.types.request_tracers import TraceCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rules/lists/test_bulk_operations.py b/tests/api_resources/rules/lists/test_bulk_operations.py index c692c4c21a2b..afc1fac33f27 100644 --- a/tests/api_resources/rules/lists/test_bulk_operations.py +++ b/tests/api_resources/rules/lists/test_bulk_operations.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rules.lists.bulk_operation_get_response import BulkOperationGetResponse +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 95eca32547fd..0261d9d85205 100644 --- a/tests/api_resources/rules/lists/test_items.py +++ b/tests/api_resources/rules/lists/test_items.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncCursorPagination, AsyncCursorPagination -from cloudflare.types.rules.lists.item_get_response import ItemGetResponse -from cloudflare.types.rules.lists.item_create_response import ItemCreateResponse -from cloudflare.types.rules.lists.item_delete_response import ItemDeleteResponse -from cloudflare.types.rules.lists.item_update_response import ItemUpdateResponse +from cloudflare.types.rules.lists import ( + ItemGetResponse, + ItemCreateResponse, + ItemDeleteResponse, + ItemUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rules/test_lists.py b/tests/api_resources/rules/test_lists.py index 3c8c0681de9a..a3284737579d 100644 --- a/tests/api_resources/rules/test_lists.py +++ b/tests/api_resources/rules/test_lists.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.rules.lists_list import ListsList -from cloudflare.types.rules.list_delete_response import ListDeleteResponse +from cloudflare.types.rules import ListsList, ListDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/phases/test_versions.py b/tests/api_resources/rulesets/phases/test_versions.py index 39532fca0a3b..c83a1104f2d6 100644 --- a/tests/api_resources/rulesets/phases/test_versions.py +++ b/tests/api_resources/rulesets/phases/test_versions.py @@ -10,8 +10,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.rulesets.ruleset import Ruleset -from cloudflare.types.rulesets.phases.version_get_response import VersionGetResponse +from cloudflare.types.rulesets import Ruleset +from cloudflare.types.rulesets.phases import VersionGetResponse 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 cbaa34f62b20..20e1206cae85 100644 --- a/tests/api_resources/rulesets/test_phases.py +++ b/tests/api_resources/rulesets/test_phases.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets.phase_get_response import PhaseGetResponse -from cloudflare.types.rulesets.phase_update_response import PhaseUpdateResponse +from cloudflare.types.rulesets import PhaseGetResponse, PhaseUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/test_rules.py b/tests/api_resources/rulesets/test_rules.py index 59d4d888a5cb..0780961894d3 100644 --- a/tests/api_resources/rulesets/test_rules.py +++ b/tests/api_resources/rulesets/test_rules.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets.rule_edit_response import RuleEditResponse -from cloudflare.types.rulesets.rule_create_response import RuleCreateResponse -from cloudflare.types.rulesets.rule_delete_response import RuleDeleteResponse +from cloudflare.types.rulesets import ( + RuleEditResponse, + RuleCreateResponse, + RuleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/test_versions.py b/tests/api_resources/rulesets/test_versions.py index 061605b9dfb0..fb40b97741bf 100644 --- a/tests/api_resources/rulesets/test_versions.py +++ b/tests/api_resources/rulesets/test_versions.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.rulesets.ruleset import Ruleset -from cloudflare.types.rulesets.version_get_response import VersionGetResponse +from cloudflare.types.rulesets import Ruleset, VersionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rulesets/versions/test_by_tag.py b/tests/api_resources/rulesets/versions/test_by_tag.py index 029f0e86bcd4..cc093ff35781 100644 --- a/tests/api_resources/rulesets/versions/test_by_tag.py +++ b/tests/api_resources/rulesets/versions/test_by_tag.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rulesets.versions.by_tag_get_response import ByTagGetResponse +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 42de0030a319..0250949fba5b 100644 --- a/tests/api_resources/rum/test_rules.py +++ b/tests/api_resources/rum/test_rules.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rum.rum_rule import RUMRule -from cloudflare.types.rum.rule_list_response import RuleListResponse -from cloudflare.types.rum.rule_delete_response import RuleDeleteResponse +from cloudflare.types.rum import RUMRule, RuleListResponse, RuleDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/rum/test_site_info.py b/tests/api_resources/rum/test_site_info.py index 44282f4fff25..a1f892e46699 100644 --- a/tests/api_resources/rum/test_site_info.py +++ b/tests/api_resources/rum/test_site_info.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.rum import ( + Site, + SiteInfoDeleteResponse, +) from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.rum.site import Site -from cloudflare.types.rum.site_info_delete_response import SiteInfoDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_acls.py b/tests/api_resources/secondary_dns/test_acls.py index 53923f6ed76f..9921c9205851 100644 --- a/tests/api_resources/secondary_dns/test_acls.py +++ b/tests/api_resources/secondary_dns/test_acls.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.secondary_dns.acl import ACL -from cloudflare.types.secondary_dns.acl_delete_response import ACLDeleteResponse +from cloudflare.types.secondary_dns import ACL, ACLDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_incoming.py b/tests/api_resources/secondary_dns/test_incoming.py index 391b0c2e94e6..7df3047dab48 100644 --- a/tests/api_resources/secondary_dns/test_incoming.py +++ b/tests/api_resources/secondary_dns/test_incoming.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns.incoming_get_response import IncomingGetResponse -from cloudflare.types.secondary_dns.incoming_create_response import IncomingCreateResponse -from cloudflare.types.secondary_dns.incoming_delete_response import IncomingDeleteResponse -from cloudflare.types.secondary_dns.incoming_update_response import IncomingUpdateResponse +from cloudflare.types.secondary_dns import ( + IncomingGetResponse, + IncomingCreateResponse, + IncomingDeleteResponse, + IncomingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_outgoing.py b/tests/api_resources/secondary_dns/test_outgoing.py index 4180dcd00c22..d33465d8802e 100644 --- a/tests/api_resources/secondary_dns/test_outgoing.py +++ b/tests/api_resources/secondary_dns/test_outgoing.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.secondary_dns.outgoing_get_response import OutgoingGetResponse -from cloudflare.types.secondary_dns.outgoing_create_response import OutgoingCreateResponse -from cloudflare.types.secondary_dns.outgoing_delete_response import OutgoingDeleteResponse -from cloudflare.types.secondary_dns.outgoing_update_response import OutgoingUpdateResponse +from cloudflare.types.secondary_dns import ( + OutgoingGetResponse, + OutgoingCreateResponse, + OutgoingDeleteResponse, + OutgoingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_peers.py b/tests/api_resources/secondary_dns/test_peers.py index 01934188f458..4f5b6f62d6de 100644 --- a/tests/api_resources/secondary_dns/test_peers.py +++ b/tests/api_resources/secondary_dns/test_peers.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.secondary_dns.peer import Peer -from cloudflare.types.secondary_dns.peer_delete_response import PeerDeleteResponse +from cloudflare.types.secondary_dns import Peer, PeerDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/secondary_dns/test_tsigs.py b/tests/api_resources/secondary_dns/test_tsigs.py index 591a81ce9df0..c24bce51baad 100644 --- a/tests/api_resources/secondary_dns/test_tsigs.py +++ b/tests/api_resources/secondary_dns/test_tsigs.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.secondary_dns.tsig import TSIG -from cloudflare.types.secondary_dns.tsig_delete_response import TSIGDeleteResponse +from cloudflare.types.secondary_dns import TSIG, TSIGDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/snippets/test_rules.py b/tests/api_resources/snippets/test_rules.py index 0a54c1b008c1..83e101681429 100644 --- a/tests/api_resources/snippets/test_rules.py +++ b/tests/api_resources/snippets/test_rules.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.snippets.rule_list_response import RuleListResponse -from cloudflare.types.snippets.rule_update_response import RuleUpdateResponse +from cloudflare.types.snippets import RuleListResponse, RuleUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/aggregates/test_currents.py b/tests/api_resources/spectrum/analytics/aggregates/test_currents.py index 93e2b964a2a2..637e44bfece6 100644 --- a/tests/api_resources/spectrum/analytics/aggregates/test_currents.py +++ b/tests/api_resources/spectrum/analytics/aggregates/test_currents.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.spectrum.analytics.aggregates.current_get_response import CurrentGetResponse +from cloudflare.types.spectrum.analytics.aggregates import CurrentGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/events/test_bytimes.py b/tests/api_resources/spectrum/analytics/events/test_bytimes.py index 969bfefbfd00..9afdcf9b72a7 100644 --- a/tests/api_resources/spectrum/analytics/events/test_bytimes.py +++ b/tests/api_resources/spectrum/analytics/events/test_bytimes.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.spectrum.analytics.events.bytime_get_response import BytimeGetResponse +from cloudflare.types.spectrum.analytics.events import BytimeGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/analytics/events/test_summaries.py b/tests/api_resources/spectrum/analytics/events/test_summaries.py index 9b81d31b4679..5f19bf08707b 100644 --- a/tests/api_resources/spectrum/analytics/events/test_summaries.py +++ b/tests/api_resources/spectrum/analytics/events/test_summaries.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.spectrum.analytics.events.summary_get_response import SummaryGetResponse +from cloudflare.types.spectrum.analytics.events import SummaryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/spectrum/test_apps.py b/tests/api_resources/spectrum/test_apps.py index 8b517b11e62b..e0cc6524427a 100644 --- a/tests/api_resources/spectrum/test_apps.py +++ b/tests/api_resources/spectrum/test_apps.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.spectrum.app_get_response import AppGetResponse -from cloudflare.types.spectrum.app_create_response import AppCreateResponse -from cloudflare.types.spectrum.app_delete_response import AppDeleteResponse -from cloudflare.types.spectrum.app_update_response import AppUpdateResponse +from cloudflare.types.spectrum import ( + AppGetResponse, + AppCreateResponse, + AppDeleteResponse, + AppUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_availabilities.py b/tests/api_resources/speed/test_availabilities.py index 47b6e89cc3df..1d651c0cda65 100644 --- a/tests/api_resources/speed/test_availabilities.py +++ b/tests/api_resources/speed/test_availabilities.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed.availability import Availability +from cloudflare.types.speed import Availability base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_pages.py b/tests/api_resources/speed/test_pages.py index 6fbcf9fde3b0..cee5ec5833e4 100644 --- a/tests/api_resources/speed/test_pages.py +++ b/tests/api_resources/speed/test_pages.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.speed.page_list_response import PageListResponse +from cloudflare.types.speed import PageListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_schedule.py b/tests/api_resources/speed/test_schedule.py index 4806abe3b579..99d2657e184e 100644 --- a/tests/api_resources/speed/test_schedule.py +++ b/tests/api_resources/speed/test_schedule.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed.schedule_create_response import ScheduleCreateResponse +from cloudflare.types.speed import ScheduleCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/speed/test_tests.py b/tests/api_resources/speed/test_tests.py index 6ee2a2709442..fc85d909d50a 100644 --- a/tests/api_resources/speed/test_tests.py +++ b/tests/api_resources/speed/test_tests.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.speed.test import Test -from cloudflare.types.speed.test_list_response import TestListResponse -from cloudflare.types.speed.test_delete_response import TestDeleteResponse +from cloudflare.types.speed import ( + Test, + TestListResponse, + TestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/certificate_packs/test_order.py b/tests/api_resources/ssl/certificate_packs/test_order.py index d50810563ee1..5ad50e00c71b 100644 --- a/tests/api_resources/ssl/certificate_packs/test_order.py +++ b/tests/api_resources/ssl/certificate_packs/test_order.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.certificate_packs.order_create_response import OrderCreateResponse +from cloudflare.types.ssl.certificate_packs import OrderCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/certificate_packs/test_quota.py b/tests/api_resources/ssl/certificate_packs/test_quota.py index 8d9e3d161a0d..22d983db7f11 100644 --- a/tests/api_resources/ssl/certificate_packs/test_quota.py +++ b/tests/api_resources/ssl/certificate_packs/test_quota.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.certificate_packs.quota_get_response import QuotaGetResponse +from cloudflare.types.ssl.certificate_packs import QuotaGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_analyze.py b/tests/api_resources/ssl/test_analyze.py index 4eaa1a711c44..ce96ca2df0cf 100644 --- a/tests/api_resources/ssl/test_analyze.py +++ b/tests/api_resources/ssl/test_analyze.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.analyze_create_response import AnalyzeCreateResponse +from cloudflare.types.ssl import AnalyzeCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_certificate_packs.py b/tests/api_resources/ssl/test_certificate_packs.py index 72ec41cc531e..5ec70db0e384 100644 --- a/tests/api_resources/ssl/test_certificate_packs.py +++ b/tests/api_resources/ssl/test_certificate_packs.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare.types.ssl import ( + CertificatePackGetResponse, + CertificatePackEditResponse, + CertificatePackDeleteResponse, +) from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.ssl.certificate_pack_get_response import CertificatePackGetResponse -from cloudflare.types.ssl.certificate_pack_edit_response import CertificatePackEditResponse -from cloudflare.types.ssl.certificate_pack_delete_response import CertificatePackDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_recommendations.py b/tests/api_resources/ssl/test_recommendations.py index f164d6d5e05a..31e42e5ed462 100644 --- a/tests/api_resources/ssl/test_recommendations.py +++ b/tests/api_resources/ssl/test_recommendations.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.recommendation_get_response import RecommendationGetResponse +from cloudflare.types.ssl import RecommendationGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/test_verification.py b/tests/api_resources/ssl/test_verification.py index aa8d2e07f04e..e93667109d18 100644 --- a/tests/api_resources/ssl/test_verification.py +++ b/tests/api_resources/ssl/test_verification.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.verification_get_response import VerificationGetResponse -from cloudflare.types.ssl.verification_edit_response import VerificationEditResponse +from cloudflare.types.ssl import ( + VerificationGetResponse, + VerificationEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/ssl/universal/test_settings.py b/tests/api_resources/ssl/universal/test_settings.py index 2d808b06815f..027e556f7154 100644 --- a/tests/api_resources/ssl/universal/test_settings.py +++ b/tests/api_resources/ssl/universal/test_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ssl.universal.universal_ssl_settings import UniversalSSLSettings +from cloudflare.types.ssl.universal import UniversalSSLSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/storage/test_analytics.py b/tests/api_resources/storage/test_analytics.py index 3b29ccbcaafd..0a6e3064dcf4 100644 --- a/tests/api_resources/storage/test_analytics.py +++ b/tests/api_resources/storage/test_analytics.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.storage.schema import Schema -from cloudflare.types.storage.components import Components +from cloudflare.types.storage import Schema, Components base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/captions/test_language.py b/tests/api_resources/stream/captions/test_language.py index 1d26981efb83..8d963db18082 100644 --- a/tests/api_resources/stream/captions/test_language.py +++ b/tests/api_resources/stream/captions/test_language.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.caption import Caption +from cloudflare.types.stream import Caption base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/live_inputs/test_outputs.py b/tests/api_resources/stream/live_inputs/test_outputs.py index e8a83c84b655..e0e594c8e75e 100644 --- a/tests/api_resources/stream/live_inputs/test_outputs.py +++ b/tests/api_resources/stream/live_inputs/test_outputs.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.stream.live_inputs.output import Output +from cloudflare.types.stream.live_inputs import Output base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_audio_tracks.py b/tests/api_resources/stream/test_audio_tracks.py index 891eb6ea9e06..71756af4ca3c 100644 --- a/tests/api_resources/stream/test_audio_tracks.py +++ b/tests/api_resources/stream/test_audio_tracks.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.audio import Audio -from cloudflare.types.stream.audio_track_get_response import AudioTrackGetResponse -from cloudflare.types.stream.audio_track_delete_response import AudioTrackDeleteResponse +from cloudflare.types.stream import ( + Audio, + AudioTrackGetResponse, + AudioTrackDeleteResponse, +) 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 9afa84a290e7..b2466c27733d 100644 --- a/tests/api_resources/stream/test_captions.py +++ b/tests/api_resources/stream/test_captions.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.caption_get_response import CaptionGetResponse +from cloudflare.types.stream import CaptionGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_clip.py b/tests/api_resources/stream/test_clip.py index 2a96300b3daf..3386eec53e7b 100644 --- a/tests/api_resources/stream/test_clip.py +++ b/tests/api_resources/stream/test_clip.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.clip import Clip +from cloudflare.types.stream import Clip base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_copy.py b/tests/api_resources/stream/test_copy.py index 2aff75a9dea5..03849cde63e5 100644 --- a/tests/api_resources/stream/test_copy.py +++ b/tests/api_resources/stream/test_copy.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.stream.video import Video +from cloudflare.types.stream import Video base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_direct_upload.py b/tests/api_resources/stream/test_direct_upload.py index c28073f73e8e..88e93522a5ab 100644 --- a/tests/api_resources/stream/test_direct_upload.py +++ b/tests/api_resources/stream/test_direct_upload.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.stream.direct_upload_create_response import DirectUploadCreateResponse +from cloudflare.types.stream import DirectUploadCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_downloads.py b/tests/api_resources/stream/test_downloads.py index ed715f7aa375..b5fda9a4b9da 100644 --- a/tests/api_resources/stream/test_downloads.py +++ b/tests/api_resources/stream/test_downloads.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.download_get_response import DownloadGetResponse -from cloudflare.types.stream.download_create_response import DownloadCreateResponse -from cloudflare.types.stream.download_delete_response import DownloadDeleteResponse +from cloudflare.types.stream import ( + DownloadGetResponse, + DownloadCreateResponse, + DownloadDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_keys.py b/tests/api_resources/stream/test_keys.py index a67b76d8eb36..96c3a61918d6 100644 --- a/tests/api_resources/stream/test_keys.py +++ b/tests/api_resources/stream/test_keys.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.keys import Keys -from cloudflare.types.stream.key_get_response import KeyGetResponse -from cloudflare.types.stream.key_delete_response import KeyDeleteResponse +from cloudflare.types.stream import Keys, KeyGetResponse, KeyDeleteResponse 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 279b0d380341..3ad774f699a1 100644 --- a/tests/api_resources/stream/test_live_inputs.py +++ b/tests/api_resources/stream/test_live_inputs.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.live_input import LiveInput -from cloudflare.types.stream.live_input_list_response import LiveInputListResponse +from cloudflare.types.stream import ( + LiveInput, + LiveInputListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_token.py b/tests/api_resources/stream/test_token.py index 511470e6f7fa..4fea7d3ac62c 100644 --- a/tests/api_resources/stream/test_token.py +++ b/tests/api_resources/stream/test_token.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.token_create_response import TokenCreateResponse +from cloudflare.types.stream import TokenCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_videos.py b/tests/api_resources/stream/test_videos.py index 40da5c76df68..d3558da187c0 100644 --- a/tests/api_resources/stream/test_videos.py +++ b/tests/api_resources/stream/test_videos.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.video_storage_usage_response import VideoStorageUsageResponse +from cloudflare.types.stream import VideoStorageUsageResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/stream/test_watermarks.py b/tests/api_resources/stream/test_watermarks.py index 6cca260b1c61..32d4360311f3 100644 --- a/tests/api_resources/stream/test_watermarks.py +++ b/tests/api_resources/stream/test_watermarks.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.stream.watermark import Watermark -from cloudflare.types.stream.watermark_delete_response import WatermarkDeleteResponse +from cloudflare.types.stream import Watermark, WatermarkDeleteResponse 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 86a5a77b18b9..a31c03111a47 100644 --- a/tests/api_resources/stream/test_webhooks.py +++ b/tests/api_resources/stream/test_webhooks.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.stream.webhook_get_response import WebhookGetResponse -from cloudflare.types.stream.webhook_delete_response import WebhookDeleteResponse -from cloudflare.types.stream.webhook_update_response import WebhookUpdateResponse +from cloudflare.types.stream import ( + WebhookGetResponse, + WebhookDeleteResponse, + WebhookUpdateResponse, +) 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 51e98532e616..c7b2f9d72ae5 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.accounts.account_get_response import AccountGetResponse -from cloudflare.types.accounts.account_update_response import AccountUpdateResponse +from cloudflare.types.accounts import ( + AccountGetResponse, + AccountUpdateResponse, +) 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 23d4ac0f5011..1e5562aa2f72 100644 --- a/tests/api_resources/test_audit_logs.py +++ b/tests/api_resources/test_audit_logs.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.shared.audit_log import AuditLog +from cloudflare.types.shared import AuditLog base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_bot_management.py b/tests/api_resources/test_bot_management.py index c5973199ca49..89ed539135b4 100644 --- a/tests/api_resources/test_bot_management.py +++ b/tests/api_resources/test_bot_management.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.bot_management.bot_management_get_response import BotManagementGetResponse -from cloudflare.types.bot_management.bot_management_update_response import BotManagementUpdateResponse +from cloudflare.types.bot_management import ( + BotManagementGetResponse, + BotManagementUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_brand_protection.py b/tests/api_resources/test_brand_protection.py index c2650214b0c9..61e951f87a5c 100644 --- a/tests/api_resources/test_brand_protection.py +++ b/tests/api_resources/test_brand_protection.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.brand_protection.info import Info -from cloudflare.types.brand_protection.submit import Submit +from cloudflare.types.brand_protection import ( + Info, + Submit, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_cache.py b/tests/api_resources/test_cache.py index 46117860cef9..c1650d57e933 100644 --- a/tests/api_resources/test_cache.py +++ b/tests/api_resources/test_cache.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.cache.cache_purge_response import CachePurgeResponse +from cloudflare.types.cache import CachePurgeResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_calls.py b/tests/api_resources/test_calls.py index 74cdb30b81f8..1198441de22e 100644 --- a/tests/api_resources/test_calls.py +++ b/tests/api_resources/test_calls.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.calls.calls_app import CallsApp -from cloudflare.types.calls.calls_app_with_secret import CallsAppWithSecret +from cloudflare.types.calls import CallsApp, CallsAppWithSecret base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_client_certificates.py b/tests/api_resources/test_client_certificates.py index b94b604167d2..307a72b3d52e 100644 --- a/tests/api_resources/test_client_certificates.py +++ b/tests/api_resources/test_client_certificates.py @@ -10,7 +10,9 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.client_certificates.client_certificate import ClientCertificate +from cloudflare.types.client_certificates import ( + ClientCertificate, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_certificates.py b/tests/api_resources/test_custom_certificates.py index bbe8796dca9e..3a3cc961288b 100644 --- a/tests/api_resources/test_custom_certificates.py +++ b/tests/api_resources/test_custom_certificates.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.custom_certificates.custom_certificate import CustomCertificate -from cloudflare.types.custom_certificates.custom_certificate_get_response import CustomCertificateGetResponse -from cloudflare.types.custom_certificates.custom_certificate_edit_response import CustomCertificateEditResponse -from cloudflare.types.custom_certificates.custom_certificate_create_response import CustomCertificateCreateResponse -from cloudflare.types.custom_certificates.custom_certificate_delete_response import CustomCertificateDeleteResponse +from cloudflare.types.custom_certificates import ( + CustomCertificate, + CustomCertificateGetResponse, + CustomCertificateEditResponse, + CustomCertificateCreateResponse, + CustomCertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_hostnames.py b/tests/api_resources/test_custom_hostnames.py index 26d785033286..d6a0128de83e 100644 --- a/tests/api_resources/test_custom_hostnames.py +++ b/tests/api_resources/test_custom_hostnames.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.custom_hostnames.custom_hostname_get_response import CustomHostnameGetResponse -from cloudflare.types.custom_hostnames.custom_hostname_edit_response import CustomHostnameEditResponse -from cloudflare.types.custom_hostnames.custom_hostname_list_response import CustomHostnameListResponse -from cloudflare.types.custom_hostnames.custom_hostname_create_response import CustomHostnameCreateResponse -from cloudflare.types.custom_hostnames.custom_hostname_delete_response import CustomHostnameDeleteResponse +from cloudflare.types.custom_hostnames import ( + CustomHostnameGetResponse, + CustomHostnameEditResponse, + CustomHostnameListResponse, + CustomHostnameCreateResponse, + CustomHostnameDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_custom_nameservers.py b/tests/api_resources/test_custom_nameservers.py index 5c61e2afad56..9a6abe058774 100644 --- a/tests/api_resources/test_custom_nameservers.py +++ b/tests/api_resources/test_custom_nameservers.py @@ -9,11 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.custom_nameservers.custom_nameserver import CustomNameserver -from cloudflare.types.custom_nameservers.custom_nameserver_get_response import CustomNameserverGetResponse -from cloudflare.types.custom_nameservers.custom_nameserver_delete_response import CustomNameserverDeleteResponse -from cloudflare.types.custom_nameservers.custom_nameserver_verify_response import CustomNameserverVerifyResponse -from cloudflare.types.custom_nameservers.custom_nameserver_availabilty_response import ( +from cloudflare.types.custom_nameservers import ( + CustomNameserver, + CustomNameserverGetResponse, + CustomNameserverDeleteResponse, + CustomNameserverVerifyResponse, CustomNameserverAvailabiltyResponse, ) diff --git a/tests/api_resources/test_dnssec.py b/tests/api_resources/test_dnssec.py index 57cb912fccef..433f1d05d999 100644 --- a/tests/api_resources/test_dnssec.py +++ b/tests/api_resources/test_dnssec.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.dnssec.dnssec import DNSSEC -from cloudflare.types.dnssec.dnssec_delete_response import DNSSECDeleteResponse +from cloudflare.types.dnssec import DNSSEC, DNSSECDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_email_routing.py b/tests/api_resources/test_email_routing.py index 9ee514a81cee..92d55fc3c611 100644 --- a/tests/api_resources/test_email_routing.py +++ b/tests/api_resources/test_email_routing.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.email_routing.settings import Settings +from cloudflare.types.email_routing import Settings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_filters.py b/tests/api_resources/test_filters.py index cef22abc61bd..d496885c43cc 100644 --- a/tests/api_resources/test_filters.py +++ b/tests/api_resources/test_filters.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.filters.firewall_filter import FirewallFilter -from cloudflare.types.filters.filter_create_response import FilterCreateResponse +from cloudflare.types.filters import ( + FirewallFilter, + FilterCreateResponse, +) 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 2043467f8324..6224ed146350 100644 --- a/tests/api_resources/test_healthchecks.py +++ b/tests/api_resources/test_healthchecks.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.healthchecks.healthcheck import Healthcheck -from cloudflare.types.healthchecks.healthcheck_delete_response import HealthcheckDeleteResponse +from cloudflare.types.healthchecks import ( + Healthcheck, + HealthcheckDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_ips.py b/tests/api_resources/test_ips.py index 6a5ecb6eceda..6d5ecbb730fc 100644 --- a/tests/api_resources/test_ips.py +++ b/tests/api_resources/test_ips.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ips.ip_list_response import IPListResponse +from cloudflare.types.ips import IPListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_keyless_certificates.py b/tests/api_resources/test_keyless_certificates.py index 6e67b85904c3..c98e648ef917 100644 --- a/tests/api_resources/test_keyless_certificates.py +++ b/tests/api_resources/test_keyless_certificates.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.keyless_certificates.keyless_certificate import KeylessCertificate -from cloudflare.types.keyless_certificates.keyless_certificate_delete_response import KeylessCertificateDeleteResponse +from cloudflare.types.keyless_certificates import ( + KeylessCertificate, + KeylessCertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_load_balancers.py b/tests/api_resources/test_load_balancers.py index 75fc59cb622e..5518c3b31673 100644 --- a/tests/api_resources/test_load_balancers.py +++ b/tests/api_resources/test_load_balancers.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.load_balancers.load_balancer import LoadBalancer -from cloudflare.types.load_balancers.load_balancer_delete_response import LoadBalancerDeleteResponse +from cloudflare.types.load_balancers import ( + LoadBalancer, + LoadBalancerDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_managed_headers.py b/tests/api_resources/test_managed_headers.py index 0c1ddcaa5db7..f84f3910e47d 100644 --- a/tests/api_resources/test_managed_headers.py +++ b/tests/api_resources/test_managed_headers.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.managed_headers.managed_header_edit_response import ManagedHeaderEditResponse -from cloudflare.types.managed_headers.managed_header_list_response import ManagedHeaderListResponse +from cloudflare.types.managed_headers import ( + ManagedHeaderEditResponse, + ManagedHeaderListResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_memberships.py b/tests/api_resources/test_memberships.py index bf9b976506b3..ce6ae42982e0 100644 --- a/tests/api_resources/test_memberships.py +++ b/tests/api_resources/test_memberships.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.memberships.membership import Membership -from cloudflare.types.memberships.membership_get_response import MembershipGetResponse -from cloudflare.types.memberships.membership_delete_response import MembershipDeleteResponse -from cloudflare.types.memberships.membership_update_response import MembershipUpdateResponse +from cloudflare.types.memberships import ( + Membership, + MembershipGetResponse, + MembershipDeleteResponse, + MembershipUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_mtls_certificates.py b/tests/api_resources/test_mtls_certificates.py index dad353d2c3c9..e7c3566dc30a 100644 --- a/tests/api_resources/test_mtls_certificates.py +++ b/tests/api_resources/test_mtls_certificates.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.mtls_certificates.mtls_certificate import MTLSCertificate -from cloudflare.types.mtls_certificates.mtls_certificate_create_response import MTLSCertificateCreateResponse +from cloudflare.types.mtls_certificates import ( + MTLSCertificate, + MTLSCertificateCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_origin_ca_certificates.py b/tests/api_resources/test_origin_ca_certificates.py index 040255f4547c..345e41653196 100644 --- a/tests/api_resources/test_origin_ca_certificates.py +++ b/tests/api_resources/test_origin_ca_certificates.py @@ -10,12 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.origin_ca_certificates.origin_ca_certificate import OriginCACertificate -from cloudflare.types.origin_ca_certificates.origin_ca_certificate_get_response import OriginCACertificateGetResponse -from cloudflare.types.origin_ca_certificates.origin_ca_certificate_create_response import ( +from cloudflare.types.origin_ca_certificates import ( + OriginCACertificate, + OriginCACertificateGetResponse, OriginCACertificateCreateResponse, -) -from cloudflare.types.origin_ca_certificates.origin_ca_certificate_delete_response import ( OriginCACertificateDeleteResponse, ) diff --git a/tests/api_resources/test_origin_post_quantum_encryption.py b/tests/api_resources/test_origin_post_quantum_encryption.py index 019ff719faf9..0c73b6de4109 100644 --- a/tests/api_resources/test_origin_post_quantum_encryption.py +++ b/tests/api_resources/test_origin_post_quantum_encryption.py @@ -9,10 +9,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.origin_post_quantum_encryption.origin_post_quantum_encryption_get_response import ( +from cloudflare.types.origin_post_quantum_encryption import ( OriginPostQuantumEncryptionGetResponse, -) -from cloudflare.types.origin_post_quantum_encryption.origin_post_quantum_encryption_update_response import ( OriginPostQuantumEncryptionUpdateResponse, ) diff --git a/tests/api_resources/test_origin_tls_client_auth.py b/tests/api_resources/test_origin_tls_client_auth.py index a9c0c5da9583..3ae8e183149c 100644 --- a/tests/api_resources/test_origin_tls_client_auth.py +++ b/tests/api_resources/test_origin_tls_client_auth.py @@ -10,12 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.origin_tls_client_auth.zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull -from cloudflare.types.origin_tls_client_auth.origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse -from cloudflare.types.origin_tls_client_auth.origin_tls_client_auth_create_response import ( +from cloudflare.types.origin_tls_client_auth import ( + ZoneAuthenticatedOriginPull, + OriginTLSClientAuthGetResponse, OriginTLSClientAuthCreateResponse, -) -from cloudflare.types.origin_tls_client_auth.origin_tls_client_auth_delete_response import ( OriginTLSClientAuthDeleteResponse, ) diff --git a/tests/api_resources/test_page_shield.py b/tests/api_resources/test_page_shield.py index 49a129e91779..d8460c4c9e2c 100644 --- a/tests/api_resources/test_page_shield.py +++ b/tests/api_resources/test_page_shield.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.page_shield.setting import Setting -from cloudflare.types.page_shield.page_shield_update_response import PageShieldUpdateResponse +from cloudflare.types.page_shield import Setting, PageShieldUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_pagerules.py b/tests/api_resources/test_pagerules.py index 5bb44dedc8b6..7dd0bcaa81ab 100644 --- a/tests/api_resources/test_pagerules.py +++ b/tests/api_resources/test_pagerules.py @@ -9,12 +9,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.pagerules.pagerule_get_response import PageruleGetResponse -from cloudflare.types.pagerules.pagerule_edit_response import PageruleEditResponse -from cloudflare.types.pagerules.pagerule_list_response import PageruleListResponse -from cloudflare.types.pagerules.pagerule_create_response import PageruleCreateResponse -from cloudflare.types.pagerules.pagerule_delete_response import PageruleDeleteResponse -from cloudflare.types.pagerules.pagerule_update_response import PageruleUpdateResponse +from cloudflare.types.pagerules import ( + PageruleGetResponse, + PageruleEditResponse, + PageruleListResponse, + PageruleCreateResponse, + PageruleDeleteResponse, + PageruleUpdateResponse, +) 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 13dd094bf716..712c52bdcdeb 100644 --- a/tests/api_resources/test_pcaps.py +++ b/tests/api_resources/test_pcaps.py @@ -10,9 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.pcaps.pcap_get_response import PCAPGetResponse -from cloudflare.types.pcaps.pcap_list_response import PCAPListResponse -from cloudflare.types.pcaps.pcap_create_response import PCAPCreateResponse +from cloudflare.types.pcaps import PCAPGetResponse, PCAPListResponse, PCAPCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_plans.py b/tests/api_resources/test_plans.py index 48423bb43e10..69ea76c8e6e8 100644 --- a/tests/api_resources/test_plans.py +++ b/tests/api_resources/test_plans.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.plans.available_rate_plan import AvailableRatePlan +from cloudflare.types.plans import AvailableRatePlan base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_queues.py b/tests/api_resources/test_queues.py index 67db13d3c13b..24bdc53d67be 100644 --- a/tests/api_resources/test_queues.py +++ b/tests/api_resources/test_queues.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.queues.queue import Queue -from cloudflare.types.queues.queue_created import QueueCreated -from cloudflare.types.queues.queue_updated import QueueUpdated -from cloudflare.types.queues.queue_delete_response import QueueDeleteResponse +from cloudflare.types.queues import ( + Queue, + QueueCreated, + QueueUpdated, + QueueDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_rate_limits.py b/tests/api_resources/test_rate_limits.py index c4d37f1f16a9..9cfa8a62c633 100644 --- a/tests/api_resources/test_rate_limits.py +++ b/tests/api_resources/test_rate_limits.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.rate_limits.rate_limit import RateLimit -from cloudflare.types.rate_limits.rate_limit_get_response import RateLimitGetResponse -from cloudflare.types.rate_limits.rate_limit_edit_response import RateLimitEditResponse -from cloudflare.types.rate_limits.rate_limit_create_response import RateLimitCreateResponse -from cloudflare.types.rate_limits.rate_limit_delete_response import RateLimitDeleteResponse +from cloudflare.types.rate_limits import ( + RateLimit, + RateLimitGetResponse, + RateLimitEditResponse, + RateLimitCreateResponse, + RateLimitDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_rate_plans.py b/tests/api_resources/test_rate_plans.py index 23955bcb03fe..c237fc40ca12 100644 --- a/tests/api_resources/test_rate_plans.py +++ b/tests/api_resources/test_rate_plans.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.rate_plans.rate_plan_get_response import RatePlanGetResponse +from cloudflare.types.rate_plans import RatePlanGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_rulesets.py b/tests/api_resources/test_rulesets.py index 73741fd0fe8c..0b4f9473ac49 100644 --- a/tests/api_resources/test_rulesets.py +++ b/tests/api_resources/test_rulesets.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.rulesets.ruleset import Ruleset -from cloudflare.types.rulesets.ruleset_get_response import RulesetGetResponse -from cloudflare.types.rulesets.ruleset_create_response import RulesetCreateResponse -from cloudflare.types.rulesets.ruleset_update_response import RulesetUpdateResponse +from cloudflare.types.rulesets import ( + Ruleset, + RulesetGetResponse, + RulesetCreateResponse, + RulesetUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_snippets.py b/tests/api_resources/test_snippets.py index 687cda032c06..c50daf3c5030 100644 --- a/tests/api_resources/test_snippets.py +++ b/tests/api_resources/test_snippets.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.snippets.snippet import Snippet -from cloudflare.types.snippets.snippet_delete_response import SnippetDeleteResponse +from cloudflare.types.snippets import Snippet, SnippetDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_speed.py b/tests/api_resources/test_speed.py index 219140f913c2..4b3081ae272a 100644 --- a/tests/api_resources/test_speed.py +++ b/tests/api_resources/test_speed.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.speed.trend import Trend -from cloudflare.types.speed.schedule import Schedule -from cloudflare.types.speed.speed_delete_response import SpeedDeleteResponse +from cloudflare.types.speed import ( + Trend, + Schedule, + SpeedDeleteResponse, +) 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 583bc4a65526..409a258b1c84 100644 --- a/tests/api_resources/test_stream.py +++ b/tests/api_resources/test_stream.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.stream.video import Video +from cloudflare.types.stream import Video base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_subscriptions.py b/tests/api_resources/test_subscriptions.py index 739c3920deb0..28f92272509a 100644 --- a/tests/api_resources/test_subscriptions.py +++ b/tests/api_resources/test_subscriptions.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.user.subscription import Subscription -from cloudflare.types.subscriptions.subscription_get_response import SubscriptionGetResponse -from cloudflare.types.subscriptions.subscription_create_response import SubscriptionCreateResponse -from cloudflare.types.subscriptions.subscription_delete_response import SubscriptionDeleteResponse -from cloudflare.types.subscriptions.subscription_update_response import SubscriptionUpdateResponse +from cloudflare.types.user import Subscription +from cloudflare.types.subscriptions import ( + SubscriptionGetResponse, + SubscriptionCreateResponse, + SubscriptionDeleteResponse, + SubscriptionUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_url_normalization.py b/tests/api_resources/test_url_normalization.py index fb9e08f1bc5e..8cc032ab3e12 100644 --- a/tests/api_resources/test_url_normalization.py +++ b/tests/api_resources/test_url_normalization.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.url_normalization.url_normalization_get_response import URLNormalizationGetResponse -from cloudflare.types.url_normalization.url_normalization_update_response import URLNormalizationUpdateResponse +from cloudflare.types.url_normalization import ( + URLNormalizationGetResponse, + URLNormalizationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_url_scanner.py b/tests/api_resources/test_url_scanner.py index 2c9ca0c4e1cd..edfb0767105c 100644 --- a/tests/api_resources/test_url_scanner.py +++ b/tests/api_resources/test_url_scanner.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime -from cloudflare.types.url_scanner.url_scanner_scan_response import URLScannerScanResponse +from cloudflare.types.url_scanner import URLScannerScanResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_user.py b/tests/api_resources/test_user.py index a0177d27b31a..9207b88ab678 100644 --- a/tests/api_resources/test_user.py +++ b/tests/api_resources/test_user.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user.user_get_response import UserGetResponse -from cloudflare.types.user.user_edit_response import UserEditResponse +from cloudflare.types.user import UserGetResponse, UserEditResponse 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 83dcae0ee81e..273e7b46e187 100644 --- a/tests/api_resources/test_waiting_rooms.py +++ b/tests/api_resources/test_waiting_rooms.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.waiting_rooms.waiting_room import WaitingRoom -from cloudflare.types.waiting_rooms.waiting_room_delete_response import WaitingRoomDeleteResponse +from cloudflare.types.waiting_rooms import ( + WaitingRoom, + WaitingRoomDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_warp_connector.py b/tests/api_resources/test_warp_connector.py index 062f2716017c..10903314c32a 100644 --- a/tests/api_resources/test_warp_connector.py +++ b/tests/api_resources/test_warp_connector.py @@ -11,12 +11,14 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.warp_connector.warp_connector_get_response import WARPConnectorGetResponse -from cloudflare.types.warp_connector.warp_connector_edit_response import WARPConnectorEditResponse -from cloudflare.types.warp_connector.warp_connector_list_response import WARPConnectorListResponse -from cloudflare.types.warp_connector.warp_connector_token_response import WARPConnectorTokenResponse -from cloudflare.types.warp_connector.warp_connector_create_response import WARPConnectorCreateResponse -from cloudflare.types.warp_connector.warp_connector_delete_response import WARPConnectorDeleteResponse +from cloudflare.types.warp_connector import ( + WARPConnectorGetResponse, + WARPConnectorEditResponse, + WARPConnectorListResponse, + WARPConnectorTokenResponse, + WARPConnectorCreateResponse, + WARPConnectorDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_zones.py b/tests/api_resources/test_zones.py index 71c8435ad409..4e5a3fad6d39 100644 --- a/tests/api_resources/test_zones.py +++ b/tests/api_resources/test_zones.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.zones.zone import Zone -from cloudflare.types.zones.zone_delete_response import ZoneDeleteResponse +from cloudflare.types.zones import Zone, ZoneDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/url_scanner/test_scans.py b/tests/api_resources/url_scanner/test_scans.py index 720e7e936b75..d0e817fddf57 100644 --- a/tests/api_resources/url_scanner/test_scans.py +++ b/tests/api_resources/url_scanner/test_scans.py @@ -17,9 +17,11 @@ StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.url_scanner.scan_get_response import ScanGetResponse -from cloudflare.types.url_scanner.scan_har_response import ScanHarResponse -from cloudflare.types.url_scanner.scan_create_response import ScanCreateResponse +from cloudflare.types.url_scanner import ( + ScanGetResponse, + ScanHarResponse, + ScanCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/billing/test_history.py b/tests/api_resources/user/billing/test_history.py index ec9b3cd5e2fc..d16cf7ce2284 100644 --- a/tests/api_resources/user/billing/test_history.py +++ b/tests/api_resources/user/billing/test_history.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.user.billing.billing_history import BillingHistory +from cloudflare.types.user.billing import BillingHistory base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/billing/test_profile.py b/tests/api_resources/user/billing/test_profile.py index ad5eea8b0c27..fdeecb4384e6 100644 --- a/tests/api_resources/user/billing/test_profile.py +++ b/tests/api_resources/user/billing/test_profile.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user.billing.profile_get_response import ProfileGetResponse +from cloudflare.types.user.billing import ProfileGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_audit_logs.py b/tests/api_resources/user/test_audit_logs.py index 9e0cc79a68cc..991015f606d1 100644 --- a/tests/api_resources/user/test_audit_logs.py +++ b/tests/api_resources/user/test_audit_logs.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.shared.audit_log import AuditLog +from cloudflare.types.shared import AuditLog base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_invites.py b/tests/api_resources/user/test_invites.py index c188cf810827..0236e4db1f95 100644 --- a/tests/api_resources/user/test_invites.py +++ b/tests/api_resources/user/test_invites.py @@ -10,9 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.user.invite import Invite -from cloudflare.types.user.invite_get_response import InviteGetResponse -from cloudflare.types.user.invite_edit_response import InviteEditResponse +from cloudflare.types.user import Invite, InviteGetResponse, InviteEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_organizations.py b/tests/api_resources/user/test_organizations.py index 3bd9659a32f5..b0b008cc682f 100644 --- a/tests/api_resources/user/test_organizations.py +++ b/tests/api_resources/user/test_organizations.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.user.organization import Organization -from cloudflare.types.user.organization_get_response import OrganizationGetResponse -from cloudflare.types.user.organization_delete_response import OrganizationDeleteResponse +from cloudflare.types.user import ( + Organization, + OrganizationGetResponse, + OrganizationDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_subscriptions.py b/tests/api_resources/user/test_subscriptions.py index f7a66355990f..916a255ac114 100644 --- a/tests/api_resources/user/test_subscriptions.py +++ b/tests/api_resources/user/test_subscriptions.py @@ -9,10 +9,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.user.subscription_get_response import SubscriptionGetResponse -from cloudflare.types.user.subscription_edit_response import SubscriptionEditResponse -from cloudflare.types.user.subscription_delete_response import SubscriptionDeleteResponse -from cloudflare.types.user.subscription_update_response import SubscriptionUpdateResponse +from cloudflare.types.user import ( + SubscriptionGetResponse, + SubscriptionEditResponse, + SubscriptionDeleteResponse, + SubscriptionUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/user/test_tokens.py b/tests/api_resources/user/test_tokens.py index 98c71cdbccd5..3016556574a4 100644 --- a/tests/api_resources/user/test_tokens.py +++ b/tests/api_resources/user/test_tokens.py @@ -11,11 +11,13 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.user.token_get_response import TokenGetResponse -from cloudflare.types.user.token_create_response import TokenCreateResponse -from cloudflare.types.user.token_delete_response import TokenDeleteResponse -from cloudflare.types.user.token_update_response import TokenUpdateResponse -from cloudflare.types.user.token_verify_response import TokenVerifyResponse +from cloudflare.types.user import ( + TokenGetResponse, + TokenCreateResponse, + TokenDeleteResponse, + TokenUpdateResponse, + TokenVerifyResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/vectorize/test_indexes.py b/tests/api_resources/vectorize/test_indexes.py index 2ede6c609fdd..5b7bccfe4cfa 100644 --- a/tests/api_resources/vectorize/test_indexes.py +++ b/tests/api_resources/vectorize/test_indexes.py @@ -10,12 +10,14 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.vectorize.index_query import IndexQuery -from cloudflare.types.vectorize.create_index import CreateIndex -from cloudflare.types.vectorize.index_insert import IndexInsert -from cloudflare.types.vectorize.index_upsert import IndexUpsert -from cloudflare.types.vectorize.index_delete_response import IndexDeleteResponse -from cloudflare.types.vectorize.index_delete_vectors_by_id import IndexDeleteVectorsByID +from cloudflare.types.vectorize import ( + IndexQuery, + CreateIndex, + IndexInsert, + IndexUpsert, + IndexDeleteResponse, + IndexDeleteVectorsByID, +) 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 8d9a4fbf5319..6620e7a7cfbf 100644 --- a/tests/api_resources/waiting_rooms/events/test_details.py +++ b/tests/api_resources/waiting_rooms/events/test_details.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms.events.detail_get_response import DetailGetResponse +from cloudflare.types.waiting_rooms.events import DetailGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_events.py b/tests/api_resources/waiting_rooms/test_events.py index 26669df63a8f..7a4712773ca4 100644 --- a/tests/api_resources/waiting_rooms/test_events.py +++ b/tests/api_resources/waiting_rooms/test_events.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.waiting_rooms.event import Event -from cloudflare.types.waiting_rooms.event_delete_response import EventDeleteResponse +from cloudflare.types.waiting_rooms import ( + Event, + EventDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_page.py b/tests/api_resources/waiting_rooms/test_page.py index ead6c6eff3a1..8d847225b732 100644 --- a/tests/api_resources/waiting_rooms/test_page.py +++ b/tests/api_resources/waiting_rooms/test_page.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms.page_preview_response import PagePreviewResponse +from cloudflare.types.waiting_rooms import PagePreviewResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_rules.py b/tests/api_resources/waiting_rooms/test_rules.py index f394f806cabb..e6816dc814a1 100644 --- a/tests/api_resources/waiting_rooms/test_rules.py +++ b/tests/api_resources/waiting_rooms/test_rules.py @@ -10,11 +10,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.waiting_rooms.waiting_room_rule import WaitingRoomRule -from cloudflare.types.waiting_rooms.rule_edit_response import RuleEditResponse -from cloudflare.types.waiting_rooms.rule_create_response import RuleCreateResponse -from cloudflare.types.waiting_rooms.rule_delete_response import RuleDeleteResponse -from cloudflare.types.waiting_rooms.rule_update_response import RuleUpdateResponse +from cloudflare.types.waiting_rooms import ( + WaitingRoomRule, + RuleEditResponse, + RuleCreateResponse, + RuleDeleteResponse, + RuleUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_settings.py b/tests/api_resources/waiting_rooms/test_settings.py index 3dd457a6ed5d..79ca12bd88b3 100644 --- a/tests/api_resources/waiting_rooms/test_settings.py +++ b/tests/api_resources/waiting_rooms/test_settings.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms.setting_get_response import SettingGetResponse -from cloudflare.types.waiting_rooms.setting_edit_response import SettingEditResponse -from cloudflare.types.waiting_rooms.setting_update_response import SettingUpdateResponse +from cloudflare.types.waiting_rooms import ( + SettingGetResponse, + SettingEditResponse, + SettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/waiting_rooms/test_statuses.py b/tests/api_resources/waiting_rooms/test_statuses.py index 43709499deef..e1d2176da62d 100644 --- a/tests/api_resources/waiting_rooms/test_statuses.py +++ b/tests/api_resources/waiting_rooms/test_statuses.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.waiting_rooms.status_get_response import StatusGetResponse +from cloudflare.types.waiting_rooms import StatusGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py b/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py index 7c9ff14a2ee8..4cffbc101f66 100644 --- a/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py +++ b/tests/api_resources/web3/hostnames/ipfs_universal_paths/content_lists/test_entries.py @@ -9,11 +9,13 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists.entry_get_response import EntryGetResponse -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists.entry_list_response import EntryListResponse -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists.entry_create_response import EntryCreateResponse -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists.entry_delete_response import EntryDeleteResponse -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists.entry_update_response import EntryUpdateResponse +from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import ( + EntryGetResponse, + EntryListResponse, + EntryCreateResponse, + EntryDeleteResponse, + EntryUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py b/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py index b0be6a6b8770..e2aa0af76c83 100644 --- a/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py +++ b/tests/api_resources/web3/hostnames/ipfs_universal_paths/test_content_lists.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_list import ContentList +from cloudflare.types.web3.hostnames.ipfs_universal_paths import ContentList base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/web3/test_hostnames.py b/tests/api_resources/web3/test_hostnames.py index 886d917257c4..8d9b4d06016c 100644 --- a/tests/api_resources/web3/test_hostnames.py +++ b/tests/api_resources/web3/test_hostnames.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.web3.hostname import Hostname -from cloudflare.types.web3.hostname_delete_response import HostnameDeleteResponse +from cloudflare.types.web3 import Hostname, HostnameDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_content.py b/tests/api_resources/workers/scripts/test_content.py index 7ace8aa2329c..c0e7fa824caa 100644 --- a/tests/api_resources/workers/scripts/test_content.py +++ b/tests/api_resources/workers/scripts/test_content.py @@ -17,7 +17,7 @@ StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.workers.script import Script +from cloudflare.types.workers import Script base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_deployments.py b/tests/api_resources/workers/scripts/test_deployments.py index e28875a538ec..0ec9ea4f1218 100644 --- a/tests/api_resources/workers/scripts/test_deployments.py +++ b/tests/api_resources/workers/scripts/test_deployments.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts.deployment_get_response import DeploymentGetResponse -from cloudflare.types.workers.scripts.deployment_create_response import DeploymentCreateResponse +from cloudflare.types.workers.scripts import ( + DeploymentGetResponse, + DeploymentCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_schedules.py b/tests/api_resources/workers/scripts/test_schedules.py index 819dd9d202da..46d790e89cde 100644 --- a/tests/api_resources/workers/scripts/test_schedules.py +++ b/tests/api_resources/workers/scripts/test_schedules.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts.schedule_get_response import ScheduleGetResponse -from cloudflare.types.workers.scripts.schedule_update_response import ScheduleUpdateResponse +from cloudflare.types.workers.scripts import ScheduleGetResponse, ScheduleUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_settings.py b/tests/api_resources/workers/scripts/test_settings.py index 82e55e0a563c..18af0318652e 100644 --- a/tests/api_resources/workers/scripts/test_settings.py +++ b/tests/api_resources/workers/scripts/test_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.script_setting import ScriptSetting +from cloudflare.types.workers import ScriptSetting base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_tail.py b/tests/api_resources/workers/scripts/test_tail.py index e8c57fde9150..b771799d077a 100644 --- a/tests/api_resources/workers/scripts/test_tail.py +++ b/tests/api_resources/workers/scripts/test_tail.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts.tail_get_response import TailGetResponse -from cloudflare.types.workers.scripts.tail_create_response import TailCreateResponse -from cloudflare.types.workers.scripts.tail_delete_response import TailDeleteResponse +from cloudflare.types.workers.scripts import TailGetResponse, TailCreateResponse, TailDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/scripts/test_versions.py b/tests/api_resources/workers/scripts/test_versions.py index 428b8e539110..a7df8e4feadf 100644 --- a/tests/api_resources/workers/scripts/test_versions.py +++ b/tests/api_resources/workers/scripts/test_versions.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.scripts.version_get_response import VersionGetResponse -from cloudflare.types.workers.scripts.version_list_response import VersionListResponse -from cloudflare.types.workers.scripts.version_create_response import VersionCreateResponse +from cloudflare.types.workers.scripts import ( + VersionGetResponse, + VersionListResponse, + VersionCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_account_settings.py b/tests/api_resources/workers/test_account_settings.py index a50f539dd434..e4a4dfdba558 100644 --- a/tests/api_resources/workers/test_account_settings.py +++ b/tests/api_resources/workers/test_account_settings.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.account_setting_get_response import AccountSettingGetResponse -from cloudflare.types.workers.account_setting_update_response import AccountSettingUpdateResponse +from cloudflare.types.workers import ( + AccountSettingGetResponse, + AccountSettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_ai.py b/tests/api_resources/workers/test_ai.py index 0958f116c5bc..9b149b9f72b3 100644 --- a/tests/api_resources/workers/test_ai.py +++ b/tests/api_resources/workers/test_ai.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.ai_run_response import AIRunResponse +from cloudflare.types.workers import AIRunResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_domains.py b/tests/api_resources/workers/test_domains.py index 84c411939a59..b2745181878f 100644 --- a/tests/api_resources/workers/test_domains.py +++ b/tests/api_resources/workers/test_domains.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.workers.domain import Domain +from cloudflare.types.workers import Domain base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_scripts.py b/tests/api_resources/workers/test_scripts.py index fe66a7c3e625..cb0162476856 100644 --- a/tests/api_resources/workers/test_scripts.py +++ b/tests/api_resources/workers/test_scripts.py @@ -18,7 +18,7 @@ AsyncStreamedBinaryAPIResponse, ) from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.workers.script import Script +from cloudflare.types.workers import Script base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers/test_subdomains.py b/tests/api_resources/workers/test_subdomains.py index b695557c469f..03efd6388285 100644 --- a/tests/api_resources/workers/test_subdomains.py +++ b/tests/api_resources/workers/test_subdomains.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.subdomain_get_response import SubdomainGetResponse -from cloudflare.types.workers.subdomain_update_response import SubdomainUpdateResponse +from cloudflare.types.workers import SubdomainGetResponse, SubdomainUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py index 0b7b218871d3..a5e2e126fece 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_bindings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.binding_get_response import BindingGetResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import BindingGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_content.py index 40d878f790d0..6c1374dca41e 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 @@ -17,7 +17,7 @@ StreamedBinaryAPIResponse, AsyncStreamedBinaryAPIResponse, ) -from cloudflare.types.workers.script import Script +from cloudflare.types.workers import Script base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py index a268b18bd51b..80ca972e5f37 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py @@ -10,8 +10,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.secret_list_response import SecretListResponse -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.secret_update_response import ( +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SecretListResponse, SecretUpdateResponse, ) 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 227235e8b47b..64f27b5f64ba 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 @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.setting_get_response import SettingGetResponse -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.setting_edit_response import SettingEditResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + SettingGetResponse, + SettingEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py index 7b6b13efd80b..a273f1b53b0d 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_tags.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.tag_list_response import TagListResponse -from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts.tag_update_response import TagUpdateResponse +from cloudflare.types.workers_for_platforms.dispatch.namespaces.scripts import ( + TagListResponse, + TagUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py b/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py index 4cfdfaa74b7d..878dbe85567e 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py +++ b/tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.workers.script import Script as WorkersScript -from cloudflare.types.workers_for_platforms.dispatch.namespaces.script import Script as NamespacesScript +from cloudflare.types.workers import Script as WorkersScript +from cloudflare.types.workers_for_platforms.dispatch.namespaces import ( + Script as NamespacesScript, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py b/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py index d5eb35b1ce46..11cc9e441f76 100644 --- a/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py +++ b/tests/api_resources/workers_for_platforms/dispatch/test_namespaces.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.workers_for_platforms.dispatch.namespace_get_response import NamespaceGetResponse -from cloudflare.types.workers_for_platforms.dispatch.namespace_list_response import NamespaceListResponse -from cloudflare.types.workers_for_platforms.dispatch.namespace_create_response import NamespaceCreateResponse +from cloudflare.types.workers_for_platforms.dispatch import ( + NamespaceGetResponse, + NamespaceListResponse, + NamespaceCreateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_cas.py b/tests/api_resources/zero_trust/access/applications/test_cas.py index a7c1b6c57921..df7215fbd097 100644 --- a/tests/api_resources/zero_trust/access/applications/test_cas.py +++ b/tests/api_resources/zero_trust/access/applications/test_cas.py @@ -10,10 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.applications.ca import CA -from cloudflare.types.zero_trust.access.applications.ca_get_response import CAGetResponse -from cloudflare.types.zero_trust.access.applications.ca_create_response import CACreateResponse -from cloudflare.types.zero_trust.access.applications.ca_delete_response import CADeleteResponse +from cloudflare.types.zero_trust.access.applications import CA, CAGetResponse, CACreateResponse, CADeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_policies.py b/tests/api_resources/zero_trust/access/applications/test_policies.py index f976a32b1d1d..5043832dac78 100644 --- a/tests/api_resources/zero_trust/access/applications/test_policies.py +++ b/tests/api_resources/zero_trust/access/applications/test_policies.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.applications.policy import Policy -from cloudflare.types.zero_trust.access.applications.policy_delete_response import PolicyDeleteResponse +from cloudflare.types.zero_trust.access.applications import ( + Policy, + PolicyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py b/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py index 71416868f331..73e91aeae962 100644 --- a/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py +++ b/tests/api_resources/zero_trust/access/applications/test_user_policy_checks.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.applications.user_policy_check_list_response import UserPolicyCheckListResponse +from cloudflare.types.zero_trust.access.applications import UserPolicyCheckListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/certificates/test_settings.py b/tests/api_resources/zero_trust/access/certificates/test_settings.py index 7a68f3fe921b..5d93ea9c4452 100644 --- a/tests/api_resources/zero_trust/access/certificates/test_settings.py +++ b/tests/api_resources/zero_trust/access/certificates/test_settings.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.certificates.setting_get_response import SettingGetResponse -from cloudflare.types.zero_trust.access.certificates.setting_update_response import SettingUpdateResponse +from cloudflare.types.zero_trust.access.certificates import ( + SettingGetResponse, + SettingUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/logs/test_access_requests.py b/tests/api_resources/zero_trust/access/logs/test_access_requests.py index 0f06c8982efd..411964d255b2 100644 --- a/tests/api_resources/zero_trust/access/logs/test_access_requests.py +++ b/tests/api_resources/zero_trust/access/logs/test_access_requests.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.logs.access_request_list_response import AccessRequestListResponse +from cloudflare.types.zero_trust.access.logs import AccessRequestListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_applications.py b/tests/api_resources/zero_trust/access/test_applications.py index 39d37e6caa4d..2d3f1ee7465d 100644 --- a/tests/api_resources/zero_trust/access/test_applications.py +++ b/tests/api_resources/zero_trust/access/test_applications.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.application import Application -from cloudflare.types.zero_trust.access.application_delete_response import ApplicationDeleteResponse +from cloudflare.types.zero_trust.access import ( + Application, + ApplicationDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_bookmarks.py b/tests/api_resources/zero_trust/access/test_bookmarks.py index 0e434d59266a..25c9a2828e4d 100644 --- a/tests/api_resources/zero_trust/access/test_bookmarks.py +++ b/tests/api_resources/zero_trust/access/test_bookmarks.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.bookmark import Bookmark -from cloudflare.types.zero_trust.access.bookmark_delete_response import BookmarkDeleteResponse +from cloudflare.types.zero_trust.access import ( + Bookmark, + BookmarkDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_certificates.py b/tests/api_resources/zero_trust/access/test_certificates.py index 6a8e1db30850..145e3fed23bd 100644 --- a/tests/api_resources/zero_trust/access/test_certificates.py +++ b/tests/api_resources/zero_trust/access/test_certificates.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.certificate import Certificate -from cloudflare.types.zero_trust.access.certificate_delete_response import CertificateDeleteResponse +from cloudflare.types.zero_trust.access import ( + Certificate, + CertificateDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_custom_pages.py b/tests/api_resources/zero_trust/access/test_custom_pages.py index 42205be72fea..e308329aad03 100644 --- a/tests/api_resources/zero_trust/access/test_custom_pages.py +++ b/tests/api_resources/zero_trust/access/test_custom_pages.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.custom_page import CustomPage -from cloudflare.types.zero_trust.access.custom_page_without_html import CustomPageWithoutHTML -from cloudflare.types.zero_trust.access.custom_page_delete_response import CustomPageDeleteResponse +from cloudflare.types.zero_trust.access import ( + CustomPage, + CustomPageWithoutHTML, + CustomPageDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_groups.py b/tests/api_resources/zero_trust/access/test_groups.py index 45d9a1508b3f..a72eed9cd48d 100644 --- a/tests/api_resources/zero_trust/access/test_groups.py +++ b/tests/api_resources/zero_trust/access/test_groups.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.zero_trust_group import ZeroTrustGroup -from cloudflare.types.zero_trust.access.group_delete_response import GroupDeleteResponse +from cloudflare.types.zero_trust.access import ( + ZeroTrustGroup, + GroupDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_keys.py b/tests/api_resources/zero_trust/access/test_keys.py index 6b2ebb382a84..24d3a0341474 100644 --- a/tests/api_resources/zero_trust/access/test_keys.py +++ b/tests/api_resources/zero_trust/access/test_keys.py @@ -9,9 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.key_get_response import KeyGetResponse -from cloudflare.types.zero_trust.access.key_rotate_response import KeyRotateResponse -from cloudflare.types.zero_trust.access.key_update_response import KeyUpdateResponse +from cloudflare.types.zero_trust.access import KeyGetResponse, KeyRotateResponse, KeyUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_service_tokens.py b/tests/api_resources/zero_trust/access/test_service_tokens.py index 58352082efb3..98199714b567 100644 --- a/tests/api_resources/zero_trust/access/test_service_tokens.py +++ b/tests/api_resources/zero_trust/access/test_service_tokens.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.service_token import ServiceToken -from cloudflare.types.zero_trust.access.service_token_create_response import ServiceTokenCreateResponse -from cloudflare.types.zero_trust.access.service_token_rotate_response import ServiceTokenRotateResponse +from cloudflare.types.zero_trust.access import ( + ServiceToken, + ServiceTokenCreateResponse, + ServiceTokenRotateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_tags.py b/tests/api_resources/zero_trust/access/test_tags.py index 0f7d13bba957..f2a936811e94 100644 --- a/tests/api_resources/zero_trust/access/test_tags.py +++ b/tests/api_resources/zero_trust/access/test_tags.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.tag import Tag -from cloudflare.types.zero_trust.access.tag_delete_response import TagDeleteResponse +from cloudflare.types.zero_trust.access import Tag, TagDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/test_users.py b/tests/api_resources/zero_trust/access/test_users.py index 91e89a0c4499..150520760032 100644 --- a/tests/api_resources/zero_trust/access/test_users.py +++ b/tests/api_resources/zero_trust/access/test_users.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.access_user import AccessUser +from cloudflare.types.zero_trust.access import AccessUser base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_active_sessions.py b/tests/api_resources/zero_trust/access/users/test_active_sessions.py index 8c769851b4bd..c8013d802748 100644 --- a/tests/api_resources/zero_trust/access/users/test_active_sessions.py +++ b/tests/api_resources/zero_trust/access/users/test_active_sessions.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.users.active_session_get_response import ActiveSessionGetResponse -from cloudflare.types.zero_trust.access.users.active_session_list_response import ActiveSessionListResponse +from cloudflare.types.zero_trust.access.users import ActiveSessionGetResponse, ActiveSessionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_failed_logins.py b/tests/api_resources/zero_trust/access/users/test_failed_logins.py index dbecf1080b5d..34259b8225d5 100644 --- a/tests/api_resources/zero_trust/access/users/test_failed_logins.py +++ b/tests/api_resources/zero_trust/access/users/test_failed_logins.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.access.users.failed_login_list_response import FailedLoginListResponse +from cloudflare.types.zero_trust.access.users import FailedLoginListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py b/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py index 14ec1729a0fd..9b2f3fa96c4f 100644 --- a/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py +++ b/tests/api_resources/zero_trust/access/users/test_last_seen_identity.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.access.users.identity import Identity +from cloudflare.types.zero_trust.access.users import Identity base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py index de33297f451a..2257cd23f413 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py +++ b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.policies.default_policy_get_response import DefaultPolicyGetResponse +from cloudflare.types.zero_trust.devices.policies import DefaultPolicyGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_excludes.py b/tests/api_resources/zero_trust/devices/policies/test_excludes.py index 8f08940c2de9..fbdb2969e2c5 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_excludes.py +++ b/tests/api_resources/zero_trust/devices/policies/test_excludes.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.policies.exclude_get_response import ExcludeGetResponse -from cloudflare.types.zero_trust.devices.policies.split_tunnel_exclude import SplitTunnelExclude -from cloudflare.types.zero_trust.devices.policies.exclude_update_response import ExcludeUpdateResponse +from cloudflare.types.zero_trust.devices.policies import ( + ExcludeGetResponse, + SplitTunnelExclude, + ExcludeUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py index f5482786d611..c23935cc023c 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py +++ b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.policies.fallback_domain import FallbackDomain -from cloudflare.types.zero_trust.devices.policies.fallback_domain_get_response import FallbackDomainGetResponse -from cloudflare.types.zero_trust.devices.policies.fallback_domain_update_response import FallbackDomainUpdateResponse +from cloudflare.types.zero_trust.devices.policies import ( + FallbackDomain, + FallbackDomainGetResponse, + FallbackDomainUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/policies/test_includes.py b/tests/api_resources/zero_trust/devices/policies/test_includes.py index 26b065c0f39e..d17008e05589 100644 --- a/tests/api_resources/zero_trust/devices/policies/test_includes.py +++ b/tests/api_resources/zero_trust/devices/policies/test_includes.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.policies.include_get_response import IncludeGetResponse -from cloudflare.types.zero_trust.devices.policies.split_tunnel_include import SplitTunnelInclude -from cloudflare.types.zero_trust.devices.policies.include_update_response import IncludeUpdateResponse +from cloudflare.types.zero_trust.devices.policies import ( + IncludeGetResponse, + SplitTunnelInclude, + IncludeUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/posture/test_integrations.py b/tests/api_resources/zero_trust/devices/posture/test_integrations.py index 000ee6118dbe..1456d4f79a49 100644 --- a/tests/api_resources/zero_trust/devices/posture/test_integrations.py +++ b/tests/api_resources/zero_trust/devices/posture/test_integrations.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.posture.integration import Integration -from cloudflare.types.zero_trust.devices.posture.integration_delete_response import IntegrationDeleteResponse +from cloudflare.types.zero_trust.devices.posture import ( + Integration, + IntegrationDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_dex_tests.py b/tests/api_resources/zero_trust/devices/test_dex_tests.py index 32788a4a1d00..67f1de6d8997 100644 --- a/tests/api_resources/zero_trust/devices/test_dex_tests.py +++ b/tests/api_resources/zero_trust/devices/test_dex_tests.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.schema_http import SchemaHTTP -from cloudflare.types.zero_trust.devices.dex_test_delete_response import DEXTestDeleteResponse +from cloudflare.types.zero_trust.devices import ( + SchemaHTTP, + DEXTestDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_networks.py b/tests/api_resources/zero_trust/devices/test_networks.py index a4dec6c111d7..2abc365a0bf1 100644 --- a/tests/api_resources/zero_trust/devices/test_networks.py +++ b/tests/api_resources/zero_trust/devices/test_networks.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.device_network import DeviceNetwork -from cloudflare.types.zero_trust.devices.network_delete_response import NetworkDeleteResponse +from cloudflare.types.zero_trust.devices import ( + DeviceNetwork, + NetworkDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_override_codes.py b/tests/api_resources/zero_trust/devices/test_override_codes.py index fe5f06f07440..dd12c6a6af26 100644 --- a/tests/api_resources/zero_trust/devices/test_override_codes.py +++ b/tests/api_resources/zero_trust/devices/test_override_codes.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.override_code_list_response import OverrideCodeListResponse +from cloudflare.types.zero_trust.devices import OverrideCodeListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_policies.py b/tests/api_resources/zero_trust/devices/test_policies.py index 26958d246eed..87c0e3e20f6d 100644 --- a/tests/api_resources/zero_trust/devices/test_policies.py +++ b/tests/api_resources/zero_trust/devices/test_policies.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.settings_policy import SettingsPolicy -from cloudflare.types.zero_trust.devices.policy_delete_response import PolicyDeleteResponse +from cloudflare.types.zero_trust.devices import ( + SettingsPolicy, + PolicyDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_posture.py b/tests/api_resources/zero_trust/devices/test_posture.py index df526906d327..3d259a27700e 100644 --- a/tests/api_resources/zero_trust/devices/test_posture.py +++ b/tests/api_resources/zero_trust/devices/test_posture.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.devices.device_posture_rule import DevicePostureRule -from cloudflare.types.zero_trust.devices.posture_delete_response import PostureDeleteResponse +from cloudflare.types.zero_trust.devices import ( + DevicePostureRule, + PostureDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_revoke.py b/tests/api_resources/zero_trust/devices/test_revoke.py index 0809adcd5b05..450ed115f7a5 100644 --- a/tests/api_resources/zero_trust/devices/test_revoke.py +++ b/tests/api_resources/zero_trust/devices/test_revoke.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.revoke_create_response import RevokeCreateResponse +from cloudflare.types.zero_trust.devices import RevokeCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_settings.py b/tests/api_resources/zero_trust/devices/test_settings.py index 4ce4bb96e6bc..4223ebeeecb0 100644 --- a/tests/api_resources/zero_trust/devices/test_settings.py +++ b/tests/api_resources/zero_trust/devices/test_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.device_settings import DeviceSettings +from cloudflare.types.zero_trust.devices import DeviceSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/devices/test_unrevoke.py b/tests/api_resources/zero_trust/devices/test_unrevoke.py index 488d82eca213..1734c9f55fd5 100644 --- a/tests/api_resources/zero_trust/devices/test_unrevoke.py +++ b/tests/api_resources/zero_trust/devices/test_unrevoke.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.devices.unrevoke_create_response import UnrevokeCreateResponse +from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py b/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py index 4ce0b0c2511a..6c300ed53f7d 100644 --- a/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py +++ b/tests/api_resources/zero_trust/dex/fleet_status/test_devices.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.zero_trust.dex.fleet_status.device_list_response import DeviceListResponse +from cloudflare.types.zero_trust.dex.fleet_status import DeviceListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py b/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py index e74e9c6070c2..44f1f6f210b1 100644 --- a/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py +++ b/tests/api_resources/zero_trust/dex/http_tests/test_percentiles.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.http_tests.http_details_percentiles import HTTPDetailsPercentiles +from cloudflare.types.zero_trust.dex.http_tests import HTTPDetailsPercentiles base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_fleet_status.py b/tests/api_resources/zero_trust/dex/test_fleet_status.py index 1712bcb26699..0a360ca83d58 100644 --- a/tests/api_resources/zero_trust/dex/test_fleet_status.py +++ b/tests/api_resources/zero_trust/dex/test_fleet_status.py @@ -9,7 +9,9 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.fleet_status_live_response import FleetStatusLiveResponse +from cloudflare.types.zero_trust.dex import ( + FleetStatusLiveResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_http_tests.py b/tests/api_resources/zero_trust/dex/test_http_tests.py index 0b852d34967c..1bee3b8453ae 100644 --- a/tests/api_resources/zero_trust/dex/test_http_tests.py +++ b/tests/api_resources/zero_trust/dex/test_http_tests.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.http_details import HTTPDetails +from cloudflare.types.zero_trust.dex import HTTPDetails base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_tests.py b/tests/api_resources/zero_trust/dex/test_tests.py index 4b1bd5ec38f4..654803068c28 100644 --- a/tests/api_resources/zero_trust/dex/test_tests.py +++ b/tests/api_resources/zero_trust/dex/test_tests.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination -from cloudflare.types.zero_trust.dex.test_list_response import TestListResponse +from cloudflare.types.zero_trust.dex import TestListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/test_traceroute_tests.py b/tests/api_resources/zero_trust/dex/test_traceroute_tests.py index ea3673d3c1e7..ee3c35fe683b 100644 --- a/tests/api_resources/zero_trust/dex/test_traceroute_tests.py +++ b/tests/api_resources/zero_trust/dex/test_traceroute_tests.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.traceroute import Traceroute -from cloudflare.types.zero_trust.network_path_response import NetworkPathResponse -from cloudflare.types.zero_trust.dex.traceroute_test_percentiles_response import TracerouteTestPercentilesResponse +from cloudflare.types.zero_trust import NetworkPathResponse +from cloudflare.types.zero_trust.dex import ( + Traceroute, + TracerouteTestPercentilesResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py b/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py index 182a51a8a51d..219371cebd9f 100644 --- a/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py +++ b/tests/api_resources/zero_trust/dex/tests/test_unique_devices.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.tests.unique_devices import UniqueDevices +from cloudflare.types.zero_trust.dex.tests import UniqueDevices base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py b/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py index d9f51e98cfea..a0b19f6c8819 100644 --- a/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py +++ b/tests/api_resources/zero_trust/dex/traceroute_test_results/test_network_path.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dex.traceroute_test_results.network_path_get_response import NetworkPathGetResponse +from cloudflare.types.zero_trust.dex.traceroute_test_results import NetworkPathGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/datasets/test_upload.py b/tests/api_resources/zero_trust/dlp/datasets/test_upload.py index 4664f9456fb3..073f054e4693 100644 --- a/tests/api_resources/zero_trust/dlp/datasets/test_upload.py +++ b/tests/api_resources/zero_trust/dlp/datasets/test_upload.py @@ -9,8 +9,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.dataset import Dataset -from cloudflare.types.zero_trust.dlp.datasets.new_version import NewVersion +from cloudflare.types.zero_trust.dlp import Dataset +from cloudflare.types.zero_trust.dlp.datasets import NewVersion base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py index a33af142c569..0175e0de8f91 100644 --- a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py +++ b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.profiles.custom_profile import CustomProfile -from cloudflare.types.zero_trust.dlp.profiles.custom_create_response import CustomCreateResponse -from cloudflare.types.zero_trust.dlp.profiles.custom_delete_response import CustomDeleteResponse +from cloudflare.types.zero_trust.dlp.profiles import ( + CustomProfile, + CustomCreateResponse, + CustomDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py b/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py index 85a2e4248c76..42c8f7812acc 100644 --- a/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py +++ b/tests/api_resources/zero_trust/dlp/profiles/test_predefined.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.profiles.predefined_profile import PredefinedProfile +from cloudflare.types.zero_trust.dlp.profiles import PredefinedProfile base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_datasets.py b/tests/api_resources/zero_trust/dlp/test_datasets.py index 59f4bdb519f9..c6a79798a4d5 100644 --- a/tests/api_resources/zero_trust/dlp/test_datasets.py +++ b/tests/api_resources/zero_trust/dlp/test_datasets.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.dlp.dataset import Dataset -from cloudflare.types.zero_trust.dlp.dataset_creation import DatasetCreation +from cloudflare.types.zero_trust.dlp import Dataset, DatasetCreation base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_patterns.py b/tests/api_resources/zero_trust/dlp/test_patterns.py index 8f2493a87679..4f3c0ded98d6 100644 --- a/tests/api_resources/zero_trust/dlp/test_patterns.py +++ b/tests/api_resources/zero_trust/dlp/test_patterns.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.logpush.ownership_validation import OwnershipValidation +from cloudflare.types.logpush import OwnershipValidation base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_payload_logs.py b/tests/api_resources/zero_trust/dlp/test_payload_logs.py index 10b34cadfefe..0f18a2aa45e1 100644 --- a/tests/api_resources/zero_trust/dlp/test_payload_logs.py +++ b/tests/api_resources/zero_trust/dlp/test_payload_logs.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.dlp.payload_log_get_response import PayloadLogGetResponse -from cloudflare.types.zero_trust.dlp.payload_log_update_response import PayloadLogUpdateResponse +from cloudflare.types.zero_trust.dlp import PayloadLogGetResponse, PayloadLogUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/dlp/test_profiles.py b/tests/api_resources/zero_trust/dlp/test_profiles.py index a4f33dc29877..c373f9035ff3 100644 --- a/tests/api_resources/zero_trust/dlp/test_profiles.py +++ b/tests/api_resources/zero_trust/dlp/test_profiles.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.dlp.profile import Profile -from cloudflare.types.zero_trust.dlp.profile_get_response import ProfileGetResponse +from cloudflare.types.zero_trust.dlp import Profile, ProfileGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/lists/test_items.py b/tests/api_resources/zero_trust/gateway/lists/test_items.py index 468ec04bab5f..e16f44bd1ceb 100644 --- a/tests/api_resources/zero_trust/gateway/lists/test_items.py +++ b/tests/api_resources/zero_trust/gateway/lists/test_items.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.lists.item_list_response import ItemListResponse +from cloudflare.types.zero_trust.gateway.lists import ItemListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_app_types.py b/tests/api_resources/zero_trust/gateway/test_app_types.py index 50cdc7d54436..73e3cc10608b 100644 --- a/tests/api_resources/zero_trust/gateway/test_app_types.py +++ b/tests/api_resources/zero_trust/gateway/test_app_types.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.app_type import AppType +from cloudflare.types.zero_trust.gateway import AppType base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py index dfff2c64800d..46d1d9b060b7 100644 --- a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py +++ b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway.gateway_settings import GatewaySettings +from cloudflare.types.zero_trust.gateway import GatewaySettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_categories.py b/tests/api_resources/zero_trust/gateway/test_categories.py index 493145345f82..1ec3c2e3886d 100644 --- a/tests/api_resources/zero_trust/gateway/test_categories.py +++ b/tests/api_resources/zero_trust/gateway/test_categories.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.category import Category +from cloudflare.types.zero_trust.gateway import Category base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_configurations.py b/tests/api_resources/zero_trust/gateway/test_configurations.py index fdb2189a5ed8..49df85907e5b 100644 --- a/tests/api_resources/zero_trust/gateway/test_configurations.py +++ b/tests/api_resources/zero_trust/gateway/test_configurations.py @@ -9,9 +9,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway.configuration_get_response import ConfigurationGetResponse -from cloudflare.types.zero_trust.gateway.configuration_edit_response import ConfigurationEditResponse -from cloudflare.types.zero_trust.gateway.configuration_update_response import ConfigurationUpdateResponse +from cloudflare.types.zero_trust.gateway import ( + ConfigurationGetResponse, + ConfigurationEditResponse, + ConfigurationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py index 5dd27bfa5ee9..1400805ca769 100644 --- a/tests/api_resources/zero_trust/gateway/test_lists.py +++ b/tests/api_resources/zero_trust/gateway/test_lists.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.gateway_list import GatewayList -from cloudflare.types.zero_trust.gateway.list_create_response import ListCreateResponse -from cloudflare.types.zero_trust.gateway.list_delete_response import ListDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + GatewayList, + ListCreateResponse, + ListDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_locations.py b/tests/api_resources/zero_trust/gateway/test_locations.py index 53b0131e9a48..31079bcb1116 100644 --- a/tests/api_resources/zero_trust/gateway/test_locations.py +++ b/tests/api_resources/zero_trust/gateway/test_locations.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.location import Location -from cloudflare.types.zero_trust.gateway.location_delete_response import LocationDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + Location, + LocationDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_logging.py b/tests/api_resources/zero_trust/gateway/test_logging.py index 456b0289c8b6..3fb8cdc6e286 100644 --- a/tests/api_resources/zero_trust/gateway/test_logging.py +++ b/tests/api_resources/zero_trust/gateway/test_logging.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway.logging_setting import LoggingSetting +from cloudflare.types.zero_trust.gateway import LoggingSetting base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py index 076a7498d80f..6016d8561c63 100644 --- a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py +++ b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.proxy_endpoint import ProxyEndpoint -from cloudflare.types.zero_trust.gateway.proxy_endpoint_delete_response import ProxyEndpointDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + ProxyEndpoint, + ProxyEndpointDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/gateway/test_rules.py b/tests/api_resources/zero_trust/gateway/test_rules.py index 942f2bf34ad4..3418dc65ca23 100644 --- a/tests/api_resources/zero_trust/gateway/test_rules.py +++ b/tests/api_resources/zero_trust/gateway/test_rules.py @@ -10,8 +10,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.gateway.gateway_rule import GatewayRule -from cloudflare.types.zero_trust.gateway.rule_delete_response import RuleDeleteResponse +from cloudflare.types.zero_trust.gateway import ( + GatewayRule, + RuleDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/routes/test_ips.py b/tests/api_resources/zero_trust/networks/routes/test_ips.py index a9e502c1168e..855684c7b80b 100644 --- a/tests/api_resources/zero_trust/networks/routes/test_ips.py +++ b/tests/api_resources/zero_trust/networks/routes/test_ips.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks.teamnet import Teamnet +from cloudflare.types.zero_trust.networks import Teamnet base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/routes/test_networks.py b/tests/api_resources/zero_trust/networks/routes/test_networks.py index 080b8b57b6b0..954d3bfed6f8 100644 --- a/tests/api_resources/zero_trust/networks/routes/test_networks.py +++ b/tests/api_resources/zero_trust/networks/routes/test_networks.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.networks.route import Route +from cloudflare.types.zero_trust.networks import Route base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/test_routes.py b/tests/api_resources/zero_trust/networks/test_routes.py index ce54749d1d85..c788dc681991 100644 --- a/tests/api_resources/zero_trust/networks/test_routes.py +++ b/tests/api_resources/zero_trust/networks/test_routes.py @@ -11,8 +11,10 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.zero_trust.networks.route import Route -from cloudflare.types.zero_trust.networks.teamnet import Teamnet +from cloudflare.types.zero_trust.networks import ( + Route, + Teamnet, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/networks/test_virtual_networks.py b/tests/api_resources/zero_trust/networks/test_virtual_networks.py index 63c3bb618933..b685bdb40469 100644 --- a/tests/api_resources/zero_trust/networks/test_virtual_networks.py +++ b/tests/api_resources/zero_trust/networks/test_virtual_networks.py @@ -10,10 +10,12 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.networks.virtual_network import VirtualNetwork -from cloudflare.types.zero_trust.networks.virtual_network_edit_response import VirtualNetworkEditResponse -from cloudflare.types.zero_trust.networks.virtual_network_create_response import VirtualNetworkCreateResponse -from cloudflare.types.zero_trust.networks.virtual_network_delete_response import VirtualNetworkDeleteResponse +from cloudflare.types.zero_trust.networks import ( + VirtualNetwork, + VirtualNetworkEditResponse, + VirtualNetworkCreateResponse, + VirtualNetworkDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py b/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py index b3a3f782a818..274bc9a39d4f 100644 --- a/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py +++ b/tests/api_resources/zero_trust/risk_scoring/test_behaviours.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.risk_scoring.behaviour_get_response import BehaviourGetResponse -from cloudflare.types.zero_trust.risk_scoring.behaviour_update_response import BehaviourUpdateResponse +from cloudflare.types.zero_trust.risk_scoring import ( + BehaviourGetResponse, + BehaviourUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/risk_scoring/test_summary.py b/tests/api_resources/zero_trust/risk_scoring/test_summary.py index b10f5fe4b9c1..37e56ed24498 100644 --- a/tests/api_resources/zero_trust/risk_scoring/test_summary.py +++ b/tests/api_resources/zero_trust/risk_scoring/test_summary.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.risk_scoring.summary_get_response import SummaryGetResponse +from cloudflare.types.zero_trust.risk_scoring import SummaryGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_connectivity_settings.py b/tests/api_resources/zero_trust/test_connectivity_settings.py index 5c129dd44c4d..001080cf070a 100644 --- a/tests/api_resources/zero_trust/test_connectivity_settings.py +++ b/tests/api_resources/zero_trust/test_connectivity_settings.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.connectivity_setting_get_response import ConnectivitySettingGetResponse -from cloudflare.types.zero_trust.connectivity_setting_edit_response import ConnectivitySettingEditResponse +from cloudflare.types.zero_trust import ( + ConnectivitySettingGetResponse, + ConnectivitySettingEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_devices.py b/tests/api_resources/zero_trust/test_devices.py index 9e3bbc48c253..1beef070418d 100644 --- a/tests/api_resources/zero_trust/test_devices.py +++ b/tests/api_resources/zero_trust/test_devices.py @@ -10,8 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.device import Device -from cloudflare.types.zero_trust.device_get_response import DeviceGetResponse +from cloudflare.types.zero_trust import Device, DeviceGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_gateway.py b/tests/api_resources/zero_trust/test_gateway.py index 9089bb0f26db..27d4193e48e6 100644 --- a/tests/api_resources/zero_trust/test_gateway.py +++ b/tests/api_resources/zero_trust/test_gateway.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.gateway_list_response import GatewayListResponse -from cloudflare.types.zero_trust.gateway_create_response import GatewayCreateResponse +from cloudflare.types.zero_trust import GatewayListResponse, GatewayCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_identity_providers.py b/tests/api_resources/zero_trust/test_identity_providers.py index f19d50b53202..145b69313d1d 100644 --- a/tests/api_resources/zero_trust/test_identity_providers.py +++ b/tests/api_resources/zero_trust/test_identity_providers.py @@ -10,9 +10,11 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.zero_trust.identity_provider import IdentityProvider -from cloudflare.types.zero_trust.identity_provider_list_response import IdentityProviderListResponse -from cloudflare.types.zero_trust.identity_provider_delete_response import IdentityProviderDeleteResponse +from cloudflare.types.zero_trust import ( + IdentityProvider, + IdentityProviderListResponse, + IdentityProviderDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_organizations.py b/tests/api_resources/zero_trust/test_organizations.py index 9f9c1b87e81b..9aed3a85eec5 100644 --- a/tests/api_resources/zero_trust/test_organizations.py +++ b/tests/api_resources/zero_trust/test_organizations.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.organization import Organization -from cloudflare.types.zero_trust.organization_revoke_users_response import OrganizationRevokeUsersResponse +from cloudflare.types.zero_trust import ( + Organization, + OrganizationRevokeUsersResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_risk_scoring.py b/tests/api_resources/zero_trust/test_risk_scoring.py index 9211f77cafd4..a6b124a3dc77 100644 --- a/tests/api_resources/zero_trust/test_risk_scoring.py +++ b/tests/api_resources/zero_trust/test_risk_scoring.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.risk_scoring_get_response import RiskScoringGetResponse -from cloudflare.types.zero_trust.risk_scoring_reset_response import RiskScoringResetResponse +from cloudflare.types.zero_trust import RiskScoringGetResponse, RiskScoringResetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_seats.py b/tests/api_resources/zero_trust/test_seats.py index 224caa6609eb..f1b797fd45a3 100644 --- a/tests/api_resources/zero_trust/test_seats.py +++ b/tests/api_resources/zero_trust/test_seats.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.seat_edit_response import SeatEditResponse +from cloudflare.types.zero_trust import SeatEditResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/test_tunnels.py b/tests/api_resources/zero_trust/test_tunnels.py index cc99acb7d833..e2f9ec7b52c0 100644 --- a/tests/api_resources/zero_trust/test_tunnels.py +++ b/tests/api_resources/zero_trust/test_tunnels.py @@ -11,11 +11,13 @@ from tests.utils import assert_matches_type from cloudflare._utils import parse_datetime from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray -from cloudflare.types.zero_trust.tunnel_get_response import TunnelGetResponse -from cloudflare.types.zero_trust.tunnel_edit_response import TunnelEditResponse -from cloudflare.types.zero_trust.tunnel_list_response import TunnelListResponse -from cloudflare.types.zero_trust.tunnel_create_response import TunnelCreateResponse -from cloudflare.types.zero_trust.tunnel_delete_response import TunnelDeleteResponse +from cloudflare.types.zero_trust import ( + TunnelGetResponse, + TunnelEditResponse, + TunnelListResponse, + TunnelCreateResponse, + TunnelDeleteResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_configurations.py b/tests/api_resources/zero_trust/tunnels/test_configurations.py index b79fa1154cab..13e89aa70ac3 100644 --- a/tests/api_resources/zero_trust/tunnels/test_configurations.py +++ b/tests/api_resources/zero_trust/tunnels/test_configurations.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels.configuration_get_response import ConfigurationGetResponse -from cloudflare.types.zero_trust.tunnels.configuration_update_response import ConfigurationUpdateResponse +from cloudflare.types.zero_trust.tunnels import ( + ConfigurationGetResponse, + ConfigurationUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_connections.py b/tests/api_resources/zero_trust/tunnels/test_connections.py index 7db09e51ba9a..62f103bd6016 100644 --- a/tests/api_resources/zero_trust/tunnels/test_connections.py +++ b/tests/api_resources/zero_trust/tunnels/test_connections.py @@ -9,8 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels.connection_get_response import ConnectionGetResponse -from cloudflare.types.zero_trust.tunnels.connection_delete_response import ConnectionDeleteResponse +from cloudflare.types.zero_trust.tunnels import ConnectionGetResponse, ConnectionDeleteResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_connectors.py b/tests/api_resources/zero_trust/tunnels/test_connectors.py index d79328976806..6c9843d9e52b 100644 --- a/tests/api_resources/zero_trust/tunnels/test_connectors.py +++ b/tests/api_resources/zero_trust/tunnels/test_connectors.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels.client import Client +from cloudflare.types.zero_trust.tunnels import Client base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_management.py b/tests/api_resources/zero_trust/tunnels/test_management.py index 7649ed32b24f..4fe9fafa2bf4 100644 --- a/tests/api_resources/zero_trust/tunnels/test_management.py +++ b/tests/api_resources/zero_trust/tunnels/test_management.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels.management_create_response import ManagementCreateResponse +from cloudflare.types.zero_trust.tunnels import ManagementCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zero_trust/tunnels/test_token.py b/tests/api_resources/zero_trust/tunnels/test_token.py index e9706ef7ec18..c4535952c3fc 100644 --- a/tests/api_resources/zero_trust/tunnels/test_token.py +++ b/tests/api_resources/zero_trust/tunnels/test_token.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zero_trust.tunnels.token_get_response import TokenGetResponse +from cloudflare.types.zero_trust.tunnels import TokenGetResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_advanced_ddos.py b/tests/api_resources/zones/settings/test_advanced_ddos.py index fc5506819469..6866ae5e9fce 100644 --- a/tests/api_resources/zones/settings/test_advanced_ddos.py +++ b/tests/api_resources/zones/settings/test_advanced_ddos.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.advanced_ddos import AdvancedDDoS +from cloudflare.types.zones.settings import AdvancedDDoS base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_always_online.py b/tests/api_resources/zones/settings/test_always_online.py index 34d3444f3ca1..8773d50c8929 100644 --- a/tests/api_resources/zones/settings/test_always_online.py +++ b/tests/api_resources/zones/settings/test_always_online.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.always_online import AlwaysOnline +from cloudflare.types.zones.settings import AlwaysOnline base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_always_use_https.py b/tests/api_resources/zones/settings/test_always_use_https.py index b62a3d411408..31a42cb7de79 100644 --- a/tests/api_resources/zones/settings/test_always_use_https.py +++ b/tests/api_resources/zones/settings/test_always_use_https.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.always_use_https import AlwaysUseHTTPS +from cloudflare.types.zones.settings import AlwaysUseHTTPS base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_automatic_https_rewrites.py b/tests/api_resources/zones/settings/test_automatic_https_rewrites.py index 7eb774fb8d65..4601468bab38 100644 --- a/tests/api_resources/zones/settings/test_automatic_https_rewrites.py +++ b/tests/api_resources/zones/settings/test_automatic_https_rewrites.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.automatic_https_rewrites import AutomaticHTTPSRewrites +from cloudflare.types.zones.settings import AutomaticHTTPSRewrites base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_automatic_platform_optimization.py b/tests/api_resources/zones/settings/test_automatic_platform_optimization.py index 7249757a4c3b..d9b945e5762d 100644 --- a/tests/api_resources/zones/settings/test_automatic_platform_optimization.py +++ b/tests/api_resources/zones/settings/test_automatic_platform_optimization.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import AutomaticPlatformOptimization -from cloudflare.types.zones.settings.automatic_platform_optimization import AutomaticPlatformOptimization base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_brotli.py b/tests/api_resources/zones/settings/test_brotli.py index 38e2dec2bd53..98ac6368896f 100644 --- a/tests/api_resources/zones/settings/test_brotli.py +++ b/tests/api_resources/zones/settings/test_brotli.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.brotli import Brotli +from cloudflare.types.zones.settings import Brotli base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_browser_cache_ttl.py b/tests/api_resources/zones/settings/test_browser_cache_ttl.py index b3cba09de3a2..c971841241f3 100644 --- a/tests/api_resources/zones/settings/test_browser_cache_ttl.py +++ b/tests/api_resources/zones/settings/test_browser_cache_ttl.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.browser_cache_ttl import BrowserCacheTTL +from cloudflare.types.zones.settings import BrowserCacheTTL base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_browser_check.py b/tests/api_resources/zones/settings/test_browser_check.py index d15b4289cc0b..e025959af30b 100644 --- a/tests/api_resources/zones/settings/test_browser_check.py +++ b/tests/api_resources/zones/settings/test_browser_check.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.browser_check import BrowserCheck +from cloudflare.types.zones.settings import BrowserCheck base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_cache_level.py b/tests/api_resources/zones/settings/test_cache_level.py index e5d8076c2f7c..cc8808120e47 100644 --- a/tests/api_resources/zones/settings/test_cache_level.py +++ b/tests/api_resources/zones/settings/test_cache_level.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.cache_level import CacheLevel +from cloudflare.types.zones.settings import CacheLevel base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_challenge_ttl.py b/tests/api_resources/zones/settings/test_challenge_ttl.py index 0ce0ad8750f2..b5074a454b73 100644 --- a/tests/api_resources/zones/settings/test_challenge_ttl.py +++ b/tests/api_resources/zones/settings/test_challenge_ttl.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.challenge_ttl import ChallengeTTL +from cloudflare.types.zones.settings import ChallengeTTL base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_ciphers.py b/tests/api_resources/zones/settings/test_ciphers.py index 7e3097339071..5faf738d89ce 100644 --- a/tests/api_resources/zones/settings/test_ciphers.py +++ b/tests/api_resources/zones/settings/test_ciphers.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.ciphers import Ciphers +from cloudflare.types.zones.settings import Ciphers base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_development_mode.py b/tests/api_resources/zones/settings/test_development_mode.py index dbac3f8bf9bd..3255e5c314b9 100644 --- a/tests/api_resources/zones/settings/test_development_mode.py +++ b/tests/api_resources/zones/settings/test_development_mode.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.development_mode import DevelopmentMode +from cloudflare.types.zones.settings import DevelopmentMode base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_early_hints.py b/tests/api_resources/zones/settings/test_early_hints.py index 7991d96c9c8f..201428cdcc31 100644 --- a/tests/api_resources/zones/settings/test_early_hints.py +++ b/tests/api_resources/zones/settings/test_early_hints.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.early_hints import EarlyHints +from cloudflare.types.zones.settings import EarlyHints base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_email_obfuscation.py b/tests/api_resources/zones/settings/test_email_obfuscation.py index 386dd32f76d8..da0b23d3c3f0 100644 --- a/tests/api_resources/zones/settings/test_email_obfuscation.py +++ b/tests/api_resources/zones/settings/test_email_obfuscation.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.email_obfuscation import EmailObfuscation +from cloudflare.types.zones.settings import EmailObfuscation base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_font_settings.py b/tests/api_resources/zones/settings/test_font_settings.py index 4e4a033836a1..962ef1d1ef26 100644 --- a/tests/api_resources/zones/settings/test_font_settings.py +++ b/tests/api_resources/zones/settings/test_font_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.font_settings import FontSettings +from cloudflare.types.zones.settings import FontSettings base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_h2_prioritization.py b/tests/api_resources/zones/settings/test_h2_prioritization.py index cbd4afc631b3..ec70ca9633e2 100644 --- a/tests/api_resources/zones/settings/test_h2_prioritization.py +++ b/tests/api_resources/zones/settings/test_h2_prioritization.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import H2Prioritization -from cloudflare.types.zones.settings.h2_prioritization import H2Prioritization base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_hotlink_protection.py b/tests/api_resources/zones/settings/test_hotlink_protection.py index 369e33ef10a1..59aafb76c7c1 100644 --- a/tests/api_resources/zones/settings/test_hotlink_protection.py +++ b/tests/api_resources/zones/settings/test_hotlink_protection.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.hotlink_protection import HotlinkProtection +from cloudflare.types.zones.settings import HotlinkProtection base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_http2.py b/tests/api_resources/zones/settings/test_http2.py index fad9257b0bd9..6a0f922bd206 100644 --- a/tests/api_resources/zones/settings/test_http2.py +++ b/tests/api_resources/zones/settings/test_http2.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.http2 import HTTP2 +from cloudflare.types.zones.settings import HTTP2 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_http3.py b/tests/api_resources/zones/settings/test_http3.py index 639bb0bbc20a..258a55d13659 100644 --- a/tests/api_resources/zones/settings/test_http3.py +++ b/tests/api_resources/zones/settings/test_http3.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.http3 import HTTP3 +from cloudflare.types.zones.settings import HTTP3 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_image_resizing.py b/tests/api_resources/zones/settings/test_image_resizing.py index ff978b988a86..c87a4190713d 100644 --- a/tests/api_resources/zones/settings/test_image_resizing.py +++ b/tests/api_resources/zones/settings/test_image_resizing.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import ImageResizing -from cloudflare.types.zones.settings.image_resizing import ImageResizing base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_ip_geolocation.py b/tests/api_resources/zones/settings/test_ip_geolocation.py index ecd99d6945b1..090494ed0848 100644 --- a/tests/api_resources/zones/settings/test_ip_geolocation.py +++ b/tests/api_resources/zones/settings/test_ip_geolocation.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.ip_geolocation import IPGeolocation +from cloudflare.types.zones.settings import IPGeolocation base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_ipv6.py b/tests/api_resources/zones/settings/test_ipv6.py index 21f94f4fad49..9e5c0651d2cd 100644 --- a/tests/api_resources/zones/settings/test_ipv6.py +++ b/tests/api_resources/zones/settings/test_ipv6.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.ipv6 import IPV6 +from cloudflare.types.zones.settings import IPV6 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_min_tls_version.py b/tests/api_resources/zones/settings/test_min_tls_version.py index ba6a0078318c..e9667e3d696d 100644 --- a/tests/api_resources/zones/settings/test_min_tls_version.py +++ b/tests/api_resources/zones/settings/test_min_tls_version.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.min_tls_version import MinTLSVersion +from cloudflare.types.zones.settings import MinTLSVersion base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_minify.py b/tests/api_resources/zones/settings/test_minify.py index e32be9f8a1d6..fbfdffb16a79 100644 --- a/tests/api_resources/zones/settings/test_minify.py +++ b/tests/api_resources/zones/settings/test_minify.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.minify import Minify +from cloudflare.types.zones.settings import Minify base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_mirage.py b/tests/api_resources/zones/settings/test_mirage.py index df7e84f85847..54af1256547b 100644 --- a/tests/api_resources/zones/settings/test_mirage.py +++ b/tests/api_resources/zones/settings/test_mirage.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.mirage import Mirage +from cloudflare.types.zones.settings import Mirage base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_mobile_redirect.py b/tests/api_resources/zones/settings/test_mobile_redirect.py index 5fd6a2731c52..da662f3d23ff 100644 --- a/tests/api_resources/zones/settings/test_mobile_redirect.py +++ b/tests/api_resources/zones/settings/test_mobile_redirect.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.mobile_redirect import MobileRedirect +from cloudflare.types.zones.settings import MobileRedirect base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_nel.py b/tests/api_resources/zones/settings/test_nel.py index 5879cf8888cd..06df1c52474c 100644 --- a/tests/api_resources/zones/settings/test_nel.py +++ b/tests/api_resources/zones/settings/test_nel.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import NEL -from cloudflare.types.zones.settings.nel import NEL base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_opportunistic_encryption.py b/tests/api_resources/zones/settings/test_opportunistic_encryption.py index ea85bed6d1be..de0952f3313e 100644 --- a/tests/api_resources/zones/settings/test_opportunistic_encryption.py +++ b/tests/api_resources/zones/settings/test_opportunistic_encryption.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.opportunistic_encryption import OpportunisticEncryption +from cloudflare.types.zones.settings import OpportunisticEncryption base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_opportunistic_onion.py b/tests/api_resources/zones/settings/test_opportunistic_onion.py index 2f5e4d340e4c..95d177adbc8c 100644 --- a/tests/api_resources/zones/settings/test_opportunistic_onion.py +++ b/tests/api_resources/zones/settings/test_opportunistic_onion.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.opportunistic_onion import OpportunisticOnion +from cloudflare.types.zones.settings import OpportunisticOnion base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_orange_to_orange.py b/tests/api_resources/zones/settings/test_orange_to_orange.py index 77f1b6c0d079..641ff3938972 100644 --- a/tests/api_resources/zones/settings/test_orange_to_orange.py +++ b/tests/api_resources/zones/settings/test_orange_to_orange.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import OrangeToOrange -from cloudflare.types.zones.settings.orange_to_orange import OrangeToOrange base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_origin_error_page_pass_thru.py b/tests/api_resources/zones/settings/test_origin_error_page_pass_thru.py index 5bd6bdfeabd1..0f8db392e890 100644 --- a/tests/api_resources/zones/settings/test_origin_error_page_pass_thru.py +++ b/tests/api_resources/zones/settings/test_origin_error_page_pass_thru.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.origin_error_page_pass_thru import OriginErrorPagePassThru +from cloudflare.types.zones.settings import OriginErrorPagePassThru base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_origin_max_http_version.py b/tests/api_resources/zones/settings/test_origin_max_http_version.py index 39ddb11a280c..68024c905a65 100644 --- a/tests/api_resources/zones/settings/test_origin_max_http_version.py +++ b/tests/api_resources/zones/settings/test_origin_max_http_version.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.origin_max_http_version_get_response import OriginMaxHTTPVersionGetResponse -from cloudflare.types.zones.settings.origin_max_http_version_edit_response import OriginMaxHTTPVersionEditResponse +from cloudflare.types.zones.settings import ( + OriginMaxHTTPVersionGetResponse, + OriginMaxHTTPVersionEditResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_polish.py b/tests/api_resources/zones/settings/test_polish.py index f540a03c5ee7..e2fc5942cb93 100644 --- a/tests/api_resources/zones/settings/test_polish.py +++ b/tests/api_resources/zones/settings/test_polish.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import Polish -from cloudflare.types.zones.settings.polish import Polish base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_prefetch_preload.py b/tests/api_resources/zones/settings/test_prefetch_preload.py index 89d23f4f3283..ad818f62ba6c 100644 --- a/tests/api_resources/zones/settings/test_prefetch_preload.py +++ b/tests/api_resources/zones/settings/test_prefetch_preload.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.prefetch_preload import PrefetchPreload +from cloudflare.types.zones.settings import PrefetchPreload base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_proxy_read_timeout.py b/tests/api_resources/zones/settings/test_proxy_read_timeout.py index 88ccb6cfeac5..04f4c151d2e6 100644 --- a/tests/api_resources/zones/settings/test_proxy_read_timeout.py +++ b/tests/api_resources/zones/settings/test_proxy_read_timeout.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import ProxyReadTimeout -from cloudflare.types.zones.settings.proxy_read_timeout import ProxyReadTimeout base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_pseudo_ipv4.py b/tests/api_resources/zones/settings/test_pseudo_ipv4.py index 3877f9edf902..a777c5c3bd76 100644 --- a/tests/api_resources/zones/settings/test_pseudo_ipv4.py +++ b/tests/api_resources/zones/settings/test_pseudo_ipv4.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.pseudo_ipv4 import PseudoIPV4 +from cloudflare.types.zones.settings import PseudoIPV4 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_response_buffering.py b/tests/api_resources/zones/settings/test_response_buffering.py index 254e8ae809e4..c41a364275a2 100644 --- a/tests/api_resources/zones/settings/test_response_buffering.py +++ b/tests/api_resources/zones/settings/test_response_buffering.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.response_buffering import ResponseBuffering +from cloudflare.types.zones.settings import ResponseBuffering base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_rocket_loader.py b/tests/api_resources/zones/settings/test_rocket_loader.py index ea7f19e20dc0..353098a9e62d 100644 --- a/tests/api_resources/zones/settings/test_rocket_loader.py +++ b/tests/api_resources/zones/settings/test_rocket_loader.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import RocketLoader -from cloudflare.types.zones.settings.rocket_loader import RocketLoader base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_security_headers.py b/tests/api_resources/zones/settings/test_security_headers.py index 301408e22285..48477c873b9d 100644 --- a/tests/api_resources/zones/settings/test_security_headers.py +++ b/tests/api_resources/zones/settings/test_security_headers.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.security_headers import SecurityHeaders +from cloudflare.types.zones.settings import SecurityHeaders base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_security_level.py b/tests/api_resources/zones/settings/test_security_level.py index 46a85cf14e7a..2ea94451ba11 100644 --- a/tests/api_resources/zones/settings/test_security_level.py +++ b/tests/api_resources/zones/settings/test_security_level.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.security_level import SecurityLevel +from cloudflare.types.zones.settings import SecurityLevel base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_server_side_excludes.py b/tests/api_resources/zones/settings/test_server_side_excludes.py index 3590c69cbf4e..ee818f4662b0 100644 --- a/tests/api_resources/zones/settings/test_server_side_excludes.py +++ b/tests/api_resources/zones/settings/test_server_side_excludes.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.server_side_excludes import ServerSideExcludes +from cloudflare.types.zones.settings import ServerSideExcludes base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_sort_query_string_for_cache.py b/tests/api_resources/zones/settings/test_sort_query_string_for_cache.py index 76e531c39bbc..b91c19c9e305 100644 --- a/tests/api_resources/zones/settings/test_sort_query_string_for_cache.py +++ b/tests/api_resources/zones/settings/test_sort_query_string_for_cache.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.sort_query_string_for_cache import SortQueryStringForCache +from cloudflare.types.zones.settings import SortQueryStringForCache base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_ssl.py b/tests/api_resources/zones/settings/test_ssl.py index 9bdb64ce54a2..e749d573b71c 100644 --- a/tests/api_resources/zones/settings/test_ssl.py +++ b/tests/api_resources/zones/settings/test_ssl.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.ssl import SSL +from cloudflare.types.zones.settings import SSL base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_ssl_recommender.py b/tests/api_resources/zones/settings/test_ssl_recommender.py index ba3e2259bd90..908b7e922cc1 100644 --- a/tests/api_resources/zones/settings/test_ssl_recommender.py +++ b/tests/api_resources/zones/settings/test_ssl_recommender.py @@ -10,7 +10,6 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.zones.settings import SSLRecommender -from cloudflare.types.zones.settings.ssl_recommender import SSLRecommender base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_tls_1_3.py b/tests/api_resources/zones/settings/test_tls_1_3.py index feb7cd78fb65..439a0d44ddb0 100644 --- a/tests/api_resources/zones/settings/test_tls_1_3.py +++ b/tests/api_resources/zones/settings/test_tls_1_3.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.tls_1_3 import TLS1_3 +from cloudflare.types.zones.settings import TLS1_3 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_tls_client_auth.py b/tests/api_resources/zones/settings/test_tls_client_auth.py index 6e1b075bd048..6f8c2f049679 100644 --- a/tests/api_resources/zones/settings/test_tls_client_auth.py +++ b/tests/api_resources/zones/settings/test_tls_client_auth.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.tls_client_auth import TLSClientAuth +from cloudflare.types.zones.settings import TLSClientAuth base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_true_client_ip_header.py b/tests/api_resources/zones/settings/test_true_client_ip_header.py index 44ceac2ec061..ea3d3532e9c4 100644 --- a/tests/api_resources/zones/settings/test_true_client_ip_header.py +++ b/tests/api_resources/zones/settings/test_true_client_ip_header.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.true_client_ip_header import TrueClientIPHeader +from cloudflare.types.zones.settings import TrueClientIPHeader base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_waf.py b/tests/api_resources/zones/settings/test_waf.py index c66f7baeea27..16008e3b6256 100644 --- a/tests/api_resources/zones/settings/test_waf.py +++ b/tests/api_resources/zones/settings/test_waf.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.waf import WAF +from cloudflare.types.zones.settings import WAF base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_webp.py b/tests/api_resources/zones/settings/test_webp.py index 88db5d853bb8..dfa41054305f 100644 --- a/tests/api_resources/zones/settings/test_webp.py +++ b/tests/api_resources/zones/settings/test_webp.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.webp import WebP +from cloudflare.types.zones.settings import WebP base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_websocket.py b/tests/api_resources/zones/settings/test_websocket.py index 17d0a61d1261..69d4236b8973 100644 --- a/tests/api_resources/zones/settings/test_websocket.py +++ b/tests/api_resources/zones/settings/test_websocket.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.websocket import Websocket +from cloudflare.types.zones.settings import Websocket base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/settings/test_zero_rtt.py b/tests/api_resources/zones/settings/test_zero_rtt.py index 994e02751b62..e2f1c0decff8 100644 --- a/tests/api_resources/zones/settings/test_zero_rtt.py +++ b/tests/api_resources/zones/settings/test_zero_rtt.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.settings.zero_rtt import ZeroRTT +from cloudflare.types.zones.settings import ZeroRTT base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_activation_check.py b/tests/api_resources/zones/test_activation_check.py index 254603ee6fa1..67f56ba83eb3 100644 --- a/tests/api_resources/zones/test_activation_check.py +++ b/tests/api_resources/zones/test_activation_check.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.activation_check_trigger_response import ActivationCheckTriggerResponse +from cloudflare.types.zones import ActivationCheckTriggerResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_custom_nameservers.py b/tests/api_resources/zones/test_custom_nameservers.py index 119941401488..0d059a2b75b5 100644 --- a/tests/api_resources/zones/test_custom_nameservers.py +++ b/tests/api_resources/zones/test_custom_nameservers.py @@ -9,8 +9,10 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.custom_nameserver_get_response import CustomNameserverGetResponse -from cloudflare.types.zones.custom_nameserver_update_response import CustomNameserverUpdateResponse +from cloudflare.types.zones import ( + CustomNameserverGetResponse, + CustomNameserverUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_dns_settings.py b/tests/api_resources/zones/test_dns_settings.py index 3bb8a3c71c49..8072f04cc44d 100644 --- a/tests/api_resources/zones/test_dns_settings.py +++ b/tests/api_resources/zones/test_dns_settings.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.dns_setting import DNSSetting +from cloudflare.types.zones import DNSSetting base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_holds.py b/tests/api_resources/zones/test_holds.py index 7ac16346ebb8..5c9c3e04182e 100644 --- a/tests/api_resources/zones/test_holds.py +++ b/tests/api_resources/zones/test_holds.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.zones.zone_hold import ZoneHold +from cloudflare.types.zones import ZoneHold base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/zones/test_subscriptions.py b/tests/api_resources/zones/test_subscriptions.py index d3ec269a7d85..7a2c16b5aee9 100644 --- a/tests/api_resources/zones/test_subscriptions.py +++ b/tests/api_resources/zones/test_subscriptions.py @@ -10,9 +10,8 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.pagination import SyncSinglePage, AsyncSinglePage -from cloudflare.types.user.subscription import Subscription -from cloudflare.types.zones.subscription_get_response import SubscriptionGetResponse -from cloudflare.types.zones.subscription_create_response import SubscriptionCreateResponse +from cloudflare.types.user import Subscription +from cloudflare.types.zones import SubscriptionGetResponse, SubscriptionCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/test_client.py b/tests/test_client.py index 9b15628f2bd6..e16d2dc46126 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -18,7 +18,6 @@ from cloudflare import Cloudflare, AsyncCloudflare, APIResponseValidationError from cloudflare._types import Omit -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