From f24330b9543db1f027affef3bb01f121d22e1ba0 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 3 Apr 2024 13:49:39 +0000
Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#213)
---
api.md | 268 ++++++++---------
src/cloudflare/_streaming.py | 73 +++--
src/cloudflare/resources/accounts/accounts.py | 8 +
src/cloudflare/resources/accounts/members.py | 5 +
.../addressing/address_maps/accounts.py | 19 +-
.../addressing/address_maps/address_maps.py | 5 +
.../resources/addressing/address_maps/ips.py | 14 +-
.../addressing/address_maps/zones.py | 71 ++---
.../addressing/prefixes/delegations.py | 11 +-
.../resources/addressing/prefixes/prefixes.py | 12 +-
.../resources/cache/cache_reserve.py | 5 +
.../resources/cache/smart_tiered_cache.py | 5 +
src/cloudflare/resources/cache/variants.py | 12 +-
.../custom_certificates.py | 13 +
.../custom_hostnames/custom_hostnames.py | 5 +
.../custom_hostnames/fallback_origin.py | 5 +
.../resources/custom_nameservers.py | 10 +
.../resources/dns/firewall/firewall.py | 5 +
src/cloudflare/resources/dns/records.py | 10 +
src/cloudflare/resources/dnssec.py | 6 +-
.../resources/email_routing/email_routing.py | 20 +-
src/cloudflare/resources/filters.py | 13 +
.../resources/firewall/access_rules.py | 5 +
.../resources/firewall/lockdowns.py | 24 +-
src/cloudflare/resources/firewall/rules.py | 41 ++-
src/cloudflare/resources/firewall/ua_rules.py | 5 +
.../resources/firewall/waf/overrides.py | 5 +
.../resources/firewall/waf/packages/groups.py | 16 ++
.../firewall/waf/packages/packages.py | 8 +
.../resources/firewall/waf/packages/rules.py | 24 ++
.../resources/healthchecks/healthchecks.py | 5 +
.../resources/healthchecks/previews.py | 6 +-
.../resources/hyperdrive/configs.py | 36 ++-
src/cloudflare/resources/images/v1/v1.py | 14 +-
.../resources/images/v1/variants.py | 5 +
.../resources/keyless_certificates.py | 5 +
.../resources/kv/namespaces/namespaces.py | 5 +
.../resources/kv/namespaces/values.py | 11 +-
.../load_balancers/load_balancers.py | 5 +
.../load_balancers/monitors/monitors.py | 5 +
.../resources/load_balancers/pools/pools.py | 5 +
src/cloudflare/resources/logpush/jobs.py | 6 +-
.../resources/logs/control/cmb/config.py | 6 +-
.../configs/configs.py | 28 +-
.../rules/advertisements.py | 10 +-
.../magic_network_monitoring/rules/rules.py | 28 +-
.../resources/magic_transit/gre_tunnels.py | 5 +
.../resources/magic_transit/ipsec_tunnels.py | 10 +
.../resources/magic_transit/routes.py | 5 +
.../resources/magic_transit/sites/acls.py | 5 +
.../resources/magic_transit/sites/lans.py | 5 +
.../resources/magic_transit/sites/sites.py | 16 ++
.../resources/magic_transit/sites/wans.py | 5 +
src/cloudflare/resources/memberships.py | 5 +
.../mtls_certificates/mtls_certificates.py | 11 +-
.../resources/origin_ca_certificates.py | 46 ++-
.../hostnames/certificates.py | 10 +-
.../origin_tls_client_auth.py | 7 +
.../resources/pagerules/pagerules.py | 5 +
.../pages/projects/deployments/deployments.py | 20 +-
.../resources/pages/projects/domains.py | 17 +-
.../resources/pages/projects/projects.py | 5 +
src/cloudflare/resources/queues/consumers.py | 5 +
src/cloudflare/resources/queues/queues.py | 5 +
src/cloudflare/resources/rate_limits.py | 5 +
src/cloudflare/resources/rules/lists/lists.py | 6 +-
.../resources/secondary_dns/acls.py | 12 +-
.../resources/secondary_dns/force_axfr.py | 9 +
.../resources/secondary_dns/incoming.py | 5 +
.../secondary_dns/outgoing/outgoing.py | 20 ++
.../resources/secondary_dns/peers.py | 12 +-
.../resources/secondary_dns/tsigs.py | 12 +-
src/cloudflare/resources/spectrum/apps.py | 5 +
src/cloudflare/resources/speed/speed.py | 11 +-
.../certificate_packs/certificate_packs.py | 15 +-
src/cloudflare/resources/stream/captions.py | 12 +-
src/cloudflare/resources/stream/downloads.py | 10 +-
src/cloudflare/resources/stream/keys.py | 14 +-
.../stream/live_inputs/live_inputs.py | 5 +
.../resources/stream/live_inputs/outputs.py | 6 +-
src/cloudflare/resources/stream/stream.py | 15 +-
src/cloudflare/resources/stream/watermarks.py | 5 +
src/cloudflare/resources/stream/webhooks.py | 12 +-
src/cloudflare/resources/subscriptions.py | 5 +
.../resources/user/billing/history.py | 35 ++-
.../resources/user/firewall/access_rules.py | 5 +
.../resources/user/load_balancers/monitors.py | 5 +
.../resources/user/load_balancers/pools.py | 5 +
.../resources/user/organizations.py | 17 +-
.../resources/user/subscriptions.py | 5 +
.../resources/user/tokens/tokens.py | 5 +
src/cloudflare/resources/vectorize/indexes.py | 10 +
.../resources/waiting_rooms/events/events.py | 5 +
.../resources/waiting_rooms/rules.py | 5 +
.../resources/waiting_rooms/waiting_rooms.py | 5 +
src/cloudflare/resources/warp_connector.py | 8 +
.../resources/web3/hostnames/hostnames.py | 12 +-
.../content_lists/entries.py | 5 +
src/cloudflare/resources/workers/domains.py | 6 +-
src/cloudflare/resources/workers/filters.py | 5 +
src/cloudflare/resources/workers/routes.py | 5 +
.../resources/workers/scripts/scripts.py | 4 +
.../resources/workers/scripts/tail.py | 20 +-
.../dispatch/namespaces/scripts/scripts.py | 4 +
.../resources/zero_trust/access/bookmarks.py | 24 +-
.../resources/zero_trust/devices/networks.py | 5 +
.../zero_trust/devices/policies/policies.py | 5 +
.../devices/posture/integrations.py | 5 +
.../zero_trust/devices/posture/posture.py | 5 +
.../zero_trust/dlp/datasets/upload.py | 10 +-
.../zero_trust/dlp/profiles/custom.py | 5 +
.../zero_trust/gateway/lists/lists.py | 5 +
.../resources/zero_trust/gateway/locations.py | 5 +
.../zero_trust/gateway/proxy_endpoints.py | 21 +-
.../resources/zero_trust/gateway/rules.py | 9 +
.../zero_trust/networks/routes/networks.py | 30 +-
.../zero_trust/networks/routes/routes.py | 8 +
.../zero_trust/networks/virtual_networks.py | 13 +
.../resources/zero_trust/tunnels/tunnels.py | 8 +
.../resources/zones/workers/script.py | 14 +-
src/cloudflare/types/__init__.py | 23 ++
src/cloudflare/types/account_list_params.py | 3 +
src/cloudflare/types/accounts/__init__.py | 1 +
.../types/accounts/member_delete_params.py | 13 +
src/cloudflare/types/addressing/__init__.py | 2 +
.../addressing/address_map_delete_params.py | 14 +
.../types/addressing/address_maps/__init__.py | 6 +
.../address_maps/account_delete_params.py | 14 +
.../address_maps/account_update_params.py | 14 +
.../address_maps/ip_delete_params.py | 17 ++
.../address_maps/ip_update_params.py | 17 ++
.../address_maps/zone_delete_params.py | 17 ++
.../address_maps/zone_update_params.py | 17 ++
.../types/addressing/prefix_delete_params.py | 14 +
.../types/addressing/prefixes/__init__.py | 1 +
.../prefixes/delegation_delete_params.py | 17 ++
src/cloudflare/types/cache/__init__.py | 3 +
.../types/cache/cache_reserve_clear_params.py | 14 +
.../cache/smart_tiered_cache_delete_params.py | 14 +
.../types/cache/variant_delete_params.py | 14 +
.../types/custom_certificate_delete_params.py | 14 +
.../types/custom_certificate_list_params.py | 3 +
.../types/custom_hostname_delete_params.py | 14 +
.../types/custom_hostnames/__init__.py | 1 +
.../fallback_origin_delete_params.py | 14 +
.../types/custom_nameserver_delete_params.py | 14 +
.../types/custom_nameserver_verify_params.py | 14 +
src/cloudflare/types/dns/__init__.py | 3 +
.../types/dns/firewall_delete_params.py | 14 +
.../types/dns/record_delete_params.py | 14 +
.../types/dns/record_scan_params.py | 14 +
src/cloudflare/types/dnssec_delete_params.py | 14 +
.../types/email_routing_disable_params.py | 11 +
.../types/email_routing_enable_params.py | 11 +
src/cloudflare/types/filter_delete_params.py | 14 +
src/cloudflare/types/filter_list_params.py | 3 +
src/cloudflare/types/firewall/__init__.py | 4 +
.../firewall/access_rule_delete_params.py | 17 ++
.../types/firewall/lockdown_delete_params.py | 14 +
.../types/firewall/lockdown_list_params.py | 12 +-
.../types/firewall/rule_get_params.py | 17 ++
.../types/firewall/rule_list_params.py | 3 +
.../types/firewall/ua_rule_delete_params.py | 14 +
src/cloudflare/types/firewall/waf/__init__.py | 1 +
.../firewall/waf/override_delete_params.py | 14 +
.../types/firewall/waf/package_list_params.py | 3 +
.../waf/packages/group_list_params.py | 6 +
.../waf/packages/rule_edit_response.py | 2 +
.../firewall/waf/packages/rule_list_params.py | 9 +
.../waf/packages/waf_managed_rules_rule.py | 2 +
.../types/healthcheck_delete_params.py | 14 +
src/cloudflare/types/healthchecks/__init__.py | 1 +
.../healthchecks/preview_delete_params.py | 14 +
.../types/hyperdrive/config_create_params.py | 2 +
.../types/hyperdrive/config_update_params.py | 2 +
src/cloudflare/types/images/__init__.py | 1 +
src/cloudflare/types/images/v1/__init__.py | 1 +
.../types/images/v1/variant_delete_params.py | 14 +
.../types/images/v1_delete_params.py | 14 +
.../keyless_certificate_delete_params.py | 14 +
src/cloudflare/types/kv/__init__.py | 1 +
.../types/kv/namespace_delete_params.py | 14 +
.../types/kv/namespaces/__init__.py | 1 +
.../kv/namespaces/value_delete_params.py | 17 ++
.../types/load_balancer_delete_params.py | 13 +
.../types/load_balancers/__init__.py | 2 +
.../load_balancers/monitor_delete_params.py | 14 +
.../load_balancers/pool_delete_params.py | 14 +
src/cloudflare/types/logpush/__init__.py | 1 +
.../types/logpush/job_delete_params.py | 17 ++
.../types/logs/control/cmb/__init__.py | 1 +
.../logs/control/cmb/config_delete_params.py | 14 +
.../magic_network_monitoring/__init__.py | 8 +
.../config_create_params.py | 13 +
.../config_delete_params.py | 13 +
.../config_edit_params.py | 13 +
.../config_update_params.py | 13 +
.../rule_create_params.py | 13 +
.../rule_delete_params.py | 13 +
.../rule_edit_params.py | 13 +
.../rule_update_params.py | 13 +
.../rules/__init__.py | 1 +
.../rules/advertisement_edit_params.py | 13 +
.../types/magic_transit/__init__.py | 6 +
.../magic_transit/gre_tunnel_delete_params.py | 14 +
.../ipsec_tunnel_delete_params.py | 14 +
.../ipsec_tunnel_psk_generate_params.py | 14 +
.../magic_transit/route_delete_params.py | 14 +
.../types/magic_transit/site_delete_params.py | 14 +
.../types/magic_transit/site_list_params.py | 15 +
.../types/magic_transit/sites/__init__.py | 3 +
.../magic_transit/sites/acl_delete_params.py | 17 ++
.../magic_transit/sites/lan_delete_params.py | 17 ++
.../magic_transit/sites/wan_delete_params.py | 17 ++
.../types/membership_delete_params.py | 11 +
.../types/mtls_certificate_delete_params.py | 14 +
.../origin_ca_certificate_delete_params.py | 11 +
.../origin_ca_certificate_list_params.py | 12 +
.../hostnames/__init__.py | 1 +
.../hostnames/certificate_delete_params.py | 14 +
.../origin_tls_client_auth_delete_params.py | 14 +
.../types/pagerule_delete_params.py | 14 +
src/cloudflare/types/pages/__init__.py | 1 +
.../types/pages/project_delete_params.py | 14 +
.../types/pages/projects/__init__.py | 5 +
.../projects/deployment_delete_params.py | 17 ++
.../pages/projects/deployment_retry_params.py | 17 ++
.../projects/deployment_rollback_params.py | 17 ++
.../pages/projects/domain_delete_params.py | 17 ++
.../pages/projects/domain_edit_params.py | 17 ++
src/cloudflare/types/queue_delete_params.py | 14 +
src/cloudflare/types/queues/__init__.py | 1 +
.../types/queues/consumer_delete_params.py | 17 ++
.../types/rate_limit_delete_params.py | 14 +
src/cloudflare/types/rules/__init__.py | 1 +
.../types/rules/list_delete_params.py | 14 +
.../types/secondary_dns/__init__.py | 9 +
.../types/secondary_dns/acl_delete_params.py | 13 +
.../secondary_dns/force_axfr_create_params.py | 13 +
.../secondary_dns/incoming_delete_params.py | 13 +
.../secondary_dns/outgoing_delete_params.py | 13 +
.../secondary_dns/outgoing_disable_params.py | 13 +
.../secondary_dns/outgoing_enable_params.py | 13 +
.../outgoing_force_notify_params.py | 13 +
.../types/secondary_dns/peer_delete_params.py | 13 +
.../types/secondary_dns/tsig_delete_params.py | 13 +
src/cloudflare/types/spectrum/__init__.py | 1 +
.../types/spectrum/app_delete_params.py | 14 +
.../types/speed_trends_list_params.py | 6 +
src/cloudflare/types/ssl/__init__.py | 2 +
.../ssl/certificate_pack_delete_params.py | 14 +
.../types/ssl/certificate_pack_edit_params.py | 14 +
src/cloudflare/types/stream/__init__.py | 7 +
.../types/stream/caption_delete_params.py | 17 ++
.../types/stream/download_create_params.py | 14 +
.../types/stream/key_create_params.py | 14 +
.../types/stream/key_delete_params.py | 14 +
.../types/stream/live_input_delete_params.py | 14 +
.../types/stream/live_inputs/__init__.py | 1 +
.../live_inputs/output_delete_params.py | 17 ++
.../types/stream/watermark_delete_params.py | 14 +
.../types/stream/webhook_delete_params.py | 14 +
src/cloudflare/types/stream_create_params.py | 14 +
src/cloudflare/types/stream_delete_params.py | 14 +
.../types/subscription_delete_params.py | 14 +
src/cloudflare/types/user/__init__.py | 3 +
.../types/user/billing/history_get_params.py | 18 +-
.../types/user/firewall/__init__.py | 1 +
.../firewall/access_rule_delete_params.py | 11 +
.../types/user/load_balancers/__init__.py | 2 +
.../load_balancers/monitor_delete_params.py | 11 +
.../user/load_balancers/pool_delete_params.py | 11 +
.../types/user/organization_delete_params.py | 11 +
.../types/user/subscription_delete_params.py | 11 +
.../types/user/token_delete_params.py | 11 +
src/cloudflare/types/vectorize/__init__.py | 2 +
.../types/vectorize/index_insert_params.py | 14 +
.../types/vectorize/index_upsert_params.py | 14 +
.../types/waiting_room_delete_params.py | 14 +
.../types/waiting_rooms/__init__.py | 2 +
.../waiting_rooms/event_delete_params.py | 16 ++
.../types/waiting_rooms/rule_delete_params.py | 16 ++
.../types/warp_connector_list_params.py | 3 +
src/cloudflare/types/web3/__init__.py | 1 +
.../types/web3/hostname_delete_params.py | 14 +
.../content_lists/__init__.py | 1 +
.../content_lists/entry_delete_params.py | 17 ++
src/cloudflare/types/workers/__init__.py | 3 +
.../types/workers/domain_delete_params.py | 13 +
.../types/workers/filter_delete_params.py | 14 +
.../types/workers/route_delete_params.py | 14 +
.../types/workers/script_delete_params.py | 2 +
.../types/workers/scripts/__init__.py | 2 +
.../workers/scripts/setting_edit_params.py | 2 +
.../workers/scripts/setting_edit_response.py | 2 +
.../workers/scripts/setting_get_response.py | 2 +
.../workers/scripts/tail_create_params.py | 14 +
.../workers/scripts/tail_delete_params.py | 17 ++
.../environments/setting_edit_params.py | 2 +
.../environments/setting_edit_response.py | 2 +
.../environments/setting_get_response.py | 2 +
.../namespaces/script_delete_params.py | 2 +
.../scripts/binding_get_response.py | 2 +
.../namespaces/scripts/setting_edit_params.py | 2 +
.../scripts/setting_edit_response.py | 2 +
.../scripts/setting_get_response.py | 2 +
.../types/zero_trust/access/__init__.py | 3 +
.../access/bookmark_create_params.py | 13 +
.../access/bookmark_delete_params.py | 13 +
.../access/bookmark_update_params.py | 13 +
.../types/zero_trust/devices/__init__.py | 3 +
.../devices/network_delete_params.py | 13 +
.../devices/policy_delete_params.py | 13 +
.../zero_trust/devices/posture/__init__.py | 1 +
.../posture/integration_delete_params.py | 13 +
.../devices/posture_delete_params.py | 13 +
.../digital_experience_monitoring_device.py | 4 +
.../types/zero_trust/dlp/datasets/__init__.py | 1 +
.../dlp/datasets/upload_edit_params.py | 15 +
.../types/zero_trust/dlp/profiles/__init__.py | 1 +
.../dlp/profiles/custom_delete_params.py | 14 +
.../types/zero_trust/gateway/__init__.py | 4 +
.../zero_trust/gateway/list_delete_params.py | 13 +
.../gateway/location_delete_params.py | 13 +
.../gateway/proxy_endpoint_create_params.py | 3 -
.../gateway/proxy_endpoint_delete_params.py | 13 +
.../gateway/proxy_endpoint_edit_params.py | 3 -
.../zero_trust/gateway/rule_create_params.py | 15 +-
.../zero_trust/gateway/rule_delete_params.py | 13 +
.../zero_trust/gateway/rule_update_params.py | 15 +-
.../gateway/zero_trust_gateway_rules.py | 15 +-
.../types/zero_trust/networks/__init__.py | 1 +
.../zero_trust/networks/route_list_params.py | 3 +
.../networks/routes/network_delete_params.py | 6 +
.../networks/virtual_network_delete_params.py | 14 +
.../networks/virtual_network_list_params.py | 3 +
.../types/zero_trust/tunnel_list_params.py | 3 +
.../types/zones/workers/__init__.py | 2 +
.../zones/workers/script_delete_params.py | 14 +
.../zones/workers/script_update_params.py | 14 +
tests/api_resources/accounts/test_members.py | 8 +
.../addressing/address_maps/test_accounts.py | 25 +-
.../addressing/address_maps/test_ips.py | 29 +-
.../addressing/address_maps/test_zones.py | 29 +-
.../addressing/prefixes/test_delegations.py | 12 +
.../addressing/test_address_maps.py | 10 +
.../api_resources/addressing/test_prefixes.py | 10 +
.../api_resources/cache/test_cache_reserve.py | 8 +
.../cache/test_smart_tiered_cache.py | 8 +
tests/api_resources/cache/test_variants.py | 14 +-
.../custom_hostnames/test_fallback_origin.py | 8 +
tests/api_resources/dns/test_firewall.py | 10 +
tests/api_resources/dns/test_records.py | 18 ++
.../firewall/test_access_rules.py | 12 +
.../api_resources/firewall/test_lockdowns.py | 15 +
tests/api_resources/firewall/test_rules.py | 68 +++--
tests/api_resources/firewall/test_ua_rules.py | 10 +
.../firewall/waf/packages/test_groups.py | 4 +
.../firewall/waf/packages/test_rules.py | 6 +
.../firewall/waf/test_overrides.py | 10 +
.../firewall/waf/test_packages.py | 2 +
.../healthchecks/test_previews.py | 10 +
.../api_resources/hyperdrive/test_configs.py | 18 ++
tests/api_resources/images/test_v1.py | 10 +
.../api_resources/images/v1/test_variants.py | 10 +
.../kv/namespaces/test_values.py | 12 +
tests/api_resources/kv/test_namespaces.py | 10 +
.../load_balancers/test_monitors.py | 10 +
.../load_balancers/test_pools.py | 10 +
tests/api_resources/logpush/test_jobs.py | 12 +
.../logs/control/cmb/test_config.py | 13 +-
.../rules/test_advertisements.py | 14 +-
.../magic_network_monitoring/test_configs.py | 36 ++-
.../magic_network_monitoring/test_rules.py | 40 ++-
.../magic_transit/sites/test_acls.py | 12 +
.../magic_transit/sites/test_lans.py | 12 +
.../magic_transit/sites/test_wans.py | 12 +
.../magic_transit/test_gre_tunnels.py | 10 +
.../magic_transit/test_ipsec_tunnels.py | 20 ++
.../magic_transit/test_routes.py | 10 +
.../api_resources/magic_transit/test_sites.py | 28 ++
.../hostnames/test_certificates.py | 14 +-
.../pages/projects/test_deployments.py | 36 +++
.../pages/projects/test_domains.py | 24 ++
tests/api_resources/pages/test_projects.py | 10 +
tests/api_resources/queues/test_consumers.py | 12 +
tests/api_resources/rules/test_lists.py | 15 +-
.../api_resources/secondary_dns/test_acls.py | 15 +-
.../secondary_dns/test_force_axfr.py | 8 +
.../secondary_dns/test_incoming.py | 8 +
.../secondary_dns/test_outgoing.py | 32 +++
.../api_resources/secondary_dns/test_peers.py | 15 +-
.../api_resources/secondary_dns/test_tsigs.py | 15 +-
tests/api_resources/spectrum/test_apps.py | 10 +
.../ssl/test_certificate_packs.py | 20 ++
.../stream/live_inputs/test_outputs.py | 16 +-
tests/api_resources/stream/test_captions.py | 12 +
tests/api_resources/stream/test_downloads.py | 16 +-
tests/api_resources/stream/test_keys.py | 18 ++
.../api_resources/stream/test_live_inputs.py | 10 +
tests/api_resources/stream/test_watermarks.py | 10 +
tests/api_resources/stream/test_webhooks.py | 8 +
tests/api_resources/test_accounts.py | 2 +
.../api_resources/test_custom_certificates.py | 12 +
tests/api_resources/test_custom_hostnames.py | 10 +
.../api_resources/test_custom_nameservers.py | 18 ++
tests/api_resources/test_dnssec.py | 8 +
tests/api_resources/test_email_routing.py | 22 +-
tests/api_resources/test_filters.py | 12 +
tests/api_resources/test_healthchecks.py | 10 +
.../test_keyless_certificates.py | 10 +
tests/api_resources/test_load_balancers.py | 10 +
tests/api_resources/test_memberships.py | 8 +
tests/api_resources/test_mtls_certificates.py | 15 +-
.../test_origin_ca_certificates.py | 24 ++
.../test_origin_tls_client_auth.py | 10 +
tests/api_resources/test_pagerules.py | 10 +
tests/api_resources/test_queues.py | 10 +
tests/api_resources/test_rate_limits.py | 10 +
tests/api_resources/test_speed.py | 41 +++
tests/api_resources/test_stream.py | 18 ++
tests/api_resources/test_subscriptions.py | 10 +
tests/api_resources/test_waiting_rooms.py | 10 +
tests/api_resources/test_warp_connector.py | 2 +
.../user/billing/test_history.py | 9 +
.../user/firewall/test_access_rules.py | 8 +
.../user/load_balancers/test_monitors.py | 8 +
.../user/load_balancers/test_pools.py | 8 +
.../api_resources/user/test_organizations.py | 8 +
.../api_resources/user/test_subscriptions.py | 8 +
tests/api_resources/user/test_tokens.py | 6 +
tests/api_resources/vectorize/test_indexes.py | 20 ++
.../waiting_rooms/test_events.py | 12 +
.../api_resources/waiting_rooms/test_rules.py | 12 +
.../content_lists/test_entries.py | 12 +
tests/api_resources/web3/test_hostnames.py | 10 +
.../workers/scripts/test_tail.py | 28 +-
tests/api_resources/workers/test_domains.py | 10 +
tests/api_resources/workers/test_filters.py | 10 +
tests/api_resources/workers/test_routes.py | 10 +
tests/api_resources/workers/test_scripts.py | 12 +
.../dispatch/namespaces/test_scripts.py | 14 +
.../zero_trust/access/test_bookmarks.py | 35 ++-
.../devices/posture/test_integrations.py | 10 +
.../zero_trust/devices/test_networks.py | 10 +
.../zero_trust/devices/test_policies.py | 10 +
.../zero_trust/devices/test_posture.py | 10 +
.../zero_trust/dlp/datasets/test_upload.py | 10 +
.../zero_trust/dlp/profiles/test_custom.py | 10 +
.../zero_trust/gateway/test_lists.py | 10 +
.../zero_trust/gateway/test_locations.py | 10 +
.../gateway/test_proxy_endpoints.py | 34 +--
.../zero_trust/gateway/test_rules.py | 58 ++--
.../networks/routes/test_networks.py | 4 +
.../zero_trust/networks/test_routes.py | 2 +
.../networks/test_virtual_networks.py | 12 +
.../api_resources/zero_trust/test_tunnels.py | 2 +
.../zones/workers/test_script.py | 16 ++
tests/test_streaming.py | 270 ++++++++++++++----
459 files changed, 5303 insertions(+), 464 deletions(-)
create mode 100644 src/cloudflare/types/accounts/member_delete_params.py
create mode 100644 src/cloudflare/types/addressing/address_map_delete_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/account_delete_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/account_update_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/ip_delete_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/ip_update_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/zone_delete_params.py
create mode 100644 src/cloudflare/types/addressing/address_maps/zone_update_params.py
create mode 100644 src/cloudflare/types/addressing/prefix_delete_params.py
create mode 100644 src/cloudflare/types/addressing/prefixes/delegation_delete_params.py
create mode 100644 src/cloudflare/types/cache/cache_reserve_clear_params.py
create mode 100644 src/cloudflare/types/cache/smart_tiered_cache_delete_params.py
create mode 100644 src/cloudflare/types/cache/variant_delete_params.py
create mode 100644 src/cloudflare/types/custom_certificate_delete_params.py
create mode 100644 src/cloudflare/types/custom_hostname_delete_params.py
create mode 100644 src/cloudflare/types/custom_hostnames/fallback_origin_delete_params.py
create mode 100644 src/cloudflare/types/custom_nameserver_delete_params.py
create mode 100644 src/cloudflare/types/custom_nameserver_verify_params.py
create mode 100644 src/cloudflare/types/dns/firewall_delete_params.py
create mode 100644 src/cloudflare/types/dns/record_delete_params.py
create mode 100644 src/cloudflare/types/dns/record_scan_params.py
create mode 100644 src/cloudflare/types/dnssec_delete_params.py
create mode 100644 src/cloudflare/types/email_routing_disable_params.py
create mode 100644 src/cloudflare/types/email_routing_enable_params.py
create mode 100644 src/cloudflare/types/filter_delete_params.py
create mode 100644 src/cloudflare/types/firewall/access_rule_delete_params.py
create mode 100644 src/cloudflare/types/firewall/lockdown_delete_params.py
create mode 100644 src/cloudflare/types/firewall/rule_get_params.py
create mode 100644 src/cloudflare/types/firewall/ua_rule_delete_params.py
create mode 100644 src/cloudflare/types/firewall/waf/override_delete_params.py
create mode 100644 src/cloudflare/types/healthcheck_delete_params.py
create mode 100644 src/cloudflare/types/healthchecks/preview_delete_params.py
create mode 100644 src/cloudflare/types/images/v1/variant_delete_params.py
create mode 100644 src/cloudflare/types/images/v1_delete_params.py
create mode 100644 src/cloudflare/types/keyless_certificate_delete_params.py
create mode 100644 src/cloudflare/types/kv/namespace_delete_params.py
create mode 100644 src/cloudflare/types/kv/namespaces/value_delete_params.py
create mode 100644 src/cloudflare/types/load_balancer_delete_params.py
create mode 100644 src/cloudflare/types/load_balancers/monitor_delete_params.py
create mode 100644 src/cloudflare/types/load_balancers/pool_delete_params.py
create mode 100644 src/cloudflare/types/logpush/job_delete_params.py
create mode 100644 src/cloudflare/types/logs/control/cmb/config_delete_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/config_create_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/config_delete_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/config_edit_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/config_update_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/rule_create_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/rule_delete_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/rule_edit_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/rule_update_params.py
create mode 100644 src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py
create mode 100644 src/cloudflare/types/magic_transit/gre_tunnel_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/ipsec_tunnel_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py
create mode 100644 src/cloudflare/types/magic_transit/route_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/site_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/site_list_params.py
create mode 100644 src/cloudflare/types/magic_transit/sites/acl_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/sites/lan_delete_params.py
create mode 100644 src/cloudflare/types/magic_transit/sites/wan_delete_params.py
create mode 100644 src/cloudflare/types/membership_delete_params.py
create mode 100644 src/cloudflare/types/mtls_certificate_delete_params.py
create mode 100644 src/cloudflare/types/origin_ca_certificate_delete_params.py
create mode 100644 src/cloudflare/types/origin_ca_certificate_list_params.py
create mode 100644 src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_params.py
create mode 100644 src/cloudflare/types/origin_tls_client_auth_delete_params.py
create mode 100644 src/cloudflare/types/pagerule_delete_params.py
create mode 100644 src/cloudflare/types/pages/project_delete_params.py
create mode 100644 src/cloudflare/types/pages/projects/deployment_delete_params.py
create mode 100644 src/cloudflare/types/pages/projects/deployment_retry_params.py
create mode 100644 src/cloudflare/types/pages/projects/deployment_rollback_params.py
create mode 100644 src/cloudflare/types/pages/projects/domain_delete_params.py
create mode 100644 src/cloudflare/types/pages/projects/domain_edit_params.py
create mode 100644 src/cloudflare/types/queue_delete_params.py
create mode 100644 src/cloudflare/types/queues/consumer_delete_params.py
create mode 100644 src/cloudflare/types/rate_limit_delete_params.py
create mode 100644 src/cloudflare/types/rules/list_delete_params.py
create mode 100644 src/cloudflare/types/secondary_dns/acl_delete_params.py
create mode 100644 src/cloudflare/types/secondary_dns/force_axfr_create_params.py
create mode 100644 src/cloudflare/types/secondary_dns/incoming_delete_params.py
create mode 100644 src/cloudflare/types/secondary_dns/outgoing_delete_params.py
create mode 100644 src/cloudflare/types/secondary_dns/outgoing_disable_params.py
create mode 100644 src/cloudflare/types/secondary_dns/outgoing_enable_params.py
create mode 100644 src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py
create mode 100644 src/cloudflare/types/secondary_dns/peer_delete_params.py
create mode 100644 src/cloudflare/types/secondary_dns/tsig_delete_params.py
create mode 100644 src/cloudflare/types/spectrum/app_delete_params.py
create mode 100644 src/cloudflare/types/ssl/certificate_pack_delete_params.py
create mode 100644 src/cloudflare/types/ssl/certificate_pack_edit_params.py
create mode 100644 src/cloudflare/types/stream/caption_delete_params.py
create mode 100644 src/cloudflare/types/stream/download_create_params.py
create mode 100644 src/cloudflare/types/stream/key_create_params.py
create mode 100644 src/cloudflare/types/stream/key_delete_params.py
create mode 100644 src/cloudflare/types/stream/live_input_delete_params.py
create mode 100644 src/cloudflare/types/stream/live_inputs/output_delete_params.py
create mode 100644 src/cloudflare/types/stream/watermark_delete_params.py
create mode 100644 src/cloudflare/types/stream/webhook_delete_params.py
create mode 100644 src/cloudflare/types/stream_create_params.py
create mode 100644 src/cloudflare/types/stream_delete_params.py
create mode 100644 src/cloudflare/types/subscription_delete_params.py
create mode 100644 src/cloudflare/types/user/firewall/access_rule_delete_params.py
create mode 100644 src/cloudflare/types/user/load_balancers/monitor_delete_params.py
create mode 100644 src/cloudflare/types/user/load_balancers/pool_delete_params.py
create mode 100644 src/cloudflare/types/user/organization_delete_params.py
create mode 100644 src/cloudflare/types/user/subscription_delete_params.py
create mode 100644 src/cloudflare/types/user/token_delete_params.py
create mode 100644 src/cloudflare/types/vectorize/index_insert_params.py
create mode 100644 src/cloudflare/types/vectorize/index_upsert_params.py
create mode 100644 src/cloudflare/types/waiting_room_delete_params.py
create mode 100644 src/cloudflare/types/waiting_rooms/event_delete_params.py
create mode 100644 src/cloudflare/types/waiting_rooms/rule_delete_params.py
create mode 100644 src/cloudflare/types/web3/hostname_delete_params.py
create mode 100644 src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_params.py
create mode 100644 src/cloudflare/types/workers/domain_delete_params.py
create mode 100644 src/cloudflare/types/workers/filter_delete_params.py
create mode 100644 src/cloudflare/types/workers/route_delete_params.py
create mode 100644 src/cloudflare/types/workers/scripts/tail_create_params.py
create mode 100644 src/cloudflare/types/workers/scripts/tail_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/access/bookmark_create_params.py
create mode 100644 src/cloudflare/types/zero_trust/access/bookmark_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/access/bookmark_update_params.py
create mode 100644 src/cloudflare/types/zero_trust/devices/network_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/devices/policy_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/devices/posture/integration_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/devices/posture_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py
create mode 100644 src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/gateway/list_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/gateway/location_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/gateway/rule_delete_params.py
create mode 100644 src/cloudflare/types/zero_trust/networks/virtual_network_delete_params.py
create mode 100644 src/cloudflare/types/zones/workers/script_delete_params.py
create mode 100644 src/cloudflare/types/zones/workers/script_update_params.py
diff --git a/api.md b/api.md
index e31f710a2b7c..d6ee0dc3377c 100644
--- a/api.md
+++ b/api.md
@@ -37,7 +37,7 @@ Methods:
- client.accounts.members.create(\*, account_id, \*\*params) -> MemberWithCode
- client.accounts.members.update(member_id, \*, account_id, \*\*params) -> Member
- client.accounts.members.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[MemberListResponse]
-- client.accounts.members.delete(member_id, \*, account_id) -> Optional
+- client.accounts.members.delete(member_id, \*, account_id, \*\*params) -> Optional
- client.accounts.members.get(member_id, \*, account_id) -> Member
## Roles
@@ -69,8 +69,8 @@ from cloudflare.types import (
Methods:
- client.origin_ca_certificates.create(\*\*params) -> OriginCACertificateCreateResponse
-- client.origin_ca_certificates.list() -> SyncSinglePage[OriginCACertificate]
-- client.origin_ca_certificates.delete(certificate_id) -> OriginCACertificateDeleteResponse
+- client.origin_ca_certificates.list(\*\*params) -> SyncSinglePage[OriginCACertificate]
+- client.origin_ca_certificates.delete(certificate_id, \*\*params) -> OriginCACertificateDeleteResponse
- client.origin_ca_certificates.get(certificate_id) -> OriginCACertificateGetResponse
# IPs
@@ -102,7 +102,7 @@ Methods:
- client.memberships.update(membership_id, \*\*params) -> MembershipUpdateResponse
- client.memberships.list(\*\*params) -> SyncV4PagePaginationArray[Membership]
-- client.memberships.delete(membership_id) -> MembershipDeleteResponse
+- client.memberships.delete(membership_id, \*\*params) -> MembershipDeleteResponse
- client.memberships.get(membership_id) -> MembershipGetResponse
# UserResource
@@ -170,7 +170,7 @@ Methods:
- client.user.firewall.access_rules.create(\*\*params) -> Optional
- client.user.firewall.access_rules.list(\*\*params) -> SyncV4PagePaginationArray[FirewallRule]
-- client.user.firewall.access_rules.delete(identifier) -> Optional
+- client.user.firewall.access_rules.delete(identifier, \*\*params) -> Optional
- client.user.firewall.access_rules.edit(identifier, \*\*params) -> Optional
## Invites
@@ -207,7 +207,7 @@ Methods:
- client.user.load_balancers.monitors.create(\*\*params) -> LoadBalancingMonitor
- client.user.load_balancers.monitors.update(monitor_id, \*\*params) -> LoadBalancingMonitor
- client.user.load_balancers.monitors.list() -> SyncSinglePage[LoadBalancingMonitor]
-- client.user.load_balancers.monitors.delete(monitor_id) -> MonitorDeleteResponse
+- client.user.load_balancers.monitors.delete(monitor_id, \*\*params) -> MonitorDeleteResponse
- client.user.load_balancers.monitors.edit(monitor_id, \*\*params) -> LoadBalancingMonitor
- client.user.load_balancers.monitors.get(monitor_id) -> LoadBalancingMonitor
- client.user.load_balancers.monitors.preview(monitor_id, \*\*params) -> MonitorPreviewResponse
@@ -232,7 +232,7 @@ Methods:
- client.user.load_balancers.pools.create(\*\*params) -> LoadBalancingPool
- client.user.load_balancers.pools.update(pool_id, \*\*params) -> LoadBalancingPool
- client.user.load_balancers.pools.list(\*\*params) -> SyncSinglePage[LoadBalancingPool]
-- client.user.load_balancers.pools.delete(pool_id) -> PoolDeleteResponse
+- client.user.load_balancers.pools.delete(pool_id, \*\*params) -> PoolDeleteResponse
- client.user.load_balancers.pools.edit(pool_id, \*\*params) -> LoadBalancingPool
- client.user.load_balancers.pools.get(pool_id) -> LoadBalancingPool
- client.user.load_balancers.pools.health(pool_id) -> PoolHealthResponse
@@ -276,7 +276,7 @@ from cloudflare.types.user import Organization, OrganizationDeleteResponse, Orga
Methods:
- client.user.organizations.list(\*\*params) -> SyncV4PagePaginationArray[Organization]
-- client.user.organizations.delete(organization_id) -> OrganizationDeleteResponse
+- client.user.organizations.delete(organization_id, \*\*params) -> OrganizationDeleteResponse
- client.user.organizations.get(organization_id) -> OrganizationGetResponse
## Subscriptions
@@ -296,7 +296,7 @@ from cloudflare.types.user import (
Methods:
- client.user.subscriptions.update(identifier, \*\*params) -> SubscriptionUpdateResponse
-- client.user.subscriptions.delete(identifier) -> SubscriptionDeleteResponse
+- client.user.subscriptions.delete(identifier, \*\*params) -> SubscriptionDeleteResponse
- client.user.subscriptions.edit(identifier, \*\*params) -> SubscriptionEditResponse
- client.user.subscriptions.get() -> Optional
@@ -320,7 +320,7 @@ Methods:
- client.user.tokens.create(\*\*params) -> TokenCreateResponse
- client.user.tokens.update(token_id, \*\*params) -> TokenUpdateResponse
- client.user.tokens.list(\*\*params) -> SyncV4PagePaginationArray[object]
-- client.user.tokens.delete(token_id) -> Optional
+- client.user.tokens.delete(token_id, \*\*params) -> Optional
- client.user.tokens.get(token_id) -> TokenGetResponse
- client.user.tokens.verify() -> TokenVerifyResponse
@@ -1106,8 +1106,8 @@ from cloudflare.types.zones.workers import ScriptUpdateResponse
Methods:
-- client.zones.workers.script.update(\*, zone_id) -> ScriptUpdateResponse
-- client.zones.workers.script.delete(\*, zone_id) -> None
+- client.zones.workers.script.update(\*, zone_id, \*\*params) -> ScriptUpdateResponse
+- client.zones.workers.script.delete(\*, zone_id, \*\*params) -> None
- client.zones.workers.script.get(\*, zone_id) -> BinaryAPIResponse
## Subscriptions
@@ -1141,7 +1141,7 @@ Methods:
- client.load_balancers.create(\*, zone_id, \*\*params) -> LoadBalancer
- client.load_balancers.update(load_balancer_id, \*, zone_id, \*\*params) -> LoadBalancer
- client.load_balancers.list(\*, zone_id) -> SyncSinglePage[LoadBalancer]
-- client.load_balancers.delete(load_balancer_id, \*, zone_id) -> LoadBalancerDeleteResponse
+- client.load_balancers.delete(load_balancer_id, \*, zone_id, \*\*params) -> LoadBalancerDeleteResponse
- client.load_balancers.edit(load_balancer_id, \*, zone_id, \*\*params) -> LoadBalancer
- client.load_balancers.get(load_balancer_id, \*, zone_id) -> LoadBalancer
@@ -1158,7 +1158,7 @@ Methods:
- client.load_balancers.monitors.create(\*, account_id, \*\*params) -> LoadBalancingMonitor
- client.load_balancers.monitors.update(monitor_id, \*, account_id, \*\*params) -> LoadBalancingMonitor
- client.load_balancers.monitors.list(\*, account_id) -> SyncSinglePage[LoadBalancingMonitor]
-- client.load_balancers.monitors.delete(monitor_id, \*, account_id) -> MonitorDeleteResponse
+- client.load_balancers.monitors.delete(monitor_id, \*, account_id, \*\*params) -> MonitorDeleteResponse
- client.load_balancers.monitors.edit(monitor_id, \*, account_id, \*\*params) -> LoadBalancingMonitor
- client.load_balancers.monitors.get(monitor_id, \*, account_id) -> LoadBalancingMonitor
@@ -1199,7 +1199,7 @@ Methods:
- client.load_balancers.pools.create(\*, account_id, \*\*params) -> LoadBalancingPool
- client.load_balancers.pools.update(pool_id, \*, account_id, \*\*params) -> LoadBalancingPool
- client.load_balancers.pools.list(\*, account_id, \*\*params) -> SyncSinglePage[LoadBalancingPool]
-- client.load_balancers.pools.delete(pool_id, \*, account_id) -> PoolDeleteResponse
+- client.load_balancers.pools.delete(pool_id, \*, account_id, \*\*params) -> PoolDeleteResponse
- client.load_balancers.pools.edit(pool_id, \*, account_id, \*\*params) -> LoadBalancingPool
- client.load_balancers.pools.get(pool_id, \*, account_id) -> LoadBalancingPool
@@ -1286,7 +1286,7 @@ from cloudflare.types.cache import (
Methods:
-- client.cache.cache_reserve.clear(\*, zone_id) -> CacheReserveClearResponse
+- client.cache.cache_reserve.clear(\*, zone_id, \*\*params) -> CacheReserveClearResponse
- client.cache.cache_reserve.edit(\*, zone_id, \*\*params) -> CacheReserveEditResponse
- client.cache.cache_reserve.get(\*, zone_id) -> CacheReserveGetResponse
- client.cache.cache_reserve.status(\*, zone_id) -> CacheReserveStatusResponse
@@ -1305,7 +1305,7 @@ from cloudflare.types.cache import (
Methods:
-- client.cache.smart_tiered_cache.delete(\*, zone_id) -> SmartTieredCacheDeleteResponse
+- client.cache.smart_tiered_cache.delete(\*, zone_id, \*\*params) -> SmartTieredCacheDeleteResponse
- client.cache.smart_tiered_cache.edit(\*, zone_id, \*\*params) -> SmartTieredCacheEditResponse
- client.cache.smart_tiered_cache.get(\*, zone_id) -> SmartTieredCacheGetResponse
@@ -1319,7 +1319,7 @@ from cloudflare.types.cache import CacheVariants, VariantEditResponse, VariantGe
Methods:
-- client.cache.variants.delete(\*, zone_id) -> CacheVariants
+- client.cache.variants.delete(\*, zone_id, \*\*params) -> CacheVariants
- client.cache.variants.edit(\*, zone_id, \*\*params) -> VariantEditResponse
- client.cache.variants.get(\*, zone_id) -> VariantGetResponse
@@ -1366,8 +1366,8 @@ from cloudflare.types.ssl import (
Methods:
- client.ssl.certificate_packs.list(\*, zone_id, \*\*params) -> SyncSinglePage[object]
-- client.ssl.certificate_packs.delete(certificate_pack_id, \*, zone_id) -> CertificatePackDeleteResponse
-- client.ssl.certificate_packs.edit(certificate_pack_id, \*, zone_id) -> CertificatePackEditResponse
+- client.ssl.certificate_packs.delete(certificate_pack_id, \*, zone_id, \*\*params) -> CertificatePackDeleteResponse
+- client.ssl.certificate_packs.edit(certificate_pack_id, \*, zone_id, \*\*params) -> CertificatePackEditResponse
- client.ssl.certificate_packs.get(certificate_pack_id, \*, zone_id) -> CertificatePackGetResponse
### Order
@@ -1457,7 +1457,7 @@ Methods:
- client.subscriptions.create(identifier, \*\*params) -> SubscriptionCreateResponse
- client.subscriptions.update(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionUpdateResponse
- client.subscriptions.list(account_identifier) -> SyncSinglePage[SubscriptionListResponse]
-- client.subscriptions.delete(subscription_identifier, \*, account_identifier) -> SubscriptionDeleteResponse
+- client.subscriptions.delete(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionDeleteResponse
- client.subscriptions.get(identifier) -> SubscriptionGetResponse
# ACM
@@ -1577,7 +1577,7 @@ Methods:
- client.custom_certificates.create(\*, zone_id, \*\*params) -> CustomCertificateCreateResponse
- client.custom_certificates.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[CustomCertificate]
-- client.custom_certificates.delete(custom_certificate_id, \*, zone_id) -> CustomCertificateDeleteResponse
+- client.custom_certificates.delete(custom_certificate_id, \*, zone_id, \*\*params) -> CustomCertificateDeleteResponse
- client.custom_certificates.edit(custom_certificate_id, \*, zone_id, \*\*params) -> CustomCertificateEditResponse
- client.custom_certificates.get(custom_certificate_id, \*, zone_id) -> CustomCertificateGetResponse
@@ -1612,7 +1612,7 @@ Methods:
- client.custom_hostnames.create(\*, zone_id, \*\*params) -> CustomHostnameCreateResponse
- client.custom_hostnames.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[CustomHostnameListResponse]
-- client.custom_hostnames.delete(custom_hostname_id, \*, zone_id) -> CustomHostnameDeleteResponse
+- client.custom_hostnames.delete(custom_hostname_id, \*, zone_id, \*\*params) -> CustomHostnameDeleteResponse
- client.custom_hostnames.edit(custom_hostname_id, \*, zone_id, \*\*params) -> CustomHostnameEditResponse
- client.custom_hostnames.get(custom_hostname_id, \*, zone_id) -> CustomHostnameGetResponse
@@ -1631,7 +1631,7 @@ from cloudflare.types.custom_hostnames import (
Methods:
- client.custom_hostnames.fallback_origin.update(\*, zone_id, \*\*params) -> FallbackOriginUpdateResponse
-- client.custom_hostnames.fallback_origin.delete(\*, zone_id) -> FallbackOriginDeleteResponse
+- client.custom_hostnames.fallback_origin.delete(\*, zone_id, \*\*params) -> FallbackOriginDeleteResponse
- client.custom_hostnames.fallback_origin.get(\*, zone_id) -> FallbackOriginGetResponse
# CustomNameservers
@@ -1651,10 +1651,10 @@ from cloudflare.types import (
Methods:
- client.custom_nameservers.create(\*, account_id, \*\*params) -> CustomNameserver
-- client.custom_nameservers.delete(custom_ns_id, \*, account_id) -> Optional
+- client.custom_nameservers.delete(custom_ns_id, \*, account_id, \*\*params) -> Optional
- client.custom_nameservers.availabilty(\*, account_id) -> Optional
- client.custom_nameservers.get(\*, account_id) -> Optional
-- client.custom_nameservers.verify(\*, account_id) -> Optional
+- client.custom_nameservers.verify(\*, account_id, \*\*params) -> Optional
# DNS
@@ -1677,12 +1677,12 @@ Methods:
- client.dns.records.create(\*, zone_id, \*\*params) -> DNSRecord
- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> DNSRecord
- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[DNSRecord]
-- client.dns.records.delete(dns_record_id, \*, zone_id) -> Optional
+- client.dns.records.delete(dns_record_id, \*, zone_id, \*\*params) -> Optional
- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> DNSRecord
- client.dns.records.export(\*, zone_id) -> str
- client.dns.records.get(dns_record_id, \*, zone_id) -> DNSRecord
- client.dns.records.import\_(\*, zone_id, \*\*params) -> RecordImportResponse
-- client.dns.records.scan(\*, zone_id) -> RecordScanResponse
+- client.dns.records.scan(\*, zone_id, \*\*params) -> RecordScanResponse
## Analytics
@@ -1722,7 +1722,7 @@ Methods:
- client.dns.firewall.create(\*, account_id, \*\*params) -> DNSFirewall
- client.dns.firewall.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[DNSFirewall]
-- client.dns.firewall.delete(dns_firewall_id, \*, account_id) -> FirewallDeleteResponse
+- client.dns.firewall.delete(dns_firewall_id, \*, account_id, \*\*params) -> FirewallDeleteResponse
- client.dns.firewall.edit(dns_firewall_id, \*, account_id, \*\*params) -> DNSFirewall
- client.dns.firewall.get(dns_firewall_id, \*, account_id) -> DNSFirewall
@@ -1750,7 +1750,7 @@ from cloudflare.types import DNSSEC, DNSSECDeleteResponse
Methods:
-- client.dnssec.delete(\*, zone_id) -> DNSSECDeleteResponse
+- client.dnssec.delete(\*, zone_id, \*\*params) -> DNSSECDeleteResponse
- client.dnssec.edit(\*, zone_id, \*\*params) -> DNSSEC
- client.dnssec.get(\*, zone_id) -> DNSSEC
@@ -1769,8 +1769,8 @@ from cloudflare.types import (
Methods:
-- client.email_routing.disable(zone_identifier) -> EmailRoutingDisableResponse
-- client.email_routing.enable(zone_identifier) -> EmailRoutingEnableResponse
+- client.email_routing.disable(zone_identifier, \*\*params) -> EmailRoutingDisableResponse
+- client.email_routing.enable(zone_identifier, \*\*params) -> EmailRoutingEnableResponse
- client.email_routing.get(zone_identifier) -> EmailRoutingGetResponse
## DNS
@@ -1855,7 +1855,7 @@ Methods:
- client.filters.create(zone_identifier, \*\*params) -> Optional
- client.filters.update(id, \*, zone_identifier, \*\*params) -> Optional
- client.filters.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[FirewallFilter]
-- client.filters.delete(id, \*, zone_identifier) -> Optional
+- client.filters.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.filters.get(id, \*, zone_identifier) -> Optional
# Firewall
@@ -1873,7 +1873,7 @@ Methods:
- client.firewall.lockdowns.create(zone_identifier, \*\*params) -> Optional
- client.firewall.lockdowns.update(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.lockdowns.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[FirewallZoneLockdown]
-- client.firewall.lockdowns.delete(id, \*, zone_identifier) -> Optional
+- client.firewall.lockdowns.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.lockdowns.get(id, \*, zone_identifier) -> Optional
## Rules
@@ -1891,7 +1891,7 @@ Methods:
- client.firewall.rules.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[FirewallFilterRule]
- client.firewall.rules.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.rules.edit(id, \*, zone_identifier, \*\*params) -> Optional
-- client.firewall.rules.get(id, \*, zone_identifier) -> Optional
+- client.firewall.rules.get(zone_identifier, \*, path_id, \*\*params) -> Optional
## AccessRules
@@ -1911,7 +1911,7 @@ Methods:
- client.firewall.access_rules.create(\*, account_id, zone_id, \*\*params) -> Optional
- client.firewall.access_rules.list(\*, account_id, zone_id, \*\*params) -> SyncV4PagePaginationArray[object]
-- client.firewall.access_rules.delete(identifier, \*, account_id, zone_id) -> Optional
+- client.firewall.access_rules.delete(identifier, \*, account_id, zone_id, \*\*params) -> Optional
- client.firewall.access_rules.edit(identifier, \*, account_id, zone_id, \*\*params) -> Optional
- client.firewall.access_rules.get(identifier, \*, account_id, zone_id) -> Optional
@@ -1935,7 +1935,7 @@ Methods:
- client.firewall.ua_rules.create(zone_identifier, \*\*params) -> Optional
- client.firewall.ua_rules.update(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.ua_rules.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[UARuleListResponse]
-- client.firewall.ua_rules.delete(id, \*, zone_identifier) -> Optional
+- client.firewall.ua_rules.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.ua_rules.get(id, \*, zone_identifier) -> Optional
## WAF
@@ -1953,7 +1953,7 @@ Methods:
- client.firewall.waf.overrides.create(zone_identifier, \*\*params) -> Optional
- client.firewall.waf.overrides.update(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.waf.overrides.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[WAFOverride]
-- client.firewall.waf.overrides.delete(id, \*, zone_identifier) -> Optional
+- client.firewall.waf.overrides.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.waf.overrides.get(id, \*, zone_identifier) -> Optional
### Packages
@@ -2018,7 +2018,7 @@ Methods:
- client.healthchecks.create(\*, zone_id, \*\*params) -> Healthcheck
- client.healthchecks.update(healthcheck_id, \*, zone_id, \*\*params) -> Healthcheck
- client.healthchecks.list(\*, zone_id) -> SyncSinglePage[Healthcheck]
-- client.healthchecks.delete(healthcheck_id, \*, zone_id) -> HealthcheckDeleteResponse
+- client.healthchecks.delete(healthcheck_id, \*, zone_id, \*\*params) -> HealthcheckDeleteResponse
- client.healthchecks.edit(healthcheck_id, \*, zone_id, \*\*params) -> Healthcheck
- client.healthchecks.get(healthcheck_id, \*, zone_id) -> Healthcheck
@@ -2033,7 +2033,7 @@ from cloudflare.types.healthchecks import PreviewDeleteResponse
Methods:
- client.healthchecks.previews.create(\*, zone_id, \*\*params) -> Healthcheck
-- client.healthchecks.previews.delete(healthcheck_id, \*, zone_id) -> PreviewDeleteResponse
+- client.healthchecks.previews.delete(healthcheck_id, \*, zone_id, \*\*params) -> PreviewDeleteResponse
- client.healthchecks.previews.get(healthcheck_id, \*, zone_id) -> Healthcheck
# KeylessCertificates
@@ -2052,7 +2052,7 @@ Methods:
- client.keyless_certificates.create(\*, zone_id, \*\*params) -> KeylessCertificateHostname
- client.keyless_certificates.list(\*, zone_id) -> SyncSinglePage[KeylessCertificateHostname]
-- client.keyless_certificates.delete(keyless_certificate_id, \*, zone_id) -> KeylessCertificateDeleteResponse
+- client.keyless_certificates.delete(keyless_certificate_id, \*, zone_id, \*\*params) -> KeylessCertificateDeleteResponse
- client.keyless_certificates.edit(keyless_certificate_id, \*, zone_id, \*\*params) -> KeylessCertificateHostname
- client.keyless_certificates.get(keyless_certificate_id, \*, zone_id) -> KeylessCertificateHostname
@@ -2110,7 +2110,7 @@ Methods:
- client.logpush.jobs.create(\*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.update(job_id, \*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.list(\*, account_id, zone_id) -> SyncSinglePage[Optional]
-- client.logpush.jobs.delete(job_id, \*, account_id, zone_id) -> Optional
+- client.logpush.jobs.delete(job_id, \*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.get(job_id, \*, account_id, zone_id) -> Optional
## Ownership
@@ -2171,7 +2171,7 @@ from cloudflare.types.logs.control.cmb import CmbConfig, ConfigDeleteResponse
Methods:
- client.logs.control.cmb.config.create(\*, account_id, \*\*params) -> Optional
-- client.logs.control.cmb.config.delete(\*, account_id) -> Optional
+- client.logs.control.cmb.config.delete(\*, account_id, \*\*params) -> Optional
- client.logs.control.cmb.config.get(\*, account_id) -> Optional
## RayID
@@ -2228,7 +2228,7 @@ Methods:
- client.origin_tls_client_auth.create(\*, zone_id, \*\*params) -> OriginTLSClientAuthCreateResponse
- client.origin_tls_client_auth.list(\*, zone_id) -> SyncSinglePage[OriginTLSClientAuthListResponse]
-- client.origin_tls_client_auth.delete(certificate_id, \*, zone_id) -> OriginTLSClientAuthDeleteResponse
+- client.origin_tls_client_auth.delete(certificate_id, \*, zone_id, \*\*params) -> OriginTLSClientAuthDeleteResponse
- client.origin_tls_client_auth.get(certificate_id, \*, zone_id) -> OriginTLSClientAuthGetResponse
## Hostnames
@@ -2260,7 +2260,7 @@ Methods:
- client.origin_tls_client_auth.hostnames.certificates.create(\*, zone_id, \*\*params) -> OriginTLSClientCertificate
- client.origin_tls_client_auth.hostnames.certificates.list(\*, zone_id) -> SyncSinglePage[OriginTLSClientCertificateID]
-- client.origin_tls_client_auth.hostnames.certificates.delete(certificate_id, \*, zone_id) -> OriginTLSClientCertificate
+- client.origin_tls_client_auth.hostnames.certificates.delete(certificate_id, \*, zone_id, \*\*params) -> OriginTLSClientCertificate
- client.origin_tls_client_auth.hostnames.certificates.get(certificate_id, \*, zone_id) -> OriginTLSClientCertificate
## Settings
@@ -2297,7 +2297,7 @@ Methods:
- client.pagerules.create(\*, zone_id, \*\*params) -> PageruleCreateResponse
- client.pagerules.update(pagerule_id, \*, zone_id, \*\*params) -> PageruleUpdateResponse
- client.pagerules.list(\*, zone_id, \*\*params) -> PageruleListResponse
-- client.pagerules.delete(pagerule_id, \*, zone_id) -> Optional
+- client.pagerules.delete(pagerule_id, \*, zone_id, \*\*params) -> Optional
- client.pagerules.edit(pagerule_id, \*, zone_id, \*\*params) -> PageruleEditResponse
- client.pagerules.get(pagerule_id, \*, zone_id) -> PageruleGetResponse
@@ -2332,7 +2332,7 @@ Methods:
- client.rate_limits.create(zone_identifier, \*\*params) -> Optional
- client.rate_limits.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[RateLimitListResponse]
-- client.rate_limits.delete(id, \*, zone_identifier) -> Optional
+- client.rate_limits.delete(id, \*, zone_identifier, \*\*params) -> Optional
- client.rate_limits.edit(id, \*, zone_identifier, \*\*params) -> Optional
- client.rate_limits.get(id, \*, zone_identifier) -> Optional
@@ -2348,7 +2348,7 @@ from cloudflare.types.secondary_dns import SecondaryDNSForce
Methods:
-- client.secondary_dns.force_axfr.create(\*, zone_id) -> str
+- client.secondary_dns.force_axfr.create(\*, zone_id, \*\*params) -> str
## Incoming
@@ -2367,7 +2367,7 @@ Methods:
- client.secondary_dns.incoming.create(\*, zone_id, \*\*params) -> IncomingCreateResponse
- client.secondary_dns.incoming.update(\*, zone_id, \*\*params) -> IncomingUpdateResponse
-- client.secondary_dns.incoming.delete(\*, zone_id) -> IncomingDeleteResponse
+- client.secondary_dns.incoming.delete(\*, zone_id, \*\*params) -> IncomingDeleteResponse
- client.secondary_dns.incoming.get(\*, zone_id) -> IncomingGetResponse
## Outgoing
@@ -2390,10 +2390,10 @@ Methods:
- client.secondary_dns.outgoing.create(\*, zone_id, \*\*params) -> OutgoingCreateResponse
- client.secondary_dns.outgoing.update(\*, zone_id, \*\*params) -> OutgoingUpdateResponse
-- client.secondary_dns.outgoing.delete(\*, zone_id) -> OutgoingDeleteResponse
-- client.secondary_dns.outgoing.disable(\*, zone_id) -> str
-- client.secondary_dns.outgoing.enable(\*, zone_id) -> str
-- client.secondary_dns.outgoing.force_notify(\*, zone_id) -> str
+- client.secondary_dns.outgoing.delete(\*, zone_id, \*\*params) -> OutgoingDeleteResponse
+- client.secondary_dns.outgoing.disable(\*, zone_id, \*\*params) -> str
+- client.secondary_dns.outgoing.enable(\*, zone_id, \*\*params) -> str
+- client.secondary_dns.outgoing.force_notify(\*, zone_id, \*\*params) -> str
- client.secondary_dns.outgoing.get(\*, zone_id) -> OutgoingGetResponse
### Status
@@ -2415,7 +2415,7 @@ Methods:
- client.secondary_dns.acls.create(\*, account_id, \*\*params) -> SecondaryDNSACL
- client.secondary_dns.acls.update(acl_id, \*, account_id, \*\*params) -> SecondaryDNSACL
- client.secondary_dns.acls.list(\*, account_id) -> SyncSinglePage[SecondaryDNSACL]
-- client.secondary_dns.acls.delete(acl_id, \*, account_id) -> ACLDeleteResponse
+- client.secondary_dns.acls.delete(acl_id, \*, account_id, \*\*params) -> ACLDeleteResponse
- client.secondary_dns.acls.get(acl_id, \*, account_id) -> SecondaryDNSACL
## Peers
@@ -2431,7 +2431,7 @@ Methods:
- client.secondary_dns.peers.create(\*, account_id, \*\*params) -> SecondaryDNSPeer
- client.secondary_dns.peers.update(peer_id, \*, account_id, \*\*params) -> SecondaryDNSPeer
- client.secondary_dns.peers.list(\*, account_id) -> SyncSinglePage[SecondaryDNSPeer]
-- client.secondary_dns.peers.delete(peer_id, \*, account_id) -> PeerDeleteResponse
+- client.secondary_dns.peers.delete(peer_id, \*, account_id, \*\*params) -> PeerDeleteResponse
- client.secondary_dns.peers.get(peer_id, \*, account_id) -> SecondaryDNSPeer
## TSIGs
@@ -2447,7 +2447,7 @@ Methods:
- client.secondary_dns.tsigs.create(\*, account_id, \*\*params) -> SecondaryDNSTSIG
- client.secondary_dns.tsigs.update(tsig_id, \*, account_id, \*\*params) -> SecondaryDNSTSIG
- client.secondary_dns.tsigs.list(\*, account_id) -> SyncSinglePage[SecondaryDNSTSIG]
-- client.secondary_dns.tsigs.delete(tsig_id, \*, account_id) -> TSIGDeleteResponse
+- client.secondary_dns.tsigs.delete(tsig_id, \*, account_id, \*\*params) -> TSIGDeleteResponse
- client.secondary_dns.tsigs.get(tsig_id, \*, account_id) -> SecondaryDNSTSIG
# WaitingRooms
@@ -2463,7 +2463,7 @@ Methods:
- client.waiting_rooms.create(\*, zone_id, \*\*params) -> WaitingRoom
- client.waiting_rooms.update(waiting_room_id, \*, zone_id, \*\*params) -> WaitingRoom
- client.waiting_rooms.list(\*, zone_id) -> SyncSinglePage[WaitingRoom]
-- client.waiting_rooms.delete(waiting_room_id, \*, zone_id) -> WaitingRoomDeleteResponse
+- client.waiting_rooms.delete(waiting_room_id, \*, zone_id, \*\*params) -> WaitingRoomDeleteResponse
- client.waiting_rooms.edit(waiting_room_id, \*, zone_id, \*\*params) -> WaitingRoom
- client.waiting_rooms.get(waiting_room_id, \*, zone_id) -> WaitingRoom
@@ -2492,7 +2492,7 @@ Methods:
- client.waiting_rooms.events.create(waiting_room_id, \*, zone_id, \*\*params) -> WaitingroomEvent
- client.waiting_rooms.events.update(event_id, \*, zone_id, waiting_room_id, \*\*params) -> WaitingroomEvent
- client.waiting_rooms.events.list(waiting_room_id, \*, zone_id) -> SyncSinglePage[WaitingroomEvent]
-- client.waiting_rooms.events.delete(event_id, \*, zone_id, waiting_room_id) -> EventDeleteResponse
+- client.waiting_rooms.events.delete(event_id, \*, zone_id, waiting_room_id, \*\*params) -> EventDeleteResponse
- client.waiting_rooms.events.edit(event_id, \*, zone_id, waiting_room_id, \*\*params) -> WaitingroomEvent
- client.waiting_rooms.events.get(event_id, \*, zone_id, waiting_room_id) -> WaitingroomEvent
@@ -2527,7 +2527,7 @@ Methods:
- client.waiting_rooms.rules.create(waiting_room_id, \*, zone_id, \*\*params) -> Optional
- client.waiting_rooms.rules.update(waiting_room_id, \*, zone_id, \*\*params) -> Optional
- client.waiting_rooms.rules.list(waiting_room_id, \*, zone_id) -> SyncSinglePage[WaitingroomRule]
-- client.waiting_rooms.rules.delete(rule_id, \*, zone_id, waiting_room_id) -> Optional
+- client.waiting_rooms.rules.delete(rule_id, \*, zone_id, waiting_room_id, \*\*params) -> Optional
- client.waiting_rooms.rules.edit(rule_id, \*, zone_id, waiting_room_id, \*\*params) -> Optional
## Statuses
@@ -2574,7 +2574,7 @@ Methods:
- client.web3.hostnames.create(zone_identifier, \*\*params) -> DistributedWebHostname
- client.web3.hostnames.list(zone_identifier) -> SyncSinglePage[DistributedWebHostname]
-- client.web3.hostnames.delete(identifier, \*, zone_identifier) -> Optional
+- client.web3.hostnames.delete(identifier, \*, zone_identifier, \*\*params) -> Optional
- client.web3.hostnames.edit(identifier, \*, zone_identifier, \*\*params) -> DistributedWebHostname
- client.web3.hostnames.get(identifier, \*, zone_identifier) -> DistributedWebHostname
@@ -2610,7 +2610,7 @@ Methods:
- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.create(identifier, \*, zone_identifier, \*\*params) -> DistributedWebConfigContentListEntry
- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.update(content_list_entry_identifier, \*, zone_identifier, identifier, \*\*params) -> DistributedWebConfigContentListEntry
- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.list(identifier, \*, zone_identifier) -> Optional
-- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.delete(content_list_entry_identifier, \*, zone_identifier, identifier) -> Optional
+- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.delete(content_list_entry_identifier, \*, zone_identifier, identifier, \*\*params) -> Optional
- client.web3.hostnames.ipfs_universal_paths.content_lists.entries.get(content_list_entry_identifier, \*, zone_identifier, identifier) -> DistributedWebConfigContentListEntry
# Workers
@@ -2677,8 +2677,8 @@ from cloudflare.types.workers.scripts import TailCreateResponse, TailDeleteRespo
Methods:
-- client.workers.scripts.tail.create(script_name, \*, account_id) -> TailCreateResponse
-- client.workers.scripts.tail.delete(id, \*, account_id, script_name) -> TailDeleteResponse
+- client.workers.scripts.tail.create(script_name, \*, account_id, \*\*params) -> TailCreateResponse
+- client.workers.scripts.tail.delete(id, \*, account_id, script_name, \*\*params) -> TailDeleteResponse
- client.workers.scripts.tail.get(script_name, \*, account_id) -> TailGetResponse
### UsageModel
@@ -2732,7 +2732,7 @@ Methods:
- client.workers.filters.create(\*, zone_id, \*\*params) -> Optional
- client.workers.filters.update(filter_id, \*, zone_id, \*\*params) -> WorkersFilter
- client.workers.filters.list(\*, zone_id) -> SyncSinglePage[WorkersFilter]
-- client.workers.filters.delete(filter_id, \*, zone_id) -> Optional
+- client.workers.filters.delete(filter_id, \*, zone_id, \*\*params) -> Optional
## Routes
@@ -2747,7 +2747,7 @@ Methods:
- client.workers.routes.create(\*, zone_id, \*\*params) -> RouteCreateResponse
- client.workers.routes.update(route_id, \*, zone_id, \*\*params) -> WorkersRoute
- client.workers.routes.list(\*, zone_id) -> SyncSinglePage[WorkersRoute]
-- client.workers.routes.delete(route_id, \*, zone_id) -> RouteDeleteResponse
+- client.workers.routes.delete(route_id, \*, zone_id, \*\*params) -> RouteDeleteResponse
- client.workers.routes.get(route_id, \*, zone_id) -> WorkersRoute
## AccountSettings
@@ -2801,7 +2801,7 @@ Methods:
- client.workers.domains.update(\*, account_id, \*\*params) -> WorkersDomain
- client.workers.domains.list(\*, account_id, \*\*params) -> SyncSinglePage[WorkersDomain]
-- client.workers.domains.delete(domain_id, \*, account_id) -> None
+- client.workers.domains.delete(domain_id, \*, account_id, \*\*params) -> None
- client.workers.domains.get(domain_id, \*, account_id) -> WorkersDomain
## Subdomains
@@ -2856,7 +2856,7 @@ Methods:
- client.kv.namespaces.create(\*, account_id, \*\*params) -> WorkersKVNamespace
- client.kv.namespaces.update(namespace_id, \*, account_id, \*\*params) -> NamespaceUpdateResponse
- client.kv.namespaces.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WorkersKVNamespace]
-- client.kv.namespaces.delete(namespace_id, \*, account_id) -> NamespaceDeleteResponse
+- client.kv.namespaces.delete(namespace_id, \*, account_id, \*\*params) -> NamespaceDeleteResponse
### Bulk
@@ -2910,7 +2910,7 @@ from cloudflare.types.kv.namespaces import (
Methods:
- client.kv.namespaces.values.update(key_name, \*, account_id, namespace_id, \*\*params) -> ValueUpdateResponse
-- client.kv.namespaces.values.delete(key_name, \*, account_id, namespace_id) -> ValueDeleteResponse
+- client.kv.namespaces.values.delete(key_name, \*, account_id, namespace_id, \*\*params) -> ValueDeleteResponse
- client.kv.namespaces.values.get(key_name, \*, account_id, namespace_id) -> str
# DurableObjects
@@ -2961,7 +2961,7 @@ Methods:
- client.queues.create(\*, account_id, \*\*params) -> Optional
- client.queues.update(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.list(\*, account_id) -> Optional
-- client.queues.delete(queue_id, \*, account_id) -> Optional
+- client.queues.delete(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.get(queue_id, \*, account_id) -> Optional
## Consumers
@@ -2981,7 +2981,7 @@ Methods:
- client.queues.consumers.create(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.consumers.update(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
-- client.queues.consumers.delete(consumer_id, \*, account_id, queue_id) -> Optional
+- client.queues.consumers.delete(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
- client.queues.consumers.get(queue_id, \*, account_id) -> Optional
## Messages
@@ -3228,7 +3228,7 @@ Methods:
- client.spectrum.apps.create(zone, \*\*params) -> Optional
- client.spectrum.apps.update(app_id, \*, zone, \*\*params) -> Optional
- client.spectrum.apps.list(zone, \*\*params) -> SyncV4PagePaginationArray[object]
-- client.spectrum.apps.delete(app_id, \*, zone) -> Optional
+- client.spectrum.apps.delete(app_id, \*, zone, \*\*params) -> Optional
- client.spectrum.apps.get(app_id, \*, zone) -> Optional
# Addressing
@@ -3262,7 +3262,7 @@ Methods:
- client.addressing.address_maps.create(\*, account_id, \*\*params) -> AddressMapCreateResponse
- client.addressing.address_maps.list(\*, account_id) -> SyncSinglePage[AddressingAddressMaps]
-- client.addressing.address_maps.delete(address_map_id, \*, account_id) -> Optional
+- client.addressing.address_maps.delete(address_map_id, \*, account_id, \*\*params) -> Optional
- client.addressing.address_maps.edit(address_map_id, \*, account_id, \*\*params) -> AddressingAddressMaps
- client.addressing.address_maps.get(address_map_id, \*, account_id) -> AddressMapGetResponse
@@ -3276,8 +3276,8 @@ from cloudflare.types.addressing.address_maps import AccountUpdateResponse, Acco
Methods:
-- client.addressing.address_maps.accounts.update(address_map_id, \*, account_id) -> Optional
-- client.addressing.address_maps.accounts.delete(address_map_id, \*, account_id) -> Optional
+- client.addressing.address_maps.accounts.update(address_map_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.accounts.delete(address_map_id, \*, account_id, \*\*params) -> Optional
### IPs
@@ -3289,8 +3289,8 @@ from cloudflare.types.addressing.address_maps import IPUpdateResponse, IPDeleteR
Methods:
-- client.addressing.address_maps.ips.update(ip_address, \*, account_id, address_map_id) -> Optional
-- client.addressing.address_maps.ips.delete(ip_address, \*, account_id, address_map_id) -> Optional
+- client.addressing.address_maps.ips.update(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
+- client.addressing.address_maps.ips.delete(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
### Zones
@@ -3302,8 +3302,8 @@ from cloudflare.types.addressing.address_maps import ZoneUpdateResponse, ZoneDel
Methods:
-- client.addressing.address_maps.zones.update(address_map_id, \*, zone_id, account_id) -> Optional
-- client.addressing.address_maps.zones.delete(address_map_id, \*, zone_id, account_id) -> Optional
+- client.addressing.address_maps.zones.update(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.zones.delete(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
## LOADocuments
@@ -3341,7 +3341,7 @@ Methods:
- client.addressing.prefixes.create(\*, account_id, \*\*params) -> AddressingIpamPrefixes
- client.addressing.prefixes.list(\*, account_id) -> SyncSinglePage[AddressingIpamPrefixes]
-- client.addressing.prefixes.delete(prefix_id, \*, account_id) -> Optional
+- client.addressing.prefixes.delete(prefix_id, \*, account_id, \*\*params) -> Optional
- client.addressing.prefixes.edit(prefix_id, \*, account_id, \*\*params) -> AddressingIpamPrefixes
- client.addressing.prefixes.get(prefix_id, \*, account_id) -> AddressingIpamPrefixes
@@ -3401,7 +3401,7 @@ Methods:
- client.addressing.prefixes.delegations.create(prefix_id, \*, account_id, \*\*params) -> AddressingIpamDelegations
- client.addressing.prefixes.delegations.list(prefix_id, \*, account_id) -> SyncSinglePage[AddressingIpamDelegations]
-- client.addressing.prefixes.delegations.delete(delegation_id, \*, account_id, prefix_id) -> DelegationDeleteResponse
+- client.addressing.prefixes.delegations.delete(delegation_id, \*, account_id, prefix_id, \*\*params) -> DelegationDeleteResponse
# AuditLogs
@@ -3470,7 +3470,7 @@ Methods:
- client.images.v1.create(\*, account_id, \*\*params) -> Image
- client.images.v1.list(\*, account_id, \*\*params) -> SyncV4PagePagination[V1ListResponse]
-- client.images.v1.delete(image_id, \*, account_id) -> V1DeleteResponse
+- client.images.v1.delete(image_id, \*, account_id, \*\*params) -> V1DeleteResponse
- client.images.v1.edit(image_id, \*, account_id, \*\*params) -> Image
- client.images.v1.get(image_id, \*, account_id) -> Image
@@ -3512,7 +3512,7 @@ Methods:
- client.images.v1.variants.create(\*, account_id, \*\*params) -> V1ImageVariant
- client.images.v1.variants.list(\*, account_id) -> V1ImageVariants
-- client.images.v1.variants.delete(variant_id, \*, account_id) -> VariantDeleteResponse
+- client.images.v1.variants.delete(variant_id, \*, account_id, \*\*params) -> VariantDeleteResponse
- client.images.v1.variants.edit(variant_id, \*, account_id, \*\*params) -> V1ImageVariant
- client.images.v1.variants.get(variant_id, \*, account_id) -> V1ImageVariant
@@ -3795,7 +3795,7 @@ Methods:
- client.magic_transit.gre_tunnels.create(\*, account_id, \*\*params) -> GRETunnelCreateResponse
- client.magic_transit.gre_tunnels.update(tunnel_identifier, \*, account_id, \*\*params) -> GRETunnelUpdateResponse
- client.magic_transit.gre_tunnels.list(\*, account_id) -> GRETunnelListResponse
-- client.magic_transit.gre_tunnels.delete(tunnel_identifier, \*, account_id) -> GRETunnelDeleteResponse
+- client.magic_transit.gre_tunnels.delete(tunnel_identifier, \*, account_id, \*\*params) -> GRETunnelDeleteResponse
- client.magic_transit.gre_tunnels.get(tunnel_identifier, \*, account_id) -> GRETunnelGetResponse
## IPSECTunnels
@@ -3818,9 +3818,9 @@ Methods:
- client.magic_transit.ipsec_tunnels.create(\*, account_id, \*\*params) -> IPSECTunnelCreateResponse
- client.magic_transit.ipsec_tunnels.update(tunnel_identifier, \*, account_id, \*\*params) -> IPSECTunnelUpdateResponse
- client.magic_transit.ipsec_tunnels.list(\*, account_id) -> IPSECTunnelListResponse
-- client.magic_transit.ipsec_tunnels.delete(tunnel_identifier, \*, account_id) -> IPSECTunnelDeleteResponse
+- client.magic_transit.ipsec_tunnels.delete(tunnel_identifier, \*, account_id, \*\*params) -> IPSECTunnelDeleteResponse
- client.magic_transit.ipsec_tunnels.get(tunnel_identifier, \*, account_id) -> IPSECTunnelGetResponse
-- client.magic_transit.ipsec_tunnels.psk_generate(tunnel_identifier, \*, account_id) -> IPSECTunnelPSKGenerateResponse
+- client.magic_transit.ipsec_tunnels.psk_generate(tunnel_identifier, \*, account_id, \*\*params) -> IPSECTunnelPSKGenerateResponse
## Routes
@@ -3842,7 +3842,7 @@ Methods:
- client.magic_transit.routes.create(\*, account_id, \*\*params) -> RouteCreateResponse
- client.magic_transit.routes.update(route_identifier, \*, account_id, \*\*params) -> RouteUpdateResponse
- client.magic_transit.routes.list(\*, account_id) -> RouteListResponse
-- client.magic_transit.routes.delete(route_identifier, \*, account_id) -> RouteDeleteResponse
+- client.magic_transit.routes.delete(route_identifier, \*, account_id, \*\*params) -> RouteDeleteResponse
- client.magic_transit.routes.empty(\*, account_id, \*\*params) -> RouteEmptyResponse
- client.magic_transit.routes.get(route_identifier, \*, account_id) -> RouteGetResponse
@@ -3864,8 +3864,8 @@ Methods:
- client.magic_transit.sites.create(\*, account_id, \*\*params) -> SiteCreateResponse
- client.magic_transit.sites.update(site_id, \*, account_id, \*\*params) -> SiteUpdateResponse
-- client.magic_transit.sites.list(\*, account_id) -> SiteListResponse
-- client.magic_transit.sites.delete(site_id, \*, account_id) -> SiteDeleteResponse
+- client.magic_transit.sites.list(\*, account_id, \*\*params) -> SiteListResponse
+- client.magic_transit.sites.delete(site_id, \*, account_id, \*\*params) -> SiteDeleteResponse
- client.magic_transit.sites.get(site_id, \*, account_id) -> SiteGetResponse
### ACLs
@@ -3887,7 +3887,7 @@ Methods:
- client.magic_transit.sites.acls.create(site_id, \*, account_id, \*\*params) -> ACLCreateResponse
- client.magic_transit.sites.acls.update(acl_identifier, \*, account_id, site_id, \*\*params) -> ACLUpdateResponse
- client.magic_transit.sites.acls.list(site_id, \*, account_id) -> ACLListResponse
-- client.magic_transit.sites.acls.delete(acl_identifier, \*, account_id, site_id) -> ACLDeleteResponse
+- client.magic_transit.sites.acls.delete(acl_identifier, \*, account_id, site_id, \*\*params) -> ACLDeleteResponse
- client.magic_transit.sites.acls.get(acl_identifier, \*, account_id, site_id) -> ACLGetResponse
### LANs
@@ -3909,7 +3909,7 @@ Methods:
- client.magic_transit.sites.lans.create(site_id, \*, account_id, \*\*params) -> LANCreateResponse
- client.magic_transit.sites.lans.update(lan_id, \*, account_id, site_id, \*\*params) -> LANUpdateResponse
- client.magic_transit.sites.lans.list(site_id, \*, account_id) -> LANListResponse
-- client.magic_transit.sites.lans.delete(lan_id, \*, account_id, site_id) -> LANDeleteResponse
+- client.magic_transit.sites.lans.delete(lan_id, \*, account_id, site_id, \*\*params) -> LANDeleteResponse
- client.magic_transit.sites.lans.get(lan_id, \*, account_id, site_id) -> LANGetResponse
### WANs
@@ -3931,7 +3931,7 @@ Methods:
- client.magic_transit.sites.wans.create(site_id, \*, account_id, \*\*params) -> WANCreateResponse
- client.magic_transit.sites.wans.update(wan_id, \*, account_id, site_id, \*\*params) -> WANUpdateResponse
- client.magic_transit.sites.wans.list(site_id, \*, account_id) -> WANListResponse
-- client.magic_transit.sites.wans.delete(wan_id, \*, account_id, site_id) -> WANDeleteResponse
+- client.magic_transit.sites.wans.delete(wan_id, \*, account_id, site_id, \*\*params) -> WANDeleteResponse
- client.magic_transit.sites.wans.get(wan_id, \*, account_id, site_id) -> WANGetResponse
# MagicNetworkMonitoring
@@ -3946,10 +3946,10 @@ from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringConf
Methods:
-- client.magic_network_monitoring.configs.create(\*, account_id) -> MagicNetworkMonitoringConfig
-- client.magic_network_monitoring.configs.update(\*, account_id) -> MagicNetworkMonitoringConfig
-- client.magic_network_monitoring.configs.delete(\*, account_id) -> MagicNetworkMonitoringConfig
-- client.magic_network_monitoring.configs.edit(\*, account_id) -> MagicNetworkMonitoringConfig
+- client.magic_network_monitoring.configs.create(\*, account_id, \*\*params) -> MagicNetworkMonitoringConfig
+- client.magic_network_monitoring.configs.update(\*, account_id, \*\*params) -> MagicNetworkMonitoringConfig
+- client.magic_network_monitoring.configs.delete(\*, account_id, \*\*params) -> MagicNetworkMonitoringConfig
+- client.magic_network_monitoring.configs.edit(\*, account_id, \*\*params) -> MagicNetworkMonitoringConfig
- client.magic_network_monitoring.configs.get(\*, account_id) -> MagicNetworkMonitoringConfig
### Full
@@ -3968,11 +3968,11 @@ from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringRule
Methods:
-- client.magic_network_monitoring.rules.create(\*, account_id) -> Optional
-- client.magic_network_monitoring.rules.update(\*, account_id) -> Optional
+- client.magic_network_monitoring.rules.create(\*, account_id, \*\*params) -> Optional
+- client.magic_network_monitoring.rules.update(\*, account_id, \*\*params) -> Optional
- client.magic_network_monitoring.rules.list(\*, account_id) -> SyncSinglePage[Optional]
-- client.magic_network_monitoring.rules.delete(rule_id, \*, account_id) -> Optional
-- client.magic_network_monitoring.rules.edit(rule_id, \*, account_id) -> Optional
+- client.magic_network_monitoring.rules.delete(rule_id, \*, account_id, \*\*params) -> Optional
+- client.magic_network_monitoring.rules.edit(rule_id, \*, account_id, \*\*params) -> Optional
- client.magic_network_monitoring.rules.get(rule_id, \*, account_id) -> Optional
### Advertisements
@@ -3985,7 +3985,7 @@ from cloudflare.types.magic_network_monitoring.rules import MagicNetworkMonitori
Methods:
-- client.magic_network_monitoring.rules.advertisements.edit(rule_id, \*, account_id) -> Optional
+- client.magic_network_monitoring.rules.advertisements.edit(rule_id, \*, account_id, \*\*params) -> Optional
# MTLSCertificates
@@ -3999,7 +3999,7 @@ Methods:
- client.mtls_certificates.create(\*, account_id, \*\*params) -> MTLSCertificateUpdate
- client.mtls_certificates.list(\*, account_id) -> SyncSinglePage[MTLSCertificate]
-- client.mtls_certificates.delete(mtls_certificate_id, \*, account_id) -> MTLSCertificate
+- client.mtls_certificates.delete(mtls_certificate_id, \*, account_id, \*\*params) -> MTLSCertificate
- client.mtls_certificates.get(mtls_certificate_id, \*, account_id) -> MTLSCertificate
## Associations
@@ -4035,7 +4035,7 @@ Methods:
- client.pages.projects.create(\*, account_id, \*\*params) -> ProjectCreateResponse
- client.pages.projects.list(\*, account_id) -> SyncSinglePage[PagesDeployments]
-- client.pages.projects.delete(project_name, \*, account_id) -> object
+- client.pages.projects.delete(project_name, \*, account_id, \*\*params) -> object
- client.pages.projects.edit(project_name, \*, account_id, \*\*params) -> ProjectEditResponse
- client.pages.projects.get(project_name, \*, account_id) -> PagesProjects
- client.pages.projects.purge_build_cache(project_name, \*, account_id) -> object
@@ -4052,10 +4052,10 @@ Methods:
- client.pages.projects.deployments.create(project_name, \*, account_id, \*\*params) -> PagesDeployments
- client.pages.projects.deployments.list(project_name, \*, account_id, \*\*params) -> SyncSinglePage[PagesDeployments]
-- client.pages.projects.deployments.delete(deployment_id, \*, account_id, project_name) -> object
+- client.pages.projects.deployments.delete(deployment_id, \*, account_id, project_name, \*\*params) -> object
- client.pages.projects.deployments.get(deployment_id, \*, account_id, project_name) -> PagesDeployments
-- client.pages.projects.deployments.retry(deployment_id, \*, account_id, project_name) -> PagesDeployments
-- client.pages.projects.deployments.rollback(deployment_id, \*, account_id, project_name) -> PagesDeployments
+- client.pages.projects.deployments.retry(deployment_id, \*, account_id, project_name, \*\*params) -> PagesDeployments
+- client.pages.projects.deployments.rollback(deployment_id, \*, account_id, project_name, \*\*params) -> PagesDeployments
#### History
@@ -4089,8 +4089,8 @@ Methods:
- client.pages.projects.domains.create(project_name, \*, account_id, \*\*params) -> Optional
- client.pages.projects.domains.list(project_name, \*, account_id) -> SyncSinglePage[object]
-- client.pages.projects.domains.delete(domain_name, \*, account_id, project_name) -> object
-- client.pages.projects.domains.edit(domain_name, \*, account_id, project_name) -> Optional
+- client.pages.projects.domains.delete(domain_name, \*, account_id, project_name, \*\*params) -> object
+- client.pages.projects.domains.edit(domain_name, \*, account_id, project_name, \*\*params) -> Optional
- client.pages.projects.domains.get(domain_name, \*, account_id, project_name) -> Optional
# PCAPs
@@ -4178,7 +4178,7 @@ Methods:
- client.rules.lists.create(\*, account_id, \*\*params) -> Optional
- client.rules.lists.update(list_id, \*, account_id, \*\*params) -> Optional
- client.rules.lists.list(\*, account_id) -> SyncSinglePage[ListsList]
-- client.rules.lists.delete(list_id, \*, account_id) -> Optional
+- client.rules.lists.delete(list_id, \*, account_id, \*\*params) -> Optional
- client.rules.lists.get(list_id, \*, account_id) -> Optional
### BulkOperations
@@ -4240,9 +4240,9 @@ from cloudflare.types import StreamVideos
Methods:
-- client.stream.create(\*, account_id) -> None
+- client.stream.create(\*, account_id, \*\*params) -> None
- client.stream.list(\*, account_id, \*\*params) -> SyncSinglePage[StreamVideos]
-- client.stream.delete(identifier, \*, account_id) -> None
+- client.stream.delete(identifier, \*, account_id, \*\*params) -> None
- client.stream.get(identifier, \*, account_id) -> StreamVideos
## AudioTracks
@@ -4312,8 +4312,8 @@ from cloudflare.types.stream import StreamKeys, KeyDeleteResponse, KeyGetRespons
Methods:
-- client.stream.keys.create(\*, account_id) -> StreamKeys
-- client.stream.keys.delete(identifier, \*, account_id) -> KeyDeleteResponse
+- client.stream.keys.create(\*, account_id, \*\*params) -> StreamKeys
+- client.stream.keys.delete(identifier, \*, account_id, \*\*params) -> KeyDeleteResponse
- client.stream.keys.get(\*, account_id) -> KeyGetResponse
## LiveInputs
@@ -4329,7 +4329,7 @@ Methods:
- client.stream.live_inputs.create(\*, account_id, \*\*params) -> StreamLiveInput
- client.stream.live_inputs.update(live_input_identifier, \*, account_id, \*\*params) -> StreamLiveInput
- client.stream.live_inputs.list(\*, account_id, \*\*params) -> LiveInputListResponse
-- client.stream.live_inputs.delete(live_input_identifier, \*, account_id) -> None
+- client.stream.live_inputs.delete(live_input_identifier, \*, account_id, \*\*params) -> None
- client.stream.live_inputs.get(live_input_identifier, \*, account_id) -> StreamLiveInput
### Outputs
@@ -4345,7 +4345,7 @@ Methods:
- client.stream.live_inputs.outputs.create(live_input_identifier, \*, account_id, \*\*params) -> StreamOutput
- client.stream.live_inputs.outputs.update(output_identifier, \*, account_id, live_input_identifier, \*\*params) -> StreamOutput
- client.stream.live_inputs.outputs.list(live_input_identifier, \*, account_id) -> SyncSinglePage[StreamOutput]
-- client.stream.live_inputs.outputs.delete(output_identifier, \*, account_id, live_input_identifier) -> None
+- client.stream.live_inputs.outputs.delete(output_identifier, \*, account_id, live_input_identifier, \*\*params) -> None
## Watermarks
@@ -4364,7 +4364,7 @@ Methods:
- client.stream.watermarks.create(\*, account_id, \*\*params) -> WatermarkCreateResponse
- client.stream.watermarks.list(\*, account_id) -> SyncSinglePage[StreamWatermarks]
-- client.stream.watermarks.delete(identifier, \*, account_id) -> WatermarkDeleteResponse
+- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> WatermarkDeleteResponse
- client.stream.watermarks.get(identifier, \*, account_id) -> WatermarkGetResponse
## Webhooks
@@ -4378,7 +4378,7 @@ from cloudflare.types.stream import WebhookUpdateResponse, WebhookDeleteResponse
Methods:
- client.stream.webhooks.update(\*, account_id, \*\*params) -> WebhookUpdateResponse
-- client.stream.webhooks.delete(\*, account_id) -> WebhookDeleteResponse
+- client.stream.webhooks.delete(\*, account_id, \*\*params) -> WebhookDeleteResponse
- client.stream.webhooks.get(\*, account_id) -> WebhookGetResponse
## Captions
@@ -4397,7 +4397,7 @@ from cloudflare.types.stream import (
Methods:
- client.stream.captions.update(language, \*, account_id, identifier, \*\*params) -> CaptionUpdateResponse
-- client.stream.captions.delete(language, \*, account_id, identifier) -> CaptionDeleteResponse
+- client.stream.captions.delete(language, \*, account_id, identifier, \*\*params) -> CaptionDeleteResponse
- client.stream.captions.get(identifier, \*, account_id) -> CaptionGetResponse
## Downloads
@@ -4414,7 +4414,7 @@ from cloudflare.types.stream import (
Methods:
-- client.stream.downloads.create(identifier, \*, account_id) -> DownloadCreateResponse
+- client.stream.downloads.create(identifier, \*, account_id, \*\*params) -> DownloadCreateResponse
- client.stream.downloads.delete(identifier, \*, account_id) -> DownloadDeleteResponse
- client.stream.downloads.get(identifier, \*, account_id) -> DownloadGetResponse
@@ -4743,7 +4743,7 @@ Methods:
- client.zero_trust.devices.networks.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.networks.update(network_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.networks.list(\*, account_id) -> SyncSinglePage[DeviceManagedNetworks]
-- client.zero_trust.devices.networks.delete(network_id, \*, account_id) -> Optional
+- client.zero_trust.devices.networks.delete(network_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.networks.get(network_id, \*, account_id) -> Optional
### Policies
@@ -4758,7 +4758,7 @@ Methods:
- client.zero_trust.devices.policies.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.policies.list(\*, account_id) -> SyncSinglePage[DevicesDeviceSettingsPolicy]
-- client.zero_trust.devices.policies.delete(policy_id, \*, account_id) -> Optional
+- client.zero_trust.devices.policies.delete(policy_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.policies.edit(policy_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.policies.get(policy_id, \*, account_id) -> Optional
@@ -4841,7 +4841,7 @@ Methods:
- client.zero_trust.devices.posture.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.update(rule_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.list(\*, account_id) -> SyncSinglePage[DevicePostureRules]
-- client.zero_trust.devices.posture.delete(rule_id, \*, account_id) -> Optional
+- client.zero_trust.devices.posture.delete(rule_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.get(rule_id, \*, account_id) -> Optional
#### Integrations
@@ -4859,7 +4859,7 @@ Methods:
- client.zero_trust.devices.posture.integrations.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.list(\*, account_id) -> SyncSinglePage[DevicePostureIntegrations]
-- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id) -> Optional
+- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.edit(integration_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.get(integration_id, \*, account_id) -> Optional
@@ -5110,10 +5110,10 @@ from cloudflare.types.zero_trust.access import ZeroTrustBookmarks, BookmarkDelet
Methods:
-- client.zero_trust.access.bookmarks.create(uuid, \*, identifier) -> ZeroTrustBookmarks
-- client.zero_trust.access.bookmarks.update(uuid, \*, identifier) -> ZeroTrustBookmarks
+- client.zero_trust.access.bookmarks.create(uuid, \*, identifier, \*\*params) -> ZeroTrustBookmarks
+- client.zero_trust.access.bookmarks.update(uuid, \*, identifier, \*\*params) -> ZeroTrustBookmarks
- client.zero_trust.access.bookmarks.list(identifier) -> SyncSinglePage[ZeroTrustBookmarks]
-- client.zero_trust.access.bookmarks.delete(uuid, \*, identifier) -> BookmarkDeleteResponse
+- client.zero_trust.access.bookmarks.delete(uuid, \*, identifier, \*\*params) -> BookmarkDeleteResponse
- client.zero_trust.access.bookmarks.get(uuid, \*, identifier) -> ZeroTrustBookmarks
### Keys
@@ -5482,7 +5482,7 @@ from cloudflare.types.zero_trust.dlp.datasets import DLPDatasetNewVersion
Methods:
- client.zero_trust.dlp.datasets.upload.create(dataset_id, \*, account_id) -> Optional
-- client.zero_trust.dlp.datasets.upload.edit(version, \*, account_id, dataset_id) -> Optional
+- client.zero_trust.dlp.datasets.upload.edit(version, \*, account_id, dataset_id, \*\*params) -> Optional
### Patterns
@@ -5538,7 +5538,7 @@ Methods:
- client.zero_trust.dlp.profiles.custom.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.dlp.profiles.custom.update(profile_id, \*, account_id, \*\*params) -> DLPCustomProfile
-- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id) -> CustomDeleteResponse
+- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id, \*\*params) -> CustomDeleteResponse
- client.zero_trust.dlp.profiles.custom.get(profile_id, \*, account_id) -> DLPCustomProfile
#### Predefined
@@ -5639,7 +5639,7 @@ Methods:
- client.zero_trust.gateway.lists.create(\*, account_id, \*\*params) -> ListCreateResponse
- client.zero_trust.gateway.lists.update(list_id, \*, account_id, \*\*params) -> ZeroTrustGatewayLists
- client.zero_trust.gateway.lists.list(\*, account_id) -> SyncSinglePage[ZeroTrustGatewayLists]
-- client.zero_trust.gateway.lists.delete(list_id, \*, account_id) -> ListDeleteResponse
+- client.zero_trust.gateway.lists.delete(list_id, \*, account_id, \*\*params) -> ListDeleteResponse
- client.zero_trust.gateway.lists.edit(list_id, \*, account_id, \*\*params) -> ZeroTrustGatewayLists
- client.zero_trust.gateway.lists.get(list_id, \*, account_id) -> ZeroTrustGatewayLists
@@ -5668,7 +5668,7 @@ Methods:
- client.zero_trust.gateway.locations.create(\*, account_id, \*\*params) -> ZeroTrustGatewayLocations
- client.zero_trust.gateway.locations.update(location_id, \*, account_id, \*\*params) -> ZeroTrustGatewayLocations
- client.zero_trust.gateway.locations.list(\*, account_id) -> SyncSinglePage[ZeroTrustGatewayLocations]
-- client.zero_trust.gateway.locations.delete(location_id, \*, account_id) -> LocationDeleteResponse
+- client.zero_trust.gateway.locations.delete(location_id, \*, account_id, \*\*params) -> LocationDeleteResponse
- client.zero_trust.gateway.locations.get(location_id, \*, account_id) -> ZeroTrustGatewayLocations
### Logging
@@ -5699,7 +5699,7 @@ Methods:
- client.zero_trust.gateway.proxy_endpoints.create(\*, account_id, \*\*params) -> ZeroTrustGatewayProxyEndpoints
- client.zero_trust.gateway.proxy_endpoints.list(\*, account_id) -> SyncSinglePage[ZeroTrustGatewayProxyEndpoints]
-- client.zero_trust.gateway.proxy_endpoints.delete(proxy_endpoint_id, \*, account_id) -> ProxyEndpointDeleteResponse
+- client.zero_trust.gateway.proxy_endpoints.delete(proxy_endpoint_id, \*, account_id, \*\*params) -> ProxyEndpointDeleteResponse
- client.zero_trust.gateway.proxy_endpoints.edit(proxy_endpoint_id, \*, account_id, \*\*params) -> ZeroTrustGatewayProxyEndpoints
- client.zero_trust.gateway.proxy_endpoints.get(proxy_endpoint_id, \*, account_id) -> ZeroTrustGatewayProxyEndpoints
@@ -5716,7 +5716,7 @@ Methods:
- client.zero_trust.gateway.rules.create(\*, account_id, \*\*params) -> ZeroTrustGatewayRules
- client.zero_trust.gateway.rules.update(rule_id, \*, account_id, \*\*params) -> ZeroTrustGatewayRules
- client.zero_trust.gateway.rules.list(\*, account_id) -> SyncSinglePage[ZeroTrustGatewayRules]
-- client.zero_trust.gateway.rules.delete(rule_id, \*, account_id) -> RuleDeleteResponse
+- client.zero_trust.gateway.rules.delete(rule_id, \*, account_id, \*\*params) -> RuleDeleteResponse
- client.zero_trust.gateway.rules.get(rule_id, \*, account_id) -> ZeroTrustGatewayRules
## Networks
@@ -5767,7 +5767,7 @@ Methods:
- client.zero_trust.networks.virtual_networks.create(\*, account_id, \*\*params) -> VirtualNetworkCreateResponse
- client.zero_trust.networks.virtual_networks.list(\*, account_id, \*\*params) -> SyncSinglePage[TunnelVirtualNetwork]
-- client.zero_trust.networks.virtual_networks.delete(virtual_network_id, \*, account_id) -> VirtualNetworkDeleteResponse
+- client.zero_trust.networks.virtual_networks.delete(virtual_network_id, \*, account_id, \*\*params) -> VirtualNetworkDeleteResponse
- client.zero_trust.networks.virtual_networks.edit(virtual_network_id, \*, account_id, \*\*params) -> VirtualNetworkEditResponse
# Challenges
@@ -5881,9 +5881,9 @@ Methods:
- client.vectorize.indexes.delete_by_ids(index_name, \*, account_identifier, \*\*params) -> Optional
- client.vectorize.indexes.get(index_name, \*, account_identifier) -> Optional
- client.vectorize.indexes.get_by_ids(index_name, \*, account_identifier, \*\*params) -> object
-- client.vectorize.indexes.insert(index_name, \*, account_identifier) -> Optional
+- client.vectorize.indexes.insert(index_name, \*, account_identifier, \*\*params) -> Optional
- client.vectorize.indexes.query(index_name, \*, account_identifier, \*\*params) -> Optional
-- client.vectorize.indexes.upsert(index_name, \*, account_identifier) -> Optional
+- client.vectorize.indexes.upsert(index_name, \*, account_identifier, \*\*params) -> Optional
# URLScanner
diff --git a/src/cloudflare/_streaming.py b/src/cloudflare/_streaming.py
index fe697d1216be..0be44fec67ac 100644
--- a/src/cloudflare/_streaming.py
+++ b/src/cloudflare/_streaming.py
@@ -23,7 +23,7 @@ class Stream(Generic[_T]):
response: httpx.Response
- _decoder: SSEDecoder | SSEBytesDecoder
+ _decoder: SSEBytesDecoder
def __init__(
self,
@@ -46,10 +46,7 @@ def __iter__(self) -> Iterator[_T]:
yield item
def _iter_events(self) -> Iterator[ServerSentEvent]:
- if isinstance(self._decoder, SSEBytesDecoder):
- yield from self._decoder.iter_bytes(self.response.iter_bytes())
- else:
- yield from self._decoder.iter(self.response.iter_lines())
+ yield from self._decoder.iter_bytes(self.response.iter_bytes())
def __stream__(self) -> Iterator[_T]:
cast_to = cast(Any, self._cast_to)
@@ -112,12 +109,8 @@ async def __aiter__(self) -> AsyncIterator[_T]:
yield item
async def _iter_events(self) -> AsyncIterator[ServerSentEvent]:
- if isinstance(self._decoder, SSEBytesDecoder):
- async for sse in self._decoder.aiter_bytes(self.response.aiter_bytes()):
- yield sse
- else:
- async for sse in self._decoder.aiter(self.response.aiter_lines()):
- yield sse
+ async for sse in self._decoder.aiter_bytes(self.response.aiter_bytes()):
+ yield sse
async def __stream__(self) -> AsyncIterator[_T]:
cast_to = cast(Any, self._cast_to)
@@ -205,21 +198,49 @@ def __init__(self) -> None:
self._last_event_id = None
self._retry = None
- def iter(self, iterator: Iterator[str]) -> Iterator[ServerSentEvent]:
- """Given an iterator that yields lines, iterate over it & yield every event encountered"""
- for line in iterator:
- line = line.rstrip("\n")
- sse = self.decode(line)
- if sse is not None:
- yield sse
-
- async def aiter(self, iterator: AsyncIterator[str]) -> AsyncIterator[ServerSentEvent]:
- """Given an async iterator that yields lines, iterate over it & yield every event encountered"""
- async for line in iterator:
- line = line.rstrip("\n")
- sse = self.decode(line)
- if sse is not None:
- yield sse
+ def iter_bytes(self, iterator: Iterator[bytes]) -> Iterator[ServerSentEvent]:
+ """Given an iterator that yields raw binary data, iterate over it & yield every event encountered"""
+ for chunk in self._iter_chunks(iterator):
+ # Split before decoding so splitlines() only uses \r and \n
+ for raw_line in chunk.splitlines():
+ line = raw_line.decode("utf-8")
+ sse = self.decode(line)
+ if sse:
+ yield sse
+
+ def _iter_chunks(self, iterator: Iterator[bytes]) -> Iterator[bytes]:
+ """Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks"""
+ data = b""
+ for chunk in iterator:
+ for line in chunk.splitlines(keepends=True):
+ data += line
+ if data.endswith((b"\r\r", b"\n\n", b"\r\n\r\n")):
+ yield data
+ data = b""
+ if data:
+ yield data
+
+ async def aiter_bytes(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[ServerSentEvent]:
+ """Given an iterator that yields raw binary data, iterate over it & yield every event encountered"""
+ async for chunk in self._aiter_chunks(iterator):
+ # Split before decoding so splitlines() only uses \r and \n
+ for raw_line in chunk.splitlines():
+ line = raw_line.decode("utf-8")
+ sse = self.decode(line)
+ if sse:
+ yield sse
+
+ async def _aiter_chunks(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[bytes]:
+ """Given an iterator that yields raw binary data, iterate over it and yield individual SSE chunks"""
+ data = b""
+ async for chunk in iterator:
+ for line in chunk.splitlines(keepends=True):
+ data += line
+ if data.endswith((b"\r\r", b"\n\n", b"\r\n\r\n")):
+ yield data
+ data = b""
+ if data:
+ yield data
def decode(self, line: str) -> ServerSentEvent | None:
# See: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation # noqa: E501
diff --git a/src/cloudflare/resources/accounts/accounts.py b/src/cloudflare/resources/accounts/accounts.py
index 3518f488a3d8..e28952068c52 100644
--- a/src/cloudflare/resources/accounts/accounts.py
+++ b/src/cloudflare/resources/accounts/accounts.py
@@ -126,6 +126,7 @@ def list(
self,
*,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -141,6 +142,8 @@ def list(
Args:
direction: Direction to order results.
+ name: Name of the account.
+
page: Page number of paginated results.
per_page: Maximum number of results per page.
@@ -164,6 +167,7 @@ def list(
query=maybe_transform(
{
"direction": direction,
+ "name": name,
"page": page,
"per_page": per_page,
},
@@ -288,6 +292,7 @@ def list(
self,
*,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -303,6 +308,8 @@ def list(
Args:
direction: Direction to order results.
+ name: Name of the account.
+
page: Page number of paginated results.
per_page: Maximum number of results per page.
@@ -326,6 +333,7 @@ def list(
query=maybe_transform(
{
"direction": direction,
+ "name": name,
"page": page,
"per_page": per_page,
},
diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py
index ff5a4a51b049..ac001685537e 100644
--- a/src/cloudflare/resources/accounts/members.py
+++ b/src/cloudflare/resources/accounts/members.py
@@ -34,6 +34,7 @@
MemberDeleteResponse,
member_list_params,
member_create_params,
+ member_delete_params,
member_update_params,
)
@@ -208,6 +209,7 @@ def delete(
member_id: str,
*,
account_id: object,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -233,6 +235,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `member_id` but received {member_id!r}")
return self._delete(
f"/accounts/{account_id}/members/{member_id}",
+ body=maybe_transform(body, member_delete_params.MemberDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -452,6 +455,7 @@ async def delete(
member_id: str,
*,
account_id: object,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -477,6 +481,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `member_id` but received {member_id!r}")
return await self._delete(
f"/accounts/{account_id}/members/{member_id}",
+ body=await async_maybe_transform(body, member_delete_params.MemberDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py
index d6811437a37c..71b9fb4dd2ae 100644
--- a/src/cloudflare/resources/addressing/address_maps/accounts.py
+++ b/src/cloudflare/resources/addressing/address_maps/accounts.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -19,7 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import AccountDeleteResponse, AccountUpdateResponse
+from ....types.addressing.address_maps import (
+ AccountDeleteResponse,
+ AccountUpdateResponse,
+ account_delete_params,
+ account_update_params,
+)
__all__ = ["Accounts", "AsyncAccounts"]
@@ -38,6 +47,7 @@ def update(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -69,6 +79,7 @@ def update(
Optional[AccountUpdateResponse],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
+ body=maybe_transform(body, account_update_params.AccountUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -87,6 +98,7 @@ def delete(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -118,6 +130,7 @@ def delete(
Optional[AccountDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
+ body=maybe_transform(body, account_delete_params.AccountDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -146,6 +159,7 @@ async def update(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -177,6 +191,7 @@ async def update(
Optional[AccountUpdateResponse],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
+ body=await async_maybe_transform(body, account_update_params.AccountUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -195,6 +210,7 @@ async def delete(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -226,6 +242,7 @@ async def delete(
Optional[AccountDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
+ body=await async_maybe_transform(body, account_delete_params.AccountDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py
index f892395f3cca..8d42cd84a16c 100644
--- a/src/cloudflare/resources/addressing/address_maps/address_maps.py
+++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py
@@ -56,6 +56,7 @@
AddressMapDeleteResponse,
address_map_edit_params,
address_map_create_params,
+ address_map_delete_params,
)
__all__ = ["AddressMaps", "AsyncAddressMaps"]
@@ -177,6 +178,7 @@ def delete(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -210,6 +212,7 @@ def delete(
Optional[AddressMapDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
+ body=maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -451,6 +454,7 @@ async def delete(
address_map_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -484,6 +488,7 @@ async def delete(
Optional[AddressMapDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
+ body=await async_maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py
index 9158077ee9dd..ff87f190f0bc 100644
--- a/src/cloudflare/resources/addressing/address_maps/ips.py
+++ b/src/cloudflare/resources/addressing/address_maps/ips.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -19,7 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse
+from ....types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse, ip_delete_params, ip_update_params
__all__ = ["IPs", "AsyncIPs"]
@@ -39,6 +43,7 @@ def update(
*,
account_id: str,
address_map_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -74,6 +79,7 @@ def update(
Optional[IPUpdateResponse],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
+ body=maybe_transform(body, ip_update_params.IPUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -93,6 +99,7 @@ def delete(
*,
account_id: str,
address_map_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -128,6 +135,7 @@ def delete(
Optional[IPDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
+ body=maybe_transform(body, ip_delete_params.IPDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -157,6 +165,7 @@ async def update(
*,
account_id: str,
address_map_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +201,7 @@ async def update(
Optional[IPUpdateResponse],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
+ body=await async_maybe_transform(body, ip_update_params.IPUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -211,6 +221,7 @@ async def delete(
*,
account_id: str,
address_map_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -246,6 +257,7 @@ async def delete(
Optional[IPDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
+ body=await async_maybe_transform(body, ip_delete_params.IPDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py
index a0d067990d22..6bf140d4d710 100644
--- a/src/cloudflare/resources/addressing/address_maps/zones.py
+++ b/src/cloudflare/resources/addressing/address_maps/zones.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -19,7 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import ZoneDeleteResponse, ZoneUpdateResponse
+from ....types.addressing.address_maps import (
+ ZoneDeleteResponse,
+ ZoneUpdateResponse,
+ zone_delete_params,
+ zone_update_params,
+)
__all__ = ["Zones", "AsyncZones"]
@@ -39,6 +48,7 @@ def update(
*,
zone_id: str,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -70,21 +80,11 @@ def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
- if not account_id and not zone_id:
- raise ValueError("You must provide either account_id or zone_id")
- if account_id and zone_id:
- raise ValueError("You cannot provide both account_id and zone_id")
-
- if account_id:
- account_or_zone = "accounts"
- account_or_zone_id = account_id
- else:
- account_or_zone = "zones"
- account_or_zone_id = zone_id
return cast(
Optional[ZoneUpdateResponse],
self._put(
- f"/accounts/{account_or_zone}/addressing/address_maps/{address_map_id}/zones/{account_or_zone_id}",
+ f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
+ body=maybe_transform(body, zone_update_params.ZoneUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -104,6 +104,7 @@ def delete(
*,
zone_id: str,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -135,21 +136,11 @@ def delete(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
- if not account_id and not zone_id:
- raise ValueError("You must provide either account_id or zone_id")
- if account_id and zone_id:
- raise ValueError("You cannot provide both account_id and zone_id")
-
- if account_id:
- account_or_zone = "accounts"
- account_or_zone_id = account_id
- else:
- account_or_zone = "zones"
- account_or_zone_id = zone_id
return cast(
Optional[ZoneDeleteResponse],
self._delete(
- f"/accounts/{account_or_zone}/addressing/address_maps/{address_map_id}/zones/{account_or_zone_id}",
+ f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
+ body=maybe_transform(body, zone_delete_params.ZoneDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -179,6 +170,7 @@ async def update(
*,
zone_id: str,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -210,21 +202,11 @@ async def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
- if not account_id and not zone_id:
- raise ValueError("You must provide either account_id or zone_id")
- if account_id and zone_id:
- raise ValueError("You cannot provide both account_id and zone_id")
-
- if account_id:
- account_or_zone = "accounts"
- account_or_zone_id = account_id
- else:
- account_or_zone = "zones"
- account_or_zone_id = zone_id
return cast(
Optional[ZoneUpdateResponse],
await self._put(
- f"/accounts/{account_or_zone}/addressing/address_maps/{address_map_id}/zones/{account_or_zone_id}",
+ f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
+ body=await async_maybe_transform(body, zone_update_params.ZoneUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -244,6 +226,7 @@ async def delete(
*,
zone_id: str,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -275,21 +258,11 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
- if not account_id and not zone_id:
- raise ValueError("You must provide either account_id or zone_id")
- if account_id and zone_id:
- raise ValueError("You cannot provide both account_id and zone_id")
-
- if account_id:
- account_or_zone = "accounts"
- account_or_zone_id = account_id
- else:
- account_or_zone = "zones"
- account_or_zone_id = zone_id
return cast(
Optional[ZoneDeleteResponse],
await self._delete(
- f"/accounts/{account_or_zone}/addressing/address_maps/{address_map_id}/zones/{account_or_zone_id}",
+ f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
+ body=await async_maybe_transform(body, zone_delete_params.ZoneDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/prefixes/delegations.py b/src/cloudflare/resources/addressing/prefixes/delegations.py
index 128e96049dec..3345bbadc877 100644
--- a/src/cloudflare/resources/addressing/prefixes/delegations.py
+++ b/src/cloudflare/resources/addressing/prefixes/delegations.py
@@ -25,7 +25,12 @@
AsyncPaginator,
make_request_options,
)
-from ....types.addressing.prefixes import DelegationDeleteResponse, AddressingIpamDelegations, delegation_create_params
+from ....types.addressing.prefixes import (
+ DelegationDeleteResponse,
+ AddressingIpamDelegations,
+ delegation_create_params,
+ delegation_delete_params,
+)
__all__ = ["Delegations", "AsyncDelegations"]
@@ -143,6 +148,7 @@ def delete(
*,
account_id: str,
prefix_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -176,6 +182,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `delegation_id` but received {delegation_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations/{delegation_id}",
+ body=maybe_transform(body, delegation_delete_params.DelegationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -300,6 +307,7 @@ async def delete(
*,
account_id: str,
prefix_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -333,6 +341,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `delegation_id` but received {delegation_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations/{delegation_id}",
+ body=await async_maybe_transform(body, delegation_delete_params.DelegationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py
index c93fbcd9ef68..ff45c6c4ac55 100644
--- a/src/cloudflare/resources/addressing/prefixes/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py
@@ -42,7 +42,13 @@
AsyncPaginator,
make_request_options,
)
-from ....types.addressing import PrefixDeleteResponse, AddressingIpamPrefixes, prefix_edit_params, prefix_create_params
+from ....types.addressing import (
+ PrefixDeleteResponse,
+ AddressingIpamPrefixes,
+ prefix_edit_params,
+ prefix_create_params,
+ prefix_delete_params,
+)
__all__ = ["Prefixes", "AsyncPrefixes"]
@@ -161,6 +167,7 @@ def delete(
prefix_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +199,7 @@ def delete(
Optional[PrefixDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
+ body=maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -412,6 +420,7 @@ async def delete(
prefix_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -443,6 +452,7 @@ async def delete(
Optional[PrefixDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
+ body=await async_maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/cache/cache_reserve.py b/src/cloudflare/resources/cache/cache_reserve.py
index b41c1435e30b..023b8f1059ed 100644
--- a/src/cloudflare/resources/cache/cache_reserve.py
+++ b/src/cloudflare/resources/cache/cache_reserve.py
@@ -27,6 +27,7 @@
CacheReserveClearResponse,
CacheReserveStatusResponse,
cache_reserve_edit_params,
+ cache_reserve_clear_params,
)
from ..._base_client import (
make_request_options,
@@ -48,6 +49,7 @@ def clear(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -76,6 +78,7 @@ def clear(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/cache/cache_reserve_clear",
+ body=maybe_transform(body, cache_reserve_clear_params.CacheReserveClearParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -234,6 +237,7 @@ async def clear(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -262,6 +266,7 @@ async def clear(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/cache/cache_reserve_clear",
+ body=await async_maybe_transform(body, cache_reserve_clear_params.CacheReserveClearParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/cache/smart_tiered_cache.py b/src/cloudflare/resources/cache/smart_tiered_cache.py
index 237e77517318..c7a485797b02 100644
--- a/src/cloudflare/resources/cache/smart_tiered_cache.py
+++ b/src/cloudflare/resources/cache/smart_tiered_cache.py
@@ -26,6 +26,7 @@
SmartTieredCacheEditResponse,
SmartTieredCacheDeleteResponse,
smart_tiered_cache_edit_params,
+ smart_tiered_cache_delete_params,
)
from ..._base_client import (
make_request_options,
@@ -47,6 +48,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -74,6 +76,7 @@ def delete(
SmartTieredCacheDeleteResponse,
self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
+ body=maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -193,6 +196,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -220,6 +224,7 @@ async def delete(
SmartTieredCacheDeleteResponse,
await self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
+ body=await async_maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/cache/variants.py b/src/cloudflare/resources/cache/variants.py
index 5d8be413a62c..9c77523f1148 100644
--- a/src/cloudflare/resources/cache/variants.py
+++ b/src/cloudflare/resources/cache/variants.py
@@ -20,7 +20,13 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.cache import CacheVariants, VariantGetResponse, VariantEditResponse, variant_edit_params
+from ...types.cache import (
+ CacheVariants,
+ VariantGetResponse,
+ VariantEditResponse,
+ variant_edit_params,
+ variant_delete_params,
+)
from ..._base_client import (
make_request_options,
)
@@ -41,6 +47,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -70,6 +77,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/cache/variants",
+ body=maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -184,6 +192,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -213,6 +222,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/cache/variants",
+ body=await async_maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py
index b6a7d4ab90c2..2658dfd3431a 100644
--- a/src/cloudflare/resources/custom_certificates/custom_certificates.py
+++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py
@@ -16,6 +16,7 @@
custom_certificate_edit_params,
custom_certificate_list_params,
custom_certificate_create_params,
+ custom_certificate_delete_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
@@ -159,6 +160,7 @@ def list(
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ status: Literal["active", "expired", "deleted", "pending", "initializing"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -181,6 +183,8 @@ def list(
per_page: Number of zones per page.
+ status: Status of the zone's custom SSL.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -204,6 +208,7 @@ def list(
"match": match,
"page": page,
"per_page": per_page,
+ "status": status,
},
custom_certificate_list_params.CustomCertificateListParams,
),
@@ -216,6 +221,7 @@ def delete(
custom_certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -247,6 +253,7 @@ def delete(
)
return self._delete(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
+ body=maybe_transform(body, custom_certificate_delete_params.CustomCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -516,6 +523,7 @@ def list(
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ status: Literal["active", "expired", "deleted", "pending", "initializing"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -538,6 +546,8 @@ def list(
per_page: Number of zones per page.
+ status: Status of the zone's custom SSL.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -561,6 +571,7 @@ def list(
"match": match,
"page": page,
"per_page": per_page,
+ "status": status,
},
custom_certificate_list_params.CustomCertificateListParams,
),
@@ -573,6 +584,7 @@ async def delete(
custom_certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -604,6 +616,7 @@ async def delete(
)
return await self._delete(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
+ body=await async_maybe_transform(body, custom_certificate_delete_params.CustomCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
index 42a3ef0a4da3..843db8f09080 100644
--- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
+++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
@@ -16,6 +16,7 @@
custom_hostname_edit_params,
custom_hostname_list_params,
custom_hostname_create_params,
+ custom_hostname_delete_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
@@ -203,6 +204,7 @@ def delete(
custom_hostname_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -232,6 +234,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `custom_hostname_id` but received {custom_hostname_id!r}")
return self._delete(
f"/zones/{zone_id}/custom_hostnames/{custom_hostname_id}",
+ body=maybe_transform(body, custom_hostname_delete_params.CustomHostnameDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -512,6 +515,7 @@ async def delete(
custom_hostname_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -541,6 +545,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `custom_hostname_id` but received {custom_hostname_id!r}")
return await self._delete(
f"/zones/{zone_id}/custom_hostnames/{custom_hostname_id}",
+ body=await async_maybe_transform(body, custom_hostname_delete_params.CustomHostnameDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origin.py b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
index bc2855edef40..f5f725c8d56c 100644
--- a/src/cloudflare/resources/custom_hostnames/fallback_origin.py
+++ b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
@@ -27,6 +27,7 @@
FallbackOriginGetResponse,
FallbackOriginDeleteResponse,
FallbackOriginUpdateResponse,
+ fallback_origin_delete_params,
fallback_origin_update_params,
)
@@ -94,6 +95,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -121,6 +123,7 @@ def delete(
FallbackOriginDeleteResponse,
self._delete(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
+ body=maybe_transform(body, fallback_origin_delete_params.FallbackOriginDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -242,6 +245,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -269,6 +273,7 @@ async def delete(
FallbackOriginDeleteResponse,
await self._delete(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
+ body=await async_maybe_transform(body, fallback_origin_delete_params.FallbackOriginDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/custom_nameservers.py b/src/cloudflare/resources/custom_nameservers.py
index bf8e7e65e672..6223345685a1 100644
--- a/src/cloudflare/resources/custom_nameservers.py
+++ b/src/cloudflare/resources/custom_nameservers.py
@@ -13,6 +13,8 @@
CustomNameserverVerifyResponse,
CustomNameserverAvailabiltyResponse,
custom_nameserver_create_params,
+ custom_nameserver_delete_params,
+ custom_nameserver_verify_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
@@ -101,6 +103,7 @@ def delete(
custom_ns_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -132,6 +135,7 @@ def delete(
Optional[CustomNameserverDeleteResponse],
self._delete(
f"/accounts/{account_id}/custom_ns/{custom_ns_id}",
+ body=maybe_transform(body, custom_nameserver_delete_params.CustomNameserverDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -229,6 +233,7 @@ def verify(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -254,6 +259,7 @@ def verify(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/custom_ns/verify",
+ body=maybe_transform(body, custom_nameserver_verify_params.CustomNameserverVerifyParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -331,6 +337,7 @@ async def delete(
custom_ns_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -362,6 +369,7 @@ async def delete(
Optional[CustomNameserverDeleteResponse],
await self._delete(
f"/accounts/{account_id}/custom_ns/{custom_ns_id}",
+ body=await async_maybe_transform(body, custom_nameserver_delete_params.CustomNameserverDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -459,6 +467,7 @@ async def verify(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -484,6 +493,7 @@ async def verify(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/custom_ns/verify",
+ body=await async_maybe_transform(body, custom_nameserver_verify_params.CustomNameserverVerifyParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py
index c8fe6388eb0a..7f3c5495c36b 100644
--- a/src/cloudflare/resources/dns/firewall/firewall.py
+++ b/src/cloudflare/resources/dns/firewall/firewall.py
@@ -34,6 +34,7 @@
firewall_edit_params,
firewall_list_params,
firewall_create_params,
+ firewall_delete_params,
)
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._base_client import (
@@ -199,6 +200,7 @@ def delete(
dns_firewall_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -228,6 +230,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `dns_firewall_id` but received {dns_firewall_id!r}")
return self._delete(
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
+ body=maybe_transform(body, firewall_delete_params.FirewallDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -528,6 +531,7 @@ async def delete(
dns_firewall_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -557,6 +561,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `dns_firewall_id` but received {dns_firewall_id!r}")
return await self._delete(
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
+ body=await async_maybe_transform(body, firewall_delete_params.FirewallDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index 60a37582da7c..734401f520f1 100644
--- a/src/cloudflare/resources/dns/records.py
+++ b/src/cloudflare/resources/dns/records.py
@@ -29,7 +29,9 @@
RecordImportResponse,
record_edit_params,
record_list_params,
+ record_scan_params,
record_create_params,
+ record_delete_params,
record_import_params,
record_update_params,
)
@@ -2718,6 +2720,7 @@ def delete(
dns_record_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2747,6 +2750,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return self._delete(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ body=maybe_transform(body, record_delete_params.RecordDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -4207,6 +4211,7 @@ def scan(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4233,6 +4238,7 @@ def scan(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/dns_records/scan",
+ body=maybe_transform(body, record_scan_params.RecordScanParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -6920,6 +6926,7 @@ async def delete(
dns_record_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6949,6 +6956,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return await self._delete(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ body=await async_maybe_transform(body, record_delete_params.RecordDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -8409,6 +8417,7 @@ async def scan(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -8435,6 +8444,7 @@ async def scan(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/dns_records/scan",
+ body=await async_maybe_transform(body, record_scan_params.RecordScanParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/dnssec.py b/src/cloudflare/resources/dnssec.py
index c8799dab26af..5cb64138375f 100644
--- a/src/cloudflare/resources/dnssec.py
+++ b/src/cloudflare/resources/dnssec.py
@@ -7,7 +7,7 @@
import httpx
-from ..types import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params
+from ..types import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
@@ -42,6 +42,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -69,6 +70,7 @@ def delete(
DNSSECDeleteResponse,
self._delete(
f"/zones/{zone_id}/dnssec",
+ body=maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -204,6 +206,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -231,6 +234,7 @@ async def delete(
DNSSECDeleteResponse,
await self._delete(
f"/zones/{zone_id}/dnssec",
+ body=await async_maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/email_routing/email_routing.py b/src/cloudflare/resources/email_routing/email_routing.py
index c4c10871fcb5..5d5a0c48a525 100644
--- a/src/cloudflare/resources/email_routing/email_routing.py
+++ b/src/cloudflare/resources/email_routing/email_routing.py
@@ -22,8 +22,18 @@
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
-from ...types import EmailRoutingGetResponse, EmailRoutingEnableResponse, EmailRoutingDisableResponse
+from ...types import (
+ EmailRoutingGetResponse,
+ EmailRoutingEnableResponse,
+ EmailRoutingDisableResponse,
+ email_routing_enable_params,
+ email_routing_disable_params,
+)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ..._compat import cached_property
from .addresses import (
Addresses,
@@ -74,6 +84,7 @@ def disable(
self,
zone_identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -101,6 +112,7 @@ def disable(
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return self._post(
f"/zones/{zone_identifier}/email/routing/disable",
+ body=maybe_transform(body, email_routing_disable_params.EmailRoutingDisableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -115,6 +127,7 @@ def enable(
self,
zone_identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -141,6 +154,7 @@ def enable(
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return self._post(
f"/zones/{zone_identifier}/email/routing/enable",
+ body=maybe_transform(body, email_routing_enable_params.EmailRoutingEnableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -216,6 +230,7 @@ async def disable(
self,
zone_identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -243,6 +258,7 @@ async def disable(
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return await self._post(
f"/zones/{zone_identifier}/email/routing/disable",
+ body=await async_maybe_transform(body, email_routing_disable_params.EmailRoutingDisableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -257,6 +273,7 @@ async def enable(
self,
zone_identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -283,6 +300,7 @@ async def enable(
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return await self._post(
f"/zones/{zone_identifier}/email/routing/enable",
+ body=await async_maybe_transform(body, email_routing_enable_params.EmailRoutingEnableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/filters.py b/src/cloudflare/resources/filters.py
index 2f1348e41379..4ac01f05cfa9 100644
--- a/src/cloudflare/resources/filters.py
+++ b/src/cloudflare/resources/filters.py
@@ -11,6 +11,7 @@
FilterCreateResponse,
filter_list_params,
filter_create_params,
+ filter_delete_params,
filter_update_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -136,6 +137,7 @@ def list(
self,
zone_identifier: str,
*,
+ id: str | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
@@ -157,6 +159,8 @@ def list(
Args:
zone_identifier: Identifier
+ id: The unique identifier of the filter.
+
description: A case-insensitive string to find in the description.
expression: A case-insensitive string to find in the expression.
@@ -189,6 +193,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "id": id,
"description": description,
"expression": expression,
"page": page,
@@ -207,6 +212,7 @@ def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -236,6 +242,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._delete(
f"/zones/{zone_identifier}/filters/{id}",
+ body=maybe_transform(body, filter_delete_params.FilterDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -391,6 +398,7 @@ def list(
self,
zone_identifier: str,
*,
+ id: str | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
@@ -412,6 +420,8 @@ def list(
Args:
zone_identifier: Identifier
+ id: The unique identifier of the filter.
+
description: A case-insensitive string to find in the description.
expression: A case-insensitive string to find in the expression.
@@ -444,6 +454,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "id": id,
"description": description,
"expression": expression,
"page": page,
@@ -462,6 +473,7 @@ async def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -491,6 +503,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._delete(
f"/zones/{zone_identifier}/filters/{id}",
+ body=await async_maybe_transform(body, filter_delete_params.FilterDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py
index 2ac2903cb193..e7319fba30ca 100644
--- a/src/cloudflare/resources/firewall/access_rules.py
+++ b/src/cloudflare/resources/firewall/access_rules.py
@@ -34,6 +34,7 @@
access_rule_edit_params,
access_rule_list_params,
access_rule_create_params,
+ access_rule_delete_params,
)
__all__ = ["AccessRules", "AsyncAccessRules"]
@@ -217,6 +218,7 @@ def delete(
self,
identifier: object,
*,
+ body: object,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -261,6 +263,7 @@ def delete(
account_or_zone_id = zone_id
return self._delete(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
+ body=maybe_transform(body, access_rule_delete_params.AccessRuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -591,6 +594,7 @@ async def delete(
self,
identifier: object,
*,
+ body: object,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -635,6 +639,7 @@ async def delete(
account_or_zone_id = zone_id
return await self._delete(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
+ body=await async_maybe_transform(body, access_rule_delete_params.AccessRuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/firewall/lockdowns.py b/src/cloudflare/resources/firewall/lockdowns.py
index f3600c662410..b6365d5cea6b 100644
--- a/src/cloudflare/resources/firewall/lockdowns.py
+++ b/src/cloudflare/resources/firewall/lockdowns.py
@@ -2,7 +2,8 @@
from __future__ import annotations
-from typing import Type, Optional, cast
+from typing import Type, Union, Optional, cast
+from datetime import datetime
import httpx
@@ -30,6 +31,7 @@
LockdownDeleteResponse,
lockdown_list_params,
lockdown_create_params,
+ lockdown_delete_params,
lockdown_update_params,
)
@@ -136,11 +138,13 @@ def list(
self,
zone_identifier: str,
*,
+ created_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
description_search: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
ip_range_search: str | NotGiven = NOT_GIVEN,
ip_search: str | NotGiven = NOT_GIVEN,
+ modified_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
@@ -160,6 +164,8 @@ def list(
Args:
zone_identifier: Identifier
+ created_on: The timestamp of when the rule was created.
+
description: A string to search for in the description of existing rules.
description_search: A string to search for in the description of existing rules.
@@ -170,6 +176,8 @@ def list(
ip_search: A single IP address to search for in existing rules.
+ modified_on: The timestamp of when the rule was last modified.
+
page: Page number of paginated results.
per_page: The maximum number of results per page. You can only set the value to `1` or to
@@ -201,11 +209,13 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "created_on": created_on,
"description": description,
"description_search": description_search,
"ip": ip,
"ip_range_search": ip_range_search,
"ip_search": ip_search,
+ "modified_on": modified_on,
"page": page,
"per_page": per_page,
"priority": priority,
@@ -222,6 +232,7 @@ def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -251,6 +262,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._delete(
f"/zones/{zone_identifier}/firewall/lockdowns/{id}",
+ body=maybe_transform(body, lockdown_delete_params.LockdownDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -406,11 +418,13 @@ def list(
self,
zone_identifier: str,
*,
+ created_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
description_search: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
ip_range_search: str | NotGiven = NOT_GIVEN,
ip_search: str | NotGiven = NOT_GIVEN,
+ modified_on: Union[str, datetime] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
@@ -430,6 +444,8 @@ def list(
Args:
zone_identifier: Identifier
+ created_on: The timestamp of when the rule was created.
+
description: A string to search for in the description of existing rules.
description_search: A string to search for in the description of existing rules.
@@ -440,6 +456,8 @@ def list(
ip_search: A single IP address to search for in existing rules.
+ modified_on: The timestamp of when the rule was last modified.
+
page: Page number of paginated results.
per_page: The maximum number of results per page. You can only set the value to `1` or to
@@ -471,11 +489,13 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "created_on": created_on,
"description": description,
"description_search": description_search,
"ip": ip,
"ip_range_search": ip_range_search,
"ip_search": ip_search,
+ "modified_on": modified_on,
"page": page,
"per_page": per_page,
"priority": priority,
@@ -492,6 +512,7 @@ async def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -521,6 +542,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._delete(
f"/zones/{zone_identifier}/firewall/lockdowns/{id}",
+ body=await async_maybe_transform(body, lockdown_delete_params.LockdownDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/firewall/rules.py b/src/cloudflare/resources/firewall/rules.py
index 899df1780bd5..66b95e442914 100644
--- a/src/cloudflare/resources/firewall/rules.py
+++ b/src/cloudflare/resources/firewall/rules.py
@@ -29,6 +29,7 @@
RuleEditResponse,
FirewallFilterRule,
RuleCreateResponse,
+ rule_get_params,
rule_edit_params,
rule_list_params,
rule_create_params,
@@ -139,6 +140,7 @@ def list(
self,
zone_identifier: str,
*,
+ id: str | NotGiven = NOT_GIVEN,
action: str | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
@@ -159,6 +161,8 @@ def list(
Args:
zone_identifier: Identifier
+ id: The unique identifier of the firewall rule.
+
action: The action to search for. Must be an exact match.
description: A case-insensitive string to find in the description.
@@ -189,6 +193,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "id": id,
"action": action,
"description": description,
"page": page,
@@ -300,9 +305,10 @@ def edit(
def get(
self,
- id: str,
- *,
zone_identifier: str,
+ *,
+ path_id: str,
+ query_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -314,9 +320,11 @@ def get(
Fetches the details of a firewall rule.
Args:
+ path_id: The unique identifier of the firewall rule.
+
zone_identifier: Identifier
- id: The unique identifier of the firewall rule.
+ query_id: The unique identifier of the firewall rule.
extra_headers: Send extra headers
@@ -326,17 +334,18 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not path_id:
+ raise ValueError(f"Expected a non-empty value for `path_id` but received {path_id!r}")
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
- if not id:
- raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._get(
- f"/zones/{zone_identifier}/firewall/rules/{id}",
+ f"/zones/{zone_identifier}/firewall/rules/{path_id}",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
+ query=maybe_transform({"id": query_id}, rule_get_params.RuleGetParams),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[Optional[FirewallFilterRule]], ResultWrapper[FirewallFilterRule]),
@@ -443,6 +452,7 @@ def list(
self,
zone_identifier: str,
*,
+ id: str | NotGiven = NOT_GIVEN,
action: str | NotGiven = NOT_GIVEN,
description: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
@@ -463,6 +473,8 @@ def list(
Args:
zone_identifier: Identifier
+ id: The unique identifier of the firewall rule.
+
action: The action to search for. Must be an exact match.
description: A case-insensitive string to find in the description.
@@ -493,6 +505,7 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "id": id,
"action": action,
"description": description,
"page": page,
@@ -604,9 +617,10 @@ async def edit(
async def get(
self,
- id: str,
- *,
zone_identifier: str,
+ *,
+ path_id: str,
+ query_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -618,9 +632,11 @@ async def get(
Fetches the details of a firewall rule.
Args:
+ path_id: The unique identifier of the firewall rule.
+
zone_identifier: Identifier
- id: The unique identifier of the firewall rule.
+ query_id: The unique identifier of the firewall rule.
extra_headers: Send extra headers
@@ -630,17 +646,18 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not path_id:
+ raise ValueError(f"Expected a non-empty value for `path_id` but received {path_id!r}")
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
- if not id:
- raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._get(
- f"/zones/{zone_identifier}/firewall/rules/{id}",
+ f"/zones/{zone_identifier}/firewall/rules/{path_id}",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
+ query=await async_maybe_transform({"id": query_id}, rule_get_params.RuleGetParams),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[Optional[FirewallFilterRule]], ResultWrapper[FirewallFilterRule]),
diff --git a/src/cloudflare/resources/firewall/ua_rules.py b/src/cloudflare/resources/firewall/ua_rules.py
index 8b1db683b3b8..08a3c7d99822 100644
--- a/src/cloudflare/resources/firewall/ua_rules.py
+++ b/src/cloudflare/resources/firewall/ua_rules.py
@@ -33,6 +33,7 @@
UARuleUpdateResponse,
ua_rule_list_params,
ua_rule_create_params,
+ ua_rule_delete_params,
ua_rule_update_params,
)
@@ -217,6 +218,7 @@ def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -246,6 +248,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._delete(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
+ body=maybe_transform(body, ua_rule_delete_params.UARuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -484,6 +487,7 @@ async def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -513,6 +517,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._delete(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
+ body=await async_maybe_transform(body, ua_rule_delete_params.UARuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/firewall/waf/overrides.py b/src/cloudflare/resources/firewall/waf/overrides.py
index d6dceea4f8b2..9f624027cc13 100644
--- a/src/cloudflare/resources/firewall/waf/overrides.py
+++ b/src/cloudflare/resources/firewall/waf/overrides.py
@@ -30,6 +30,7 @@
OverrideDeleteResponse,
override_list_params,
override_create_params,
+ override_delete_params,
override_update_params,
)
@@ -198,6 +199,7 @@ def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -230,6 +232,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._delete(
f"/zones/{zone_identifier}/firewall/waf/overrides/{id}",
+ body=maybe_transform(body, override_delete_params.OverrideDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -450,6 +453,7 @@ async def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -482,6 +486,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._delete(
f"/zones/{zone_identifier}/firewall/waf/overrides/{id}",
+ body=await async_maybe_transform(body, override_delete_params.OverrideDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py
index 2cf9cf75c110..8dad7b604188 100644
--- a/src/cloudflare/resources/firewall/waf/packages/groups.py
+++ b/src/cloudflare/resources/firewall/waf/packages/groups.py
@@ -54,9 +54,11 @@ def list(
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
mode: Literal["on", "off"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
order: Literal["mode", "rules_count"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ rules_count: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -83,12 +85,16 @@ def list(
mode: The state of the rules contained in the rule group. When `on`, the rules in the
group are configurable/usable.
+ name: The name of the rule group.
+
order: The field used to sort returned rule groups.
page: The page number of paginated results.
per_page: The number of rule groups per page.
+ rules_count: The number of rules in the current rule group.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -114,9 +120,11 @@ def list(
"direction": direction,
"match": match,
"mode": mode,
+ "name": name,
"order": order,
"page": page,
"per_page": per_page,
+ "rules_count": rules_count,
},
group_list_params.GroupListParams,
),
@@ -263,9 +271,11 @@ def list(
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
mode: Literal["on", "off"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
order: Literal["mode", "rules_count"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ rules_count: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -292,12 +302,16 @@ def list(
mode: The state of the rules contained in the rule group. When `on`, the rules in the
group are configurable/usable.
+ name: The name of the rule group.
+
order: The field used to sort returned rule groups.
page: The page number of paginated results.
per_page: The number of rule groups per page.
+ rules_count: The number of rules in the current rule group.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -323,9 +337,11 @@ def list(
"direction": direction,
"match": match,
"mode": mode,
+ "name": name,
"order": order,
"page": page,
"per_page": per_page,
+ "rules_count": rules_count,
},
group_list_params.GroupListParams,
),
diff --git a/src/cloudflare/resources/firewall/waf/packages/packages.py b/src/cloudflare/resources/firewall/waf/packages/packages.py
index c80a52601ece..716cfc05a19e 100644
--- a/src/cloudflare/resources/firewall/waf/packages/packages.py
+++ b/src/cloudflare/resources/firewall/waf/packages/packages.py
@@ -66,6 +66,7 @@ def list(
*,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
order: Literal["name"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
@@ -90,6 +91,8 @@ def list(
match: When set to `all`, all the search requirements must match. When set to `any`,
only one of the search requirements has to match.
+ name: The name of the WAF package.
+
order: The field used to sort returned packages.
page: The page number of paginated results.
@@ -118,6 +121,7 @@ def list(
{
"direction": direction,
"match": match,
+ "name": name,
"order": order,
"page": page,
"per_page": per_page,
@@ -200,6 +204,7 @@ def list(
*,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
order: Literal["name"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
@@ -224,6 +229,8 @@ def list(
match: When set to `all`, all the search requirements must match. When set to `any`,
only one of the search requirements has to match.
+ name: The name of the WAF package.
+
order: The field used to sort returned packages.
page: The page number of paginated results.
@@ -252,6 +259,7 @@ def list(
{
"direction": direction,
"match": match,
+ "name": name,
"order": order,
"page": page,
"per_page": per_page,
diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py
index e237cc19e20a..2944a8249c26 100644
--- a/src/cloudflare/resources/firewall/waf/packages/rules.py
+++ b/src/cloudflare/resources/firewall/waf/packages/rules.py
@@ -51,12 +51,15 @@ def list(
package_id: str,
*,
zone_id: str,
+ description: str | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
+ group_id: str | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
mode: Literal["DIS", "CHL", "BLK", "SIM"] | NotGiven = NOT_GIVEN,
order: Literal["priority", "group_id", "description"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ priority: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -75,8 +78,12 @@ def list(
package_id: The unique identifier of a WAF package.
+ description: The public description of the WAF rule.
+
direction: The direction used to sort returned rules.
+ group_id: The unique identifier of the rule group.
+
match: When set to `all`, all the search requirements must match. When set to `any`,
only one of the search requirements has to match.
@@ -88,6 +95,8 @@ def list(
per_page: The number of rules per page.
+ priority: The order in which the individual WAF rule is executed within its rule group.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -110,12 +119,15 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "description": description,
"direction": direction,
+ "group_id": group_id,
"match": match,
"mode": mode,
"order": order,
"page": page,
"per_page": per_page,
+ "priority": priority,
},
rule_list_params.RuleListParams,
),
@@ -258,12 +270,15 @@ def list(
package_id: str,
*,
zone_id: str,
+ description: str | NotGiven = NOT_GIVEN,
direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
+ group_id: str | NotGiven = NOT_GIVEN,
match: Literal["any", "all"] | NotGiven = NOT_GIVEN,
mode: Literal["DIS", "CHL", "BLK", "SIM"] | NotGiven = NOT_GIVEN,
order: Literal["priority", "group_id", "description"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ priority: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -282,8 +297,12 @@ def list(
package_id: The unique identifier of a WAF package.
+ description: The public description of the WAF rule.
+
direction: The direction used to sort returned rules.
+ group_id: The unique identifier of the rule group.
+
match: When set to `all`, all the search requirements must match. When set to `any`,
only one of the search requirements has to match.
@@ -295,6 +314,8 @@ def list(
per_page: The number of rules per page.
+ priority: The order in which the individual WAF rule is executed within its rule group.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -317,12 +338,15 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "description": description,
"direction": direction,
+ "group_id": group_id,
"match": match,
"mode": mode,
"order": order,
"page": page,
"per_page": per_page,
+ "priority": priority,
},
rule_list_params.RuleListParams,
),
diff --git a/src/cloudflare/resources/healthchecks/healthchecks.py b/src/cloudflare/resources/healthchecks/healthchecks.py
index 5ceeb2081301..640a5300fb16 100644
--- a/src/cloudflare/resources/healthchecks/healthchecks.py
+++ b/src/cloudflare/resources/healthchecks/healthchecks.py
@@ -12,6 +12,7 @@
HealthcheckDeleteResponse,
healthcheck_edit_params,
healthcheck_create_params,
+ healthcheck_delete_params,
healthcheck_update_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -352,6 +353,7 @@ def delete(
healthcheck_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -381,6 +383,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `healthcheck_id` but received {healthcheck_id!r}")
return self._delete(
f"/zones/{zone_id}/healthchecks/{healthcheck_id}",
+ body=maybe_transform(body, healthcheck_delete_params.HealthcheckDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -872,6 +875,7 @@ async def delete(
healthcheck_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -901,6 +905,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `healthcheck_id` but received {healthcheck_id!r}")
return await self._delete(
f"/zones/{zone_id}/healthchecks/{healthcheck_id}",
+ body=await async_maybe_transform(body, healthcheck_delete_params.HealthcheckDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/healthchecks/previews.py b/src/cloudflare/resources/healthchecks/previews.py
index 376b0e5a5aef..c089e8d7ba97 100644
--- a/src/cloudflare/resources/healthchecks/previews.py
+++ b/src/cloudflare/resources/healthchecks/previews.py
@@ -25,7 +25,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.healthchecks import PreviewDeleteResponse, preview_create_params
+from ...types.healthchecks import PreviewDeleteResponse, preview_create_params, preview_delete_params
__all__ = ["Previews", "AsyncPreviews"]
@@ -168,6 +168,7 @@ def delete(
healthcheck_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -197,6 +198,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `healthcheck_id` but received {healthcheck_id!r}")
return self._delete(
f"/zones/{zone_id}/healthchecks/preview/{healthcheck_id}",
+ body=maybe_transform(body, preview_delete_params.PreviewDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -390,6 +392,7 @@ async def delete(
healthcheck_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -419,6 +422,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `healthcheck_id` but received {healthcheck_id!r}")
return await self._delete(
f"/zones/{zone_id}/healthchecks/preview/{healthcheck_id}",
+ body=await async_maybe_transform(body, preview_delete_params.PreviewDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py
index 451c1c4020ca..b357896061d2 100644
--- a/src/cloudflare/resources/hyperdrive/configs.py
+++ b/src/cloudflare/resources/hyperdrive/configs.py
@@ -53,6 +53,7 @@ def create(
self,
*,
account_id: str,
+ name: object,
origin: config_create_params.Origin,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -79,7 +80,13 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/hyperdrive/configs",
- body=maybe_transform({"origin": origin}, config_create_params.ConfigCreateParams),
+ body=maybe_transform(
+ {
+ "name": name,
+ "origin": origin,
+ },
+ config_create_params.ConfigCreateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -95,6 +102,7 @@ def update(
hyperdrive_id: str,
*,
account_id: str,
+ name: object,
origin: config_update_params.Origin,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -125,7 +133,13 @@ def update(
raise ValueError(f"Expected a non-empty value for `hyperdrive_id` but received {hyperdrive_id!r}")
return self._put(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
- body=maybe_transform({"origin": origin}, config_update_params.ConfigUpdateParams),
+ body=maybe_transform(
+ {
+ "name": name,
+ "origin": origin,
+ },
+ config_update_params.ConfigUpdateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -327,6 +341,7 @@ async def create(
self,
*,
account_id: str,
+ name: object,
origin: config_create_params.Origin,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -353,7 +368,13 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/hyperdrive/configs",
- body=await async_maybe_transform({"origin": origin}, config_create_params.ConfigCreateParams),
+ body=await async_maybe_transform(
+ {
+ "name": name,
+ "origin": origin,
+ },
+ config_create_params.ConfigCreateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -369,6 +390,7 @@ async def update(
hyperdrive_id: str,
*,
account_id: str,
+ name: object,
origin: config_update_params.Origin,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -399,7 +421,13 @@ async def update(
raise ValueError(f"Expected a non-empty value for `hyperdrive_id` but received {hyperdrive_id!r}")
return await self._put(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
- body=await async_maybe_transform({"origin": origin}, config_update_params.ConfigUpdateParams),
+ body=await async_maybe_transform(
+ {
+ "name": name,
+ "origin": origin,
+ },
+ config_update_params.ConfigUpdateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/images/v1/v1.py b/src/cloudflare/resources/images/v1/v1.py
index 14e662717ec4..0c9b03b6ceb4 100644
--- a/src/cloudflare/resources/images/v1/v1.py
+++ b/src/cloudflare/resources/images/v1/v1.py
@@ -58,7 +58,15 @@
AsyncPaginator,
make_request_options,
)
-from ....types.images import Image, V1ListResponse, V1DeleteResponse, v1_edit_params, v1_list_params, v1_create_params
+from ....types.images import (
+ Image,
+ V1ListResponse,
+ V1DeleteResponse,
+ v1_edit_params,
+ v1_list_params,
+ v1_create_params,
+ v1_delete_params,
+)
__all__ = ["V1", "AsyncV1"]
@@ -248,6 +256,7 @@ def delete(
image_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -281,6 +290,7 @@ def delete(
V1DeleteResponse,
self._delete(
f"/accounts/{account_id}/images/v1/{image_id}",
+ body=maybe_transform(body, v1_delete_params.V1DeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -586,6 +596,7 @@ async def delete(
image_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -619,6 +630,7 @@ async def delete(
V1DeleteResponse,
await self._delete(
f"/accounts/{account_id}/images/v1/{image_id}",
+ body=await async_maybe_transform(body, v1_delete_params.V1DeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py
index cca0fd68980a..125aebbf6ff0 100644
--- a/src/cloudflare/resources/images/v1/variants.py
+++ b/src/cloudflare/resources/images/v1/variants.py
@@ -29,6 +29,7 @@
VariantDeleteResponse,
variant_edit_params,
variant_create_params,
+ variant_delete_params,
)
__all__ = ["Variants", "AsyncVariants"]
@@ -142,6 +143,7 @@ def delete(
variant_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -171,6 +173,7 @@ def delete(
VariantDeleteResponse,
self._delete(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
+ body=maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -391,6 +394,7 @@ async def delete(
variant_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -420,6 +424,7 @@ async def delete(
VariantDeleteResponse,
await self._delete(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
+ body=await async_maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py
index 8fc10fd3d1ee..4fc45232bc74 100644
--- a/src/cloudflare/resources/keyless_certificates.py
+++ b/src/cloudflare/resources/keyless_certificates.py
@@ -12,6 +12,7 @@
KeylessCertificateDeleteResponse,
keyless_certificate_edit_params,
keyless_certificate_create_params,
+ keyless_certificate_delete_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
@@ -158,6 +159,7 @@ def delete(
keyless_certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -189,6 +191,7 @@ def delete(
)
return self._delete(
f"/zones/{zone_id}/keyless_certificates/{keyless_certificate_id}",
+ body=maybe_transform(body, keyless_certificate_delete_params.KeylessCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -442,6 +445,7 @@ async def delete(
keyless_certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -473,6 +477,7 @@ async def delete(
)
return await self._delete(
f"/zones/{zone_id}/keyless_certificates/{keyless_certificate_id}",
+ body=await async_maybe_transform(body, keyless_certificate_delete_params.KeylessCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/kv/namespaces/namespaces.py b/src/cloudflare/resources/kv/namespaces/namespaces.py
index 9c64e5664bac..297ffa0c4e8a 100644
--- a/src/cloudflare/resources/kv/namespaces/namespaces.py
+++ b/src/cloudflare/resources/kv/namespaces/namespaces.py
@@ -51,6 +51,7 @@
NamespaceUpdateResponse,
namespace_list_params,
namespace_create_params,
+ namespace_delete_params,
namespace_update_params,
)
from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -259,6 +260,7 @@ def delete(
namespace_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -290,6 +292,7 @@ def delete(
NamespaceDeleteResponse,
self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
+ body=maybe_transform(body, namespace_delete_params.NamespaceDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -493,6 +496,7 @@ async def delete(
namespace_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -524,6 +528,7 @@ async def delete(
NamespaceDeleteResponse,
await self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
+ body=await async_maybe_transform(body, namespace_delete_params.NamespaceDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/kv/namespaces/values.py b/src/cloudflare/resources/kv/namespaces/values.py
index eae7f2a1ca5c..d2ca7c619c44 100644
--- a/src/cloudflare/resources/kv/namespaces/values.py
+++ b/src/cloudflare/resources/kv/namespaces/values.py
@@ -23,7 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.kv.namespaces import ValueDeleteResponse, ValueUpdateResponse, value_update_params
+from ....types.kv.namespaces import (
+ ValueDeleteResponse,
+ ValueUpdateResponse,
+ value_delete_params,
+ value_update_params,
+)
__all__ = ["Values", "AsyncValues"]
@@ -117,6 +122,7 @@ def delete(
*,
account_id: str,
namespace_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -155,6 +161,7 @@ def delete(
ValueDeleteResponse,
self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
+ body=maybe_transform(body, value_delete_params.ValueDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -309,6 +316,7 @@ async def delete(
*,
account_id: str,
namespace_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -347,6 +355,7 @@ async def delete(
ValueDeleteResponse,
await self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
+ body=await async_maybe_transform(body, value_delete_params.ValueDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/load_balancers/load_balancers.py b/src/cloudflare/resources/load_balancers/load_balancers.py
index 4216e4e2fe28..90e140128853 100644
--- a/src/cloudflare/resources/load_balancers/load_balancers.py
+++ b/src/cloudflare/resources/load_balancers/load_balancers.py
@@ -20,6 +20,7 @@
LoadBalancerDeleteResponse,
load_balancer_edit_params,
load_balancer_create_params,
+ load_balancer_delete_params,
load_balancer_update_params,
)
from .regions import (
@@ -550,6 +551,7 @@ def delete(
load_balancer_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -575,6 +577,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `load_balancer_id` but received {load_balancer_id!r}")
return self._delete(
f"/zones/{zone_id}/load_balancers/{load_balancer_id}",
+ body=maybe_transform(body, load_balancer_delete_params.LoadBalancerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -1302,6 +1305,7 @@ async def delete(
load_balancer_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1327,6 +1331,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `load_balancer_id` but received {load_balancer_id!r}")
return await self._delete(
f"/zones/{zone_id}/load_balancers/{load_balancer_id}",
+ body=await async_maybe_transform(body, load_balancer_delete_params.LoadBalancerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/load_balancers/monitors/monitors.py b/src/cloudflare/resources/load_balancers/monitors/monitors.py
index 53b9f963ff65..f6414d1325f3 100644
--- a/src/cloudflare/resources/load_balancers/monitors/monitors.py
+++ b/src/cloudflare/resources/load_balancers/monitors/monitors.py
@@ -46,6 +46,7 @@
MonitorDeleteResponse,
monitor_edit_params,
monitor_create_params,
+ monitor_delete_params,
monitor_update_params,
)
from ....types.user.load_balancers import LoadBalancingMonitor
@@ -364,6 +365,7 @@ def delete(
monitor_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -391,6 +393,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `monitor_id` but received {monitor_id!r}")
return self._delete(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
+ body=maybe_transform(body, monitor_delete_params.MonitorDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -883,6 +886,7 @@ async def delete(
monitor_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -910,6 +914,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `monitor_id` but received {monitor_id!r}")
return await self._delete(
f"/accounts/{account_id}/load_balancers/monitors/{monitor_id}",
+ body=await async_maybe_transform(body, monitor_delete_params.MonitorDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py
index d08af267c650..18a3e6cd2963 100644
--- a/src/cloudflare/resources/load_balancers/pools/pools.py
+++ b/src/cloudflare/resources/load_balancers/pools/pools.py
@@ -47,6 +47,7 @@
pool_edit_params,
pool_list_params,
pool_create_params,
+ pool_delete_params,
pool_update_params,
)
from ....types.user.load_balancers import LoadBalancingPool
@@ -362,6 +363,7 @@ def delete(
pool_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -389,6 +391,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `pool_id` but received {pool_id!r}")
return self._delete(
f"/accounts/{account_id}/load_balancers/pools/{pool_id}",
+ body=maybe_transform(body, pool_delete_params.PoolDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -885,6 +888,7 @@ async def delete(
pool_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -912,6 +916,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `pool_id` but received {pool_id!r}")
return await self._delete(
f"/accounts/{account_id}/load_balancers/pools/{pool_id}",
+ body=await async_maybe_transform(body, pool_delete_params.PoolDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py
index 13b4b38af477..b0587dd3d47f 100644
--- a/src/cloudflare/resources/logpush/jobs.py
+++ b/src/cloudflare/resources/logpush/jobs.py
@@ -26,7 +26,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.logpush import JobDeleteResponse, job_create_params, job_update_params
+from ...types.logpush import JobDeleteResponse, job_create_params, job_delete_params, job_update_params
from ...types.logpush.datasets import LogpushJob
__all__ = ["Jobs", "AsyncJobs"]
@@ -296,6 +296,7 @@ def delete(
self,
job_id: int,
*,
+ body: object,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -342,6 +343,7 @@ def delete(
Optional[JobDeleteResponse],
self._delete(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
+ body=maybe_transform(body, job_delete_params.JobDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -678,6 +680,7 @@ async def delete(
self,
job_id: int,
*,
+ body: object,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -724,6 +727,7 @@ async def delete(
Optional[JobDeleteResponse],
await self._delete(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
+ body=await async_maybe_transform(body, job_delete_params.JobDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py
index bc6f02732b63..86da5f0ff2c2 100644
--- a/src/cloudflare/resources/logs/control/cmb/config.py
+++ b/src/cloudflare/resources/logs/control/cmb/config.py
@@ -23,7 +23,7 @@
from ....._base_client import (
make_request_options,
)
-from .....types.logs.control.cmb import CmbConfig, ConfigDeleteResponse, config_create_params
+from .....types.logs.control.cmb import CmbConfig, ConfigDeleteResponse, config_create_params, config_delete_params
__all__ = ["Config", "AsyncConfig"]
@@ -84,6 +84,7 @@ def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -111,6 +112,7 @@ def delete(
Optional[ConfigDeleteResponse],
self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
+ body=maybe_transform(body, config_delete_params.ConfigDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -220,6 +222,7 @@ async def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -247,6 +250,7 @@ async def delete(
Optional[ConfigDeleteResponse],
await self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
+ body=await async_maybe_transform(body, config_delete_params.ConfigDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
index 6d2f1e9761d9..f0144152ae05 100644
--- a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
+++ b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
@@ -15,6 +15,10 @@
AsyncFullWithStreamingResponse,
)
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -27,7 +31,13 @@
from ...._base_client import (
make_request_options,
)
-from ....types.magic_network_monitoring import MagicNetworkMonitoringConfig
+from ....types.magic_network_monitoring import (
+ MagicNetworkMonitoringConfig,
+ config_edit_params,
+ config_create_params,
+ config_delete_params,
+ config_update_params,
+)
__all__ = ["Configs", "AsyncConfigs"]
@@ -49,6 +59,7 @@ def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -72,6 +83,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/mnm/config",
+ body=maybe_transform(body, config_create_params.ConfigCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -86,6 +98,7 @@ def update(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -110,6 +123,7 @@ def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/mnm/config",
+ body=maybe_transform(body, config_update_params.ConfigUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -124,6 +138,7 @@ def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -147,6 +162,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._delete(
f"/accounts/{account_id}/mnm/config",
+ body=maybe_transform(body, config_delete_params.ConfigDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -161,6 +177,7 @@ def edit(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -184,6 +201,7 @@ def edit(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/config",
+ body=maybe_transform(body, config_edit_params.ConfigEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -249,6 +267,7 @@ async def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -272,6 +291,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/mnm/config",
+ body=await async_maybe_transform(body, config_create_params.ConfigCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -286,6 +306,7 @@ async def update(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -310,6 +331,7 @@ async def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/mnm/config",
+ body=await async_maybe_transform(body, config_update_params.ConfigUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -324,6 +346,7 @@ async def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -347,6 +370,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._delete(
f"/accounts/{account_id}/mnm/config",
+ body=await async_maybe_transform(body, config_delete_params.ConfigDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -361,6 +385,7 @@ async def edit(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -384,6 +409,7 @@ async def edit(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/config",
+ body=await async_maybe_transform(body, config_edit_params.ConfigEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
index a3257fb7f149..58535efb5bb6 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -19,7 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.magic_network_monitoring.rules import MagicNetworkMonitoringRuleAdvertisable
+from ....types.magic_network_monitoring.rules import MagicNetworkMonitoringRuleAdvertisable, advertisement_edit_params
__all__ = ["Advertisements", "AsyncAdvertisements"]
@@ -38,6 +42,7 @@ def edit(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -63,6 +68,7 @@ def edit(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}/advertisement",
+ body=maybe_transform(body, advertisement_edit_params.AdvertisementEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -91,6 +97,7 @@ async def edit(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -116,6 +123,7 @@ async def edit(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}/advertisement",
+ body=await async_maybe_transform(body, advertisement_edit_params.AdvertisementEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
index 4560798250ee..7759a7b2f196 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -29,7 +33,13 @@
AsyncPaginator,
make_request_options,
)
-from ....types.magic_network_monitoring import MagicNetworkMonitoringRule
+from ....types.magic_network_monitoring import (
+ MagicNetworkMonitoringRule,
+ rule_edit_params,
+ rule_create_params,
+ rule_delete_params,
+ rule_update_params,
+)
__all__ = ["Rules", "AsyncRules"]
@@ -51,6 +61,7 @@ def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -76,6 +87,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/mnm/rules",
+ body=maybe_transform(body, rule_create_params.RuleCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -90,6 +102,7 @@ def update(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -113,6 +126,7 @@ def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/mnm/rules",
+ body=maybe_transform(body, rule_update_params.RuleUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -162,6 +176,7 @@ def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -187,6 +202,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
+ body=maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -202,6 +218,7 @@ def edit(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -227,6 +244,7 @@ def edit(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
+ body=maybe_transform(body, rule_edit_params.RuleEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -295,6 +313,7 @@ async def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -320,6 +339,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/mnm/rules",
+ body=await async_maybe_transform(body, rule_create_params.RuleCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -334,6 +354,7 @@ async def update(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -357,6 +378,7 @@ async def update(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/mnm/rules",
+ body=await async_maybe_transform(body, rule_update_params.RuleUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -406,6 +428,7 @@ async def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -431,6 +454,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
+ body=await async_maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -446,6 +470,7 @@ async def edit(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -471,6 +496,7 @@ async def edit(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
+ body=await async_maybe_transform(body, rule_edit_params.RuleEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/gre_tunnels.py b/src/cloudflare/resources/magic_transit/gre_tunnels.py
index 178f4b622ff1..5909b7c3639d 100644
--- a/src/cloudflare/resources/magic_transit/gre_tunnels.py
+++ b/src/cloudflare/resources/magic_transit/gre_tunnels.py
@@ -30,6 +30,7 @@
GRETunnelDeleteResponse,
GRETunnelUpdateResponse,
gre_tunnel_create_params,
+ gre_tunnel_delete_params,
gre_tunnel_update_params,
)
@@ -217,6 +218,7 @@ def delete(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -248,6 +250,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return self._delete(
f"/accounts/{account_id}/magic/gre_tunnels/{tunnel_identifier}",
+ body=maybe_transform(body, gre_tunnel_delete_params.GRETunnelDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -484,6 +487,7 @@ async def delete(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -515,6 +519,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return await self._delete(
f"/accounts/{account_id}/magic/gre_tunnels/{tunnel_identifier}",
+ body=await async_maybe_transform(body, gre_tunnel_delete_params.GRETunnelDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
index 55067d5e807c..6a6b370479ca 100644
--- a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
+++ b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
@@ -31,7 +31,9 @@
IPSECTunnelUpdateResponse,
IPSECTunnelPSKGenerateResponse,
ipsec_tunnel_create_params,
+ ipsec_tunnel_delete_params,
ipsec_tunnel_update_params,
+ ipsec_tunnel_psk_generate_params,
)
__all__ = ["IPSECTunnels", "AsyncIPSECTunnels"]
@@ -255,6 +257,7 @@ def delete(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -286,6 +289,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return self._delete(
f"/accounts/{account_id}/magic/ipsec_tunnels/{tunnel_identifier}",
+ body=maybe_transform(body, ipsec_tunnel_delete_params.IPSECTunnelDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -345,6 +349,7 @@ def psk_generate(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -378,6 +383,7 @@ def psk_generate(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return self._post(
f"/accounts/{account_id}/magic/ipsec_tunnels/{tunnel_identifier}/psk_generate",
+ body=maybe_transform(body, ipsec_tunnel_psk_generate_params.IPSECTunnelPSKGenerateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -607,6 +613,7 @@ async def delete(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -638,6 +645,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return await self._delete(
f"/accounts/{account_id}/magic/ipsec_tunnels/{tunnel_identifier}",
+ body=await async_maybe_transform(body, ipsec_tunnel_delete_params.IPSECTunnelDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -697,6 +705,7 @@ async def psk_generate(
tunnel_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -730,6 +739,7 @@ async def psk_generate(
raise ValueError(f"Expected a non-empty value for `tunnel_identifier` but received {tunnel_identifier!r}")
return await self._post(
f"/accounts/{account_id}/magic/ipsec_tunnels/{tunnel_identifier}/psk_generate",
+ body=await async_maybe_transform(body, ipsec_tunnel_psk_generate_params.IPSECTunnelPSKGenerateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/routes.py b/src/cloudflare/resources/magic_transit/routes.py
index 1572a6623fa6..038d12aaa2db 100644
--- a/src/cloudflare/resources/magic_transit/routes.py
+++ b/src/cloudflare/resources/magic_transit/routes.py
@@ -32,6 +32,7 @@
RouteUpdateResponse,
route_empty_params,
route_create_params,
+ route_delete_params,
route_update_params,
)
@@ -209,6 +210,7 @@ def delete(
route_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -238,6 +240,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `route_identifier` but received {route_identifier!r}")
return self._delete(
f"/accounts/{account_id}/magic/routes/{route_identifier}",
+ body=maybe_transform(body, route_delete_params.RouteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -505,6 +508,7 @@ async def delete(
route_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -534,6 +538,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `route_identifier` but received {route_identifier!r}")
return await self._delete(
f"/accounts/{account_id}/magic/routes/{route_identifier}",
+ body=await async_maybe_transform(body, route_delete_params.RouteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/sites/acls.py b/src/cloudflare/resources/magic_transit/sites/acls.py
index 6d9f85883c81..b12c4fbf66d8 100644
--- a/src/cloudflare/resources/magic_transit/sites/acls.py
+++ b/src/cloudflare/resources/magic_transit/sites/acls.py
@@ -30,6 +30,7 @@
ACLDeleteResponse,
ACLUpdateResponse,
acl_create_params,
+ acl_delete_params,
acl_update_params,
)
@@ -192,6 +193,7 @@ def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -225,6 +227,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `acl_identifier` but received {acl_identifier!r}")
return self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/acls/{acl_identifier}",
+ body=maybe_transform(body, acl_delete_params.ACLDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -441,6 +444,7 @@ async def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -474,6 +478,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `acl_identifier` but received {acl_identifier!r}")
return await self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/acls/{acl_identifier}",
+ body=await async_maybe_transform(body, acl_delete_params.ACLDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/sites/lans.py b/src/cloudflare/resources/magic_transit/sites/lans.py
index a3c299944c76..2cd09a995c0d 100644
--- a/src/cloudflare/resources/magic_transit/sites/lans.py
+++ b/src/cloudflare/resources/magic_transit/sites/lans.py
@@ -30,6 +30,7 @@
LANDeleteResponse,
LANUpdateResponse,
lan_create_params,
+ lan_delete_params,
lan_update_params,
)
@@ -194,6 +195,7 @@ def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -227,6 +229,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `lan_id` but received {lan_id!r}")
return self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/lans/{lan_id}",
+ body=maybe_transform(body, lan_delete_params.LANDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -445,6 +448,7 @@ async def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -478,6 +482,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `lan_id` but received {lan_id!r}")
return await self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/lans/{lan_id}",
+ body=await async_maybe_transform(body, lan_delete_params.LANDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites.py
index dd936c7b8dae..6e09616eeb1b 100644
--- a/src/cloudflare/resources/magic_transit/sites/sites.py
+++ b/src/cloudflare/resources/magic_transit/sites/sites.py
@@ -53,7 +53,9 @@
SiteCreateResponse,
SiteDeleteResponse,
SiteUpdateResponse,
+ site_list_params,
site_create_params,
+ site_delete_params,
site_update_params,
)
@@ -172,6 +174,7 @@ def list(
self,
*,
account_id: str,
+ connector_identifier: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -188,6 +191,8 @@ def list(
Args:
account_id: Identifier
+ connector_identifier: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -205,6 +210,7 @@ def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
+ query=maybe_transform({"connector_identifier": connector_identifier}, site_list_params.SiteListParams),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[SiteListResponse], ResultWrapper[SiteListResponse]),
@@ -215,6 +221,7 @@ def delete(
site_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -244,6 +251,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `site_id` but received {site_id!r}")
return self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}",
+ body=maybe_transform(body, site_delete_params.SiteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -411,6 +419,7 @@ async def list(
self,
*,
account_id: str,
+ connector_identifier: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -427,6 +436,8 @@ async def list(
Args:
account_id: Identifier
+ connector_identifier: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -444,6 +455,9 @@ async def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
+ query=await async_maybe_transform(
+ {"connector_identifier": connector_identifier}, site_list_params.SiteListParams
+ ),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[SiteListResponse], ResultWrapper[SiteListResponse]),
@@ -454,6 +468,7 @@ async def delete(
site_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -483,6 +498,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `site_id` but received {site_id!r}")
return await self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}",
+ body=await async_maybe_transform(body, site_delete_params.SiteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/magic_transit/sites/wans.py b/src/cloudflare/resources/magic_transit/sites/wans.py
index 9d0906a390e9..c50c56974ba1 100644
--- a/src/cloudflare/resources/magic_transit/sites/wans.py
+++ b/src/cloudflare/resources/magic_transit/sites/wans.py
@@ -30,6 +30,7 @@
WANDeleteResponse,
WANUpdateResponse,
wan_create_params,
+ wan_delete_params,
wan_update_params,
)
@@ -192,6 +193,7 @@ def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -225,6 +227,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `wan_id` but received {wan_id!r}")
return self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/wans/{wan_id}",
+ body=maybe_transform(body, wan_delete_params.WANDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -441,6 +444,7 @@ async def delete(
*,
account_id: str,
site_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -474,6 +478,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `wan_id` but received {wan_id!r}")
return await self._delete(
f"/accounts/{account_id}/magic/sites/{site_id}/wans/{wan_id}",
+ body=await async_maybe_transform(body, wan_delete_params.WANDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py
index ba9f0192a13a..b8eef5abc765 100644
--- a/src/cloudflare/resources/memberships.py
+++ b/src/cloudflare/resources/memberships.py
@@ -13,6 +13,7 @@
MembershipDeleteResponse,
MembershipUpdateResponse,
membership_list_params,
+ membership_delete_params,
membership_update_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -164,6 +165,7 @@ def delete(
self,
membership_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -189,6 +191,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return self._delete(
f"/memberships/{membership_id}",
+ body=maybe_transform(body, membership_delete_params.MembershipDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -370,6 +373,7 @@ async def delete(
self,
membership_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -395,6 +399,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return await self._delete(
f"/memberships/{membership_id}",
+ body=await async_maybe_transform(body, membership_delete_params.MembershipDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
index 505f1a90c7dc..67a1d4b29e16 100644
--- a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
+++ b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
@@ -6,7 +6,12 @@
import httpx
-from ...types import MTLSCertificate, MTLSCertificateUpdate, mtls_certificate_create_params
+from ...types import (
+ MTLSCertificate,
+ MTLSCertificateUpdate,
+ mtls_certificate_create_params,
+ mtls_certificate_delete_params,
+)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
@@ -152,6 +157,7 @@ def delete(
mtls_certificate_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -184,6 +190,7 @@ def delete(
)
return self._delete(
f"/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}",
+ body=maybe_transform(body, mtls_certificate_delete_params.MTLSCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -355,6 +362,7 @@ async def delete(
mtls_certificate_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -387,6 +395,7 @@ async def delete(
)
return await self._delete(
f"/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}",
+ body=await async_maybe_transform(body, mtls_certificate_delete_params.MTLSCertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py
index b9104ca3a018..3859b2a5c338 100644
--- a/src/cloudflare/resources/origin_ca_certificates.py
+++ b/src/cloudflare/resources/origin_ca_certificates.py
@@ -12,7 +12,9 @@
OriginCACertificateGetResponse,
OriginCACertificateCreateResponse,
OriginCACertificateDeleteResponse,
+ origin_ca_certificate_list_params,
origin_ca_certificate_create_params,
+ origin_ca_certificate_delete_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
@@ -113,6 +115,7 @@ def create(
def list(
self,
*,
+ identifier: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -125,12 +128,29 @@ def list(
Use your Origin CA
Key as your User Service Key when calling this endpoint
([see above](#requests)).
+
+ Args:
+ identifier: Identifier
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
"""
return self._get_api_list(
"/certificates",
page=SyncSinglePage[OriginCACertificate],
options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=maybe_transform(
+ {"identifier": identifier}, origin_ca_certificate_list_params.OriginCACertificateListParams
+ ),
),
model=OriginCACertificate,
)
@@ -139,6 +159,7 @@ def delete(
self,
certificate_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -167,6 +188,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return self._delete(
f"/certificates/{certificate_id}",
+ body=maybe_transform(body, origin_ca_certificate_delete_params.OriginCACertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -301,6 +323,7 @@ async def create(
def list(
self,
*,
+ identifier: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -313,12 +336,29 @@ def list(
Use your Origin CA
Key as your User Service Key when calling this endpoint
([see above](#requests)).
+
+ Args:
+ identifier: Identifier
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
"""
return self._get_api_list(
"/certificates",
page=AsyncSinglePage[OriginCACertificate],
options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=maybe_transform(
+ {"identifier": identifier}, origin_ca_certificate_list_params.OriginCACertificateListParams
+ ),
),
model=OriginCACertificate,
)
@@ -327,6 +367,7 @@ async def delete(
self,
certificate_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -355,6 +396,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return await self._delete(
f"/certificates/{certificate_id}",
+ body=await async_maybe_transform(body, origin_ca_certificate_delete_params.OriginCACertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
index a20922942f94..a48879933af9 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
@@ -26,7 +26,11 @@
make_request_options,
)
from ....types.origin_tls_client_auth import OriginTLSClientCertificateID
-from ....types.origin_tls_client_auth.hostnames import OriginTLSClientCertificate, certificate_create_params
+from ....types.origin_tls_client_auth.hostnames import (
+ OriginTLSClientCertificate,
+ certificate_create_params,
+ certificate_delete_params,
+)
__all__ = ["Certificates", "AsyncCertificates"]
@@ -135,6 +139,7 @@ def delete(
certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -164,6 +169,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id}",
+ body=maybe_transform(body, certificate_delete_params.CertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -323,6 +329,7 @@ async def delete(
certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -352,6 +359,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return await self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id}",
+ body=await async_maybe_transform(body, certificate_delete_params.CertificateDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
index bfed59276f23..987250de49fa 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
@@ -12,6 +12,7 @@
OriginTLSClientAuthCreateResponse,
OriginTLSClientAuthDeleteResponse,
origin_tls_client_auth_create_params,
+ origin_tls_client_auth_delete_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
@@ -172,6 +173,7 @@ def delete(
certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -203,6 +205,7 @@ def delete(
OriginTLSClientAuthDeleteResponse,
self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
+ body=maybe_transform(body, origin_tls_client_auth_delete_params.OriginTLSClientAuthDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -385,6 +388,7 @@ async def delete(
certificate_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -416,6 +420,9 @@ async def delete(
OriginTLSClientAuthDeleteResponse,
await self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
+ body=await async_maybe_transform(
+ body, origin_tls_client_auth_delete_params.OriginTLSClientAuthDeleteParams
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py
index 6a59729af968..b149e2b4accf 100644
--- a/src/cloudflare/resources/pagerules/pagerules.py
+++ b/src/cloudflare/resources/pagerules/pagerules.py
@@ -17,6 +17,7 @@
pagerule_edit_params,
pagerule_list_params,
pagerule_create_params,
+ pagerule_delete_params,
pagerule_update_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -274,6 +275,7 @@ def delete(
pagerule_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -303,6 +305,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return self._delete(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
+ body=maybe_transform(body, pagerule_delete_params.PageruleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -664,6 +667,7 @@ async def delete(
pagerule_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -693,6 +697,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return await self._delete(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
+ body=await async_maybe_transform(body, pagerule_delete_params.PageruleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/pages/projects/deployments/deployments.py b/src/cloudflare/resources/pages/projects/deployments/deployments.py
index 114d015e84dc..de40cf9792f3 100644
--- a/src/cloudflare/resources/pages/projects/deployments/deployments.py
+++ b/src/cloudflare/resources/pages/projects/deployments/deployments.py
@@ -36,7 +36,13 @@
AsyncPaginator,
make_request_options,
)
-from .....types.pages.projects import deployment_list_params, deployment_create_params
+from .....types.pages.projects import (
+ deployment_list_params,
+ deployment_retry_params,
+ deployment_create_params,
+ deployment_delete_params,
+ deployment_rollback_params,
+)
__all__ = ["Deployments", "AsyncDeployments"]
@@ -159,6 +165,7 @@ def delete(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +199,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}",
+ body=maybe_transform(body, deployment_delete_params.DeploymentDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -253,6 +261,7 @@ def retry(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -286,6 +295,7 @@ def retry(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/retry",
+ body=maybe_transform(body, deployment_retry_params.DeploymentRetryParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -302,6 +312,7 @@ def rollback(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -337,6 +348,7 @@ def rollback(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/rollback",
+ body=maybe_transform(body, deployment_rollback_params.DeploymentRollbackParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -466,6 +478,7 @@ async def delete(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -499,6 +512,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return await self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}",
+ body=await async_maybe_transform(body, deployment_delete_params.DeploymentDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -560,6 +574,7 @@ async def retry(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -593,6 +608,7 @@ async def retry(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return await self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/retry",
+ body=await async_maybe_transform(body, deployment_retry_params.DeploymentRetryParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -609,6 +625,7 @@ async def rollback(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -644,6 +661,7 @@ async def rollback(
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return await self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/rollback",
+ body=await async_maybe_transform(body, deployment_rollback_params.DeploymentRollbackParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py
index 41fdc48d87f2..1bf8f0871c4e 100644
--- a/src/cloudflare/resources/pages/projects/domains.py
+++ b/src/cloudflare/resources/pages/projects/domains.py
@@ -25,7 +25,14 @@
AsyncPaginator,
make_request_options,
)
-from ....types.pages.projects import DomainGetResponse, DomainEditResponse, DomainCreateResponse, domain_create_params
+from ....types.pages.projects import (
+ DomainGetResponse,
+ DomainEditResponse,
+ DomainCreateResponse,
+ domain_edit_params,
+ domain_create_params,
+ domain_delete_params,
+)
__all__ = ["Domains", "AsyncDomains"]
@@ -137,6 +144,7 @@ def delete(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -170,6 +178,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
+ body=maybe_transform(body, domain_delete_params.DomainDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -182,6 +191,7 @@ def edit(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -217,6 +227,7 @@ def edit(
Optional[DomainEditResponse],
self._patch(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
+ body=maybe_transform(body, domain_edit_params.DomainEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -392,6 +403,7 @@ async def delete(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -425,6 +437,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return await self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
+ body=await async_maybe_transform(body, domain_delete_params.DomainDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -437,6 +450,7 @@ async def edit(
*,
account_id: str,
project_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -472,6 +486,7 @@ async def edit(
Optional[DomainEditResponse],
await self._patch(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
+ body=await async_maybe_transform(body, domain_edit_params.DomainEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py
index 9aaba8bcf16e..6ae4f0d6d229 100644
--- a/src/cloudflare/resources/pages/projects/projects.py
+++ b/src/cloudflare/resources/pages/projects/projects.py
@@ -45,6 +45,7 @@
ProjectCreateResponse,
project_edit_params,
project_create_params,
+ project_delete_params,
)
from ...._base_client import (
AsyncPaginator,
@@ -182,6 +183,7 @@ def delete(
project_name: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -211,6 +213,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}",
+ body=maybe_transform(body, project_delete_params.ProjectDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -482,6 +485,7 @@ async def delete(
project_name: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -511,6 +515,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return await self._delete(
f"/accounts/{account_id}/pages/projects/{project_name}",
+ body=await async_maybe_transform(body, project_delete_params.ProjectDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py
index a5c9097bba55..e860164b69ca 100644
--- a/src/cloudflare/resources/queues/consumers.py
+++ b/src/cloudflare/resources/queues/consumers.py
@@ -29,6 +29,7 @@
ConsumerDeleteResponse,
ConsumerUpdateResponse,
consumer_create_params,
+ consumer_delete_params,
consumer_update_params,
)
@@ -147,6 +148,7 @@ def delete(
*,
account_id: str,
queue_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -182,6 +184,7 @@ def delete(
Optional[ConsumerDeleteResponse],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}",
+ body=maybe_transform(body, consumer_delete_params.ConsumerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -352,6 +355,7 @@ async def delete(
*,
account_id: str,
queue_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -387,6 +391,7 @@ async def delete(
Optional[ConsumerDeleteResponse],
await self._delete(
f"/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}",
+ body=await async_maybe_transform(body, consumer_delete_params.ConsumerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py
index 5f3220b8cbb7..4cc9fd64ac56 100644
--- a/src/cloudflare/resources/queues/queues.py
+++ b/src/cloudflare/resources/queues/queues.py
@@ -13,6 +13,7 @@
QueueDeleteResponse,
QueueUpdateResponse,
queue_create_params,
+ queue_delete_params,
queue_update_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -200,6 +201,7 @@ def delete(
queue_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -231,6 +233,7 @@ def delete(
Optional[QueueDeleteResponse],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
+ body=maybe_transform(body, queue_delete_params.QueueDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -437,6 +440,7 @@ async def delete(
queue_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -468,6 +472,7 @@ async def delete(
Optional[QueueDeleteResponse],
await self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
+ body=await async_maybe_transform(body, queue_delete_params.QueueDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py
index a6e2d76ed52d..ae4f5d42df12 100644
--- a/src/cloudflare/resources/rate_limits.py
+++ b/src/cloudflare/resources/rate_limits.py
@@ -15,6 +15,7 @@
rate_limit_edit_params,
rate_limit_list_params,
rate_limit_create_params,
+ rate_limit_delete_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
@@ -154,6 +155,7 @@ def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -183,6 +185,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._delete(
f"/zones/{zone_identifier}/rate_limits/{id}",
+ body=maybe_transform(body, rate_limit_delete_params.RateLimitDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -409,6 +412,7 @@ async def delete(
id: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -438,6 +442,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._delete(
f"/zones/{zone_identifier}/rate_limits/{id}",
+ body=await async_maybe_transform(body, rate_limit_delete_params.RateLimitDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/rules/lists/lists.py b/src/cloudflare/resources/rules/lists/lists.py
index 5cf9ef964966..01f7d92962f2 100644
--- a/src/cloudflare/resources/rules/lists/lists.py
+++ b/src/cloudflare/resources/rules/lists/lists.py
@@ -30,7 +30,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ....types.rules import ListsList, ListDeleteResponse, list_create_params, list_update_params
+from ....types.rules import ListsList, ListDeleteResponse, list_create_params, list_delete_params, list_update_params
from ...._base_client import (
AsyncPaginator,
make_request_options,
@@ -210,6 +210,7 @@ def delete(
list_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -239,6 +240,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return self._delete(
f"/accounts/{account_id}/rules/lists/{list_id}",
+ body=maybe_transform(body, list_delete_params.ListDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -457,6 +459,7 @@ async def delete(
list_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -486,6 +489,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return await self._delete(
f"/accounts/{account_id}/rules/lists/{list_id}",
+ body=await async_maybe_transform(body, list_delete_params.ListDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py
index 66ece684370c..26ac49ba2c12 100644
--- a/src/cloudflare/resources/secondary_dns/acls.py
+++ b/src/cloudflare/resources/secondary_dns/acls.py
@@ -25,7 +25,13 @@
AsyncPaginator,
make_request_options,
)
-from ...types.secondary_dns import SecondaryDNSACL, ACLDeleteResponse, acl_create_params, acl_update_params
+from ...types.secondary_dns import (
+ SecondaryDNSACL,
+ ACLDeleteResponse,
+ acl_create_params,
+ acl_delete_params,
+ acl_update_params,
+)
__all__ = ["ACLs", "AsyncACLs"]
@@ -174,6 +180,7 @@ def delete(
acl_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -199,6 +206,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
+ body=maybe_transform(body, acl_delete_params.ACLDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -394,6 +402,7 @@ async def delete(
acl_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -419,6 +428,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
+ body=await async_maybe_transform(body, acl_delete_params.ACLDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/force_axfr.py b/src/cloudflare/resources/secondary_dns/force_axfr.py
index 82bfd9d194cc..ddbf86cc2b0e 100644
--- a/src/cloudflare/resources/secondary_dns/force_axfr.py
+++ b/src/cloudflare/resources/secondary_dns/force_axfr.py
@@ -7,6 +7,10 @@
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
@@ -19,6 +23,7 @@
from ..._base_client import (
make_request_options,
)
+from ...types.secondary_dns import force_axfr_create_params
__all__ = ["ForceAXFR", "AsyncForceAXFR"]
@@ -36,6 +41,7 @@ def create(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -59,6 +65,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/force_axfr",
+ body=maybe_transform(body, force_axfr_create_params.ForceAXFRCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -83,6 +90,7 @@ async def create(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -106,6 +114,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/force_axfr",
+ body=await async_maybe_transform(body, force_axfr_create_params.ForceAXFRCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/incoming.py b/src/cloudflare/resources/secondary_dns/incoming.py
index e3a18e2adafb..26d75a843c29 100644
--- a/src/cloudflare/resources/secondary_dns/incoming.py
+++ b/src/cloudflare/resources/secondary_dns/incoming.py
@@ -29,6 +29,7 @@
IncomingDeleteResponse,
IncomingUpdateResponse,
incoming_create_params,
+ incoming_delete_params,
incoming_update_params,
)
@@ -158,6 +159,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -181,6 +183,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/secondary_dns/incoming",
+ body=maybe_transform(body, incoming_delete_params.IncomingDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -352,6 +355,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -375,6 +379,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/secondary_dns/incoming",
+ body=await async_maybe_transform(body, incoming_delete_params.IncomingDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
index d0915289719e..f324bf56a4da 100644
--- a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
+++ b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
@@ -37,7 +37,11 @@
OutgoingDeleteResponse,
OutgoingUpdateResponse,
outgoing_create_params,
+ outgoing_delete_params,
+ outgoing_enable_params,
outgoing_update_params,
+ outgoing_disable_params,
+ outgoing_force_notify_params,
)
__all__ = ["Outgoing", "AsyncOutgoing"]
@@ -160,6 +164,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -183,6 +188,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/secondary_dns/outgoing",
+ body=maybe_transform(body, outgoing_delete_params.OutgoingDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -197,6 +203,7 @@ def disable(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -221,6 +228,7 @@ def disable(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/disable",
+ body=maybe_transform(body, outgoing_disable_params.OutgoingDisableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -235,6 +243,7 @@ def enable(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -258,6 +267,7 @@ def enable(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/enable",
+ body=maybe_transform(body, outgoing_enable_params.OutgoingEnableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -272,6 +282,7 @@ def force_notify(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -295,6 +306,7 @@ def force_notify(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/force_notify",
+ body=maybe_transform(body, outgoing_force_notify_params.OutgoingForceNotifyParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -460,6 +472,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -483,6 +496,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/secondary_dns/outgoing",
+ body=await async_maybe_transform(body, outgoing_delete_params.OutgoingDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -497,6 +511,7 @@ async def disable(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -521,6 +536,7 @@ async def disable(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/disable",
+ body=await async_maybe_transform(body, outgoing_disable_params.OutgoingDisableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -535,6 +551,7 @@ async def enable(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -558,6 +575,7 @@ async def enable(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/enable",
+ body=await async_maybe_transform(body, outgoing_enable_params.OutgoingEnableParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -572,6 +590,7 @@ async def force_notify(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -595,6 +614,7 @@ async def force_notify(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/force_notify",
+ body=await async_maybe_transform(body, outgoing_force_notify_params.OutgoingForceNotifyParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py
index 662e94d3bb6d..6426f68a83c2 100644
--- a/src/cloudflare/resources/secondary_dns/peers.py
+++ b/src/cloudflare/resources/secondary_dns/peers.py
@@ -25,7 +25,13 @@
AsyncPaginator,
make_request_options,
)
-from ...types.secondary_dns import SecondaryDNSPeer, PeerDeleteResponse, peer_create_params, peer_update_params
+from ...types.secondary_dns import (
+ SecondaryDNSPeer,
+ PeerDeleteResponse,
+ peer_create_params,
+ peer_delete_params,
+ peer_update_params,
+)
__all__ = ["Peers", "AsyncPeers"]
@@ -188,6 +194,7 @@ def delete(
peer_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -213,6 +220,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
+ body=maybe_transform(body, peer_delete_params.PeerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -422,6 +430,7 @@ async def delete(
peer_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -447,6 +456,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
+ body=await async_maybe_transform(body, peer_delete_params.PeerDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py
index 6031863ce6b2..a538d2e30f8c 100644
--- a/src/cloudflare/resources/secondary_dns/tsigs.py
+++ b/src/cloudflare/resources/secondary_dns/tsigs.py
@@ -25,7 +25,13 @@
AsyncPaginator,
make_request_options,
)
-from ...types.secondary_dns import SecondaryDNSTSIG, TSIGDeleteResponse, tsig_create_params, tsig_update_params
+from ...types.secondary_dns import (
+ SecondaryDNSTSIG,
+ TSIGDeleteResponse,
+ tsig_create_params,
+ tsig_delete_params,
+ tsig_update_params,
+)
__all__ = ["TSIGs", "AsyncTSIGs"]
@@ -189,6 +195,7 @@ def delete(
tsig_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -214,6 +221,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
+ body=maybe_transform(body, tsig_delete_params.TSIGDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -424,6 +432,7 @@ async def delete(
tsig_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -449,6 +458,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
+ body=await async_maybe_transform(body, tsig_delete_params.TSIGDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py
index b199104dbd56..7ac67c7485fd 100644
--- a/src/cloudflare/resources/spectrum/apps.py
+++ b/src/cloudflare/resources/spectrum/apps.py
@@ -33,6 +33,7 @@
AppUpdateResponse,
app_list_params,
app_create_params,
+ app_delete_params,
app_update_params,
)
@@ -318,6 +319,7 @@ def delete(
app_id: str,
*,
zone: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -347,6 +349,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `app_id` but received {app_id!r}")
return self._delete(
f"/zones/{zone}/spectrum/apps/{app_id}",
+ body=maybe_transform(body, app_delete_params.AppDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -686,6 +689,7 @@ async def delete(
app_id: str,
*,
zone: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -715,6 +719,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `app_id` but received {app_id!r}")
return await self._delete(
f"/zones/{zone}/spectrum/apps/{app_id}",
+ body=await async_maybe_transform(body, app_delete_params.AppDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/speed/speed.py b/src/cloudflare/resources/speed/speed.py
index a28cb6837ba8..33ebf45a3d6e 100644
--- a/src/cloudflare/resources/speed/speed.py
+++ b/src/cloudflare/resources/speed/speed.py
@@ -2,7 +2,8 @@
from __future__ import annotations
-from typing import Type, Optional, cast
+from typing import Type, Union, Optional, cast
+from datetime import datetime
from typing_extensions import Literal
import httpx
@@ -265,7 +266,9 @@ def trends_list(
"us-south1",
"us-west1",
],
+ start: Union[str, datetime],
tz: str,
+ end: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -313,7 +316,9 @@ def trends_list(
"device_type": device_type,
"metrics": metrics,
"region": region,
+ "start": start,
"tz": tz,
+ "end": end,
},
speed_trends_list_params.SpeedTrendsListParams,
),
@@ -520,7 +525,9 @@ async def trends_list(
"us-south1",
"us-west1",
],
+ start: Union[str, datetime],
tz: str,
+ end: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -568,7 +575,9 @@ async def trends_list(
"device_type": device_type,
"metrics": metrics,
"region": region,
+ "start": start,
"tz": tz,
+ "end": end,
},
speed_trends_list_params.SpeedTrendsListParams,
),
diff --git a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
index f13bf748f95c..32ac54db08d1 100644
--- a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
+++ b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
@@ -24,7 +24,10 @@
AsyncQuotaWithStreamingResponse,
)
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
-from ...._utils import maybe_transform
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -38,7 +41,9 @@
CertificatePackGetResponse,
CertificatePackEditResponse,
CertificatePackDeleteResponse,
+ certificate_pack_edit_params,
certificate_pack_list_params,
+ certificate_pack_delete_params,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
@@ -114,6 +119,7 @@ def delete(
certificate_pack_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -145,6 +151,7 @@ def delete(
)
return self._delete(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
+ body=maybe_transform(body, certificate_pack_delete_params.CertificatePackDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -160,6 +167,7 @@ def edit(
certificate_pack_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -194,6 +202,7 @@ def edit(
)
return self._patch(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
+ body=maybe_transform(body, certificate_pack_edit_params.CertificatePackEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -321,6 +330,7 @@ async def delete(
certificate_pack_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -352,6 +362,7 @@ async def delete(
)
return await self._delete(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
+ body=await async_maybe_transform(body, certificate_pack_delete_params.CertificatePackDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -367,6 +378,7 @@ async def edit(
certificate_pack_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -401,6 +413,7 @@ async def edit(
)
return await self._patch(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
+ body=await async_maybe_transform(body, certificate_pack_edit_params.CertificatePackEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/stream/captions.py b/src/cloudflare/resources/stream/captions.py
index 1196f1e3d720..4c7b84edb8a6 100644
--- a/src/cloudflare/resources/stream/captions.py
+++ b/src/cloudflare/resources/stream/captions.py
@@ -23,7 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.stream import CaptionGetResponse, CaptionDeleteResponse, CaptionUpdateResponse, caption_update_params
+from ...types.stream import (
+ CaptionGetResponse,
+ CaptionDeleteResponse,
+ CaptionUpdateResponse,
+ caption_delete_params,
+ caption_update_params,
+)
__all__ = ["Captions", "AsyncCaptions"]
@@ -102,6 +108,7 @@ def delete(
*,
account_id: str,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -137,6 +144,7 @@ def delete(
CaptionDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
+ body=maybe_transform(body, caption_delete_params.CaptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -269,6 +277,7 @@ async def delete(
*,
account_id: str,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -304,6 +313,7 @@ async def delete(
CaptionDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
+ body=await async_maybe_transform(body, caption_delete_params.CaptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py
index 8441b43a4066..af8f714cd63b 100644
--- a/src/cloudflare/resources/stream/downloads.py
+++ b/src/cloudflare/resources/stream/downloads.py
@@ -7,6 +7,10 @@
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
@@ -19,7 +23,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.stream import DownloadGetResponse, DownloadCreateResponse, DownloadDeleteResponse
+from ...types.stream import DownloadGetResponse, DownloadCreateResponse, DownloadDeleteResponse, download_create_params
__all__ = ["Downloads", "AsyncDownloads"]
@@ -38,6 +42,7 @@ def create(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -69,6 +74,7 @@ def create(
DownloadCreateResponse,
self._post(
f"/accounts/{account_id}/stream/{identifier}/downloads",
+ body=maybe_transform(body, download_create_params.DownloadCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -195,6 +201,7 @@ async def create(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -226,6 +233,7 @@ async def create(
DownloadCreateResponse,
await self._post(
f"/accounts/{account_id}/stream/{identifier}/downloads",
+ body=await async_maybe_transform(body, download_create_params.DownloadCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py
index 9f2718c1e694..ebeea1c5d838 100644
--- a/src/cloudflare/resources/stream/keys.py
+++ b/src/cloudflare/resources/stream/keys.py
@@ -7,6 +7,10 @@
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
@@ -19,7 +23,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.stream import StreamKeys, KeyGetResponse, KeyDeleteResponse
+from ...types.stream import StreamKeys, KeyGetResponse, KeyDeleteResponse, key_create_params, key_delete_params
__all__ = ["Keys", "AsyncKeys"]
@@ -37,6 +41,7 @@ def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -65,6 +70,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/stream/keys",
+ body=maybe_transform(body, key_create_params.KeyCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -80,6 +86,7 @@ def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -111,6 +118,7 @@ def delete(
KeyDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/keys/{identifier}",
+ body=maybe_transform(body, key_delete_params.KeyDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -177,6 +185,7 @@ async def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -205,6 +214,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/stream/keys",
+ body=await async_maybe_transform(body, key_create_params.KeyCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -220,6 +230,7 @@ async def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -251,6 +262,7 @@ async def delete(
KeyDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/keys/{identifier}",
+ body=await async_maybe_transform(body, key_delete_params.KeyDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/stream/live_inputs/live_inputs.py b/src/cloudflare/resources/stream/live_inputs/live_inputs.py
index 1be4a397c8a5..5c48b0d88c35 100644
--- a/src/cloudflare/resources/stream/live_inputs/live_inputs.py
+++ b/src/cloudflare/resources/stream/live_inputs/live_inputs.py
@@ -36,6 +36,7 @@
LiveInputListResponse,
live_input_list_params,
live_input_create_params,
+ live_input_delete_params,
live_input_update_params,
)
@@ -248,6 +249,7 @@ def delete(
live_input_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -281,6 +283,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/stream/live_inputs/{live_input_identifier}",
+ body=maybe_transform(body, live_input_delete_params.LiveInputDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -542,6 +545,7 @@ async def delete(
live_input_identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -575,6 +579,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/stream/live_inputs/{live_input_identifier}",
+ body=await async_maybe_transform(body, live_input_delete_params.LiveInputDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/stream/live_inputs/outputs.py b/src/cloudflare/resources/stream/live_inputs/outputs.py
index 4bed7a329b8e..bd89a7500265 100644
--- a/src/cloudflare/resources/stream/live_inputs/outputs.py
+++ b/src/cloudflare/resources/stream/live_inputs/outputs.py
@@ -25,7 +25,7 @@
AsyncPaginator,
make_request_options,
)
-from ....types.stream.live_inputs import StreamOutput, output_create_params, output_update_params
+from ....types.stream.live_inputs import StreamOutput, output_create_params, output_delete_params, output_update_params
__all__ = ["Outputs", "AsyncOutputs"]
@@ -216,6 +216,7 @@ def delete(
*,
account_id: str,
live_input_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -252,6 +253,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}",
+ body=maybe_transform(body, output_delete_params.OutputDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -445,6 +447,7 @@ async def delete(
*,
account_id: str,
live_input_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -481,6 +484,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}",
+ body=await async_maybe_transform(body, output_delete_params.OutputDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/stream/stream.py b/src/cloudflare/resources/stream/stream.py
index 1523b2cdec24..d3aedd966b9b 100644
--- a/src/cloudflare/resources/stream/stream.py
+++ b/src/cloudflare/resources/stream/stream.py
@@ -56,9 +56,12 @@
VideosWithStreamingResponse,
AsyncVideosWithStreamingResponse,
)
-from ...types import StreamVideos, stream_list_params
+from ...types import StreamVideos, stream_list_params, stream_create_params, stream_delete_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
-from ..._utils import maybe_transform
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from .captions import (
Captions,
AsyncCaptions,
@@ -199,6 +202,7 @@ def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -229,6 +233,7 @@ def create(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/stream",
+ body=maybe_transform(body, stream_create_params.StreamCreateParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -321,6 +326,7 @@ def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -351,6 +357,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/stream/{identifier}",
+ body=maybe_transform(body, stream_delete_params.StreamDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -467,6 +474,7 @@ async def create(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -497,6 +505,7 @@ async def create(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/stream",
+ body=await async_maybe_transform(body, stream_create_params.StreamCreateParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -589,6 +598,7 @@ async def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -619,6 +629,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/stream/{identifier}",
+ body=await async_maybe_transform(body, stream_delete_params.StreamDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py
index d869bd90f78b..09b6ec954eb3 100644
--- a/src/cloudflare/resources/stream/watermarks.py
+++ b/src/cloudflare/resources/stream/watermarks.py
@@ -31,6 +31,7 @@
WatermarkCreateResponse,
WatermarkDeleteResponse,
watermark_create_params,
+ watermark_delete_params,
)
__all__ = ["Watermarks", "AsyncWatermarks"]
@@ -169,6 +170,7 @@ def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -200,6 +202,7 @@ def delete(
WatermarkDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
+ body=maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -396,6 +399,7 @@ async def delete(
identifier: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -427,6 +431,7 @@ async def delete(
WatermarkDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
+ body=await async_maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py
index 91bd08ff613d..a98c45e5d89b 100644
--- a/src/cloudflare/resources/stream/webhooks.py
+++ b/src/cloudflare/resources/stream/webhooks.py
@@ -23,7 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.stream import WebhookGetResponse, WebhookDeleteResponse, WebhookUpdateResponse, webhook_update_params
+from ...types.stream import (
+ WebhookGetResponse,
+ WebhookDeleteResponse,
+ WebhookUpdateResponse,
+ webhook_delete_params,
+ webhook_update_params,
+)
__all__ = ["Webhooks", "AsyncWebhooks"]
@@ -89,6 +95,7 @@ def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -116,6 +123,7 @@ def delete(
WebhookDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/webhook",
+ body=maybe_transform(body, webhook_delete_params.WebhookDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -237,6 +245,7 @@ async def delete(
self,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -264,6 +273,7 @@ async def delete(
WebhookDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/webhook",
+ body=await async_maybe_transform(body, webhook_delete_params.WebhookDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py
index 03ebe32ebe1f..1c83750ecec8 100644
--- a/src/cloudflare/resources/subscriptions.py
+++ b/src/cloudflare/resources/subscriptions.py
@@ -14,6 +14,7 @@
SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
subscription_create_params,
+ subscription_delete_params,
subscription_update_params,
)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -230,6 +231,7 @@ def delete(
subscription_identifier: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -261,6 +263,7 @@ def delete(
)
return self._delete(
f"/accounts/{account_identifier}/subscriptions/{subscription_identifier}",
+ body=maybe_transform(body, subscription_delete_params.SubscriptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -507,6 +510,7 @@ async def delete(
subscription_identifier: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -538,6 +542,7 @@ async def delete(
)
return await self._delete(
f"/accounts/{account_identifier}/subscriptions/{subscription_identifier}",
+ body=await async_maybe_transform(body, subscription_delete_params.SubscriptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/user/billing/history.py b/src/cloudflare/resources/user/billing/history.py
index 1c4a37625cbe..c6662b0ab4ac 100644
--- a/src/cloudflare/resources/user/billing/history.py
+++ b/src/cloudflare/resources/user/billing/history.py
@@ -2,7 +2,8 @@
from __future__ import annotations
-from typing import Type, Optional, cast
+from typing import Type, Union, Optional, cast
+from datetime import datetime
from typing_extensions import Literal
import httpx
@@ -41,9 +42,13 @@ def with_streaming_response(self) -> HistoryWithStreamingResponse:
def get(
self,
*,
+ action: str | NotGiven = NOT_GIVEN,
+ occured_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
+ occurred_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
order: Literal["type", "occured_at", "action"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ type: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -55,12 +60,20 @@ def get(
Accesses your billing history object.
Args:
+ action: The billing item action.
+
+ occured_at: When the billing item was created.
+
+ occurred_at: When the billing item was created.
+
order: Field to order billing history by.
page: Page number of paginated results.
per_page: Number of items per page.
+ type: The billing item type.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -78,9 +91,13 @@ def get(
timeout=timeout,
query=maybe_transform(
{
+ "action": action,
+ "occured_at": occured_at,
+ "occurred_at": occurred_at,
"order": order,
"page": page,
"per_page": per_page,
+ "type": type,
},
history_get_params.HistoryGetParams,
),
@@ -102,9 +119,13 @@ def with_streaming_response(self) -> AsyncHistoryWithStreamingResponse:
async def get(
self,
*,
+ action: str | NotGiven = NOT_GIVEN,
+ occured_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
+ occurred_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
order: Literal["type", "occured_at", "action"] | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ type: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -116,12 +137,20 @@ async def get(
Accesses your billing history object.
Args:
+ action: The billing item action.
+
+ occured_at: When the billing item was created.
+
+ occurred_at: When the billing item was created.
+
order: Field to order billing history by.
page: Page number of paginated results.
per_page: Number of items per page.
+ type: The billing item type.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -139,9 +168,13 @@ async def get(
timeout=timeout,
query=await async_maybe_transform(
{
+ "action": action,
+ "occured_at": occured_at,
+ "occurred_at": occurred_at,
"order": order,
"page": page,
"per_page": per_page,
+ "type": type,
},
history_get_params.HistoryGetParams,
),
diff --git a/src/cloudflare/resources/user/firewall/access_rules.py b/src/cloudflare/resources/user/firewall/access_rules.py
index 762b30cfa702..55c4cb7ec9b3 100644
--- a/src/cloudflare/resources/user/firewall/access_rules.py
+++ b/src/cloudflare/resources/user/firewall/access_rules.py
@@ -32,6 +32,7 @@
access_rule_edit_params,
access_rule_list_params,
access_rule_create_params,
+ access_rule_delete_params,
)
__all__ = ["AccessRules", "AsyncAccessRules"]
@@ -165,6 +166,7 @@ def delete(
self,
identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +194,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return self._delete(
f"/user/firewall/access_rules/rules/{identifier}",
+ body=maybe_transform(body, access_rule_delete_params.AccessRuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -385,6 +388,7 @@ async def delete(
self,
identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -412,6 +416,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return await self._delete(
f"/user/firewall/access_rules/rules/{identifier}",
+ body=await async_maybe_transform(body, access_rule_delete_params.AccessRuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/user/load_balancers/monitors.py b/src/cloudflare/resources/user/load_balancers/monitors.py
index 6fbbc6c5283b..2b2c1113800a 100644
--- a/src/cloudflare/resources/user/load_balancers/monitors.py
+++ b/src/cloudflare/resources/user/load_balancers/monitors.py
@@ -33,6 +33,7 @@
MonitorReferencesResponse,
monitor_edit_params,
monitor_create_params,
+ monitor_delete_params,
monitor_update_params,
monitor_preview_params,
)
@@ -316,6 +317,7 @@ def delete(
self,
monitor_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -339,6 +341,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `monitor_id` but received {monitor_id!r}")
return self._delete(
f"/user/load_balancers/monitors/{monitor_id}",
+ body=maybe_transform(body, monitor_delete_params.MonitorDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -948,6 +951,7 @@ async def delete(
self,
monitor_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -971,6 +975,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `monitor_id` but received {monitor_id!r}")
return await self._delete(
f"/user/load_balancers/monitors/{monitor_id}",
+ body=await async_maybe_transform(body, monitor_delete_params.MonitorDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/user/load_balancers/pools.py b/src/cloudflare/resources/user/load_balancers/pools.py
index 26b35dcb7d7b..52b1e647562e 100644
--- a/src/cloudflare/resources/user/load_balancers/pools.py
+++ b/src/cloudflare/resources/user/load_balancers/pools.py
@@ -35,6 +35,7 @@
pool_edit_params,
pool_list_params,
pool_create_params,
+ pool_delete_params,
pool_update_params,
pool_preview_params,
)
@@ -353,6 +354,7 @@ def delete(
self,
pool_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -376,6 +378,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `pool_id` but received {pool_id!r}")
return self._delete(
f"/user/load_balancers/pools/{pool_id}",
+ body=maybe_transform(body, pool_delete_params.PoolDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -1069,6 +1072,7 @@ async def delete(
self,
pool_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1092,6 +1096,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `pool_id` but received {pool_id!r}")
return await self._delete(
f"/user/load_balancers/pools/{pool_id}",
+ body=await async_maybe_transform(body, pool_delete_params.PoolDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/user/organizations.py b/src/cloudflare/resources/user/organizations.py
index 1e3d17f11842..f92c48109302 100644
--- a/src/cloudflare/resources/user/organizations.py
+++ b/src/cloudflare/resources/user/organizations.py
@@ -8,7 +8,10 @@
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
-from ..._utils import maybe_transform
+from ..._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
@@ -19,7 +22,13 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...types.user import Organization, OrganizationGetResponse, OrganizationDeleteResponse, organization_list_params
+from ...types.user import (
+ Organization,
+ OrganizationGetResponse,
+ OrganizationDeleteResponse,
+ organization_list_params,
+ organization_delete_params,
+)
from ..._base_client import (
AsyncPaginator,
make_request_options,
@@ -108,6 +117,7 @@ def delete(
self,
organization_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -133,6 +143,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}")
return self._delete(
f"/user/organizations/{organization_id}",
+ body=maybe_transform(body, organization_delete_params.OrganizationDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -264,6 +275,7 @@ async def delete(
self,
organization_id: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -289,6 +301,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}")
return await self._delete(
f"/user/organizations/{organization_id}",
+ body=await async_maybe_transform(body, organization_delete_params.OrganizationDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py
index 2738091e1bc2..48a9fef6ed72 100644
--- a/src/cloudflare/resources/user/subscriptions.py
+++ b/src/cloudflare/resources/user/subscriptions.py
@@ -27,6 +27,7 @@
SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
subscription_edit_params,
+ subscription_delete_params,
subscription_update_params,
)
from ..._base_client import (
@@ -116,6 +117,7 @@ def delete(
self,
identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -141,6 +143,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return self._delete(
f"/user/subscriptions/{identifier}",
+ body=maybe_transform(body, subscription_delete_params.SubscriptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -318,6 +321,7 @@ async def delete(
self,
identifier: str,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -343,6 +347,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return await self._delete(
f"/user/subscriptions/{identifier}",
+ body=await async_maybe_transform(body, subscription_delete_params.SubscriptionDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/user/tokens/tokens.py b/src/cloudflare/resources/user/tokens/tokens.py
index 36fdcf01ea19..3ca168068777 100644
--- a/src/cloudflare/resources/user/tokens/tokens.py
+++ b/src/cloudflare/resources/user/tokens/tokens.py
@@ -39,6 +39,7 @@
TokenVerifyResponse,
token_list_params,
token_create_params,
+ token_delete_params,
token_update_params,
)
from ...._base_client import (
@@ -255,6 +256,7 @@ def delete(
self,
token_id: object,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -276,6 +278,7 @@ def delete(
"""
return self._delete(
f"/user/tokens/{token_id}",
+ body=maybe_transform(body, token_delete_params.TokenDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -548,6 +551,7 @@ async def delete(
self,
token_id: object,
*,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -569,6 +573,7 @@ async def delete(
"""
return await self._delete(
f"/user/tokens/{token_id}",
+ body=await async_maybe_transform(body, token_delete_params.TokenDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py
index 345e6f362990..76f1f2956063 100644
--- a/src/cloudflare/resources/vectorize/indexes.py
+++ b/src/cloudflare/resources/vectorize/indexes.py
@@ -34,7 +34,9 @@
VectorizeIndexDeleteVectorsByID,
index_query_params,
index_create_params,
+ index_insert_params,
index_update_params,
+ index_upsert_params,
index_get_by_ids_params,
index_delete_by_ids_params,
)
@@ -375,6 +377,7 @@ def insert(
index_name: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -403,6 +406,7 @@ def insert(
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return self._post(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}/insert",
+ body=maybe_transform(body, index_insert_params.IndexInsertParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -481,6 +485,7 @@ def upsert(
index_name: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -509,6 +514,7 @@ def upsert(
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return self._post(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}/upsert",
+ body=maybe_transform(body, index_upsert_params.IndexUpsertParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -853,6 +859,7 @@ async def insert(
index_name: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -881,6 +888,7 @@ async def insert(
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return await self._post(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}/insert",
+ body=await async_maybe_transform(body, index_insert_params.IndexInsertParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -959,6 +967,7 @@ async def upsert(
index_name: str,
*,
account_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -987,6 +996,7 @@ async def upsert(
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return await self._post(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}/upsert",
+ body=await async_maybe_transform(body, index_upsert_params.IndexUpsertParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py
index 679e3c444165..a872dde66752 100644
--- a/src/cloudflare/resources/waiting_rooms/events/events.py
+++ b/src/cloudflare/resources/waiting_rooms/events/events.py
@@ -38,6 +38,7 @@
EventDeleteResponse,
event_edit_params,
event_create_params,
+ event_delete_params,
event_update_params,
)
@@ -347,6 +348,7 @@ def delete(
*,
zone_id: str,
waiting_room_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -376,6 +378,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id}",
+ body=maybe_transform(body, event_delete_params.EventDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -856,6 +859,7 @@ async def delete(
*,
zone_id: str,
waiting_room_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -885,6 +889,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}/events/{event_id}",
+ body=await async_maybe_transform(body, event_delete_params.EventDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py
index 95d5f260eb17..29ea21cf956f 100644
--- a/src/cloudflare/resources/waiting_rooms/rules.py
+++ b/src/cloudflare/resources/waiting_rooms/rules.py
@@ -34,6 +34,7 @@
RuleUpdateResponse,
rule_edit_params,
rule_create_params,
+ rule_delete_params,
rule_update_params,
)
@@ -205,6 +206,7 @@ def delete(
*,
zone_id: str,
waiting_room_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -236,6 +238,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules/{rule_id}",
+ body=maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -484,6 +487,7 @@ async def delete(
*,
zone_id: str,
waiting_room_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -515,6 +519,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}/rules/{rule_id}",
+ body=await async_maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
index 8133a15dbb91..671cd156d9c3 100644
--- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
+++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
@@ -36,6 +36,7 @@
WaitingRoomDeleteResponse,
waiting_room_edit_params,
waiting_room_create_params,
+ waiting_room_delete_params,
waiting_room_update_params,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -861,6 +862,7 @@ def delete(
waiting_room_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -888,6 +890,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}",
+ body=maybe_transform(body, waiting_room_delete_params.WaitingRoomDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -2082,6 +2085,7 @@ async def delete(
waiting_room_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2109,6 +2113,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._delete(
f"/zones/{zone_id}/waiting_rooms/{waiting_room_id}",
+ body=await async_maybe_transform(body, waiting_room_delete_params.WaitingRoomDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py
index 906122298aa1..c25a010f0d31 100644
--- a/src/cloudflare/resources/warp_connector.py
+++ b/src/cloudflare/resources/warp_connector.py
@@ -110,6 +110,7 @@ def list(
name: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ uuid: str | NotGiven = NOT_GIVEN,
was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -137,6 +138,8 @@ def list(
per_page: Number of results to display.
+ uuid: UUID of the tunnel.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -164,6 +167,7 @@ def list(
"name": name,
"page": page,
"per_page": per_page,
+ "uuid": uuid,
"was_active_at": was_active_at,
"was_inactive_at": was_inactive_at,
},
@@ -459,6 +463,7 @@ def list(
name: str | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ uuid: str | NotGiven = NOT_GIVEN,
was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -486,6 +491,8 @@ def list(
per_page: Number of results to display.
+ uuid: UUID of the tunnel.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -513,6 +520,7 @@ def list(
"name": name,
"page": page,
"per_page": per_page,
+ "uuid": uuid,
"was_active_at": was_active_at,
"was_inactive_at": was_inactive_at,
},
diff --git a/src/cloudflare/resources/web3/hostnames/hostnames.py b/src/cloudflare/resources/web3/hostnames/hostnames.py
index 368e8f12e606..5480f26d02b9 100644
--- a/src/cloudflare/resources/web3/hostnames/hostnames.py
+++ b/src/cloudflare/resources/web3/hostnames/hostnames.py
@@ -22,7 +22,13 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ....types.web3 import DistributedWebHostname, HostnameDeleteResponse, hostname_edit_params, hostname_create_params
+from ....types.web3 import (
+ DistributedWebHostname,
+ HostnameDeleteResponse,
+ hostname_edit_params,
+ hostname_create_params,
+ hostname_delete_params,
+)
from ...._base_client import (
AsyncPaginator,
make_request_options,
@@ -150,6 +156,7 @@ def delete(
identifier: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -179,6 +186,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return self._delete(
f"/zones/{zone_identifier}/web3/hostnames/{identifier}",
+ body=maybe_transform(body, hostname_delete_params.HostnameDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -401,6 +409,7 @@ async def delete(
identifier: str,
*,
zone_identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -430,6 +439,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return await self._delete(
f"/zones/{zone_identifier}/web3/hostnames/{identifier}",
+ body=await async_maybe_transform(body, hostname_delete_params.HostnameDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
index 5c3b41f76dd1..2dc1eb680122 100644
--- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
+++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
@@ -29,6 +29,7 @@
EntryDeleteResponse,
DistributedWebConfigContentListEntry,
entry_create_params,
+ entry_delete_params,
entry_update_params,
)
@@ -227,6 +228,7 @@ def delete(
*,
zone_identifier: str,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -262,6 +264,7 @@ def delete(
)
return self._delete(
f"/zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{content_list_entry_identifier}",
+ body=maybe_transform(body, entry_delete_params.EntryDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -518,6 +521,7 @@ async def delete(
*,
zone_identifier: str,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -553,6 +557,7 @@ async def delete(
)
return await self._delete(
f"/zones/{zone_identifier}/web3/hostnames/{identifier}/ipfs_universal_path/content_list/entries/{content_list_entry_identifier}",
+ body=await async_maybe_transform(body, entry_delete_params.EntryDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/workers/domains.py b/src/cloudflare/resources/workers/domains.py
index 6fbc1af6e8c5..46bb06e1977b 100644
--- a/src/cloudflare/resources/workers/domains.py
+++ b/src/cloudflare/resources/workers/domains.py
@@ -25,7 +25,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.workers import WorkersDomain, domain_list_params, domain_update_params
+from ...types.workers import WorkersDomain, domain_list_params, domain_delete_params, domain_update_params
__all__ = ["Domains", "AsyncDomains"]
@@ -164,6 +164,7 @@ def delete(
domain_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +193,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/workers/domains/{domain_id}",
+ body=maybe_transform(body, domain_delete_params.DomainDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -375,6 +377,7 @@ async def delete(
domain_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -403,6 +406,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/workers/domains/{domain_id}",
+ body=await async_maybe_transform(body, domain_delete_params.DomainDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/resources/workers/filters.py b/src/cloudflare/resources/workers/filters.py
index f9b067df2f0f..6efc1244bac1 100644
--- a/src/cloudflare/resources/workers/filters.py
+++ b/src/cloudflare/resources/workers/filters.py
@@ -30,6 +30,7 @@
FilterCreateResponse,
FilterDeleteResponse,
filter_create_params,
+ filter_delete_params,
filter_update_params,
)
@@ -187,6 +188,7 @@ def delete(
filter_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -216,6 +218,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `filter_id` but received {filter_id!r}")
return self._delete(
f"/zones/{zone_id}/workers/filters/{filter_id}",
+ body=maybe_transform(body, filter_delete_params.FilterDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -378,6 +381,7 @@ async def delete(
filter_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -407,6 +411,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `filter_id` but received {filter_id!r}")
return await self._delete(
f"/zones/{zone_id}/workers/filters/{filter_id}",
+ body=await async_maybe_transform(body, filter_delete_params.FilterDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/workers/routes.py b/src/cloudflare/resources/workers/routes.py
index 4b5b565e3f7e..95eca61d1605 100644
--- a/src/cloudflare/resources/workers/routes.py
+++ b/src/cloudflare/resources/workers/routes.py
@@ -30,6 +30,7 @@
RouteCreateResponse,
RouteDeleteResponse,
route_create_params,
+ route_delete_params,
route_update_params,
)
@@ -196,6 +197,7 @@ def delete(
route_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -227,6 +229,7 @@ def delete(
RouteDeleteResponse,
self._delete(
f"/zones/{zone_id}/workers/routes/{route_id}",
+ body=maybe_transform(body, route_delete_params.RouteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -445,6 +448,7 @@ async def delete(
route_id: str,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -476,6 +480,7 @@ async def delete(
RouteDeleteResponse,
await self._delete(
f"/zones/{zone_id}/workers/routes/{route_id}",
+ body=await async_maybe_transform(body, route_delete_params.RouteDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/workers/scripts/scripts.py b/src/cloudflare/resources/workers/scripts/scripts.py
index 80ae6ca12c32..5b4683287196 100644
--- a/src/cloudflare/resources/workers/scripts/scripts.py
+++ b/src/cloudflare/resources/workers/scripts/scripts.py
@@ -299,6 +299,7 @@ def delete(
script_name: str,
*,
account_id: str,
+ body: object,
force: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -335,6 +336,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}",
+ body=maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -595,6 +597,7 @@ async def delete(
script_name: str,
*,
account_id: str,
+ body: object,
force: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -631,6 +634,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}",
+ body=await async_maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/workers/scripts/tail.py b/src/cloudflare/resources/workers/scripts/tail.py
index b040ce28bc12..0ed295311179 100644
--- a/src/cloudflare/resources/workers/scripts/tail.py
+++ b/src/cloudflare/resources/workers/scripts/tail.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -19,7 +23,13 @@
from ...._base_client import (
make_request_options,
)
-from ....types.workers.scripts import TailGetResponse, TailCreateResponse, TailDeleteResponse
+from ....types.workers.scripts import (
+ TailGetResponse,
+ TailCreateResponse,
+ TailDeleteResponse,
+ tail_create_params,
+ tail_delete_params,
+)
__all__ = ["Tail", "AsyncTail"]
@@ -38,6 +48,7 @@ def create(
script_name: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -67,6 +78,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `script_name` but received {script_name!r}")
return self._post(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails",
+ body=maybe_transform(body, tail_create_params.TailCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -83,6 +95,7 @@ def delete(
*,
account_id: str,
script_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -118,6 +131,7 @@ def delete(
TailDeleteResponse,
self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
+ body=maybe_transform(body, tail_delete_params.TailDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -190,6 +204,7 @@ async def create(
script_name: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -219,6 +234,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `script_name` but received {script_name!r}")
return await self._post(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails",
+ body=await async_maybe_transform(body, tail_create_params.TailCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -235,6 +251,7 @@ async def delete(
*,
account_id: str,
script_name: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -270,6 +287,7 @@ async def delete(
TailDeleteResponse,
await self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
+ body=await async_maybe_transform(body, tail_delete_params.TailDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py
index 98e0600546df..989245d09574 100644
--- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py
+++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py
@@ -208,6 +208,7 @@ def delete(
*,
account_id: str,
dispatch_namespace: str,
+ body: object,
force: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -249,6 +250,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}",
+ body=maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -459,6 +461,7 @@ async def delete(
*,
account_id: str,
dispatch_namespace: str,
+ body: object,
force: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -500,6 +503,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}",
+ body=await async_maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/access/bookmarks.py b/src/cloudflare/resources/zero_trust/access/bookmarks.py
index 283c3ef36b06..87b2a1cfc5a6 100644
--- a/src/cloudflare/resources/zero_trust/access/bookmarks.py
+++ b/src/cloudflare/resources/zero_trust/access/bookmarks.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -21,7 +25,13 @@
AsyncPaginator,
make_request_options,
)
-from ....types.zero_trust.access import ZeroTrustBookmarks, BookmarkDeleteResponse
+from ....types.zero_trust.access import (
+ ZeroTrustBookmarks,
+ BookmarkDeleteResponse,
+ bookmark_create_params,
+ bookmark_delete_params,
+ bookmark_update_params,
+)
__all__ = ["Bookmarks", "AsyncBookmarks"]
@@ -40,6 +50,7 @@ def create(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -67,6 +78,7 @@ def create(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._post(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=maybe_transform(body, bookmark_create_params.BookmarkCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -82,6 +94,7 @@ def update(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -109,6 +122,7 @@ def update(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._put(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=maybe_transform(body, bookmark_update_params.BookmarkUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -158,6 +172,7 @@ def delete(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -185,6 +200,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._delete(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=maybe_transform(body, bookmark_delete_params.BookmarkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -252,6 +268,7 @@ async def create(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -279,6 +296,7 @@ async def create(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._post(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=await async_maybe_transform(body, bookmark_create_params.BookmarkCreateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -294,6 +312,7 @@ async def update(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -321,6 +340,7 @@ async def update(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._put(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=await async_maybe_transform(body, bookmark_update_params.BookmarkUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -370,6 +390,7 @@ async def delete(
uuid: str,
*,
identifier: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -397,6 +418,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._delete(
f"/accounts/{identifier}/access/bookmarks/{uuid}",
+ body=await async_maybe_transform(body, bookmark_delete_params.BookmarkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/devices/networks.py b/src/cloudflare/resources/zero_trust/devices/networks.py
index 0e1f3328fead..cab24a18c8c0 100644
--- a/src/cloudflare/resources/zero_trust/devices/networks.py
+++ b/src/cloudflare/resources/zero_trust/devices/networks.py
@@ -30,6 +30,7 @@
DeviceManagedNetworks,
NetworkDeleteResponse,
network_create_params,
+ network_delete_params,
network_update_params,
)
@@ -199,6 +200,7 @@ def delete(
network_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -227,6 +229,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return self._delete(
f"/accounts/{account_id}/devices/networks/{network_id}",
+ body=maybe_transform(body, network_delete_params.NetworkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -443,6 +446,7 @@ async def delete(
network_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -471,6 +475,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return await self._delete(
f"/accounts/{account_id}/devices/networks/{network_id}",
+ body=await async_maybe_transform(body, network_delete_params.NetworkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/policies.py b/src/cloudflare/resources/zero_trust/devices/policies/policies.py
index 9a84c73442bc..72b179eadb2d 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/policies.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/policies.py
@@ -62,6 +62,7 @@
DevicesDeviceSettingsPolicy,
policy_edit_params,
policy_create_params,
+ policy_delete_params,
)
__all__ = ["Policies", "AsyncPolicies"]
@@ -248,6 +249,7 @@ def delete(
policy_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -276,6 +278,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._delete(
f"/accounts/{account_id}/devices/policy/{policy_id}",
+ body=maybe_transform(body, policy_delete_params.PolicyDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -619,6 +622,7 @@ async def delete(
policy_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -647,6 +651,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._delete(
f"/accounts/{account_id}/devices/policy/{policy_id}",
+ body=await async_maybe_transform(body, policy_delete_params.PolicyDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
index 9bc0de480013..8128af8cd1c3 100644
--- a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
+++ b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
@@ -31,6 +31,7 @@
IntegrationDeleteResponse,
integration_edit_params,
integration_create_params,
+ integration_delete_params,
)
__all__ = ["Integrations", "AsyncIntegrations"]
@@ -143,6 +144,7 @@ def delete(
integration_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -172,6 +174,7 @@ def delete(
Optional[IntegrationDeleteResponse],
self._delete(
f"/accounts/{account_id}/devices/posture/integration/{integration_id}",
+ body=maybe_transform(body, integration_delete_params.IntegrationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -400,6 +403,7 @@ async def delete(
integration_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -429,6 +433,7 @@ async def delete(
Optional[IntegrationDeleteResponse],
await self._delete(
f"/accounts/{account_id}/devices/posture/integration/{integration_id}",
+ body=await async_maybe_transform(body, integration_delete_params.IntegrationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/devices/posture/posture.py b/src/cloudflare/resources/zero_trust/devices/posture/posture.py
index 93c970a7bbce..88ae90ec57b4 100644
--- a/src/cloudflare/resources/zero_trust/devices/posture/posture.py
+++ b/src/cloudflare/resources/zero_trust/devices/posture/posture.py
@@ -38,6 +38,7 @@
DevicePostureRules,
PostureDeleteResponse,
posture_create_params,
+ posture_delete_params,
posture_update_params,
)
@@ -285,6 +286,7 @@ def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -312,6 +314,7 @@ def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
f"/accounts/{account_id}/devices/posture/{rule_id}",
+ body=maybe_transform(body, posture_delete_params.PostureDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -606,6 +609,7 @@ async def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -633,6 +637,7 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
f"/accounts/{account_id}/devices/posture/{rule_id}",
+ body=await async_maybe_transform(body, posture_delete_params.PostureDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py
index 4c5e56ba7839..e1b056229ffb 100644
--- a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py
+++ b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py
@@ -7,6 +7,10 @@
import httpx
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ....._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ....._compat import cached_property
from ....._resource import SyncAPIResource, AsyncAPIResource
from ....._response import (
@@ -20,7 +24,7 @@
make_request_options,
)
from .....types.zero_trust.dlp import DLPDataset
-from .....types.zero_trust.dlp.datasets import DLPDatasetNewVersion
+from .....types.zero_trust.dlp.datasets import DLPDatasetNewVersion, upload_edit_params
__all__ = ["Upload", "AsyncUpload"]
@@ -80,6 +84,7 @@ def edit(
*,
account_id: str,
dataset_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -105,6 +110,7 @@ def edit(
raise ValueError(f"Expected a non-empty value for `dataset_id` but received {dataset_id!r}")
return self._post(
f"/accounts/{account_id}/dlp/datasets/{dataset_id}/upload/{version}",
+ body=maybe_transform(body, upload_edit_params.UploadEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -171,6 +177,7 @@ async def edit(
*,
account_id: str,
dataset_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -196,6 +203,7 @@ async def edit(
raise ValueError(f"Expected a non-empty value for `dataset_id` but received {dataset_id!r}")
return await self._post(
f"/accounts/{account_id}/dlp/datasets/{dataset_id}/upload/{version}",
+ body=await async_maybe_transform(body, upload_edit_params.UploadEditParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
index 4a68854a3e8b..ab0acfa2d3ab 100644
--- a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
+++ b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
@@ -28,6 +28,7 @@
CustomCreateResponse,
CustomDeleteResponse,
custom_create_params,
+ custom_delete_params,
custom_update_params,
)
@@ -166,6 +167,7 @@ def delete(
profile_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -197,6 +199,7 @@ def delete(
CustomDeleteResponse,
self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
+ body=maybe_transform(body, custom_delete_params.CustomDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -387,6 +390,7 @@ async def delete(
profile_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -418,6 +422,7 @@ async def delete(
CustomDeleteResponse,
await self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
+ body=await async_maybe_transform(body, custom_delete_params.CustomDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
index 3c8587631ccd..10ba09b03e98 100644
--- a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
+++ b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
@@ -40,6 +40,7 @@
ZeroTrustGatewayLists,
list_edit_params,
list_create_params,
+ list_delete_params,
list_update_params,
)
@@ -211,6 +212,7 @@ def delete(
list_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -240,6 +242,7 @@ def delete(
ListDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/lists/{list_id}",
+ body=maybe_transform(body, list_delete_params.ListDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -516,6 +519,7 @@ async def delete(
list_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -545,6 +549,7 @@ async def delete(
ListDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/lists/{list_id}",
+ body=await async_maybe_transform(body, list_delete_params.ListDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/gateway/locations.py b/src/cloudflare/resources/zero_trust/gateway/locations.py
index f07956372046..125f8152d999 100644
--- a/src/cloudflare/resources/zero_trust/gateway/locations.py
+++ b/src/cloudflare/resources/zero_trust/gateway/locations.py
@@ -29,6 +29,7 @@
LocationDeleteResponse,
ZeroTrustGatewayLocations,
location_create_params,
+ location_delete_params,
location_update_params,
)
@@ -202,6 +203,7 @@ def delete(
location_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -229,6 +231,7 @@ def delete(
LocationDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/locations/{location_id}",
+ body=maybe_transform(body, location_delete_params.LocationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -450,6 +453,7 @@ async def delete(
location_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -477,6 +481,7 @@ async def delete(
LocationDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/locations/{location_id}",
+ body=await async_maybe_transform(body, location_delete_params.LocationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
index f9d72d45d45f..f6206d03b6bb 100644
--- a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
+++ b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
@@ -30,6 +30,7 @@
ZeroTrustGatewayProxyEndpoints,
proxy_endpoint_edit_params,
proxy_endpoint_create_params,
+ proxy_endpoint_delete_params,
)
__all__ = ["ProxyEndpoints", "AsyncProxyEndpoints"]
@@ -50,7 +51,6 @@ def create(
account_id: str,
ips: List[str],
name: str,
- subdomain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -66,8 +66,6 @@ def create(
name: The name of the proxy endpoint.
- subdomain: The subdomain to be used as the destination in the proxy client.
-
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -84,7 +82,6 @@ def create(
{
"ips": ips,
"name": name,
- "subdomain": subdomain,
},
proxy_endpoint_create_params.ProxyEndpointCreateParams,
),
@@ -137,6 +134,7 @@ def delete(
proxy_endpoint_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -164,6 +162,7 @@ def delete(
ProxyEndpointDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
+ body=maybe_transform(body, proxy_endpoint_delete_params.ProxyEndpointDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -184,7 +183,6 @@ def edit(
account_id: str,
ips: List[str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
- subdomain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -200,8 +198,6 @@ def edit(
name: The name of the proxy endpoint.
- subdomain: The subdomain to be used as the destination in the proxy client.
-
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -220,7 +216,6 @@ def edit(
{
"ips": ips,
"name": name,
- "subdomain": subdomain,
},
proxy_endpoint_edit_params.ProxyEndpointEditParams,
),
@@ -290,7 +285,6 @@ async def create(
account_id: str,
ips: List[str],
name: str,
- subdomain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -306,8 +300,6 @@ async def create(
name: The name of the proxy endpoint.
- subdomain: The subdomain to be used as the destination in the proxy client.
-
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -324,7 +316,6 @@ async def create(
{
"ips": ips,
"name": name,
- "subdomain": subdomain,
},
proxy_endpoint_create_params.ProxyEndpointCreateParams,
),
@@ -377,6 +368,7 @@ async def delete(
proxy_endpoint_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -404,6 +396,7 @@ async def delete(
ProxyEndpointDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
+ body=await async_maybe_transform(body, proxy_endpoint_delete_params.ProxyEndpointDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -424,7 +417,6 @@ async def edit(
account_id: str,
ips: List[str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
- subdomain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -440,8 +432,6 @@ async def edit(
name: The name of the proxy endpoint.
- subdomain: The subdomain to be used as the destination in the proxy client.
-
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -460,7 +450,6 @@ async def edit(
{
"ips": ips,
"name": name,
- "subdomain": subdomain,
},
proxy_endpoint_edit_params.ProxyEndpointEditParams,
),
diff --git a/src/cloudflare/resources/zero_trust/gateway/rules.py b/src/cloudflare/resources/zero_trust/gateway/rules.py
index 9330728e9ac8..236541d21bfb 100644
--- a/src/cloudflare/resources/zero_trust/gateway/rules.py
+++ b/src/cloudflare/resources/zero_trust/gateway/rules.py
@@ -30,6 +30,7 @@
RuleDeleteResponse,
ZeroTrustGatewayRules,
rule_create_params,
+ rule_delete_params,
rule_update_params,
)
@@ -64,6 +65,7 @@ def create(
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
],
name: str,
description: str | NotGiven = NOT_GIVEN,
@@ -171,6 +173,7 @@ def update(
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
],
name: str,
description: str | NotGiven = NOT_GIVEN,
@@ -301,6 +304,7 @@ def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -330,6 +334,7 @@ def delete(
RuleDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/rules/{rule_id}",
+ body=maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -414,6 +419,7 @@ async def create(
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
],
name: str,
description: str | NotGiven = NOT_GIVEN,
@@ -521,6 +527,7 @@ async def update(
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
],
name: str,
description: str | NotGiven = NOT_GIVEN,
@@ -651,6 +658,7 @@ async def delete(
rule_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -680,6 +688,7 @@ async def delete(
RuleDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/rules/{rule_id}",
+ body=await async_maybe_transform(body, rule_delete_params.RuleDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/networks/routes/networks.py b/src/cloudflare/resources/zero_trust/networks/routes/networks.py
index 452d91ff52bb..7bb1e7745886 100644
--- a/src/cloudflare/resources/zero_trust/networks/routes/networks.py
+++ b/src/cloudflare/resources/zero_trust/networks/routes/networks.py
@@ -106,6 +106,8 @@ def delete(
*,
account_id: str,
tun_type: Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"] | NotGiven = NOT_GIVEN,
+ tunnel_id: str | NotGiven = NOT_GIVEN,
+ virtual_network_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -130,6 +132,10 @@ def delete(
tun_type: The type of tunnel.
+ tunnel_id: UUID of the tunnel.
+
+ virtual_network_id: UUID of the virtual network.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -149,7 +155,14 @@ def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- query=maybe_transform({"tun_type": tun_type}, network_delete_params.NetworkDeleteParams),
+ query=maybe_transform(
+ {
+ "tun_type": tun_type,
+ "tunnel_id": tunnel_id,
+ "virtual_network_id": virtual_network_id,
+ },
+ network_delete_params.NetworkDeleteParams,
+ ),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[TunnelRoute], ResultWrapper[TunnelRoute]),
@@ -278,6 +291,8 @@ async def delete(
*,
account_id: str,
tun_type: Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"] | NotGiven = NOT_GIVEN,
+ tunnel_id: str | NotGiven = NOT_GIVEN,
+ virtual_network_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -302,6 +317,10 @@ async def delete(
tun_type: The type of tunnel.
+ tunnel_id: UUID of the tunnel.
+
+ virtual_network_id: UUID of the virtual network.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -321,7 +340,14 @@ async def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- query=await async_maybe_transform({"tun_type": tun_type}, network_delete_params.NetworkDeleteParams),
+ query=await async_maybe_transform(
+ {
+ "tun_type": tun_type,
+ "tunnel_id": tunnel_id,
+ "virtual_network_id": virtual_network_id,
+ },
+ network_delete_params.NetworkDeleteParams,
+ ),
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(Type[TunnelRoute], ResultWrapper[TunnelRoute]),
diff --git a/src/cloudflare/resources/zero_trust/networks/routes/routes.py b/src/cloudflare/resources/zero_trust/networks/routes/routes.py
index 568feaee4c90..c45d9d4d1bf2 100644
--- a/src/cloudflare/resources/zero_trust/networks/routes/routes.py
+++ b/src/cloudflare/resources/zero_trust/networks/routes/routes.py
@@ -139,6 +139,7 @@ def list(
network_superset: object | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ route_id: str | NotGiven = NOT_GIVEN,
tun_types: str | NotGiven = NOT_GIVEN,
tunnel_id: object | NotGiven = NOT_GIVEN,
virtual_network_id: object | NotGiven = NOT_GIVEN,
@@ -171,6 +172,8 @@ def list(
per_page: Number of results to display.
+ route_id: UUID of the route.
+
tun_types: The types of tunnels to filter separated by a comma.
tunnel_id: UUID of the Cloudflare Tunnel serving the route.
@@ -206,6 +209,7 @@ def list(
"network_superset": network_superset,
"page": page,
"per_page": per_page,
+ "route_id": route_id,
"tun_types": tun_types,
"tunnel_id": tunnel_id,
"virtual_network_id": virtual_network_id,
@@ -420,6 +424,7 @@ def list(
network_superset: object | NotGiven = NOT_GIVEN,
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
+ route_id: str | NotGiven = NOT_GIVEN,
tun_types: str | NotGiven = NOT_GIVEN,
tunnel_id: object | NotGiven = NOT_GIVEN,
virtual_network_id: object | NotGiven = NOT_GIVEN,
@@ -452,6 +457,8 @@ def list(
per_page: Number of results to display.
+ route_id: UUID of the route.
+
tun_types: The types of tunnels to filter separated by a comma.
tunnel_id: UUID of the Cloudflare Tunnel serving the route.
@@ -487,6 +494,7 @@ def list(
"network_superset": network_superset,
"page": page,
"per_page": per_page,
+ "route_id": route_id,
"tun_types": tun_types,
"tunnel_id": tunnel_id,
"virtual_network_id": virtual_network_id,
diff --git a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
index 0144eed7a108..52587dd582e2 100644
--- a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
+++ b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
@@ -33,6 +33,7 @@
virtual_network_edit_params,
virtual_network_list_params,
virtual_network_create_params,
+ virtual_network_delete_params,
)
__all__ = ["VirtualNetworks", "AsyncVirtualNetworks"]
@@ -115,6 +116,7 @@ def list(
is_default: object | NotGiven = NOT_GIVEN,
is_deleted: object | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
+ vnet_id: str | NotGiven = NOT_GIVEN,
vnet_name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -137,6 +139,8 @@ def list(
name: A user-friendly name for the virtual network.
+ vnet_id: UUID of the virtual network.
+
vnet_name: A user-friendly name for the virtual network.
extra_headers: Send extra headers
@@ -162,6 +166,7 @@ def list(
"is_default": is_default,
"is_deleted": is_deleted,
"name": name,
+ "vnet_id": vnet_id,
"vnet_name": vnet_name,
},
virtual_network_list_params.VirtualNetworkListParams,
@@ -175,6 +180,7 @@ def delete(
virtual_network_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -206,6 +212,7 @@ def delete(
VirtualNetworkDeleteResponse,
self._delete(
f"/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}",
+ body=maybe_transform(body, virtual_network_delete_params.VirtualNetworkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -363,6 +370,7 @@ def list(
is_default: object | NotGiven = NOT_GIVEN,
is_deleted: object | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
+ vnet_id: str | NotGiven = NOT_GIVEN,
vnet_name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -385,6 +393,8 @@ def list(
name: A user-friendly name for the virtual network.
+ vnet_id: UUID of the virtual network.
+
vnet_name: A user-friendly name for the virtual network.
extra_headers: Send extra headers
@@ -410,6 +420,7 @@ def list(
"is_default": is_default,
"is_deleted": is_deleted,
"name": name,
+ "vnet_id": vnet_id,
"vnet_name": vnet_name,
},
virtual_network_list_params.VirtualNetworkListParams,
@@ -423,6 +434,7 @@ async def delete(
virtual_network_id: str,
*,
account_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -454,6 +466,7 @@ async def delete(
VirtualNetworkDeleteResponse,
await self._delete(
f"/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}",
+ body=await async_maybe_transform(body, virtual_network_delete_params.VirtualNetworkDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
index fccb00b7e0f2..84b79f0673e4 100644
--- a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
+++ b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
@@ -173,6 +173,7 @@ def list(
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
tun_types: str | NotGiven = NOT_GIVEN,
+ uuid: str | NotGiven = NOT_GIVEN,
was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -202,6 +203,8 @@ def list(
tun_types: The types of tunnels to filter separated by a comma.
+ uuid: UUID of the tunnel.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -230,6 +233,7 @@ def list(
"page": page,
"per_page": per_page,
"tun_types": tun_types,
+ "uuid": uuid,
"was_active_at": was_active_at,
"was_inactive_at": was_inactive_at,
},
@@ -487,6 +491,7 @@ def list(
page: float | NotGiven = NOT_GIVEN,
per_page: float | NotGiven = NOT_GIVEN,
tun_types: str | NotGiven = NOT_GIVEN,
+ uuid: str | NotGiven = NOT_GIVEN,
was_active_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
was_inactive_at: Union[str, datetime] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -516,6 +521,8 @@ def list(
tun_types: The types of tunnels to filter separated by a comma.
+ uuid: UUID of the tunnel.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -544,6 +551,7 @@ def list(
"page": page,
"per_page": per_page,
"tun_types": tun_types,
+ "uuid": uuid,
"was_active_at": was_active_at,
"was_inactive_at": was_inactive_at,
},
diff --git a/src/cloudflare/resources/zones/workers/script.py b/src/cloudflare/resources/zones/workers/script.py
index f69f668ea481..129037fe9b97 100644
--- a/src/cloudflare/resources/zones/workers/script.py
+++ b/src/cloudflare/resources/zones/workers/script.py
@@ -7,6 +7,10 @@
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
+from ...._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
@@ -27,7 +31,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.zones.workers import ScriptUpdateResponse
+from ....types.zones.workers import ScriptUpdateResponse, script_delete_params, script_update_params
__all__ = ["Script", "AsyncScript"]
@@ -45,6 +49,7 @@ def update(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -72,6 +77,7 @@ def update(
ScriptUpdateResponse,
self._put(
f"/zones/{zone_id}/workers/script",
+ body=maybe_transform(body, script_update_params.ScriptUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -89,6 +95,7 @@ def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -116,6 +123,7 @@ def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/zones/{zone_id}/workers/script",
+ body=maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
@@ -174,6 +182,7 @@ async def update(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -201,6 +210,7 @@ async def update(
ScriptUpdateResponse,
await self._put(
f"/zones/{zone_id}/workers/script",
+ body=await async_maybe_transform(body, script_update_params.ScriptUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -218,6 +228,7 @@ async def delete(
self,
*,
zone_id: str,
+ body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -245,6 +256,7 @@ async def delete(
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/zones/{zone_id}/workers/script",
+ body=await async_maybe_transform(body, script_delete_params.ScriptDeleteParams),
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py
index 5ce6fda8715c..88a2f857e448 100644
--- a/src/cloudflare/types/__init__.py
+++ b/src/cloudflare/types/__init__.py
@@ -44,18 +44,23 @@
from .available_rate_plan import AvailableRatePlan as AvailableRatePlan
from .page_shield_setting import PageShieldSetting as PageShieldSetting
from .queue_create_params import QueueCreateParams as QueueCreateParams
+from .queue_delete_params import QueueDeleteParams as QueueDeleteParams
from .queue_list_response import QueueListResponse as QueueListResponse
from .queue_update_params import QueueUpdateParams as QueueUpdateParams
from .speed_delete_params import SpeedDeleteParams as SpeedDeleteParams
from .account_get_response import AccountGetResponse as AccountGetResponse
from .cache_purge_response import CachePurgeResponse as CachePurgeResponse
+from .dnssec_delete_params import DNSSECDeleteParams as DNSSECDeleteParams
from .filter_create_params import FilterCreateParams as FilterCreateParams
+from .filter_delete_params import FilterDeleteParams as FilterDeleteParams
from .filter_update_params import FilterUpdateParams as FilterUpdateParams
from .observatory_schedule import ObservatorySchedule as ObservatorySchedule
from .pagerule_edit_params import PageruleEditParams as PageruleEditParams
from .pagerule_list_params import PageruleListParams as PageruleListParams
from .pcap_create_response import PCAPCreateResponse as PCAPCreateResponse
from .ruleset_get_response import RulesetGetResponse as RulesetGetResponse
+from .stream_create_params import StreamCreateParams as StreamCreateParams
+from .stream_delete_params import StreamDeleteParams as StreamDeleteParams
from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse
from .account_update_params import AccountUpdateParams as AccountUpdateParams
from .audit_log_list_params import AuditLogListParams as AuditLogListParams
@@ -74,6 +79,7 @@
from .filter_create_response import FilterCreateResponse as FilterCreateResponse
from .membership_list_params import MembershipListParams as MembershipListParams
from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams
+from .pagerule_delete_params import PageruleDeleteParams as PageruleDeleteParams
from .pagerule_edit_response import PageruleEditResponse as PageruleEditResponse
from .pagerule_list_response import PageruleListResponse as PageruleListResponse
from .pagerule_update_params import PageruleUpdateParams as PageruleUpdateParams
@@ -91,16 +97,19 @@
from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse
from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse
from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams
+from .membership_delete_params import MembershipDeleteParams as MembershipDeleteParams
from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams
from .pagerule_create_response import PageruleCreateResponse as PageruleCreateResponse
from .pagerule_delete_response import PageruleDeleteResponse as PageruleDeleteResponse
from .pagerule_update_response import PageruleUpdateResponse as PageruleUpdateResponse
from .rate_limit_create_params import RateLimitCreateParams as RateLimitCreateParams
+from .rate_limit_delete_params import RateLimitDeleteParams as RateLimitDeleteParams
from .rate_limit_edit_response import RateLimitEditResponse as RateLimitEditResponse
from .rate_limit_list_response import RateLimitListResponse as RateLimitListResponse
from .speed_trends_list_params import SpeedTrendsListParams as SpeedTrendsListParams
from .waiting_room_edit_params import WaitingRoomEditParams as WaitingRoomEditParams
from .healthcheck_create_params import HealthcheckCreateParams as HealthcheckCreateParams
+from .healthcheck_delete_params import HealthcheckDeleteParams as HealthcheckDeleteParams
from .healthcheck_update_params import HealthcheckUpdateParams as HealthcheckUpdateParams
from .intel_phishing_url_submit import IntelPhishingURLSubmit as IntelPhishingURLSubmit
from .load_balancer_edit_params import LoadBalancerEditParams as LoadBalancerEditParams
@@ -115,22 +124,27 @@
from .rate_limit_create_response import RateLimitCreateResponse as RateLimitCreateResponse
from .rate_limit_delete_response import RateLimitDeleteResponse as RateLimitDeleteResponse
from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams
+from .subscription_delete_params import SubscriptionDeleteParams as SubscriptionDeleteParams
from .subscription_list_response import SubscriptionListResponse as SubscriptionListResponse
from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams
from .waiting_room_create_params import WaitingRoomCreateParams as WaitingRoomCreateParams
+from .waiting_room_delete_params import WaitingRoomDeleteParams as WaitingRoomDeleteParams
from .waiting_room_update_params import WaitingRoomUpdateParams as WaitingRoomUpdateParams
from .warp_connector_edit_params import WARPConnectorEditParams as WARPConnectorEditParams
from .warp_connector_list_params import WARPConnectorListParams as WARPConnectorListParams
from .bot_management_get_response import BotManagementGetResponse as BotManagementGetResponse
from .custom_hostname_edit_params import CustomHostnameEditParams as CustomHostnameEditParams
from .custom_hostname_list_params import CustomHostnameListParams as CustomHostnameListParams
+from .email_routing_enable_params import EmailRoutingEnableParams as EmailRoutingEnableParams
from .healthcheck_delete_response import HealthcheckDeleteResponse as HealthcheckDeleteResponse
from .load_balancer_create_params import LoadBalancerCreateParams as LoadBalancerCreateParams
+from .load_balancer_delete_params import LoadBalancerDeleteParams as LoadBalancerDeleteParams
from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams
from .page_shield_update_response import PageShieldUpdateResponse as PageShieldUpdateResponse
from .warp_connector_get_response import WARPConnectorGetResponse as WARPConnectorGetResponse
from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams
from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse
+from .email_routing_disable_params import EmailRoutingDisableParams as EmailRoutingDisableParams
from .keyless_certificate_hostname import KeylessCertificateHostname as KeylessCertificateHostname
from .managed_header_edit_response import ManagedHeaderEditResponse as ManagedHeaderEditResponse
from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse
@@ -143,6 +157,7 @@
from .warp_connector_edit_response import WARPConnectorEditResponse as WARPConnectorEditResponse
from .warp_connector_list_response import WARPConnectorListResponse as WARPConnectorListResponse
from .custom_hostname_create_params import CustomHostnameCreateParams as CustomHostnameCreateParams
+from .custom_hostname_delete_params import CustomHostnameDeleteParams as CustomHostnameDeleteParams
from .custom_hostname_edit_response import CustomHostnameEditResponse as CustomHostnameEditResponse
from .custom_hostname_list_response import CustomHostnameListResponse as CustomHostnameListResponse
from .email_routing_enable_response import EmailRoutingEnableResponse as EmailRoutingEnableResponse
@@ -156,6 +171,7 @@
from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse
from .email_routing_disable_response import EmailRoutingDisableResponse as EmailRoutingDisableResponse
from .mtls_certificate_create_params import MTLSCertificateCreateParams as MTLSCertificateCreateParams
+from .mtls_certificate_delete_params import MTLSCertificateDeleteParams as MTLSCertificateDeleteParams
from .url_normalization_get_response import URLNormalizationGetResponse as URLNormalizationGetResponse
from .warp_connector_create_response import WARPConnectorCreateResponse as WARPConnectorCreateResponse
from .warp_connector_delete_response import WARPConnectorDeleteResponse as WARPConnectorDeleteResponse
@@ -163,23 +179,30 @@
from .custom_hostname_create_response import CustomHostnameCreateResponse as CustomHostnameCreateResponse
from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse
from .custom_nameserver_create_params import CustomNameserverCreateParams as CustomNameserverCreateParams
+from .custom_nameserver_delete_params import CustomNameserverDeleteParams as CustomNameserverDeleteParams
+from .custom_nameserver_verify_params import CustomNameserverVerifyParams as CustomNameserverVerifyParams
from .keyless_certificate_edit_params import KeylessCertificateEditParams as KeylessCertificateEditParams
from .url_normalization_update_params import URLNormalizationUpdateParams as URLNormalizationUpdateParams
from .brand_protection_url_info_params import BrandProtectionURLInfoParams as BrandProtectionURLInfoParams
from .client_certificate_create_params import ClientCertificateCreateParams as ClientCertificateCreateParams
from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams
+from .custom_certificate_delete_params import CustomCertificateDeleteParams as CustomCertificateDeleteParams
from .custom_certificate_edit_response import CustomCertificateEditResponse as CustomCertificateEditResponse
from .custom_nameserver_delete_response import CustomNameserverDeleteResponse as CustomNameserverDeleteResponse
from .custom_nameserver_verify_response import CustomNameserverVerifyResponse as CustomNameserverVerifyResponse
from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams
+from .keyless_certificate_delete_params import KeylessCertificateDeleteParams as KeylessCertificateDeleteParams
+from .origin_ca_certificate_list_params import OriginCACertificateListParams as OriginCACertificateListParams
from .url_normalization_update_response import URLNormalizationUpdateResponse as URLNormalizationUpdateResponse
from .custom_certificate_create_response import CustomCertificateCreateResponse as CustomCertificateCreateResponse
from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse
from .origin_ca_certificate_get_response import OriginCACertificateGetResponse as OriginCACertificateGetResponse
from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse
from .origin_ca_certificate_create_params import OriginCACertificateCreateParams as OriginCACertificateCreateParams
+from .origin_ca_certificate_delete_params import OriginCACertificateDeleteParams as OriginCACertificateDeleteParams
from .origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse as OriginTLSClientAuthGetResponse
from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams
+from .origin_tls_client_auth_delete_params import OriginTLSClientAuthDeleteParams as OriginTLSClientAuthDeleteParams
from .origin_tls_client_auth_list_response import OriginTLSClientAuthListResponse as OriginTLSClientAuthListResponse
from .origin_ca_certificate_create_response import (
OriginCACertificateCreateResponse as OriginCACertificateCreateResponse,
diff --git a/src/cloudflare/types/account_list_params.py b/src/cloudflare/types/account_list_params.py
index 31a40e5cc1d3..427c758c083b 100644
--- a/src/cloudflare/types/account_list_params.py
+++ b/src/cloudflare/types/account_list_params.py
@@ -11,6 +11,9 @@ class AccountListParams(TypedDict, total=False):
direction: Literal["asc", "desc"]
"""Direction to order results."""
+ name: str
+ """Name of the account."""
+
page: float
"""Page number of paginated results."""
diff --git a/src/cloudflare/types/accounts/__init__.py b/src/cloudflare/types/accounts/__init__.py
index dd2b4344ad6a..4c5a9be706ad 100644
--- a/src/cloudflare/types/accounts/__init__.py
+++ b/src/cloudflare/types/accounts/__init__.py
@@ -12,6 +12,7 @@
from .member_list_params import MemberListParams as MemberListParams
from .role_list_response import RoleListResponse as RoleListResponse
from .member_create_params import MemberCreateParams as MemberCreateParams
+from .member_delete_params import MemberDeleteParams as MemberDeleteParams
from .member_list_response import MemberListResponse as MemberListResponse
from .member_update_params import MemberUpdateParams as MemberUpdateParams
from .member_delete_response import MemberDeleteResponse as MemberDeleteResponse
diff --git a/src/cloudflare/types/accounts/member_delete_params.py b/src/cloudflare/types/accounts/member_delete_params.py
new file mode 100644
index 000000000000..c71acd55512c
--- /dev/null
+++ b/src/cloudflare/types/accounts/member_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["MemberDeleteParams"]
+
+
+class MemberDeleteParams(TypedDict, total=False):
+ account_id: Required[object]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/__init__.py b/src/cloudflare/types/addressing/__init__.py
index ede0ad000f2d..e3f50f14a637 100644
--- a/src/cloudflare/types/addressing/__init__.py
+++ b/src/cloudflare/types/addressing/__init__.py
@@ -4,6 +4,7 @@
from .prefix_edit_params import PrefixEditParams as PrefixEditParams
from .prefix_create_params import PrefixCreateParams as PrefixCreateParams
+from .prefix_delete_params import PrefixDeleteParams as PrefixDeleteParams
from .service_list_response import ServiceListResponse as ServiceListResponse
from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse
from .address_map_edit_params import AddressMapEditParams as AddressMapEditParams
@@ -11,6 +12,7 @@
from .address_map_get_response import AddressMapGetResponse as AddressMapGetResponse
from .addressing_ipam_prefixes import AddressingIpamPrefixes as AddressingIpamPrefixes
from .address_map_create_params import AddressMapCreateParams as AddressMapCreateParams
+from .address_map_delete_params import AddressMapDeleteParams as AddressMapDeleteParams
from .loa_document_create_params import LOADocumentCreateParams as LOADocumentCreateParams
from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse
from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse
diff --git a/src/cloudflare/types/addressing/address_map_delete_params.py b/src/cloudflare/types/addressing/address_map_delete_params.py
new file mode 100644
index 000000000000..1e7b18b03ecd
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_map_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AddressMapDeleteParams"]
+
+
+class AddressMapDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/__init__.py b/src/cloudflare/types/addressing/address_maps/__init__.py
index ad44bc05d938..3ec4e9eda255 100644
--- a/src/cloudflare/types/addressing/address_maps/__init__.py
+++ b/src/cloudflare/types/addressing/address_maps/__init__.py
@@ -2,9 +2,15 @@
from __future__ import annotations
+from .ip_delete_params import IPDeleteParams as IPDeleteParams
+from .ip_update_params import IPUpdateParams as IPUpdateParams
from .ip_delete_response import IPDeleteResponse as IPDeleteResponse
from .ip_update_response import IPUpdateResponse as IPUpdateResponse
+from .zone_delete_params import ZoneDeleteParams as ZoneDeleteParams
+from .zone_update_params import ZoneUpdateParams as ZoneUpdateParams
from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse
from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse
+from .account_delete_params import AccountDeleteParams as AccountDeleteParams
+from .account_update_params import AccountUpdateParams as AccountUpdateParams
from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse
from .account_update_response import AccountUpdateResponse as AccountUpdateResponse
diff --git a/src/cloudflare/types/addressing/address_maps/account_delete_params.py b/src/cloudflare/types/addressing/address_maps/account_delete_params.py
new file mode 100644
index 000000000000..7b03287d63cb
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/account_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AccountDeleteParams"]
+
+
+class AccountDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/account_update_params.py b/src/cloudflare/types/addressing/address_maps/account_update_params.py
new file mode 100644
index 000000000000..f06483675c1d
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/account_update_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AccountUpdateParams"]
+
+
+class AccountUpdateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_delete_params.py b/src/cloudflare/types/addressing/address_maps/ip_delete_params.py
new file mode 100644
index 000000000000..ee8bd8d27521
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/ip_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IPDeleteParams"]
+
+
+class IPDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ address_map_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_params.py b/src/cloudflare/types/addressing/address_maps/ip_update_params.py
new file mode 100644
index 000000000000..41cd04d50b10
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/ip_update_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IPUpdateParams"]
+
+
+class IPUpdateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ address_map_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/zone_delete_params.py b/src/cloudflare/types/addressing/address_maps/zone_delete_params.py
new file mode 100644
index 000000000000..36219801986f
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/zone_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ZoneDeleteParams"]
+
+
+class ZoneDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_params.py b/src/cloudflare/types/addressing/address_maps/zone_update_params.py
new file mode 100644
index 000000000000..3cd7060a7ed6
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/zone_update_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ZoneUpdateParams"]
+
+
+class ZoneUpdateParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/prefix_delete_params.py b/src/cloudflare/types/addressing/prefix_delete_params.py
new file mode 100644
index 000000000000..b8f426f6d431
--- /dev/null
+++ b/src/cloudflare/types/addressing/prefix_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PrefixDeleteParams"]
+
+
+class PrefixDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/addressing/prefixes/__init__.py b/src/cloudflare/types/addressing/prefixes/__init__.py
index 9239415391d5..085cfcba5b22 100644
--- a/src/cloudflare/types/addressing/prefixes/__init__.py
+++ b/src/cloudflare/types/addressing/prefixes/__init__.py
@@ -3,5 +3,6 @@
from __future__ import annotations
from .delegation_create_params import DelegationCreateParams as DelegationCreateParams
+from .delegation_delete_params import DelegationDeleteParams as DelegationDeleteParams
from .delegation_delete_response import DelegationDeleteResponse as DelegationDeleteResponse
from .addressing_ipam_delegations import AddressingIpamDelegations as AddressingIpamDelegations
diff --git a/src/cloudflare/types/addressing/prefixes/delegation_delete_params.py b/src/cloudflare/types/addressing/prefixes/delegation_delete_params.py
new file mode 100644
index 000000000000..f55e73923048
--- /dev/null
+++ b/src/cloudflare/types/addressing/prefixes/delegation_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DelegationDeleteParams"]
+
+
+class DelegationDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ prefix_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/cache/__init__.py b/src/cloudflare/types/cache/__init__.py
index c5a4aa5c6ae9..542221aec6bb 100644
--- a/src/cloudflare/types/cache/__init__.py
+++ b/src/cloudflare/types/cache/__init__.py
@@ -5,14 +5,17 @@
from .cache_variants import CacheVariants as CacheVariants
from .variant_edit_params import VariantEditParams as VariantEditParams
from .variant_get_response import VariantGetResponse as VariantGetResponse
+from .variant_delete_params import VariantDeleteParams as VariantDeleteParams
from .variant_edit_response import VariantEditResponse as VariantEditResponse
from .cache_reserve_edit_params import CacheReserveEditParams as CacheReserveEditParams
+from .cache_reserve_clear_params import CacheReserveClearParams as CacheReserveClearParams
from .cache_reserve_get_response import CacheReserveGetResponse as CacheReserveGetResponse
from .cache_reserve_edit_response import CacheReserveEditResponse as CacheReserveEditResponse
from .cache_reserve_clear_response import CacheReserveClearResponse as CacheReserveClearResponse
from .cache_reserve_status_response import CacheReserveStatusResponse as CacheReserveStatusResponse
from .smart_tiered_cache_edit_params import SmartTieredCacheEditParams as SmartTieredCacheEditParams
from .smart_tiered_cache_get_response import SmartTieredCacheGetResponse as SmartTieredCacheGetResponse
+from .smart_tiered_cache_delete_params import SmartTieredCacheDeleteParams as SmartTieredCacheDeleteParams
from .smart_tiered_cache_edit_response import SmartTieredCacheEditResponse as SmartTieredCacheEditResponse
from .regional_tiered_cache_edit_params import RegionalTieredCacheEditParams as RegionalTieredCacheEditParams
from .regional_tiered_cache_get_response import RegionalTieredCacheGetResponse as RegionalTieredCacheGetResponse
diff --git a/src/cloudflare/types/cache/cache_reserve_clear_params.py b/src/cloudflare/types/cache/cache_reserve_clear_params.py
new file mode 100644
index 000000000000..72908b2031ff
--- /dev/null
+++ b/src/cloudflare/types/cache/cache_reserve_clear_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CacheReserveClearParams"]
+
+
+class CacheReserveClearParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/cache/smart_tiered_cache_delete_params.py b/src/cloudflare/types/cache/smart_tiered_cache_delete_params.py
new file mode 100644
index 000000000000..abf76298b5f7
--- /dev/null
+++ b/src/cloudflare/types/cache/smart_tiered_cache_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["SmartTieredCacheDeleteParams"]
+
+
+class SmartTieredCacheDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/cache/variant_delete_params.py b/src/cloudflare/types/cache/variant_delete_params.py
new file mode 100644
index 000000000000..86f4783d7168
--- /dev/null
+++ b/src/cloudflare/types/cache/variant_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["VariantDeleteParams"]
+
+
+class VariantDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/custom_certificate_delete_params.py b/src/cloudflare/types/custom_certificate_delete_params.py
new file mode 100644
index 000000000000..2b9a145d0c72
--- /dev/null
+++ b/src/cloudflare/types/custom_certificate_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CustomCertificateDeleteParams"]
+
+
+class CustomCertificateDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/custom_certificate_list_params.py b/src/cloudflare/types/custom_certificate_list_params.py
index c375dcb52958..07d747ed4720 100644
--- a/src/cloudflare/types/custom_certificate_list_params.py
+++ b/src/cloudflare/types/custom_certificate_list_params.py
@@ -19,3 +19,6 @@ class CustomCertificateListParams(TypedDict, total=False):
per_page: float
"""Number of zones per page."""
+
+ status: Literal["active", "expired", "deleted", "pending", "initializing"]
+ """Status of the zone's custom SSL."""
diff --git a/src/cloudflare/types/custom_hostname_delete_params.py b/src/cloudflare/types/custom_hostname_delete_params.py
new file mode 100644
index 000000000000..3c96f6951435
--- /dev/null
+++ b/src/cloudflare/types/custom_hostname_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CustomHostnameDeleteParams"]
+
+
+class CustomHostnameDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/custom_hostnames/__init__.py b/src/cloudflare/types/custom_hostnames/__init__.py
index 2de61f1dc9e0..da94f2c93eec 100644
--- a/src/cloudflare/types/custom_hostnames/__init__.py
+++ b/src/cloudflare/types/custom_hostnames/__init__.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from .fallback_origin_get_response import FallbackOriginGetResponse as FallbackOriginGetResponse
+from .fallback_origin_delete_params import FallbackOriginDeleteParams as FallbackOriginDeleteParams
from .fallback_origin_update_params import FallbackOriginUpdateParams as FallbackOriginUpdateParams
from .fallback_origin_delete_response import FallbackOriginDeleteResponse as FallbackOriginDeleteResponse
from .fallback_origin_update_response import FallbackOriginUpdateResponse as FallbackOriginUpdateResponse
diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_params.py b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_params.py
new file mode 100644
index 000000000000..4b3fd914a43f
--- /dev/null
+++ b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["FallbackOriginDeleteParams"]
+
+
+class FallbackOriginDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/custom_nameserver_delete_params.py b/src/cloudflare/types/custom_nameserver_delete_params.py
new file mode 100644
index 000000000000..119813a19f77
--- /dev/null
+++ b/src/cloudflare/types/custom_nameserver_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CustomNameserverDeleteParams"]
+
+
+class CustomNameserverDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/custom_nameserver_verify_params.py b/src/cloudflare/types/custom_nameserver_verify_params.py
new file mode 100644
index 000000000000..037e56c88801
--- /dev/null
+++ b/src/cloudflare/types/custom_nameserver_verify_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CustomNameserverVerifyParams"]
+
+
+class CustomNameserverVerifyParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py
index a73c010f6853..a0120187fddc 100644
--- a/src/cloudflare/types/dns/__init__.py
+++ b/src/cloudflare/types/dns/__init__.py
@@ -6,13 +6,16 @@
from .dns_firewall import DNSFirewall as DNSFirewall
from .record_edit_params import RecordEditParams as RecordEditParams
from .record_list_params import RecordListParams as RecordListParams
+from .record_scan_params import RecordScanParams as RecordScanParams
from .firewall_edit_params import FirewallEditParams as FirewallEditParams
from .firewall_list_params import FirewallListParams as FirewallListParams
from .record_create_params import RecordCreateParams as RecordCreateParams
+from .record_delete_params import RecordDeleteParams as RecordDeleteParams
from .record_import_params import RecordImportParams as RecordImportParams
from .record_scan_response import RecordScanResponse as RecordScanResponse
from .record_update_params import RecordUpdateParams as RecordUpdateParams
from .firewall_create_params import FirewallCreateParams as FirewallCreateParams
+from .firewall_delete_params import FirewallDeleteParams as FirewallDeleteParams
from .record_delete_response import RecordDeleteResponse as RecordDeleteResponse
from .record_export_response import RecordExportResponse as RecordExportResponse
from .record_import_response import RecordImportResponse as RecordImportResponse
diff --git a/src/cloudflare/types/dns/firewall_delete_params.py b/src/cloudflare/types/dns/firewall_delete_params.py
new file mode 100644
index 000000000000..e0fc1fb1cf27
--- /dev/null
+++ b/src/cloudflare/types/dns/firewall_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["FirewallDeleteParams"]
+
+
+class FirewallDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/dns/record_delete_params.py b/src/cloudflare/types/dns/record_delete_params.py
new file mode 100644
index 000000000000..2c6bdd46f114
--- /dev/null
+++ b/src/cloudflare/types/dns/record_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RecordDeleteParams"]
+
+
+class RecordDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/dns/record_scan_params.py b/src/cloudflare/types/dns/record_scan_params.py
new file mode 100644
index 000000000000..070a021300f7
--- /dev/null
+++ b/src/cloudflare/types/dns/record_scan_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RecordScanParams"]
+
+
+class RecordScanParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/dnssec_delete_params.py b/src/cloudflare/types/dnssec_delete_params.py
new file mode 100644
index 000000000000..a162028cb6ad
--- /dev/null
+++ b/src/cloudflare/types/dnssec_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DNSSECDeleteParams"]
+
+
+class DNSSECDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/email_routing_disable_params.py b/src/cloudflare/types/email_routing_disable_params.py
new file mode 100644
index 000000000000..e6fb98c600d5
--- /dev/null
+++ b/src/cloudflare/types/email_routing_disable_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["EmailRoutingDisableParams"]
+
+
+class EmailRoutingDisableParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/email_routing_enable_params.py b/src/cloudflare/types/email_routing_enable_params.py
new file mode 100644
index 000000000000..5dfc90d23841
--- /dev/null
+++ b/src/cloudflare/types/email_routing_enable_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["EmailRoutingEnableParams"]
+
+
+class EmailRoutingEnableParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/filter_delete_params.py b/src/cloudflare/types/filter_delete_params.py
new file mode 100644
index 000000000000..92e7b099d7de
--- /dev/null
+++ b/src/cloudflare/types/filter_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["FilterDeleteParams"]
+
+
+class FilterDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/filter_list_params.py b/src/cloudflare/types/filter_list_params.py
index d3cc75d37802..0b4f189cd22e 100644
--- a/src/cloudflare/types/filter_list_params.py
+++ b/src/cloudflare/types/filter_list_params.py
@@ -8,6 +8,9 @@
class FilterListParams(TypedDict, total=False):
+ id: str
+ """The unique identifier of the filter."""
+
description: str
"""A case-insensitive string to find in the description."""
diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py
index 59a280461ab5..bc5028dedaab 100644
--- a/src/cloudflare/types/firewall/__init__.py
+++ b/src/cloudflare/types/firewall/__init__.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+from .rule_get_params import RuleGetParams as RuleGetParams
from .rule_edit_params import RuleEditParams as RuleEditParams
from .rule_list_params import RuleListParams as RuleListParams
from .rule_create_params import RuleCreateParams as RuleCreateParams
@@ -14,10 +15,12 @@
from .rule_create_response import RuleCreateResponse as RuleCreateResponse
from .ua_rule_get_response import UARuleGetResponse as UARuleGetResponse
from .ua_rule_create_params import UARuleCreateParams as UARuleCreateParams
+from .ua_rule_delete_params import UARuleDeleteParams as UARuleDeleteParams
from .ua_rule_list_response import UARuleListResponse as UARuleListResponse
from .ua_rule_update_params import UARuleUpdateParams as UARuleUpdateParams
from .firewall_zone_lockdown import FirewallZoneLockdown as FirewallZoneLockdown
from .lockdown_create_params import LockdownCreateParams as LockdownCreateParams
+from .lockdown_delete_params import LockdownDeleteParams as LockdownDeleteParams
from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams
from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams
from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams
@@ -27,6 +30,7 @@
from .access_rule_get_response import AccessRuleGetResponse as AccessRuleGetResponse
from .lockdown_delete_response import LockdownDeleteResponse as LockdownDeleteResponse
from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams
+from .access_rule_delete_params import AccessRuleDeleteParams as AccessRuleDeleteParams
from .access_rule_edit_response import AccessRuleEditResponse as AccessRuleEditResponse
from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse
from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse
diff --git a/src/cloudflare/types/firewall/access_rule_delete_params.py b/src/cloudflare/types/firewall/access_rule_delete_params.py
new file mode 100644
index 000000000000..e3452b077eb2
--- /dev/null
+++ b/src/cloudflare/types/firewall/access_rule_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AccessRuleDeleteParams"]
+
+
+class AccessRuleDeleteParams(TypedDict, total=False):
+ body: Required[object]
+
+ account_id: str
+ """The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
+
+ zone_id: str
+ """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
diff --git a/src/cloudflare/types/firewall/lockdown_delete_params.py b/src/cloudflare/types/firewall/lockdown_delete_params.py
new file mode 100644
index 000000000000..c56000f1e92d
--- /dev/null
+++ b/src/cloudflare/types/firewall/lockdown_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["LockdownDeleteParams"]
+
+
+class LockdownDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/firewall/lockdown_list_params.py b/src/cloudflare/types/firewall/lockdown_list_params.py
index 696de0463574..bf2c8abb5c2b 100644
--- a/src/cloudflare/types/firewall/lockdown_list_params.py
+++ b/src/cloudflare/types/firewall/lockdown_list_params.py
@@ -2,12 +2,19 @@
from __future__ import annotations
-from typing_extensions import TypedDict
+from typing import Union
+from datetime import datetime
+from typing_extensions import Annotated, TypedDict
+
+from ..._utils import PropertyInfo
__all__ = ["LockdownListParams"]
class LockdownListParams(TypedDict, total=False):
+ created_on: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
+ """The timestamp of when the rule was created."""
+
description: str
"""A string to search for in the description of existing rules."""
@@ -23,6 +30,9 @@ class LockdownListParams(TypedDict, total=False):
ip_search: str
"""A single IP address to search for in existing rules."""
+ modified_on: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
+ """The timestamp of when the rule was last modified."""
+
page: float
"""Page number of paginated results."""
diff --git a/src/cloudflare/types/firewall/rule_get_params.py b/src/cloudflare/types/firewall/rule_get_params.py
new file mode 100644
index 000000000000..79bd6c287480
--- /dev/null
+++ b/src/cloudflare/types/firewall/rule_get_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, Annotated, TypedDict
+
+from ..._utils import PropertyInfo
+
+__all__ = ["RuleGetParams"]
+
+
+class RuleGetParams(TypedDict, total=False):
+ path_id: Required[Annotated[str, PropertyInfo(alias="id")]]
+ """The unique identifier of the firewall rule."""
+
+ query_id: Annotated[str, PropertyInfo(alias="id")]
+ """The unique identifier of the firewall rule."""
diff --git a/src/cloudflare/types/firewall/rule_list_params.py b/src/cloudflare/types/firewall/rule_list_params.py
index eb6080d0d133..d46c0f938ef8 100644
--- a/src/cloudflare/types/firewall/rule_list_params.py
+++ b/src/cloudflare/types/firewall/rule_list_params.py
@@ -8,6 +8,9 @@
class RuleListParams(TypedDict, total=False):
+ id: str
+ """The unique identifier of the firewall rule."""
+
action: str
"""The action to search for. Must be an exact match."""
diff --git a/src/cloudflare/types/firewall/ua_rule_delete_params.py b/src/cloudflare/types/firewall/ua_rule_delete_params.py
new file mode 100644
index 000000000000..ff1566c3eb5d
--- /dev/null
+++ b/src/cloudflare/types/firewall/ua_rule_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["UARuleDeleteParams"]
+
+
+class UARuleDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/firewall/waf/__init__.py b/src/cloudflare/types/firewall/waf/__init__.py
index 7e819835b147..420c10ae3c2c 100644
--- a/src/cloudflare/types/firewall/waf/__init__.py
+++ b/src/cloudflare/types/firewall/waf/__init__.py
@@ -8,5 +8,6 @@
from .package_get_response import PackageGetResponse as PackageGetResponse
from .package_list_response import PackageListResponse as PackageListResponse
from .override_create_params import OverrideCreateParams as OverrideCreateParams
+from .override_delete_params import OverrideDeleteParams as OverrideDeleteParams
from .override_update_params import OverrideUpdateParams as OverrideUpdateParams
from .override_delete_response import OverrideDeleteResponse as OverrideDeleteResponse
diff --git a/src/cloudflare/types/firewall/waf/override_delete_params.py b/src/cloudflare/types/firewall/waf/override_delete_params.py
new file mode 100644
index 000000000000..9a4c0e0fa573
--- /dev/null
+++ b/src/cloudflare/types/firewall/waf/override_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OverrideDeleteParams"]
+
+
+class OverrideDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/firewall/waf/package_list_params.py b/src/cloudflare/types/firewall/waf/package_list_params.py
index 6cb03200c945..63d46fc6f7fe 100644
--- a/src/cloudflare/types/firewall/waf/package_list_params.py
+++ b/src/cloudflare/types/firewall/waf/package_list_params.py
@@ -17,6 +17,9 @@ class PackageListParams(TypedDict, total=False):
When set to `any`, only one of the search requirements has to match.
"""
+ name: str
+ """The name of the WAF package."""
+
order: Literal["name"]
"""The field used to sort returned packages."""
diff --git a/src/cloudflare/types/firewall/waf/packages/group_list_params.py b/src/cloudflare/types/firewall/waf/packages/group_list_params.py
index e2923881d3e9..5a2e79068a43 100644
--- a/src/cloudflare/types/firewall/waf/packages/group_list_params.py
+++ b/src/cloudflare/types/firewall/waf/packages/group_list_params.py
@@ -26,6 +26,9 @@ class GroupListParams(TypedDict, total=False):
When `on`, the rules in the group are configurable/usable.
"""
+ name: str
+ """The name of the rule group."""
+
order: Literal["mode", "rules_count"]
"""The field used to sort returned rule groups."""
@@ -34,3 +37,6 @@ class GroupListParams(TypedDict, total=False):
per_page: float
"""The number of rule groups per page."""
+
+ rules_count: float
+ """The number of rules in the current rule group."""
diff --git a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
index 1ff90bc7e68e..3adf633f411c 100644
--- a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
+++ b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
@@ -105,6 +105,8 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
allowed_modes: List[Literal["on", "off"]]
"""Defines the available modes for the current WAF rule."""
+ default_mode: object
+
description: str
"""The public description of the WAF rule."""
diff --git a/src/cloudflare/types/firewall/waf/packages/rule_list_params.py b/src/cloudflare/types/firewall/waf/packages/rule_list_params.py
index 5c74c03f0816..9de33e821a64 100644
--- a/src/cloudflare/types/firewall/waf/packages/rule_list_params.py
+++ b/src/cloudflare/types/firewall/waf/packages/rule_list_params.py
@@ -11,9 +11,15 @@ class RuleListParams(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ description: str
+ """The public description of the WAF rule."""
+
direction: Literal["asc", "desc"]
"""The direction used to sort returned rules."""
+ group_id: str
+ """The unique identifier of the rule group."""
+
match: Literal["any", "all"]
"""When set to `all`, all the search requirements must match.
@@ -31,3 +37,6 @@ class RuleListParams(TypedDict, total=False):
per_page: float
"""The number of rules per page."""
+
+ priority: str
+ """The order in which the individual WAF rule is executed within its rule group."""
diff --git a/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py b/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
index e6adbf571ef8..2ce6a915be26 100644
--- a/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
+++ b/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
@@ -105,6 +105,8 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
allowed_modes: List[Literal["on", "off"]]
"""Defines the available modes for the current WAF rule."""
+ default_mode: object
+
description: str
"""The public description of the WAF rule."""
diff --git a/src/cloudflare/types/healthcheck_delete_params.py b/src/cloudflare/types/healthcheck_delete_params.py
new file mode 100644
index 000000000000..f5e2b2d458fb
--- /dev/null
+++ b/src/cloudflare/types/healthcheck_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["HealthcheckDeleteParams"]
+
+
+class HealthcheckDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/healthchecks/__init__.py b/src/cloudflare/types/healthchecks/__init__.py
index 176d1de0dd3a..8ab6024e2093 100644
--- a/src/cloudflare/types/healthchecks/__init__.py
+++ b/src/cloudflare/types/healthchecks/__init__.py
@@ -3,4 +3,5 @@
from __future__ import annotations
from .preview_create_params import PreviewCreateParams as PreviewCreateParams
+from .preview_delete_params import PreviewDeleteParams as PreviewDeleteParams
from .preview_delete_response import PreviewDeleteResponse as PreviewDeleteResponse
diff --git a/src/cloudflare/types/healthchecks/preview_delete_params.py b/src/cloudflare/types/healthchecks/preview_delete_params.py
new file mode 100644
index 000000000000..0c0c7c54e295
--- /dev/null
+++ b/src/cloudflare/types/healthchecks/preview_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PreviewDeleteParams"]
+
+
+class PreviewDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/hyperdrive/config_create_params.py b/src/cloudflare/types/hyperdrive/config_create_params.py
index 2f76e489961f..ae81de287dd1 100644
--- a/src/cloudflare/types/hyperdrive/config_create_params.py
+++ b/src/cloudflare/types/hyperdrive/config_create_params.py
@@ -11,6 +11,8 @@ class ConfigCreateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
+ name: Required[object]
+
origin: Required[Origin]
diff --git a/src/cloudflare/types/hyperdrive/config_update_params.py b/src/cloudflare/types/hyperdrive/config_update_params.py
index 9e419b56540d..220b3407fecf 100644
--- a/src/cloudflare/types/hyperdrive/config_update_params.py
+++ b/src/cloudflare/types/hyperdrive/config_update_params.py
@@ -11,6 +11,8 @@ class ConfigUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
+ name: Required[object]
+
origin: Required[Origin]
diff --git a/src/cloudflare/types/images/__init__.py b/src/cloudflare/types/images/__init__.py
index 82bb5061aacc..30dfb30e782c 100644
--- a/src/cloudflare/types/images/__init__.py
+++ b/src/cloudflare/types/images/__init__.py
@@ -7,6 +7,7 @@
from .v1_list_params import V1ListParams as V1ListParams
from .v2_list_params import V2ListParams as V2ListParams
from .v1_create_params import V1CreateParams as V1CreateParams
+from .v1_delete_params import V1DeleteParams as V1DeleteParams
from .v1_list_response import V1ListResponse as V1ListResponse
from .v2_list_response import V2ListResponse as V2ListResponse
from .v1_delete_response import V1DeleteResponse as V1DeleteResponse
diff --git a/src/cloudflare/types/images/v1/__init__.py b/src/cloudflare/types/images/v1/__init__.py
index 88b88af41751..20e34d1108a3 100644
--- a/src/cloudflare/types/images/v1/__init__.py
+++ b/src/cloudflare/types/images/v1/__init__.py
@@ -8,4 +8,5 @@
from .images_images_stats import ImagesImagesStats as ImagesImagesStats
from .variant_edit_params import VariantEditParams as VariantEditParams
from .variant_create_params import VariantCreateParams as VariantCreateParams
+from .variant_delete_params import VariantDeleteParams as VariantDeleteParams
from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse
diff --git a/src/cloudflare/types/images/v1/variant_delete_params.py b/src/cloudflare/types/images/v1/variant_delete_params.py
new file mode 100644
index 000000000000..08386e60a214
--- /dev/null
+++ b/src/cloudflare/types/images/v1/variant_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["VariantDeleteParams"]
+
+
+class VariantDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/images/v1_delete_params.py b/src/cloudflare/types/images/v1_delete_params.py
new file mode 100644
index 000000000000..dd7e4372bebc
--- /dev/null
+++ b/src/cloudflare/types/images/v1_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["V1DeleteParams"]
+
+
+class V1DeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/keyless_certificate_delete_params.py b/src/cloudflare/types/keyless_certificate_delete_params.py
new file mode 100644
index 000000000000..0c01222a189f
--- /dev/null
+++ b/src/cloudflare/types/keyless_certificate_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["KeylessCertificateDeleteParams"]
+
+
+class KeylessCertificateDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/kv/__init__.py b/src/cloudflare/types/kv/__init__.py
index a68fce2e67a5..ffa43469f6b8 100644
--- a/src/cloudflare/types/kv/__init__.py
+++ b/src/cloudflare/types/kv/__init__.py
@@ -5,6 +5,7 @@
from .workers_kv_namespace import WorkersKVNamespace as WorkersKVNamespace
from .namespace_list_params import NamespaceListParams as NamespaceListParams
from .namespace_create_params import NamespaceCreateParams as NamespaceCreateParams
+from .namespace_delete_params import NamespaceDeleteParams as NamespaceDeleteParams
from .namespace_update_params import NamespaceUpdateParams as NamespaceUpdateParams
from .namespace_delete_response import NamespaceDeleteResponse as NamespaceDeleteResponse
from .namespace_update_response import NamespaceUpdateResponse as NamespaceUpdateResponse
diff --git a/src/cloudflare/types/kv/namespace_delete_params.py b/src/cloudflare/types/kv/namespace_delete_params.py
new file mode 100644
index 000000000000..6746fa4e15b3
--- /dev/null
+++ b/src/cloudflare/types/kv/namespace_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["NamespaceDeleteParams"]
+
+
+class NamespaceDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/kv/namespaces/__init__.py b/src/cloudflare/types/kv/namespaces/__init__.py
index 7683fb68790f..3c57cd5b9f70 100644
--- a/src/cloudflare/types/kv/namespaces/__init__.py
+++ b/src/cloudflare/types/kv/namespaces/__init__.py
@@ -7,6 +7,7 @@
from .bulk_delete_params import BulkDeleteParams as BulkDeleteParams
from .bulk_update_params import BulkUpdateParams as BulkUpdateParams
from .value_get_response import ValueGetResponse as ValueGetResponse
+from .value_delete_params import ValueDeleteParams as ValueDeleteParams
from .value_update_params import ValueUpdateParams as ValueUpdateParams
from .bulk_delete_response import BulkDeleteResponse as BulkDeleteResponse
from .bulk_update_response import BulkUpdateResponse as BulkUpdateResponse
diff --git a/src/cloudflare/types/kv/namespaces/value_delete_params.py b/src/cloudflare/types/kv/namespaces/value_delete_params.py
new file mode 100644
index 000000000000..fa7adc789f18
--- /dev/null
+++ b/src/cloudflare/types/kv/namespaces/value_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ValueDeleteParams"]
+
+
+class ValueDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ namespace_id: Required[str]
+ """Namespace identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/load_balancer_delete_params.py b/src/cloudflare/types/load_balancer_delete_params.py
new file mode 100644
index 000000000000..0a984d696bb6
--- /dev/null
+++ b/src/cloudflare/types/load_balancer_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["LoadBalancerDeleteParams"]
+
+
+class LoadBalancerDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/load_balancers/__init__.py b/src/cloudflare/types/load_balancers/__init__.py
index ec053f792134..3b425d99c273 100644
--- a/src/cloudflare/types/load_balancers/__init__.py
+++ b/src/cloudflare/types/load_balancers/__init__.py
@@ -6,6 +6,7 @@
from .pool_list_params import PoolListParams as PoolListParams
from .search_get_params import SearchGetParams as SearchGetParams
from .pool_create_params import PoolCreateParams as PoolCreateParams
+from .pool_delete_params import PoolDeleteParams as PoolDeleteParams
from .pool_update_params import PoolUpdateParams as PoolUpdateParams
from .region_list_params import RegionListParams as RegionListParams
from .monitor_edit_params import MonitorEditParams as MonitorEditParams
@@ -14,5 +15,6 @@
from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse
from .region_list_response import RegionListResponse as RegionListResponse
from .monitor_create_params import MonitorCreateParams as MonitorCreateParams
+from .monitor_delete_params import MonitorDeleteParams as MonitorDeleteParams
from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams
from .monitor_delete_response import MonitorDeleteResponse as MonitorDeleteResponse
diff --git a/src/cloudflare/types/load_balancers/monitor_delete_params.py b/src/cloudflare/types/load_balancers/monitor_delete_params.py
new file mode 100644
index 000000000000..3b797bbce868
--- /dev/null
+++ b/src/cloudflare/types/load_balancers/monitor_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["MonitorDeleteParams"]
+
+
+class MonitorDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/load_balancers/pool_delete_params.py b/src/cloudflare/types/load_balancers/pool_delete_params.py
new file mode 100644
index 000000000000..72fd555490cd
--- /dev/null
+++ b/src/cloudflare/types/load_balancers/pool_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PoolDeleteParams"]
+
+
+class PoolDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/logpush/__init__.py b/src/cloudflare/types/logpush/__init__.py
index 37d5d84f48c0..45910e35fb2e 100644
--- a/src/cloudflare/types/logpush/__init__.py
+++ b/src/cloudflare/types/logpush/__init__.py
@@ -4,6 +4,7 @@
from .edge_get_response import EdgeGetResponse as EdgeGetResponse
from .job_create_params import JobCreateParams as JobCreateParams
+from .job_delete_params import JobDeleteParams as JobDeleteParams
from .job_update_params import JobUpdateParams as JobUpdateParams
from .edge_create_params import EdgeCreateParams as EdgeCreateParams
from .instant_logpush_job import InstantLogpushJob as InstantLogpushJob
diff --git a/src/cloudflare/types/logpush/job_delete_params.py b/src/cloudflare/types/logpush/job_delete_params.py
new file mode 100644
index 000000000000..d6acbb0d4cf6
--- /dev/null
+++ b/src/cloudflare/types/logpush/job_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["JobDeleteParams"]
+
+
+class JobDeleteParams(TypedDict, total=False):
+ body: Required[object]
+
+ account_id: str
+ """The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
+
+ zone_id: str
+ """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
diff --git a/src/cloudflare/types/logs/control/cmb/__init__.py b/src/cloudflare/types/logs/control/cmb/__init__.py
index 1cfbc76cf330..dc545fb11dd2 100644
--- a/src/cloudflare/types/logs/control/cmb/__init__.py
+++ b/src/cloudflare/types/logs/control/cmb/__init__.py
@@ -4,4 +4,5 @@
from .cmb_config import CmbConfig as CmbConfig
from .config_create_params import ConfigCreateParams as ConfigCreateParams
+from .config_delete_params import ConfigDeleteParams as ConfigDeleteParams
from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse
diff --git a/src/cloudflare/types/logs/control/cmb/config_delete_params.py b/src/cloudflare/types/logs/control/cmb/config_delete_params.py
new file mode 100644
index 000000000000..18c5f56fe91c
--- /dev/null
+++ b/src/cloudflare/types/logs/control/cmb/config_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConfigDeleteParams"]
+
+
+class ConfigDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/__init__.py b/src/cloudflare/types/magic_network_monitoring/__init__.py
index 5bfc950aadb7..a9f64b1287a0 100644
--- a/src/cloudflare/types/magic_network_monitoring/__init__.py
+++ b/src/cloudflare/types/magic_network_monitoring/__init__.py
@@ -2,5 +2,13 @@
from __future__ import annotations
+from .rule_edit_params import RuleEditParams as RuleEditParams
+from .config_edit_params import ConfigEditParams as ConfigEditParams
+from .rule_create_params import RuleCreateParams as RuleCreateParams
+from .rule_delete_params import RuleDeleteParams as RuleDeleteParams
+from .rule_update_params import RuleUpdateParams as RuleUpdateParams
+from .config_create_params import ConfigCreateParams as ConfigCreateParams
+from .config_delete_params import ConfigDeleteParams as ConfigDeleteParams
+from .config_update_params import ConfigUpdateParams as ConfigUpdateParams
from .magic_network_monitoring_rule import MagicNetworkMonitoringRule as MagicNetworkMonitoringRule
from .magic_network_monitoring_config import MagicNetworkMonitoringConfig as MagicNetworkMonitoringConfig
diff --git a/src/cloudflare/types/magic_network_monitoring/config_create_params.py b/src/cloudflare/types/magic_network_monitoring/config_create_params.py
new file mode 100644
index 000000000000..3bb01f0cb07f
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/config_create_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConfigCreateParams"]
+
+
+class ConfigCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/config_delete_params.py b/src/cloudflare/types/magic_network_monitoring/config_delete_params.py
new file mode 100644
index 000000000000..10abc8efd592
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/config_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConfigDeleteParams"]
+
+
+class ConfigDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/config_edit_params.py b/src/cloudflare/types/magic_network_monitoring/config_edit_params.py
new file mode 100644
index 000000000000..f02fba5f3d20
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/config_edit_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConfigEditParams"]
+
+
+class ConfigEditParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/config_update_params.py b/src/cloudflare/types/magic_network_monitoring/config_update_params.py
new file mode 100644
index 000000000000..acfef585f576
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/config_update_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConfigUpdateParams"]
+
+
+class ConfigUpdateParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/rule_create_params.py b/src/cloudflare/types/magic_network_monitoring/rule_create_params.py
new file mode 100644
index 000000000000..dd4c5f4092f3
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/rule_create_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleCreateParams"]
+
+
+class RuleCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/rule_delete_params.py b/src/cloudflare/types/magic_network_monitoring/rule_delete_params.py
new file mode 100644
index 000000000000..f729aaf685c8
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/rule_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleDeleteParams"]
+
+
+class RuleDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py b/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py
new file mode 100644
index 000000000000..005bdbb0ad56
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/rule_edit_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleEditParams"]
+
+
+class RuleEditParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/rule_update_params.py b/src/cloudflare/types/magic_network_monitoring/rule_update_params.py
new file mode 100644
index 000000000000..d9ae09df6649
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/rule_update_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleUpdateParams"]
+
+
+class RuleUpdateParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_network_monitoring/rules/__init__.py b/src/cloudflare/types/magic_network_monitoring/rules/__init__.py
index 32939a9af6e5..2f0e64c69feb 100644
--- a/src/cloudflare/types/magic_network_monitoring/rules/__init__.py
+++ b/src/cloudflare/types/magic_network_monitoring/rules/__init__.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+from .advertisement_edit_params import AdvertisementEditParams as AdvertisementEditParams
from .magic_network_monitoring_rule_advertisable import (
MagicNetworkMonitoringRuleAdvertisable as MagicNetworkMonitoringRuleAdvertisable,
)
diff --git a/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py b/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py
new file mode 100644
index 000000000000..ece6f001327d
--- /dev/null
+++ b/src/cloudflare/types/magic_network_monitoring/rules/advertisement_edit_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AdvertisementEditParams"]
+
+
+class AdvertisementEditParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/__init__.py b/src/cloudflare/types/magic_transit/__init__.py
index 4cef5611947f..dfcdd13f9afd 100644
--- a/src/cloudflare/types/magic_transit/__init__.py
+++ b/src/cloudflare/types/magic_transit/__init__.py
@@ -2,13 +2,16 @@
from __future__ import annotations
+from .site_list_params import SiteListParams as SiteListParams
from .site_get_response import SiteGetResponse as SiteGetResponse
from .route_empty_params import RouteEmptyParams as RouteEmptyParams
from .route_get_response import RouteGetResponse as RouteGetResponse
from .site_create_params import SiteCreateParams as SiteCreateParams
+from .site_delete_params import SiteDeleteParams as SiteDeleteParams
from .site_list_response import SiteListResponse as SiteListResponse
from .site_update_params import SiteUpdateParams as SiteUpdateParams
from .route_create_params import RouteCreateParams as RouteCreateParams
+from .route_delete_params import RouteDeleteParams as RouteDeleteParams
from .route_list_response import RouteListResponse as RouteListResponse
from .route_update_params import RouteUpdateParams as RouteUpdateParams
from .route_empty_response import RouteEmptyResponse as RouteEmptyResponse
@@ -20,6 +23,7 @@
from .route_update_response import RouteUpdateResponse as RouteUpdateResponse
from .gre_tunnel_get_response import GRETunnelGetResponse as GRETunnelGetResponse
from .gre_tunnel_create_params import GRETunnelCreateParams as GRETunnelCreateParams
+from .gre_tunnel_delete_params import GRETunnelDeleteParams as GRETunnelDeleteParams
from .gre_tunnel_list_response import GRETunnelListResponse as GRETunnelListResponse
from .gre_tunnel_update_params import GRETunnelUpdateParams as GRETunnelUpdateParams
from .ipsec_tunnel_get_response import IPSECTunnelGetResponse as IPSECTunnelGetResponse
@@ -27,6 +31,7 @@
from .gre_tunnel_delete_response import GRETunnelDeleteResponse as GRETunnelDeleteResponse
from .gre_tunnel_update_response import GRETunnelUpdateResponse as GRETunnelUpdateResponse
from .ipsec_tunnel_create_params import IPSECTunnelCreateParams as IPSECTunnelCreateParams
+from .ipsec_tunnel_delete_params import IPSECTunnelDeleteParams as IPSECTunnelDeleteParams
from .ipsec_tunnel_list_response import IPSECTunnelListResponse as IPSECTunnelListResponse
from .ipsec_tunnel_update_params import IPSECTunnelUpdateParams as IPSECTunnelUpdateParams
from .cf_interconnect_get_response import CfInterconnectGetResponse as CfInterconnectGetResponse
@@ -36,4 +41,5 @@
from .cf_interconnect_list_response import CfInterconnectListResponse as CfInterconnectListResponse
from .cf_interconnect_update_params import CfInterconnectUpdateParams as CfInterconnectUpdateParams
from .cf_interconnect_update_response import CfInterconnectUpdateResponse as CfInterconnectUpdateResponse
+from .ipsec_tunnel_psk_generate_params import IPSECTunnelPSKGenerateParams as IPSECTunnelPSKGenerateParams
from .ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse as IPSECTunnelPSKGenerateResponse
diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_delete_params.py b/src/cloudflare/types/magic_transit/gre_tunnel_delete_params.py
new file mode 100644
index 000000000000..c19713f18e36
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/gre_tunnel_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["GRETunnelDeleteParams"]
+
+
+class GRETunnelDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_params.py
new file mode 100644
index 000000000000..4cf64bced319
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IPSECTunnelDeleteParams"]
+
+
+class IPSECTunnelDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py
new file mode 100644
index 000000000000..1066fa603d19
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_psk_generate_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IPSECTunnelPSKGenerateParams"]
+
+
+class IPSECTunnelPSKGenerateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/route_delete_params.py b/src/cloudflare/types/magic_transit/route_delete_params.py
new file mode 100644
index 000000000000..ae1f7e998a58
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/route_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RouteDeleteParams"]
+
+
+class RouteDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/site_delete_params.py b/src/cloudflare/types/magic_transit/site_delete_params.py
new file mode 100644
index 000000000000..fdd180f40b4c
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/site_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["SiteDeleteParams"]
+
+
+class SiteDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/site_list_params.py b/src/cloudflare/types/magic_transit/site_list_params.py
new file mode 100644
index 000000000000..8f74157c2de2
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/site_list_params.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["SiteListParams"]
+
+
+class SiteListParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ connector_identifier: str
+ """Identifier"""
diff --git a/src/cloudflare/types/magic_transit/sites/__init__.py b/src/cloudflare/types/magic_transit/sites/__init__.py
index 3bda645ac5d3..129c922d16d3 100644
--- a/src/cloudflare/types/magic_transit/sites/__init__.py
+++ b/src/cloudflare/types/magic_transit/sites/__init__.py
@@ -6,12 +6,15 @@
from .lan_get_response import LANGetResponse as LANGetResponse
from .wan_get_response import WANGetResponse as WANGetResponse
from .acl_create_params import ACLCreateParams as ACLCreateParams
+from .acl_delete_params import ACLDeleteParams as ACLDeleteParams
from .acl_list_response import ACLListResponse as ACLListResponse
from .acl_update_params import ACLUpdateParams as ACLUpdateParams
from .lan_create_params import LANCreateParams as LANCreateParams
+from .lan_delete_params import LANDeleteParams as LANDeleteParams
from .lan_list_response import LANListResponse as LANListResponse
from .lan_update_params import LANUpdateParams as LANUpdateParams
from .wan_create_params import WANCreateParams as WANCreateParams
+from .wan_delete_params import WANDeleteParams as WANDeleteParams
from .wan_list_response import WANListResponse as WANListResponse
from .wan_update_params import WANUpdateParams as WANUpdateParams
from .acl_create_response import ACLCreateResponse as ACLCreateResponse
diff --git a/src/cloudflare/types/magic_transit/sites/acl_delete_params.py b/src/cloudflare/types/magic_transit/sites/acl_delete_params.py
new file mode 100644
index 000000000000..12a1368d5604
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/sites/acl_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ACLDeleteParams"]
+
+
+class ACLDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ site_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/sites/lan_delete_params.py b/src/cloudflare/types/magic_transit/sites/lan_delete_params.py
new file mode 100644
index 000000000000..4e9d6b5c1e4a
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/sites/lan_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["LANDeleteParams"]
+
+
+class LANDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ site_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/magic_transit/sites/wan_delete_params.py b/src/cloudflare/types/magic_transit/sites/wan_delete_params.py
new file mode 100644
index 000000000000..7e72aa275939
--- /dev/null
+++ b/src/cloudflare/types/magic_transit/sites/wan_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["WANDeleteParams"]
+
+
+class WANDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ site_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/membership_delete_params.py b/src/cloudflare/types/membership_delete_params.py
new file mode 100644
index 000000000000..11cdd19dc14b
--- /dev/null
+++ b/src/cloudflare/types/membership_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["MembershipDeleteParams"]
+
+
+class MembershipDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/mtls_certificate_delete_params.py b/src/cloudflare/types/mtls_certificate_delete_params.py
new file mode 100644
index 000000000000..78ad213cdfdf
--- /dev/null
+++ b/src/cloudflare/types/mtls_certificate_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["MTLSCertificateDeleteParams"]
+
+
+class MTLSCertificateDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/origin_ca_certificate_delete_params.py b/src/cloudflare/types/origin_ca_certificate_delete_params.py
new file mode 100644
index 000000000000..c7e9bfc04253
--- /dev/null
+++ b/src/cloudflare/types/origin_ca_certificate_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OriginCACertificateDeleteParams"]
+
+
+class OriginCACertificateDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/origin_ca_certificate_list_params.py b/src/cloudflare/types/origin_ca_certificate_list_params.py
new file mode 100644
index 000000000000..7efecba18142
--- /dev/null
+++ b/src/cloudflare/types/origin_ca_certificate_list_params.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["OriginCACertificateListParams"]
+
+
+class OriginCACertificateListParams(TypedDict, total=False):
+ identifier: str
+ """Identifier"""
diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py
index 4db93e9c1fe9..90b2e5b2d36c 100644
--- a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py
+++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py
@@ -3,4 +3,5 @@
from __future__ import annotations
from .certificate_create_params import CertificateCreateParams as CertificateCreateParams
+from .certificate_delete_params import CertificateDeleteParams as CertificateDeleteParams
from .origin_tls_client_certificate import OriginTLSClientCertificate as OriginTLSClientCertificate
diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_params.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_params.py
new file mode 100644
index 000000000000..7d7163aa2208
--- /dev/null
+++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CertificateDeleteParams"]
+
+
+class CertificateDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/origin_tls_client_auth_delete_params.py b/src/cloudflare/types/origin_tls_client_auth_delete_params.py
new file mode 100644
index 000000000000..6e0ad357ff52
--- /dev/null
+++ b/src/cloudflare/types/origin_tls_client_auth_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OriginTLSClientAuthDeleteParams"]
+
+
+class OriginTLSClientAuthDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pagerule_delete_params.py b/src/cloudflare/types/pagerule_delete_params.py
new file mode 100644
index 000000000000..5b3e48c4f3ec
--- /dev/null
+++ b/src/cloudflare/types/pagerule_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PageruleDeleteParams"]
+
+
+class PageruleDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/__init__.py b/src/cloudflare/types/pages/__init__.py
index 7619885558eb..db6d1876d75d 100644
--- a/src/cloudflare/types/pages/__init__.py
+++ b/src/cloudflare/types/pages/__init__.py
@@ -6,6 +6,7 @@
from .pages_deployments import PagesDeployments as PagesDeployments
from .project_edit_params import ProjectEditParams as ProjectEditParams
from .project_create_params import ProjectCreateParams as ProjectCreateParams
+from .project_delete_params import ProjectDeleteParams as ProjectDeleteParams
from .project_edit_response import ProjectEditResponse as ProjectEditResponse
from .pages_deployments_param import PagesDeploymentsParam as PagesDeploymentsParam
from .project_create_response import ProjectCreateResponse as ProjectCreateResponse
diff --git a/src/cloudflare/types/pages/project_delete_params.py b/src/cloudflare/types/pages/project_delete_params.py
new file mode 100644
index 000000000000..44dbbf9b81b4
--- /dev/null
+++ b/src/cloudflare/types/pages/project_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ProjectDeleteParams"]
+
+
+class ProjectDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/projects/__init__.py b/src/cloudflare/types/pages/projects/__init__.py
index 5a41f0031a98..366cfd847a01 100644
--- a/src/cloudflare/types/pages/projects/__init__.py
+++ b/src/cloudflare/types/pages/projects/__init__.py
@@ -2,9 +2,14 @@
from __future__ import annotations
+from .domain_edit_params import DomainEditParams as DomainEditParams
from .domain_get_response import DomainGetResponse as DomainGetResponse
from .domain_create_params import DomainCreateParams as DomainCreateParams
+from .domain_delete_params import DomainDeleteParams as DomainDeleteParams
from .domain_edit_response import DomainEditResponse as DomainEditResponse
from .deployment_list_params import DeploymentListParams as DeploymentListParams
from .domain_create_response import DomainCreateResponse as DomainCreateResponse
+from .deployment_retry_params import DeploymentRetryParams as DeploymentRetryParams
from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams
+from .deployment_delete_params import DeploymentDeleteParams as DeploymentDeleteParams
+from .deployment_rollback_params import DeploymentRollbackParams as DeploymentRollbackParams
diff --git a/src/cloudflare/types/pages/projects/deployment_delete_params.py b/src/cloudflare/types/pages/projects/deployment_delete_params.py
new file mode 100644
index 000000000000..35a65c5a3c5a
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/deployment_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DeploymentDeleteParams"]
+
+
+class DeploymentDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ project_name: Required[str]
+ """Name of the project."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/projects/deployment_retry_params.py b/src/cloudflare/types/pages/projects/deployment_retry_params.py
new file mode 100644
index 000000000000..298b72a3331f
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/deployment_retry_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DeploymentRetryParams"]
+
+
+class DeploymentRetryParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ project_name: Required[str]
+ """Name of the project."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/projects/deployment_rollback_params.py b/src/cloudflare/types/pages/projects/deployment_rollback_params.py
new file mode 100644
index 000000000000..078d237c493d
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/deployment_rollback_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DeploymentRollbackParams"]
+
+
+class DeploymentRollbackParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ project_name: Required[str]
+ """Name of the project."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/projects/domain_delete_params.py b/src/cloudflare/types/pages/projects/domain_delete_params.py
new file mode 100644
index 000000000000..efd44ea1f180
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/domain_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DomainDeleteParams"]
+
+
+class DomainDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ project_name: Required[str]
+ """Name of the project."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/pages/projects/domain_edit_params.py b/src/cloudflare/types/pages/projects/domain_edit_params.py
new file mode 100644
index 000000000000..ff0dda3be6b1
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/domain_edit_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DomainEditParams"]
+
+
+class DomainEditParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ project_name: Required[str]
+ """Name of the project."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/queue_delete_params.py b/src/cloudflare/types/queue_delete_params.py
new file mode 100644
index 000000000000..0130ee1660d6
--- /dev/null
+++ b/src/cloudflare/types/queue_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["QueueDeleteParams"]
+
+
+class QueueDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/queues/__init__.py b/src/cloudflare/types/queues/__init__.py
index bd13e89010f5..fa5698295b98 100644
--- a/src/cloudflare/types/queues/__init__.py
+++ b/src/cloudflare/types/queues/__init__.py
@@ -8,6 +8,7 @@
from .consumer_get_response import ConsumerGetResponse as ConsumerGetResponse
from .message_pull_response import MessagePullResponse as MessagePullResponse
from .consumer_create_params import ConsumerCreateParams as ConsumerCreateParams
+from .consumer_delete_params import ConsumerDeleteParams as ConsumerDeleteParams
from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams
from .consumer_create_response import ConsumerCreateResponse as ConsumerCreateResponse
from .consumer_delete_response import ConsumerDeleteResponse as ConsumerDeleteResponse
diff --git a/src/cloudflare/types/queues/consumer_delete_params.py b/src/cloudflare/types/queues/consumer_delete_params.py
new file mode 100644
index 000000000000..86cb9120b328
--- /dev/null
+++ b/src/cloudflare/types/queues/consumer_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ConsumerDeleteParams"]
+
+
+class ConsumerDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ queue_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/rate_limit_delete_params.py b/src/cloudflare/types/rate_limit_delete_params.py
new file mode 100644
index 000000000000..90fbe7838368
--- /dev/null
+++ b/src/cloudflare/types/rate_limit_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RateLimitDeleteParams"]
+
+
+class RateLimitDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/rules/__init__.py b/src/cloudflare/types/rules/__init__.py
index eac7c5e729f4..c48c165fa3ee 100644
--- a/src/cloudflare/types/rules/__init__.py
+++ b/src/cloudflare/types/rules/__init__.py
@@ -4,5 +4,6 @@
from .lists_list import ListsList as ListsList
from .list_create_params import ListCreateParams as ListCreateParams
+from .list_delete_params import ListDeleteParams as ListDeleteParams
from .list_update_params import ListUpdateParams as ListUpdateParams
from .list_delete_response import ListDeleteResponse as ListDeleteResponse
diff --git a/src/cloudflare/types/rules/list_delete_params.py b/src/cloudflare/types/rules/list_delete_params.py
new file mode 100644
index 000000000000..dd3970f96147
--- /dev/null
+++ b/src/cloudflare/types/rules/list_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ListDeleteParams"]
+
+
+class ListDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py
index cae90a7d2c48..4f74d97b8cfd 100644
--- a/src/cloudflare/types/secondary_dns/__init__.py
+++ b/src/cloudflare/types/secondary_dns/__init__.py
@@ -3,13 +3,16 @@
from __future__ import annotations
from .acl_create_params import ACLCreateParams as ACLCreateParams
+from .acl_delete_params import ACLDeleteParams as ACLDeleteParams
from .acl_update_params import ACLUpdateParams as ACLUpdateParams
from .secondary_dns_acl import SecondaryDNSACL as SecondaryDNSACL
from .peer_create_params import PeerCreateParams as PeerCreateParams
+from .peer_delete_params import PeerDeleteParams as PeerDeleteParams
from .peer_update_params import PeerUpdateParams as PeerUpdateParams
from .secondary_dns_peer import SecondaryDNSPeer as SecondaryDNSPeer
from .secondary_dns_tsig import SecondaryDNSTSIG as SecondaryDNSTSIG
from .tsig_create_params import TSIGCreateParams as TSIGCreateParams
+from .tsig_delete_params import TSIGDeleteParams as TSIGDeleteParams
from .tsig_update_params import TSIGUpdateParams as TSIGUpdateParams
from .acl_delete_response import ACLDeleteResponse as ACLDeleteResponse
from .secondary_dns_force import SecondaryDNSForce as SecondaryDNSForce
@@ -18,15 +21,21 @@
from .incoming_get_response import IncomingGetResponse as IncomingGetResponse
from .outgoing_get_response import OutgoingGetResponse as OutgoingGetResponse
from .incoming_create_params import IncomingCreateParams as IncomingCreateParams
+from .incoming_delete_params import IncomingDeleteParams as IncomingDeleteParams
from .incoming_update_params import IncomingUpdateParams as IncomingUpdateParams
from .outgoing_create_params import OutgoingCreateParams as OutgoingCreateParams
+from .outgoing_delete_params import OutgoingDeleteParams as OutgoingDeleteParams
+from .outgoing_enable_params import OutgoingEnableParams as OutgoingEnableParams
from .outgoing_update_params import OutgoingUpdateParams as OutgoingUpdateParams
+from .outgoing_disable_params import OutgoingDisableParams as OutgoingDisableParams
+from .force_axfr_create_params import ForceAXFRCreateParams as ForceAXFRCreateParams
from .incoming_create_response import IncomingCreateResponse as IncomingCreateResponse
from .incoming_delete_response import IncomingDeleteResponse as IncomingDeleteResponse
from .incoming_update_response import IncomingUpdateResponse as IncomingUpdateResponse
from .outgoing_create_response import OutgoingCreateResponse as OutgoingCreateResponse
from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse
from .outgoing_update_response import OutgoingUpdateResponse as OutgoingUpdateResponse
+from .outgoing_force_notify_params import OutgoingForceNotifyParams as OutgoingForceNotifyParams
from .secondary_dns_enable_transfer import SecondaryDNSEnableTransfer as SecondaryDNSEnableTransfer
from .outgoing_force_notify_response import OutgoingForceNotifyResponse as OutgoingForceNotifyResponse
from .secondary_dns_disable_transfer import SecondaryDNSDisableTransfer as SecondaryDNSDisableTransfer
diff --git a/src/cloudflare/types/secondary_dns/acl_delete_params.py b/src/cloudflare/types/secondary_dns/acl_delete_params.py
new file mode 100644
index 000000000000..16de02d28641
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/acl_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ACLDeleteParams"]
+
+
+class ACLDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/force_axfr_create_params.py b/src/cloudflare/types/secondary_dns/force_axfr_create_params.py
new file mode 100644
index 000000000000..892842697cb5
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/force_axfr_create_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ForceAXFRCreateParams"]
+
+
+class ForceAXFRCreateParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/incoming_delete_params.py b/src/cloudflare/types/secondary_dns/incoming_delete_params.py
new file mode 100644
index 000000000000..f38fedf881d5
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/incoming_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IncomingDeleteParams"]
+
+
+class IncomingDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/outgoing_delete_params.py b/src/cloudflare/types/secondary_dns/outgoing_delete_params.py
new file mode 100644
index 000000000000..68387b9fa08e
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/outgoing_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OutgoingDeleteParams"]
+
+
+class OutgoingDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/outgoing_disable_params.py b/src/cloudflare/types/secondary_dns/outgoing_disable_params.py
new file mode 100644
index 000000000000..08d06c56acff
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/outgoing_disable_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OutgoingDisableParams"]
+
+
+class OutgoingDisableParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/outgoing_enable_params.py b/src/cloudflare/types/secondary_dns/outgoing_enable_params.py
new file mode 100644
index 000000000000..93e197b2bacc
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/outgoing_enable_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OutgoingEnableParams"]
+
+
+class OutgoingEnableParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py b/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py
new file mode 100644
index 000000000000..7835ae3d3ca0
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/outgoing_force_notify_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OutgoingForceNotifyParams"]
+
+
+class OutgoingForceNotifyParams(TypedDict, total=False):
+ zone_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/peer_delete_params.py b/src/cloudflare/types/secondary_dns/peer_delete_params.py
new file mode 100644
index 000000000000..86d9970947e6
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/peer_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PeerDeleteParams"]
+
+
+class PeerDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/tsig_delete_params.py b/src/cloudflare/types/secondary_dns/tsig_delete_params.py
new file mode 100644
index 000000000000..1c2ab15aefa3
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/tsig_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["TSIGDeleteParams"]
+
+
+class TSIGDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/spectrum/__init__.py b/src/cloudflare/types/spectrum/__init__.py
index 316d4fa6f166..0dc9e6a6b7b3 100644
--- a/src/cloudflare/types/spectrum/__init__.py
+++ b/src/cloudflare/types/spectrum/__init__.py
@@ -5,6 +5,7 @@
from .app_list_params import AppListParams as AppListParams
from .app_get_response import AppGetResponse as AppGetResponse
from .app_create_params import AppCreateParams as AppCreateParams
+from .app_delete_params import AppDeleteParams as AppDeleteParams
from .app_update_params import AppUpdateParams as AppUpdateParams
from .app_create_response import AppCreateResponse as AppCreateResponse
from .app_delete_response import AppDeleteResponse as AppDeleteResponse
diff --git a/src/cloudflare/types/spectrum/app_delete_params.py b/src/cloudflare/types/spectrum/app_delete_params.py
new file mode 100644
index 000000000000..9f31b197105c
--- /dev/null
+++ b/src/cloudflare/types/spectrum/app_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AppDeleteParams"]
+
+
+class AppDeleteParams(TypedDict, total=False):
+ zone: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/speed_trends_list_params.py b/src/cloudflare/types/speed_trends_list_params.py
index 5f0348570520..767e1d7de7bb 100644
--- a/src/cloudflare/types/speed_trends_list_params.py
+++ b/src/cloudflare/types/speed_trends_list_params.py
@@ -2,6 +2,8 @@
from __future__ import annotations
+from typing import Union
+from datetime import datetime
from typing_extensions import Literal, Required, Annotated, TypedDict
from .._utils import PropertyInfo
@@ -46,5 +48,9 @@ class SpeedTrendsListParams(TypedDict, total=False):
]
"""A test region."""
+ start: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
+
tz: Required[str]
"""The timezone of the start and end timestamps."""
+
+ end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
diff --git a/src/cloudflare/types/ssl/__init__.py b/src/cloudflare/types/ssl/__init__.py
index ce56689f3f66..f17a6876dd7a 100644
--- a/src/cloudflare/types/ssl/__init__.py
+++ b/src/cloudflare/types/ssl/__init__.py
@@ -10,7 +10,9 @@
from .verification_get_response import VerificationGetResponse as VerificationGetResponse
from .verification_edit_response import VerificationEditResponse as VerificationEditResponse
from .recommendation_get_response import RecommendationGetResponse as RecommendationGetResponse
+from .certificate_pack_edit_params import CertificatePackEditParams as CertificatePackEditParams
from .certificate_pack_list_params import CertificatePackListParams as CertificatePackListParams
from .certificate_pack_get_response import CertificatePackGetResponse as CertificatePackGetResponse
+from .certificate_pack_delete_params import CertificatePackDeleteParams as CertificatePackDeleteParams
from .certificate_pack_edit_response import CertificatePackEditResponse as CertificatePackEditResponse
from .certificate_pack_delete_response import CertificatePackDeleteResponse as CertificatePackDeleteResponse
diff --git a/src/cloudflare/types/ssl/certificate_pack_delete_params.py b/src/cloudflare/types/ssl/certificate_pack_delete_params.py
new file mode 100644
index 000000000000..ccd358d487f0
--- /dev/null
+++ b/src/cloudflare/types/ssl/certificate_pack_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CertificatePackDeleteParams"]
+
+
+class CertificatePackDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/ssl/certificate_pack_edit_params.py b/src/cloudflare/types/ssl/certificate_pack_edit_params.py
new file mode 100644
index 000000000000..3ca3b845dda1
--- /dev/null
+++ b/src/cloudflare/types/ssl/certificate_pack_edit_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CertificatePackEditParams"]
+
+
+class CertificatePackEditParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py
index c80b853fe3f3..03d5e2a7675d 100644
--- a/src/cloudflare/types/stream/__init__.py
+++ b/src/cloudflare/types/stream/__init__.py
@@ -7,6 +7,8 @@
from .stream_captions import StreamCaptions as StreamCaptions
from .stream_clipping import StreamClipping as StreamClipping
from .key_get_response import KeyGetResponse as KeyGetResponse
+from .key_create_params import KeyCreateParams as KeyCreateParams
+from .key_delete_params import KeyDeleteParams as KeyDeleteParams
from .stream_live_input import StreamLiveInput as StreamLiveInput
from .stream_watermarks import StreamWatermarks as StreamWatermarks
from .clip_create_params import ClipCreateParams as ClipCreateParams
@@ -16,10 +18,13 @@
from .token_create_params import TokenCreateParams as TokenCreateParams
from .caption_get_response import CaptionGetResponse as CaptionGetResponse
from .webhook_get_response import WebhookGetResponse as WebhookGetResponse
+from .caption_delete_params import CaptionDeleteParams as CaptionDeleteParams
from .caption_update_params import CaptionUpdateParams as CaptionUpdateParams
from .download_get_response import DownloadGetResponse as DownloadGetResponse
from .token_create_response import TokenCreateResponse as TokenCreateResponse
+from .webhook_delete_params import WebhookDeleteParams as WebhookDeleteParams
from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams
+from .download_create_params import DownloadCreateParams as DownloadCreateParams
from .live_input_list_params import LiveInputListParams as LiveInputListParams
from .watermark_get_response import WatermarkGetResponse as WatermarkGetResponse
from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams
@@ -27,12 +32,14 @@
from .caption_delete_response import CaptionDeleteResponse as CaptionDeleteResponse
from .caption_update_response import CaptionUpdateResponse as CaptionUpdateResponse
from .watermark_create_params import WatermarkCreateParams as WatermarkCreateParams
+from .watermark_delete_params import WatermarkDeleteParams as WatermarkDeleteParams
from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse
from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse
from .audio_track_get_response import AudioTrackGetResponse as AudioTrackGetResponse
from .download_create_response import DownloadCreateResponse as DownloadCreateResponse
from .download_delete_response import DownloadDeleteResponse as DownloadDeleteResponse
from .live_input_create_params import LiveInputCreateParams as LiveInputCreateParams
+from .live_input_delete_params import LiveInputDeleteParams as LiveInputDeleteParams
from .live_input_list_response import LiveInputListResponse as LiveInputListResponse
from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams
from .watermark_create_response import WatermarkCreateResponse as WatermarkCreateResponse
diff --git a/src/cloudflare/types/stream/caption_delete_params.py b/src/cloudflare/types/stream/caption_delete_params.py
new file mode 100644
index 000000000000..f36bd55c7165
--- /dev/null
+++ b/src/cloudflare/types/stream/caption_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CaptionDeleteParams"]
+
+
+class CaptionDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ identifier: Required[str]
+ """A Cloudflare-generated unique identifier for a media item."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/download_create_params.py b/src/cloudflare/types/stream/download_create_params.py
new file mode 100644
index 000000000000..ba0fb74b32cc
--- /dev/null
+++ b/src/cloudflare/types/stream/download_create_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DownloadCreateParams"]
+
+
+class DownloadCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/key_create_params.py b/src/cloudflare/types/stream/key_create_params.py
new file mode 100644
index 000000000000..3f1891d27e36
--- /dev/null
+++ b/src/cloudflare/types/stream/key_create_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["KeyCreateParams"]
+
+
+class KeyCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/key_delete_params.py b/src/cloudflare/types/stream/key_delete_params.py
new file mode 100644
index 000000000000..d4e21761a90a
--- /dev/null
+++ b/src/cloudflare/types/stream/key_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["KeyDeleteParams"]
+
+
+class KeyDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/live_input_delete_params.py b/src/cloudflare/types/stream/live_input_delete_params.py
new file mode 100644
index 000000000000..7677bd9f9edd
--- /dev/null
+++ b/src/cloudflare/types/stream/live_input_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["LiveInputDeleteParams"]
+
+
+class LiveInputDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/live_inputs/__init__.py b/src/cloudflare/types/stream/live_inputs/__init__.py
index be1652c33387..3d7845029145 100644
--- a/src/cloudflare/types/stream/live_inputs/__init__.py
+++ b/src/cloudflare/types/stream/live_inputs/__init__.py
@@ -4,4 +4,5 @@
from .stream_output import StreamOutput as StreamOutput
from .output_create_params import OutputCreateParams as OutputCreateParams
+from .output_delete_params import OutputDeleteParams as OutputDeleteParams
from .output_update_params import OutputUpdateParams as OutputUpdateParams
diff --git a/src/cloudflare/types/stream/live_inputs/output_delete_params.py b/src/cloudflare/types/stream/live_inputs/output_delete_params.py
new file mode 100644
index 000000000000..83c119db5711
--- /dev/null
+++ b/src/cloudflare/types/stream/live_inputs/output_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OutputDeleteParams"]
+
+
+class OutputDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ live_input_identifier: Required[str]
+ """A unique identifier for a live input."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/watermark_delete_params.py b/src/cloudflare/types/stream/watermark_delete_params.py
new file mode 100644
index 000000000000..5fc8a672ea13
--- /dev/null
+++ b/src/cloudflare/types/stream/watermark_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["WatermarkDeleteParams"]
+
+
+class WatermarkDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """The account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream/webhook_delete_params.py b/src/cloudflare/types/stream/webhook_delete_params.py
new file mode 100644
index 000000000000..63b392c9146e
--- /dev/null
+++ b/src/cloudflare/types/stream/webhook_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["WebhookDeleteParams"]
+
+
+class WebhookDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """The account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream_create_params.py b/src/cloudflare/types/stream_create_params.py
new file mode 100644
index 000000000000..438ac398bc74
--- /dev/null
+++ b/src/cloudflare/types/stream_create_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["StreamCreateParams"]
+
+
+class StreamCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """The account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/stream_delete_params.py b/src/cloudflare/types/stream_delete_params.py
new file mode 100644
index 000000000000..dd5ef8cbb5d9
--- /dev/null
+++ b/src/cloudflare/types/stream_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["StreamDeleteParams"]
+
+
+class StreamDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """The account identifier tag."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/subscription_delete_params.py b/src/cloudflare/types/subscription_delete_params.py
new file mode 100644
index 000000000000..9fb12eee32c6
--- /dev/null
+++ b/src/cloudflare/types/subscription_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["SubscriptionDeleteParams"]
+
+
+class SubscriptionDeleteParams(TypedDict, total=False):
+ account_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/user/__init__.py b/src/cloudflare/types/user/__init__.py
index 5281439e432c..ce26f61ed18b 100644
--- a/src/cloudflare/types/user/__init__.py
+++ b/src/cloudflare/types/user/__init__.py
@@ -9,6 +9,7 @@
from .token_get_response import TokenGetResponse as TokenGetResponse
from .invite_get_response import InviteGetResponse as InviteGetResponse
from .token_create_params import TokenCreateParams as TokenCreateParams
+from .token_delete_params import TokenDeleteParams as TokenDeleteParams
from .token_update_params import TokenUpdateParams as TokenUpdateParams
from .invite_edit_response import InviteEditResponse as InviteEditResponse
from .invite_list_response import InviteListResponse as InviteListResponse
@@ -22,6 +23,8 @@
from .subscription_edit_params import SubscriptionEditParams as SubscriptionEditParams
from .organization_get_response import OrganizationGetResponse as OrganizationGetResponse
from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse
+from .organization_delete_params import OrganizationDeleteParams as OrganizationDeleteParams
+from .subscription_delete_params import SubscriptionDeleteParams as SubscriptionDeleteParams
from .subscription_edit_response import SubscriptionEditResponse as SubscriptionEditResponse
from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams
from .organization_delete_response import OrganizationDeleteResponse as OrganizationDeleteResponse
diff --git a/src/cloudflare/types/user/billing/history_get_params.py b/src/cloudflare/types/user/billing/history_get_params.py
index 6e336dee9041..9a7a92aa257e 100644
--- a/src/cloudflare/types/user/billing/history_get_params.py
+++ b/src/cloudflare/types/user/billing/history_get_params.py
@@ -2,12 +2,25 @@
from __future__ import annotations
-from typing_extensions import Literal, TypedDict
+from typing import Union
+from datetime import datetime
+from typing_extensions import Literal, Annotated, TypedDict
+
+from ...._utils import PropertyInfo
__all__ = ["HistoryGetParams"]
class HistoryGetParams(TypedDict, total=False):
+ action: str
+ """The billing item action."""
+
+ occured_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
+ """When the billing item was created."""
+
+ occurred_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
+ """When the billing item was created."""
+
order: Literal["type", "occured_at", "action"]
"""Field to order billing history by."""
@@ -16,3 +29,6 @@ class HistoryGetParams(TypedDict, total=False):
per_page: float
"""Number of items per page."""
+
+ type: str
+ """The billing item type."""
diff --git a/src/cloudflare/types/user/firewall/__init__.py b/src/cloudflare/types/user/firewall/__init__.py
index 252757e19793..5723f0597786 100644
--- a/src/cloudflare/types/user/firewall/__init__.py
+++ b/src/cloudflare/types/user/firewall/__init__.py
@@ -6,4 +6,5 @@
from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams
from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams
from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams
+from .access_rule_delete_params import AccessRuleDeleteParams as AccessRuleDeleteParams
from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse
diff --git a/src/cloudflare/types/user/firewall/access_rule_delete_params.py b/src/cloudflare/types/user/firewall/access_rule_delete_params.py
new file mode 100644
index 000000000000..e51b0124f46c
--- /dev/null
+++ b/src/cloudflare/types/user/firewall/access_rule_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["AccessRuleDeleteParams"]
+
+
+class AccessRuleDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/user/load_balancers/__init__.py b/src/cloudflare/types/user/load_balancers/__init__.py
index acb23dfd7587..cea9ebd43c5e 100644
--- a/src/cloudflare/types/user/load_balancers/__init__.py
+++ b/src/cloudflare/types/user/load_balancers/__init__.py
@@ -5,6 +5,7 @@
from .pool_edit_params import PoolEditParams as PoolEditParams
from .pool_list_params import PoolListParams as PoolListParams
from .pool_create_params import PoolCreateParams as PoolCreateParams
+from .pool_delete_params import PoolDeleteParams as PoolDeleteParams
from .pool_update_params import PoolUpdateParams as PoolUpdateParams
from .load_balancing_pool import LoadBalancingPool as LoadBalancingPool
from .monitor_edit_params import MonitorEditParams as MonitorEditParams
@@ -12,6 +13,7 @@
from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse
from .pool_health_response import PoolHealthResponse as PoolHealthResponse
from .monitor_create_params import MonitorCreateParams as MonitorCreateParams
+from .monitor_delete_params import MonitorDeleteParams as MonitorDeleteParams
from .monitor_update_params import MonitorUpdateParams as MonitorUpdateParams
from .pool_preview_response import PoolPreviewResponse as PoolPreviewResponse
from .load_balancing_monitor import LoadBalancingMonitor as LoadBalancingMonitor
diff --git a/src/cloudflare/types/user/load_balancers/monitor_delete_params.py b/src/cloudflare/types/user/load_balancers/monitor_delete_params.py
new file mode 100644
index 000000000000..4485afe24b9d
--- /dev/null
+++ b/src/cloudflare/types/user/load_balancers/monitor_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["MonitorDeleteParams"]
+
+
+class MonitorDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/user/load_balancers/pool_delete_params.py b/src/cloudflare/types/user/load_balancers/pool_delete_params.py
new file mode 100644
index 000000000000..590d5d7feb72
--- /dev/null
+++ b/src/cloudflare/types/user/load_balancers/pool_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PoolDeleteParams"]
+
+
+class PoolDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/user/organization_delete_params.py b/src/cloudflare/types/user/organization_delete_params.py
new file mode 100644
index 000000000000..0344f7e4d9a9
--- /dev/null
+++ b/src/cloudflare/types/user/organization_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["OrganizationDeleteParams"]
+
+
+class OrganizationDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/user/subscription_delete_params.py b/src/cloudflare/types/user/subscription_delete_params.py
new file mode 100644
index 000000000000..1f60057b206e
--- /dev/null
+++ b/src/cloudflare/types/user/subscription_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["SubscriptionDeleteParams"]
+
+
+class SubscriptionDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/user/token_delete_params.py b/src/cloudflare/types/user/token_delete_params.py
new file mode 100644
index 000000000000..6b9d4f8abef1
--- /dev/null
+++ b/src/cloudflare/types/user/token_delete_params.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["TokenDeleteParams"]
+
+
+class TokenDeleteParams(TypedDict, total=False):
+ body: Required[object]
diff --git a/src/cloudflare/types/vectorize/__init__.py b/src/cloudflare/types/vectorize/__init__.py
index 2abd20d71b24..b8d3a1fb94da 100644
--- a/src/cloudflare/types/vectorize/__init__.py
+++ b/src/cloudflare/types/vectorize/__init__.py
@@ -4,7 +4,9 @@
from .index_query_params import IndexQueryParams as IndexQueryParams
from .index_create_params import IndexCreateParams as IndexCreateParams
+from .index_insert_params import IndexInsertParams as IndexInsertParams
from .index_update_params import IndexUpdateParams as IndexUpdateParams
+from .index_upsert_params import IndexUpsertParams as IndexUpsertParams
from .index_delete_response import IndexDeleteResponse as IndexDeleteResponse
from .vectorize_index_query import VectorizeIndexQuery as VectorizeIndexQuery
from .vectorize_create_index import VectorizeCreateIndex as VectorizeCreateIndex
diff --git a/src/cloudflare/types/vectorize/index_insert_params.py b/src/cloudflare/types/vectorize/index_insert_params.py
new file mode 100644
index 000000000000..7dbc90f7e4df
--- /dev/null
+++ b/src/cloudflare/types/vectorize/index_insert_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IndexInsertParams"]
+
+
+class IndexInsertParams(TypedDict, total=False):
+ account_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/vectorize/index_upsert_params.py b/src/cloudflare/types/vectorize/index_upsert_params.py
new file mode 100644
index 000000000000..4831f16c7279
--- /dev/null
+++ b/src/cloudflare/types/vectorize/index_upsert_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IndexUpsertParams"]
+
+
+class IndexUpsertParams(TypedDict, total=False):
+ account_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/waiting_room_delete_params.py b/src/cloudflare/types/waiting_room_delete_params.py
new file mode 100644
index 000000000000..3db5c55c43d8
--- /dev/null
+++ b/src/cloudflare/types/waiting_room_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["WaitingRoomDeleteParams"]
+
+
+class WaitingRoomDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/waiting_rooms/__init__.py b/src/cloudflare/types/waiting_rooms/__init__.py
index 0ca5f4aadf14..5fe0f550d90a 100644
--- a/src/cloudflare/types/waiting_rooms/__init__.py
+++ b/src/cloudflare/types/waiting_rooms/__init__.py
@@ -7,9 +7,11 @@
from .event_edit_params import EventEditParams as EventEditParams
from .waitingroom_event import WaitingroomEvent as WaitingroomEvent
from .rule_create_params import RuleCreateParams as RuleCreateParams
+from .rule_delete_params import RuleDeleteParams as RuleDeleteParams
from .rule_edit_response import RuleEditResponse as RuleEditResponse
from .rule_update_params import RuleUpdateParams as RuleUpdateParams
from .event_create_params import EventCreateParams as EventCreateParams
+from .event_delete_params import EventDeleteParams as EventDeleteParams
from .event_update_params import EventUpdateParams as EventUpdateParams
from .page_preview_params import PagePreviewParams as PagePreviewParams
from .setting_edit_params import SettingEditParams as SettingEditParams
diff --git a/src/cloudflare/types/waiting_rooms/event_delete_params.py b/src/cloudflare/types/waiting_rooms/event_delete_params.py
new file mode 100644
index 000000000000..785cbedc49a8
--- /dev/null
+++ b/src/cloudflare/types/waiting_rooms/event_delete_params.py
@@ -0,0 +1,16 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["EventDeleteParams"]
+
+
+class EventDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ waiting_room_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/waiting_rooms/rule_delete_params.py b/src/cloudflare/types/waiting_rooms/rule_delete_params.py
new file mode 100644
index 000000000000..34c03b42387b
--- /dev/null
+++ b/src/cloudflare/types/waiting_rooms/rule_delete_params.py
@@ -0,0 +1,16 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleDeleteParams"]
+
+
+class RuleDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ waiting_room_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/warp_connector_list_params.py b/src/cloudflare/types/warp_connector_list_params.py
index a023a1f810f2..fe6b95c78ae5 100644
--- a/src/cloudflare/types/warp_connector_list_params.py
+++ b/src/cloudflare/types/warp_connector_list_params.py
@@ -40,6 +40,9 @@ class WARPConnectorListParams(TypedDict, total=False):
per_page: float
"""Number of results to display."""
+ uuid: str
+ """UUID of the tunnel."""
+
was_active_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
was_inactive_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
diff --git a/src/cloudflare/types/web3/__init__.py b/src/cloudflare/types/web3/__init__.py
index f4b73f591787..e294b32b9f00 100644
--- a/src/cloudflare/types/web3/__init__.py
+++ b/src/cloudflare/types/web3/__init__.py
@@ -4,5 +4,6 @@
from .hostname_edit_params import HostnameEditParams as HostnameEditParams
from .hostname_create_params import HostnameCreateParams as HostnameCreateParams
+from .hostname_delete_params import HostnameDeleteParams as HostnameDeleteParams
from .distributed_web_hostname import DistributedWebHostname as DistributedWebHostname
from .hostname_delete_response import HostnameDeleteResponse as HostnameDeleteResponse
diff --git a/src/cloudflare/types/web3/hostname_delete_params.py b/src/cloudflare/types/web3/hostname_delete_params.py
new file mode 100644
index 000000000000..2ca89e1cf676
--- /dev/null
+++ b/src/cloudflare/types/web3/hostname_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["HostnameDeleteParams"]
+
+
+class HostnameDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py
index 452654803347..5590670fe325 100644
--- a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py
+++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from .entry_create_params import EntryCreateParams as EntryCreateParams
+from .entry_delete_params import EntryDeleteParams as EntryDeleteParams
from .entry_list_response import EntryListResponse as EntryListResponse
from .entry_update_params import EntryUpdateParams as EntryUpdateParams
from .entry_delete_response import EntryDeleteResponse as EntryDeleteResponse
diff --git a/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_params.py b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_params.py
new file mode 100644
index 000000000000..1a69c5ee2277
--- /dev/null
+++ b/src/cloudflare/types/web3/hostnames/ipfs_universal_paths/content_lists/entry_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["EntryDeleteParams"]
+
+
+class EntryDeleteParams(TypedDict, total=False):
+ zone_identifier: Required[str]
+ """Identifier"""
+
+ identifier: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/__init__.py b/src/cloudflare/types/workers/__init__.py
index 64fead694f07..9bb637ef0ebd 100644
--- a/src/cloudflare/types/workers/__init__.py
+++ b/src/cloudflare/types/workers/__init__.py
@@ -10,9 +10,12 @@
from .ai_run_response import AIRunResponse as AIRunResponse
from .domain_list_params import DomainListParams as DomainListParams
from .route_create_params import RouteCreateParams as RouteCreateParams
+from .route_delete_params import RouteDeleteParams as RouteDeleteParams
from .route_update_params import RouteUpdateParams as RouteUpdateParams
+from .domain_delete_params import DomainDeleteParams as DomainDeleteParams
from .domain_update_params import DomainUpdateParams as DomainUpdateParams
from .filter_create_params import FilterCreateParams as FilterCreateParams
+from .filter_delete_params import FilterDeleteParams as FilterDeleteParams
from .filter_update_params import FilterUpdateParams as FilterUpdateParams
from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams
from .script_update_params import ScriptUpdateParams as ScriptUpdateParams
diff --git a/src/cloudflare/types/workers/domain_delete_params.py b/src/cloudflare/types/workers/domain_delete_params.py
new file mode 100644
index 000000000000..59d634fdbefe
--- /dev/null
+++ b/src/cloudflare/types/workers/domain_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["DomainDeleteParams"]
+
+
+class DomainDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/filter_delete_params.py b/src/cloudflare/types/workers/filter_delete_params.py
new file mode 100644
index 000000000000..5c54882d058d
--- /dev/null
+++ b/src/cloudflare/types/workers/filter_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["FilterDeleteParams"]
+
+
+class FilterDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/route_delete_params.py b/src/cloudflare/types/workers/route_delete_params.py
new file mode 100644
index 000000000000..3c1852f10ce8
--- /dev/null
+++ b/src/cloudflare/types/workers/route_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RouteDeleteParams"]
+
+
+class RouteDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/script_delete_params.py b/src/cloudflare/types/workers/script_delete_params.py
index 1d8d872feca1..0766c499c839 100644
--- a/src/cloudflare/types/workers/script_delete_params.py
+++ b/src/cloudflare/types/workers/script_delete_params.py
@@ -11,6 +11,8 @@ class ScriptDeleteParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
+ body: Required[object]
+
force: bool
"""
If set to true, delete will not be stopped by associated service binding,
diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py
index cff0ed258aae..71b1e52e6334 100644
--- a/src/cloudflare/types/workers/scripts/__init__.py
+++ b/src/cloudflare/types/workers/scripts/__init__.py
@@ -4,6 +4,8 @@
from .workers_binding import WorkersBinding as WorkersBinding
from .tail_get_response import TailGetResponse as TailGetResponse
+from .tail_create_params import TailCreateParams as TailCreateParams
+from .tail_delete_params import TailDeleteParams as TailDeleteParams
from .setting_edit_params import SettingEditParams as SettingEditParams
from .binding_get_response import BindingGetResponse as BindingGetResponse
from .setting_get_response import SettingGetResponse as SettingGetResponse
diff --git a/src/cloudflare/types/workers/scripts/setting_edit_params.py b/src/cloudflare/types/workers/scripts/setting_edit_params.py
index b99fd88f5d75..075b4d9915f4 100644
--- a/src/cloudflare/types/workers/scripts/setting_edit_params.py
+++ b/src/cloudflare/types/workers/scripts/setting_edit_params.py
@@ -144,6 +144,8 @@ class SettingsResultBindingWorkersDispatchNamespaceBinding(TypedDict, total=Fals
class SettingsResultBindingWorkersMTLSCERTBinding(TypedDict, total=False):
+ certificate: Required[object]
+
type: Required[Literal["mtls_certificate"]]
"""The class of resource that the binding provides."""
diff --git a/src/cloudflare/types/workers/scripts/setting_edit_response.py b/src/cloudflare/types/workers/scripts/setting_edit_response.py
index b7cda59b6a10..03bca5bece79 100644
--- a/src/cloudflare/types/workers/scripts/setting_edit_response.py
+++ b/src/cloudflare/types/workers/scripts/setting_edit_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers/scripts/setting_get_response.py b/src/cloudflare/types/workers/scripts/setting_get_response.py
index 36b3bb99d354..3a6b1c029c3e 100644
--- a/src/cloudflare/types/workers/scripts/setting_get_response.py
+++ b/src/cloudflare/types/workers/scripts/setting_get_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers/scripts/tail_create_params.py b/src/cloudflare/types/workers/scripts/tail_create_params.py
new file mode 100644
index 000000000000..5fd1875c6eeb
--- /dev/null
+++ b/src/cloudflare/types/workers/scripts/tail_create_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["TailCreateParams"]
+
+
+class TailCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/scripts/tail_delete_params.py b/src/cloudflare/types/workers/scripts/tail_delete_params.py
new file mode 100644
index 000000000000..7b10be84f1ba
--- /dev/null
+++ b/src/cloudflare/types/workers/scripts/tail_delete_params.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["TailDeleteParams"]
+
+
+class TailDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ script_name: Required[str]
+ """Name of the script, used in URLs and route configuration."""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/workers/services/environments/setting_edit_params.py b/src/cloudflare/types/workers/services/environments/setting_edit_params.py
index 949a8f955c2b..856a3766ea59 100644
--- a/src/cloudflare/types/workers/services/environments/setting_edit_params.py
+++ b/src/cloudflare/types/workers/services/environments/setting_edit_params.py
@@ -153,6 +153,8 @@ class ResultBindingWorkersDispatchNamespaceBinding(TypedDict, total=False):
class ResultBindingWorkersMTLSCERTBinding(TypedDict, total=False):
+ certificate: Required[object]
+
type: Required[Literal["mtls_certificate"]]
"""The class of resource that the binding provides."""
diff --git a/src/cloudflare/types/workers/services/environments/setting_edit_response.py b/src/cloudflare/types/workers/services/environments/setting_edit_response.py
index 8428ab406583..19bbf960f0ed 100644
--- a/src/cloudflare/types/workers/services/environments/setting_edit_response.py
+++ b/src/cloudflare/types/workers/services/environments/setting_edit_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers/services/environments/setting_get_response.py b/src/cloudflare/types/workers/services/environments/setting_get_response.py
index d8aae88365b1..fb1db345a37e 100644
--- a/src/cloudflare/types/workers/services/environments/setting_get_response.py
+++ b/src/cloudflare/types/workers/services/environments/setting_get_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py
index 4ab2a41fd37c..7e319272717d 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_delete_params.py
@@ -14,6 +14,8 @@ class ScriptDeleteParams(TypedDict, total=False):
dispatch_namespace: Required[str]
"""Name of the Workers for Platforms dispatch namespace."""
+ body: Required[object]
+
force: bool
"""
If set to true, delete will not be stopped by associated service binding,
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py
index 6f4b5914e883..48f3241f21c2 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/binding_get_response.py
@@ -137,6 +137,8 @@ class WorkersDispatchNamespaceBinding(BaseModel):
class WorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
index 378c1606f720..7180aa4daa24 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
@@ -153,6 +153,8 @@ class ResultBindingWorkersDispatchNamespaceBinding(TypedDict, total=False):
class ResultBindingWorkersMTLSCERTBinding(TypedDict, total=False):
+ certificate: Required[object]
+
type: Required[Literal["mtls_certificate"]]
"""The class of resource that the binding provides."""
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py
index 28aa5217ce78..3f865653be27 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py
index 8b545565fe03..903f2b70102c 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_get_response.py
@@ -150,6 +150,8 @@ class BindingWorkersDispatchNamespaceBinding(BaseModel):
class BindingWorkersMTLSCERTBinding(BaseModel):
+ certificate: object
+
name: str
"""A JavaScript variable name for the binding."""
diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py
index 8406db993750..06e4fc606721 100644
--- a/src/cloudflare/types/zero_trust/access/__init__.py
+++ b/src/cloudflare/types/zero_trust/access/__init__.py
@@ -17,6 +17,9 @@
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
from .zero_trust_bookmarks import ZeroTrustBookmarks as ZeroTrustBookmarks
from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse
+from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams
+from .bookmark_delete_params import BookmarkDeleteParams as BookmarkDeleteParams
+from .bookmark_update_params import BookmarkUpdateParams as BookmarkUpdateParams
from .zero_trust_custom_page import ZeroTrustCustomPage as ZeroTrustCustomPage
from .zero_trust_certificates import ZeroTrustCertificates as ZeroTrustCertificates
from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse
diff --git a/src/cloudflare/types/zero_trust/access/bookmark_create_params.py b/src/cloudflare/types/zero_trust/access/bookmark_create_params.py
new file mode 100644
index 000000000000..4680f846d12b
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/bookmark_create_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["BookmarkCreateParams"]
+
+
+class BookmarkCreateParams(TypedDict, total=False):
+ identifier: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/access/bookmark_delete_params.py b/src/cloudflare/types/zero_trust/access/bookmark_delete_params.py
new file mode 100644
index 000000000000..394d90aa66ab
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/bookmark_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["BookmarkDeleteParams"]
+
+
+class BookmarkDeleteParams(TypedDict, total=False):
+ identifier: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/access/bookmark_update_params.py b/src/cloudflare/types/zero_trust/access/bookmark_update_params.py
new file mode 100644
index 000000000000..58286a723f37
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/bookmark_update_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["BookmarkUpdateParams"]
+
+
+class BookmarkUpdateParams(TypedDict, total=False):
+ identifier: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/devices/__init__.py b/src/cloudflare/types/zero_trust/devices/__init__.py
index 138d36d47e8a..f82aec9d788a 100644
--- a/src/cloudflare/types/zero_trust/devices/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/__init__.py
@@ -5,11 +5,14 @@
from .policy_edit_params import PolicyEditParams as PolicyEditParams
from .device_posture_rules import DevicePostureRules as DevicePostureRules
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
+from .policy_delete_params import PolicyDeleteParams as PolicyDeleteParams
from .revoke_create_params import RevokeCreateParams as RevokeCreateParams
from .dex_test_schemas_http import DEXTestSchemasHTTP as DEXTestSchemasHTTP
from .network_create_params import NetworkCreateParams as NetworkCreateParams
+from .network_delete_params import NetworkDeleteParams as NetworkDeleteParams
from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
from .posture_create_params import PostureCreateParams as PostureCreateParams
+from .posture_delete_params import PostureDeleteParams as PostureDeleteParams
from .posture_update_params import PostureUpdateParams as PostureUpdateParams
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
from .dex_test_create_params import DEXTestCreateParams as DEXTestCreateParams
diff --git a/src/cloudflare/types/zero_trust/devices/network_delete_params.py b/src/cloudflare/types/zero_trust/devices/network_delete_params.py
new file mode 100644
index 000000000000..f8d4d2308be7
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/network_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["NetworkDeleteParams"]
+
+
+class NetworkDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/devices/policy_delete_params.py b/src/cloudflare/types/zero_trust/devices/policy_delete_params.py
new file mode 100644
index 000000000000..4cb2ee753ced
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/policy_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PolicyDeleteParams"]
+
+
+class PolicyDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/devices/posture/__init__.py b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
index 3771dca8a78b..79d462b903a1 100644
--- a/src/cloudflare/types/zero_trust/devices/posture/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
@@ -4,5 +4,6 @@
from .integration_edit_params import IntegrationEditParams as IntegrationEditParams
from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams
+from .integration_delete_params import IntegrationDeleteParams as IntegrationDeleteParams
from .device_posture_integrations import DevicePostureIntegrations as DevicePostureIntegrations
from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse
diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_delete_params.py b/src/cloudflare/types/zero_trust/devices/posture/integration_delete_params.py
new file mode 100644
index 000000000000..ec8c43a8246b
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/posture/integration_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["IntegrationDeleteParams"]
+
+
+class IntegrationDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/devices/posture_delete_params.py b/src/cloudflare/types/zero_trust/devices/posture_delete_params.py
new file mode 100644
index 000000000000..302a213ee483
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/posture_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["PostureDeleteParams"]
+
+
+class PostureDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/dex/fleet_status/digital_experience_monitoring_device.py b/src/cloudflare/types/zero_trust/dex/fleet_status/digital_experience_monitoring_device.py
index 4723dd364ac9..d037562cabf5 100644
--- a/src/cloudflare/types/zero_trust/dex/fleet_status/digital_experience_monitoring_device.py
+++ b/src/cloudflare/types/zero_trust/dex/fleet_status/digital_experience_monitoring_device.py
@@ -16,12 +16,16 @@ class DigitalExperienceMonitoringDevice(BaseModel):
device_id: str = FieldInfo(alias="deviceId")
"""Device identifier (UUID v4)"""
+ mode: object
+
platform: str
"""Operating system"""
status: str
"""Network status"""
+ timestamp: object
+
version: str
"""WARP client version"""
diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py b/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py
index 9c101f89c1ff..9c6d0381c544 100644
--- a/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py
+++ b/src/cloudflare/types/zero_trust/dlp/datasets/__init__.py
@@ -2,4 +2,5 @@
from __future__ import annotations
+from .upload_edit_params import UploadEditParams as UploadEditParams
from .dlp_dataset_new_version import DLPDatasetNewVersion as DLPDatasetNewVersion
diff --git a/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py b/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py
new file mode 100644
index 000000000000..3427ac066d8a
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/dlp/datasets/upload_edit_params.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["UploadEditParams"]
+
+
+class UploadEditParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ dataset_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
index d8af316f5469..43b82cdfeb2c 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
@@ -4,6 +4,7 @@
from .dlp_custom_profile import DLPCustomProfile as DLPCustomProfile
from .custom_create_params import CustomCreateParams as CustomCreateParams
+from .custom_delete_params import CustomDeleteParams as CustomDeleteParams
from .custom_update_params import CustomUpdateParams as CustomUpdateParams
from .custom_create_response import CustomCreateResponse as CustomCreateResponse
from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_params.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_params.py
new file mode 100644
index 000000000000..a4c6ca2be518
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["CustomDeleteParams"]
+
+
+class CustomDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/gateway/__init__.py b/src/cloudflare/types/zero_trust/gateway/__init__.py
index b828b0a84324..54d3311232a5 100644
--- a/src/cloudflare/types/zero_trust/gateway/__init__.py
+++ b/src/cloudflare/types/zero_trust/gateway/__init__.py
@@ -4,14 +4,17 @@
from .list_edit_params import ListEditParams as ListEditParams
from .list_create_params import ListCreateParams as ListCreateParams
+from .list_delete_params import ListDeleteParams as ListDeleteParams
from .list_update_params import ListUpdateParams as ListUpdateParams
from .rule_create_params import RuleCreateParams as RuleCreateParams
+from .rule_delete_params import RuleDeleteParams as RuleDeleteParams
from .rule_update_params import RuleUpdateParams as RuleUpdateParams
from .list_create_response import ListCreateResponse as ListCreateResponse
from .list_delete_response import ListDeleteResponse as ListDeleteResponse
from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse
from .logging_update_params import LoggingUpdateParams as LoggingUpdateParams
from .location_create_params import LocationCreateParams as LocationCreateParams
+from .location_delete_params import LocationDeleteParams as LocationDeleteParams
from .location_update_params import LocationUpdateParams as LocationUpdateParams
from .location_delete_response import LocationDeleteResponse as LocationDeleteResponse
from .zero_trust_gateway_lists import ZeroTrustGatewayLists as ZeroTrustGatewayLists
@@ -23,6 +26,7 @@
from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams
from .zero_trust_gateway_settings import ZeroTrustGatewaySettings as ZeroTrustGatewaySettings
from .proxy_endpoint_create_params import ProxyEndpointCreateParams as ProxyEndpointCreateParams
+from .proxy_endpoint_delete_params import ProxyEndpointDeleteParams as ProxyEndpointDeleteParams
from .zero_trust_gateway_app_types import ZeroTrustGatewayAppTypes as ZeroTrustGatewayAppTypes
from .zero_trust_gateway_locations import ZeroTrustGatewayLocations as ZeroTrustGatewayLocations
from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse
diff --git a/src/cloudflare/types/zero_trust/gateway/list_delete_params.py b/src/cloudflare/types/zero_trust/gateway/list_delete_params.py
new file mode 100644
index 000000000000..42858bd751ea
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/list_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ListDeleteParams"]
+
+
+class ListDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/gateway/location_delete_params.py b/src/cloudflare/types/zero_trust/gateway/location_delete_params.py
new file mode 100644
index 000000000000..afb7d137250f
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/location_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["LocationDeleteParams"]
+
+
+class LocationDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
index 13b00e30d425..cc853dabfad2 100644
--- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
@@ -16,6 +16,3 @@ class ProxyEndpointCreateParams(TypedDict, total=False):
name: Required[str]
"""The name of the proxy endpoint."""
-
- subdomain: str
- """The subdomain to be used as the destination in the proxy client."""
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_params.py
new file mode 100644
index 000000000000..0eaa7e21a79f
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ProxyEndpointDeleteParams"]
+
+
+class ProxyEndpointDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
index d5fa2e5b3afc..893f425c1117 100644
--- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
@@ -16,6 +16,3 @@ class ProxyEndpointEditParams(TypedDict, total=False):
name: str
"""The name of the proxy endpoint."""
-
- subdomain: str
- """The subdomain to be used as the destination in the proxy client."""
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
index fab6e56cb0d4..a0d328795026 100644
--- a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
@@ -42,6 +42,7 @@ class RuleCreateParams(TypedDict, total=False):
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
]
]
"""
@@ -122,10 +123,10 @@ class RuleSettingsCheckSession(TypedDict, total=False):
class RuleSettingsDNSResolversIPV4(TypedDict, total=False):
ip: Required[str]
- """IP address of upstream resolver."""
+ """IPv4 address of upstream resolver."""
port: int
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: bool
"""Whether to connect to this resolver over a private network.
@@ -142,10 +143,10 @@ class RuleSettingsDNSResolversIPV4(TypedDict, total=False):
class RuleSettingsDNSResolversIPV6(TypedDict, total=False):
ip: Required[str]
- """IP address of upstream resolver."""
+ """IPv6 address of upstream resolver."""
port: int
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: bool
"""Whether to connect to this resolver over a private network.
@@ -251,7 +252,8 @@ class RuleSettings(TypedDict, total=False):
"""Add your own custom resolvers to route queries that match the resolver policy.
Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
- route to the address closest to their origin.
+ route to the address closest to their origin. Only valid when a rule's action is
+ set to 'resolve'.
"""
egress: RuleSettingsEgress
@@ -297,7 +299,8 @@ class RuleSettings(TypedDict, total=False):
resolve_dns_through_cloudflare: bool
"""
Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
- resolver. Cannot be set when dns_resolvers are specified.
+ resolver. Cannot be set when dns_resolvers are specified. Only valid when a
+ rule's action is set to 'resolve'.
"""
untrusted_cert: RuleSettingsUntrustedCERT
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_delete_params.py b/src/cloudflare/types/zero_trust/gateway/rule_delete_params.py
new file mode 100644
index 000000000000..f729aaf685c8
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/rule_delete_params.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["RuleDeleteParams"]
+
+
+class RuleDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
index f15db14ba884..4a18456817f5 100644
--- a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
@@ -42,6 +42,7 @@ class RuleUpdateParams(TypedDict, total=False):
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
]
]
"""
@@ -122,10 +123,10 @@ class RuleSettingsCheckSession(TypedDict, total=False):
class RuleSettingsDNSResolversIPV4(TypedDict, total=False):
ip: Required[str]
- """IP address of upstream resolver."""
+ """IPv4 address of upstream resolver."""
port: int
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: bool
"""Whether to connect to this resolver over a private network.
@@ -142,10 +143,10 @@ class RuleSettingsDNSResolversIPV4(TypedDict, total=False):
class RuleSettingsDNSResolversIPV6(TypedDict, total=False):
ip: Required[str]
- """IP address of upstream resolver."""
+ """IPv6 address of upstream resolver."""
port: int
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: bool
"""Whether to connect to this resolver over a private network.
@@ -251,7 +252,8 @@ class RuleSettings(TypedDict, total=False):
"""Add your own custom resolvers to route queries that match the resolver policy.
Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
- route to the address closest to their origin.
+ route to the address closest to their origin. Only valid when a rule's action is
+ set to 'resolve'.
"""
egress: RuleSettingsEgress
@@ -297,7 +299,8 @@ class RuleSettings(TypedDict, total=False):
resolve_dns_through_cloudflare: bool
"""
Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
- resolver. Cannot be set when dns_resolvers are specified.
+ resolver. Cannot be set when dns_resolvers are specified. Only valid when a
+ rule's action is set to 'resolve'.
"""
untrusted_cert: RuleSettingsUntrustedCERT
diff --git a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_rules.py b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_rules.py
index 66c415a0cc92..2a9d518bbb1f 100644
--- a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_rules.py
+++ b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_rules.py
@@ -56,10 +56,10 @@ class RuleSettingsCheckSession(BaseModel):
class RuleSettingsDNSResolversIPV4(BaseModel):
ip: str
- """IP address of upstream resolver."""
+ """IPv4 address of upstream resolver."""
port: Optional[int] = None
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: Optional[bool] = None
"""Whether to connect to this resolver over a private network.
@@ -76,10 +76,10 @@ class RuleSettingsDNSResolversIPV4(BaseModel):
class RuleSettingsDNSResolversIPV6(BaseModel):
ip: str
- """IP address of upstream resolver."""
+ """IPv6 address of upstream resolver."""
port: Optional[int] = None
- """A port number to use for upstream resolver."""
+ """A port number to use for upstream resolver. Defaults to 53 if unspecified."""
route_through_private_network: Optional[bool] = None
"""Whether to connect to this resolver over a private network.
@@ -185,7 +185,8 @@ class RuleSettings(BaseModel):
"""Add your own custom resolvers to route queries that match the resolver policy.
Cannot be used when resolve_dns_through_cloudflare is set. DNS queries will
- route to the address closest to their origin.
+ route to the address closest to their origin. Only valid when a rule's action is
+ set to 'resolve'.
"""
egress: Optional[RuleSettingsEgress] = None
@@ -231,7 +232,8 @@ class RuleSettings(BaseModel):
resolve_dns_through_cloudflare: Optional[bool] = None
"""
Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
- resolver. Cannot be set when dns_resolvers are specified.
+ resolver. Cannot be set when dns_resolvers are specified. Only valid when a
+ rule's action is set to 'resolve'.
"""
untrusted_cert: Optional[RuleSettingsUntrustedCERT] = None
@@ -321,6 +323,7 @@ class ZeroTrustGatewayRules(BaseModel):
"l4_override",
"egress",
"audit_ssh",
+ "resolve",
]
] = None
"""
diff --git a/src/cloudflare/types/zero_trust/networks/__init__.py b/src/cloudflare/types/zero_trust/networks/__init__.py
index 09faf7e05962..0cd0de28fcb9 100644
--- a/src/cloudflare/types/zero_trust/networks/__init__.py
+++ b/src/cloudflare/types/zero_trust/networks/__init__.py
@@ -11,6 +11,7 @@
from .virtual_network_edit_params import VirtualNetworkEditParams as VirtualNetworkEditParams
from .virtual_network_list_params import VirtualNetworkListParams as VirtualNetworkListParams
from .virtual_network_create_params import VirtualNetworkCreateParams as VirtualNetworkCreateParams
+from .virtual_network_delete_params import VirtualNetworkDeleteParams as VirtualNetworkDeleteParams
from .virtual_network_edit_response import VirtualNetworkEditResponse as VirtualNetworkEditResponse
from .virtual_network_create_response import VirtualNetworkCreateResponse as VirtualNetworkCreateResponse
from .virtual_network_delete_response import VirtualNetworkDeleteResponse as VirtualNetworkDeleteResponse
diff --git a/src/cloudflare/types/zero_trust/networks/route_list_params.py b/src/cloudflare/types/zero_trust/networks/route_list_params.py
index 379c44217c13..6b456b4d39ab 100644
--- a/src/cloudflare/types/zero_trust/networks/route_list_params.py
+++ b/src/cloudflare/types/zero_trust/networks/route_list_params.py
@@ -38,6 +38,9 @@ class RouteListParams(TypedDict, total=False):
per_page: float
"""Number of results to display."""
+ route_id: str
+ """UUID of the route."""
+
tun_types: str
"""The types of tunnels to filter separated by a comma."""
diff --git a/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py b/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py
index f82b29850f85..73d466c65294 100644
--- a/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py
+++ b/src/cloudflare/types/zero_trust/networks/routes/network_delete_params.py
@@ -13,3 +13,9 @@ class NetworkDeleteParams(TypedDict, total=False):
tun_type: Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]
"""The type of tunnel."""
+
+ tunnel_id: str
+ """UUID of the tunnel."""
+
+ virtual_network_id: str
+ """UUID of the virtual network."""
diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_delete_params.py b/src/cloudflare/types/zero_trust/networks/virtual_network_delete_params.py
new file mode 100644
index 000000000000..6fe5cb76ca20
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/networks/virtual_network_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["VirtualNetworkDeleteParams"]
+
+
+class VirtualNetworkDeleteParams(TypedDict, total=False):
+ account_id: Required[str]
+ """Cloudflare account ID"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py b/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py
index 22ea35d39b9e..6c74f6ac9085 100644
--- a/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py
+++ b/src/cloudflare/types/zero_trust/networks/virtual_network_list_params.py
@@ -28,5 +28,8 @@ class VirtualNetworkListParams(TypedDict, total=False):
name: str
"""A user-friendly name for the virtual network."""
+ vnet_id: str
+ """UUID of the virtual network."""
+
vnet_name: str
"""A user-friendly name for the virtual network."""
diff --git a/src/cloudflare/types/zero_trust/tunnel_list_params.py b/src/cloudflare/types/zero_trust/tunnel_list_params.py
index 8b2139d800b9..e5f6d43dd32e 100644
--- a/src/cloudflare/types/zero_trust/tunnel_list_params.py
+++ b/src/cloudflare/types/zero_trust/tunnel_list_params.py
@@ -43,6 +43,9 @@ class TunnelListParams(TypedDict, total=False):
tun_types: str
"""The types of tunnels to filter separated by a comma."""
+ uuid: str
+ """UUID of the tunnel."""
+
was_active_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
was_inactive_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
diff --git a/src/cloudflare/types/zones/workers/__init__.py b/src/cloudflare/types/zones/workers/__init__.py
index 8088e77b6c97..238c4989cf13 100644
--- a/src/cloudflare/types/zones/workers/__init__.py
+++ b/src/cloudflare/types/zones/workers/__init__.py
@@ -2,4 +2,6 @@
from __future__ import annotations
+from .script_delete_params import ScriptDeleteParams as ScriptDeleteParams
+from .script_update_params import ScriptUpdateParams as ScriptUpdateParams
from .script_update_response import ScriptUpdateResponse as ScriptUpdateResponse
diff --git a/src/cloudflare/types/zones/workers/script_delete_params.py b/src/cloudflare/types/zones/workers/script_delete_params.py
new file mode 100644
index 000000000000..235462b968ab
--- /dev/null
+++ b/src/cloudflare/types/zones/workers/script_delete_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ScriptDeleteParams"]
+
+
+class ScriptDeleteParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/src/cloudflare/types/zones/workers/script_update_params.py b/src/cloudflare/types/zones/workers/script_update_params.py
new file mode 100644
index 000000000000..d46e8e5c42a3
--- /dev/null
+++ b/src/cloudflare/types/zones/workers/script_update_params.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["ScriptUpdateParams"]
+
+
+class ScriptUpdateParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ body: Required[object]
diff --git a/tests/api_resources/accounts/test_members.py b/tests/api_resources/accounts/test_members.py
index 4ea1f20e5e9b..37dfae5e8a14 100644
--- a/tests/api_resources/accounts/test_members.py
+++ b/tests/api_resources/accounts/test_members.py
@@ -209,6 +209,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
member = client.accounts.members.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
)
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
@@ -218,6 +219,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.accounts.members.with_raw_response.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
)
assert response.is_closed is True
@@ -231,6 +233,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.accounts.members.with_streaming_response.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -247,6 +250,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.accounts.members.with_raw_response.delete(
"",
account_id={},
+ body={},
)
@pytest.mark.skip()
@@ -485,6 +489,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
member = await async_client.accounts.members.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
)
assert_matches_type(Optional[MemberDeleteResponse], member, path=["response"])
@@ -494,6 +499,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.accounts.members.with_raw_response.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
)
assert response.is_closed is True
@@ -507,6 +513,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.accounts.members.with_streaming_response.delete(
"4536bcfad5faccb111b47003c79917fa",
account_id={},
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -523,6 +530,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.accounts.members.with_raw_response.delete(
"",
account_id={},
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py
index 08b9ff080cf6..873237569e96 100644
--- a/tests/api_resources/addressing/address_maps/test_accounts.py
+++ b/tests/api_resources/addressing/address_maps/test_accounts.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import AccountDeleteResponse, 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")
@@ -23,6 +26,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account = client.addressing.address_maps.accounts.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@@ -32,6 +36,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.accounts.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -45,6 +50,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.addressing.address_maps.accounts.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,12 +67,14 @@ def test_path_params_update(self, client: Cloudflare) -> None:
client.addressing.address_maps.accounts.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.accounts.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -75,6 +83,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account = client.addressing.address_maps.accounts.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@@ -84,6 +93,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.accounts.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -97,6 +107,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.accounts.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -113,12 +124,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.addressing.address_maps.accounts.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.accounts.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -131,6 +144,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account = await async_client.addressing.address_maps.accounts.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@@ -140,6 +154,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.accounts.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -153,6 +168,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
async with async_client.addressing.address_maps.accounts.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -169,12 +185,14 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.address_maps.accounts.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.accounts.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -183,6 +201,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account = await async_client.addressing.address_maps.accounts.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@@ -192,6 +211,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.accounts.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -205,6 +225,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.addressing.address_maps.accounts.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -221,10 +242,12 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.address_maps.accounts.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.accounts.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py
index 834f7e4a0213..5ac092eb7624 100644
--- a/tests/api_resources/addressing/address_maps/test_ips.py
+++ b/tests/api_resources/addressing/address_maps/test_ips.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import IPDeleteResponse, 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")
@@ -24,6 +27,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@@ -34,6 +38,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -48,6 +53,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -65,6 +71,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -72,6 +79,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
@@ -79,6 +87,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -88,6 +97,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@@ -98,6 +108,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -112,6 +123,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -129,6 +141,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -136,6 +149,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
@@ -143,6 +157,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -156,6 +171,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@@ -166,6 +182,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -180,6 +197,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -197,6 +215,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -204,6 +223,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
@@ -211,6 +231,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -220,6 +241,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@@ -230,6 +252,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -244,6 +267,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -261,6 +285,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -268,6 +293,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"192.0.2.1",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
@@ -275,4 +301,5 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py
index 20cd76f72457..450019f8c449 100644
--- a/tests/api_resources/addressing/address_maps/test_zones.py
+++ b/tests/api_resources/addressing/address_maps/test_zones.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import ZoneDeleteResponse, 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")
@@ -24,6 +27,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@@ -34,6 +38,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -48,6 +53,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -65,6 +71,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -72,6 +79,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -79,6 +87,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -88,6 +97,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@@ -98,6 +108,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -112,6 +123,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -129,6 +141,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -136,6 +149,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -143,6 +157,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -156,6 +171,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@@ -166,6 +182,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -180,6 +197,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -197,6 +215,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -204,6 +223,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -211,6 +231,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -220,6 +241,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@@ -230,6 +252,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -244,6 +267,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -261,6 +285,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -268,6 +293,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
@@ -275,4 +301,5 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/addressing/prefixes/test_delegations.py b/tests/api_resources/addressing/prefixes/test_delegations.py
index a915d91accc5..2630788a5c0e 100644
--- a/tests/api_resources/addressing/prefixes/test_delegations.py
+++ b/tests/api_resources/addressing/prefixes/test_delegations.py
@@ -142,6 +142,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DelegationDeleteResponse, delegation, path=["response"])
@@ -152,6 +153,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -166,6 +168,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -183,6 +186,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
@@ -190,6 +194,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `delegation_id` but received ''"):
@@ -197,6 +202,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -324,6 +330,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DelegationDeleteResponse, delegation, path=["response"])
@@ -334,6 +341,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -348,6 +356,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -365,6 +374,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
@@ -372,6 +382,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"d933b1530bc56c9953cf8ce166da8004",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `delegation_id` but received ''"):
@@ -379,4 +390,5 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py
index d45b35475fda..d97e34185aed 100644
--- a/tests/api_resources/addressing/test_address_maps.py
+++ b/tests/api_resources/addressing/test_address_maps.py
@@ -123,6 +123,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@@ -132,6 +133,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -145,6 +147,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -161,12 +164,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.addressing.address_maps.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -389,6 +394,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@@ -398,6 +404,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -411,6 +418,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.addressing.address_maps.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -427,12 +435,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.address_maps.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py
index a77715e5a73c..69b0b61d2881 100644
--- a/tests/api_resources/addressing/test_prefixes.py
+++ b/tests/api_resources/addressing/test_prefixes.py
@@ -123,6 +123,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@@ -132,6 +133,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -145,6 +147,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -161,12 +164,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.addressing.prefixes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -384,6 +389,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@@ -393,6 +399,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -406,6 +413,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.addressing.prefixes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -422,12 +430,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.prefixes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/cache/test_cache_reserve.py b/tests/api_resources/cache/test_cache_reserve.py
index 8ab59cae0918..a6543e9e10e1 100644
--- a/tests/api_resources/cache/test_cache_reserve.py
+++ b/tests/api_resources/cache/test_cache_reserve.py
@@ -27,6 +27,7 @@ class TestCacheReserve:
def test_method_clear(self, client: Cloudflare) -> None:
cache_reserve = client.cache.cache_reserve.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
)
assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"])
@@ -35,6 +36,7 @@ def test_method_clear(self, client: Cloudflare) -> None:
def test_raw_response_clear(self, client: Cloudflare) -> None:
response = client.cache.cache_reserve.with_raw_response.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
)
assert response.is_closed is True
@@ -47,6 +49,7 @@ def test_raw_response_clear(self, client: Cloudflare) -> None:
def test_streaming_response_clear(self, client: Cloudflare) -> None:
with client.cache.cache_reserve.with_streaming_response.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -62,6 +65,7 @@ def test_path_params_clear(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.cache.cache_reserve.with_raw_response.clear(
zone_id="",
+ body="{}",
)
@pytest.mark.skip()
@@ -203,6 +207,7 @@ class TestAsyncCacheReserve:
async def test_method_clear(self, async_client: AsyncCloudflare) -> None:
cache_reserve = await async_client.cache.cache_reserve.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
)
assert_matches_type(CacheReserveClearResponse, cache_reserve, path=["response"])
@@ -211,6 +216,7 @@ async def test_method_clear(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None:
response = await async_client.cache.cache_reserve.with_raw_response.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
)
assert response.is_closed is True
@@ -223,6 +229,7 @@ async def test_raw_response_clear(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_clear(self, async_client: AsyncCloudflare) -> None:
async with async_client.cache.cache_reserve.with_streaming_response.clear(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body="{}",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -238,6 +245,7 @@ async def test_path_params_clear(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.cache.cache_reserve.with_raw_response.clear(
zone_id="",
+ body="{}",
)
@pytest.mark.skip()
diff --git a/tests/api_resources/cache/test_smart_tiered_cache.py b/tests/api_resources/cache/test_smart_tiered_cache.py
index 2ebc31bf1e42..a45c9af8dba7 100644
--- a/tests/api_resources/cache/test_smart_tiered_cache.py
+++ b/tests/api_resources/cache/test_smart_tiered_cache.py
@@ -26,6 +26,7 @@ class TestSmartTieredCache:
def test_method_delete(self, client: Cloudflare) -> None:
smart_tiered_cache = client.cache.smart_tiered_cache.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@@ -34,6 +35,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.cache.smart_tiered_cache.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -46,6 +48,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.cache.smart_tiered_cache.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,6 +64,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.cache.smart_tiered_cache.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -160,6 +164,7 @@ class TestAsyncSmartTieredCache:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
smart_tiered_cache = await async_client.cache.smart_tiered_cache.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@@ -168,6 +173,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.cache.smart_tiered_cache.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -180,6 +186,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.cache.smart_tiered_cache.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -195,6 +202,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.cache.smart_tiered_cache.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/cache/test_variants.py b/tests/api_resources/cache/test_variants.py
index 3e2a199f3aba..6fe45951d3cd 100644
--- a/tests/api_resources/cache/test_variants.py
+++ b/tests/api_resources/cache/test_variants.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.cache import CacheVariants, VariantGetResponse, VariantEditResponse
+from cloudflare.types.cache import (
+ CacheVariants,
+ VariantGetResponse,
+ VariantEditResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -22,6 +26,7 @@ class TestVariants:
def test_method_delete(self, client: Cloudflare) -> None:
variant = client.cache.variants.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CacheVariants, variant, path=["response"])
@@ -30,6 +35,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.cache.variants.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -42,6 +48,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.cache.variants.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -57,6 +64,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.cache.variants.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -177,6 +185,7 @@ class TestAsyncVariants:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.cache.variants.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CacheVariants, variant, path=["response"])
@@ -185,6 +194,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.cache.variants.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -197,6 +207,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.cache.variants.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -212,6 +223,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.cache.variants.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/custom_hostnames/test_fallback_origin.py b/tests/api_resources/custom_hostnames/test_fallback_origin.py
index 4f78b5798304..ba04772700c9 100644
--- a/tests/api_resources/custom_hostnames/test_fallback_origin.py
+++ b/tests/api_resources/custom_hostnames/test_fallback_origin.py
@@ -72,6 +72,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
fallback_origin = client.custom_hostnames.fallback_origin.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@@ -80,6 +81,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.custom_hostnames.fallback_origin.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -92,6 +94,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.custom_hostnames.fallback_origin.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -107,6 +110,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.custom_hostnames.fallback_origin.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -206,6 +210,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
fallback_origin = await async_client.custom_hostnames.fallback_origin.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@@ -214,6 +219,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.custom_hostnames.fallback_origin.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -226,6 +232,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.custom_hostnames.fallback_origin.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -241,6 +248,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.custom_hostnames.fallback_origin.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/dns/test_firewall.py b/tests/api_resources/dns/test_firewall.py
index 736b3bf0e5fb..4998c25f9b6d 100644
--- a/tests/api_resources/dns/test_firewall.py
+++ b/tests/api_resources/dns/test_firewall.py
@@ -150,6 +150,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
firewall = client.dns.firewall.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(FirewallDeleteResponse, firewall, path=["response"])
@@ -159,6 +160,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.dns.firewall.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -172,6 +174,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.dns.firewall.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -188,12 +191,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.dns.firewall.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_firewall_id` but received ''"):
client.dns.firewall.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -491,6 +496,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
firewall = await async_client.dns.firewall.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(FirewallDeleteResponse, firewall, path=["response"])
@@ -500,6 +506,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.firewall.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -513,6 +520,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.dns.firewall.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -529,12 +537,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.dns.firewall.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_firewall_id` but received ''"):
await async_client.dns.firewall.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py
index 3ef9bf993d8c..90b62501c5cc 100644
--- a/tests/api_resources/dns/test_records.py
+++ b/tests/api_resources/dns/test_records.py
@@ -3278,6 +3278,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
record = client.dns.records.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[RecordDeleteResponse], record, path=["response"])
@@ -3287,6 +3288,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -3300,6 +3302,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -3316,12 +3319,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.dns.records.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -5206,6 +5211,7 @@ def test_path_params_import(self, client: Cloudflare) -> None:
def test_method_scan(self, client: Cloudflare) -> None:
record = client.dns.records.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RecordScanResponse, record, path=["response"])
@@ -5214,6 +5220,7 @@ def test_method_scan(self, client: Cloudflare) -> None:
def test_raw_response_scan(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -5226,6 +5233,7 @@ def test_raw_response_scan(self, client: Cloudflare) -> None:
def test_streaming_response_scan(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -5241,6 +5249,7 @@ def test_path_params_scan(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.dns.records.with_raw_response.scan(
zone_id="",
+ body={},
)
@@ -8502,6 +8511,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[RecordDeleteResponse], record, path=["response"])
@@ -8511,6 +8521,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -8524,6 +8535,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.dns.records.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -8540,12 +8552,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.dns.records.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -10430,6 +10444,7 @@ async def test_path_params_import(self, async_client: AsyncCloudflare) -> None:
async def test_method_scan(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RecordScanResponse, record, path=["response"])
@@ -10438,6 +10453,7 @@ async def test_method_scan(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_scan(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -10450,6 +10466,7 @@ async def test_raw_response_scan(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_scan(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.scan(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -10465,4 +10482,5 @@ async def test_path_params_scan(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.dns.records.with_raw_response.scan(
zone_id="",
+ body={},
)
diff --git a/tests/api_resources/firewall/test_access_rules.py b/tests/api_resources/firewall/test_access_rules.py
index bf341bcad2e3..c9b0ae0cb229 100644
--- a/tests/api_resources/firewall/test_access_rules.py
+++ b/tests/api_resources/firewall/test_access_rules.py
@@ -183,6 +183,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
access_rule = client.firewall.access_rules.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -193,6 +194,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
access_rule = client.firewall.access_rules.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -203,6 +205,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -217,6 +220,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.firewall.access_rules.with_streaming_response.delete(
{},
+ body={},
account_id="string",
zone_id="string",
) as response:
@@ -234,6 +238,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="",
zone_id="string",
)
@@ -241,6 +246,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="string",
zone_id="",
)
@@ -559,6 +565,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
access_rule = await async_client.firewall.access_rules.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -569,6 +576,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare) -> None:
access_rule = await async_client.firewall.access_rules.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -579,6 +587,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="string",
zone_id="string",
)
@@ -593,6 +602,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.firewall.access_rules.with_streaming_response.delete(
{},
+ body={},
account_id="string",
zone_id="string",
) as response:
@@ -610,6 +620,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="",
zone_id="string",
)
@@ -617,6 +628,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.firewall.access_rules.with_raw_response.delete(
{},
+ body={},
account_id="string",
zone_id="",
)
diff --git a/tests/api_resources/firewall/test_lockdowns.py b/tests/api_resources/firewall/test_lockdowns.py
index 16e5b7909e48..f83e6451362d 100644
--- a/tests/api_resources/firewall/test_lockdowns.py
+++ b/tests/api_resources/firewall/test_lockdowns.py
@@ -9,6 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from cloudflare.types.firewall import (
FirewallZoneLockdown,
@@ -137,11 +138,13 @@ def test_method_list(self, client: Cloudflare) -> None:
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
lockdown = client.firewall.lockdowns.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ created_on=parse_datetime("2014-01-01T05:20:00.12345Z"),
description="endpoints",
description_search="endpoints",
ip="1.2.3.4",
ip_range_search="1.2.3.0/16",
ip_search="1.2.3.4",
+ modified_on=parse_datetime("2014-01-01T05:20:00.12345Z"),
page=1,
per_page=1,
priority=5,
@@ -189,6 +192,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
lockdown = client.firewall.lockdowns.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[LockdownDeleteResponse], lockdown, path=["response"])
@@ -198,6 +202,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.firewall.lockdowns.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -211,6 +216,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.firewall.lockdowns.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -227,12 +233,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.firewall.lockdowns.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
client.firewall.lockdowns.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -407,11 +415,13 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
lockdown = await async_client.firewall.lockdowns.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ created_on=parse_datetime("2014-01-01T05:20:00.12345Z"),
description="endpoints",
description_search="endpoints",
ip="1.2.3.4",
ip_range_search="1.2.3.0/16",
ip_search="1.2.3.4",
+ modified_on=parse_datetime("2014-01-01T05:20:00.12345Z"),
page=1,
per_page=1,
priority=5,
@@ -459,6 +469,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
lockdown = await async_client.firewall.lockdowns.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[LockdownDeleteResponse], lockdown, path=["response"])
@@ -468,6 +479,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.firewall.lockdowns.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -481,6 +493,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.firewall.lockdowns.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -497,12 +510,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.firewall.lockdowns.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
await async_client.firewall.lockdowns.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/firewall/test_rules.py b/tests/api_resources/firewall/test_rules.py
index aefacf8cab21..cc9ebc236756 100644
--- a/tests/api_resources/firewall/test_rules.py
+++ b/tests/api_resources/firewall/test_rules.py
@@ -138,6 +138,7 @@ def test_method_list(self, client: Cloudflare) -> None:
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
rule = client.firewall.rules.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ id="372e67954025e0ba6aaa6d586b9e0b60",
action="block",
description="mir",
page=1,
@@ -303,8 +304,18 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
rule = client.firewall.rules.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
+ )
+ assert_matches_type(Optional[FirewallFilterRule], rule, path=["response"])
+
+ @pytest.mark.skip()
+ @parametrize
+ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
+ rule = client.firewall.rules.get(
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
+ query_id="372e67954025e0ba6aaa6d586b9e0b60",
)
assert_matches_type(Optional[FirewallFilterRule], rule, path=["response"])
@@ -312,8 +323,8 @@ def test_method_get(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.firewall.rules.with_raw_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
)
assert response.is_closed is True
@@ -325,8 +336,8 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.firewall.rules.with_streaming_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -339,16 +350,17 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_id` but received ''"):
client.firewall.rules.with_raw_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="",
+ query_id="",
)
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
client.firewall.rules.with_raw_response.get(
"",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
)
@@ -471,6 +483,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.firewall.rules.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ id="372e67954025e0ba6aaa6d586b9e0b60",
action="block",
description="mir",
page=1,
@@ -636,8 +649,18 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.firewall.rules.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
+ )
+ assert_matches_type(Optional[FirewallFilterRule], rule, path=["response"])
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -> None:
+ rule = await async_client.firewall.rules.get(
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
+ query_id="372e67954025e0ba6aaa6d586b9e0b60",
)
assert_matches_type(Optional[FirewallFilterRule], rule, path=["response"])
@@ -645,8 +668,8 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.firewall.rules.with_raw_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
)
assert response.is_closed is True
@@ -658,8 +681,8 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.firewall.rules.with_streaming_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -672,14 +695,15 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_id` but received ''"):
await async_client.firewall.rules.with_raw_response.get(
- "372e67954025e0ba6aaa6d586b9e0b60",
- zone_identifier="",
+ "023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="",
+ query_id="",
)
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
await async_client.firewall.rules.with_raw_response.get(
"",
- zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ path_id="372e67954025e0ba6aaa6d586b9e0b60",
)
diff --git a/tests/api_resources/firewall/test_ua_rules.py b/tests/api_resources/firewall/test_ua_rules.py
index abfd4e9c3cac..52b9554c76d3 100644
--- a/tests/api_resources/firewall/test_ua_rules.py
+++ b/tests/api_resources/firewall/test_ua_rules.py
@@ -188,6 +188,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
ua_rule = client.firewall.ua_rules.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[UARuleDeleteResponse], ua_rule, path=["response"])
@@ -197,6 +198,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.firewall.ua_rules.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -210,6 +212,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.firewall.ua_rules.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -226,12 +229,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.firewall.ua_rules.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
client.firewall.ua_rules.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -454,6 +459,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
ua_rule = await async_client.firewall.ua_rules.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[UARuleDeleteResponse], ua_rule, path=["response"])
@@ -463,6 +469,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.firewall.ua_rules.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -476,6 +483,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.firewall.ua_rules.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -492,12 +500,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.firewall.ua_rules.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
await async_client.firewall.ua_rules.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/firewall/waf/packages/test_groups.py b/tests/api_resources/firewall/waf/packages/test_groups.py
index 78d0a1471464..1ec43f16b3df 100644
--- a/tests/api_resources/firewall/waf/packages/test_groups.py
+++ b/tests/api_resources/firewall/waf/packages/test_groups.py
@@ -40,9 +40,11 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
direction="desc",
match="any",
mode="on",
+ name="Project Honey Pot",
order="mode",
page=1,
per_page=5,
+ rules_count=10,
)
assert_matches_type(SyncV4PagePaginationArray[WAFManagedRulesGroup], group, path=["response"])
@@ -250,9 +252,11 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
direction="desc",
match="any",
mode="on",
+ name="Project Honey Pot",
order="mode",
page=1,
per_page=5,
+ rules_count=10,
)
assert_matches_type(AsyncV4PagePaginationArray[WAFManagedRulesGroup], group, path=["response"])
diff --git a/tests/api_resources/firewall/waf/packages/test_rules.py b/tests/api_resources/firewall/waf/packages/test_rules.py
index 232e8abea4f6..5cd2c4812696 100644
--- a/tests/api_resources/firewall/waf/packages/test_rules.py
+++ b/tests/api_resources/firewall/waf/packages/test_rules.py
@@ -37,12 +37,15 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
rule = client.firewall.waf.packages.rules.list(
"a25a9a7e9c00afc1fb2e0245519d725b",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ description="SQL injection prevention for SELECT statements",
direction="desc",
+ group_id="de677e5818985db1285d0e80225f06e5",
match="any",
mode="CHL",
order="priority",
page=1,
per_page=5,
+ priority="string",
)
assert_matches_type(SyncV4PagePaginationArray[WAFManagedRulesRule], rule, path=["response"])
@@ -247,12 +250,15 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
rule = await async_client.firewall.waf.packages.rules.list(
"a25a9a7e9c00afc1fb2e0245519d725b",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ description="SQL injection prevention for SELECT statements",
direction="desc",
+ group_id="de677e5818985db1285d0e80225f06e5",
match="any",
mode="CHL",
order="priority",
page=1,
per_page=5,
+ priority="string",
)
assert_matches_type(AsyncV4PagePaginationArray[WAFManagedRulesRule], rule, path=["response"])
diff --git a/tests/api_resources/firewall/waf/test_overrides.py b/tests/api_resources/firewall/waf/test_overrides.py
index 54cbdacc6d03..da8e718d986e 100644
--- a/tests/api_resources/firewall/waf/test_overrides.py
+++ b/tests/api_resources/firewall/waf/test_overrides.py
@@ -182,6 +182,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
override = client.firewall.waf.overrides.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[OverrideDeleteResponse], override, path=["response"])
@@ -191,6 +192,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.firewall.waf.overrides.with_raw_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -204,6 +206,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.firewall.waf.overrides.with_streaming_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -220,12 +223,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.firewall.waf.overrides.with_raw_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
client.firewall.waf.overrides.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -445,6 +450,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
override = await async_client.firewall.waf.overrides.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[OverrideDeleteResponse], override, path=["response"])
@@ -454,6 +460,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.firewall.waf.overrides.with_raw_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -467,6 +474,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.firewall.waf.overrides.with_streaming_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -483,12 +491,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.firewall.waf.overrides.with_raw_response.delete(
"de677e5818985db1285d0e80225f06e5",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
await async_client.firewall.waf.overrides.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/firewall/waf/test_packages.py b/tests/api_resources/firewall/waf/test_packages.py
index 759f76e4317b..d1036e2d65f2 100644
--- a/tests/api_resources/firewall/waf/test_packages.py
+++ b/tests/api_resources/firewall/waf/test_packages.py
@@ -33,6 +33,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
direction="desc",
match="any",
+ name="USER",
order="name",
page=1,
per_page=5,
@@ -144,6 +145,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
"023e105f4ecef8ad9ca31a8372d0c353",
direction="desc",
match="any",
+ name="USER",
order="name",
page=1,
per_page=5,
diff --git a/tests/api_resources/healthchecks/test_previews.py b/tests/api_resources/healthchecks/test_previews.py
index f6a16e32539a..016bfb894088 100644
--- a/tests/api_resources/healthchecks/test_previews.py
+++ b/tests/api_resources/healthchecks/test_previews.py
@@ -110,6 +110,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
preview = client.healthchecks.previews.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(PreviewDeleteResponse, preview, path=["response"])
@@ -119,6 +120,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.healthchecks.previews.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -132,6 +134,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.healthchecks.previews.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -148,12 +151,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.healthchecks.previews.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `healthcheck_id` but received ''"):
client.healthchecks.previews.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -304,6 +309,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
preview = await async_client.healthchecks.previews.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(PreviewDeleteResponse, preview, path=["response"])
@@ -313,6 +319,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.healthchecks.previews.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -326,6 +333,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.healthchecks.previews.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -342,12 +350,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.healthchecks.previews.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `healthcheck_id` but received ''"):
await async_client.healthchecks.previews.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/hyperdrive/test_configs.py b/tests/api_resources/hyperdrive/test_configs.py
index 5871ea95f2f9..6839d6d1b25d 100644
--- a/tests/api_resources/hyperdrive/test_configs.py
+++ b/tests/api_resources/hyperdrive/test_configs.py
@@ -30,6 +30,7 @@ class TestConfigs:
def test_method_create(self, client: Cloudflare) -> None:
config = client.hyperdrive.configs.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
assert_matches_type(Optional[ConfigCreateResponse], config, path=["response"])
@@ -39,6 +40,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.hyperdrive.configs.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
@@ -52,6 +54,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.hyperdrive.configs.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
) as response:
assert not response.is_closed
@@ -68,6 +71,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.hyperdrive.configs.with_raw_response.create(
account_id="",
+ name={},
origin={"password": "password1234!"},
)
@@ -77,6 +81,7 @@ def test_method_update(self, client: Cloudflare) -> None:
config = client.hyperdrive.configs.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
assert_matches_type(Optional[ConfigUpdateResponse], config, path=["response"])
@@ -87,6 +92,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.hyperdrive.configs.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
@@ -101,6 +107,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.hyperdrive.configs.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
) as response:
assert not response.is_closed
@@ -118,6 +125,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
client.hyperdrive.configs.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ name={},
origin={"password": "password1234!"},
)
@@ -125,6 +133,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
client.hyperdrive.configs.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
@@ -345,6 +354,7 @@ class TestAsyncConfigs:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
config = await async_client.hyperdrive.configs.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
assert_matches_type(Optional[ConfigCreateResponse], config, path=["response"])
@@ -354,6 +364,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.hyperdrive.configs.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
@@ -367,6 +378,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.hyperdrive.configs.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
) as response:
assert not response.is_closed
@@ -383,6 +395,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.hyperdrive.configs.with_raw_response.create(
account_id="",
+ name={},
origin={"password": "password1234!"},
)
@@ -392,6 +405,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
config = await async_client.hyperdrive.configs.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
assert_matches_type(Optional[ConfigUpdateResponse], config, path=["response"])
@@ -402,6 +416,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.hyperdrive.configs.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
@@ -416,6 +431,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
async with async_client.hyperdrive.configs.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
) as response:
assert not response.is_closed
@@ -433,6 +449,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
await async_client.hyperdrive.configs.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ name={},
origin={"password": "password1234!"},
)
@@ -440,6 +457,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
await async_client.hyperdrive.configs.with_raw_response.update(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ name={},
origin={"password": "password1234!"},
)
diff --git a/tests/api_resources/images/test_v1.py b/tests/api_resources/images/test_v1.py
index f3420a94005c..0093f38741ec 100644
--- a/tests/api_resources/images/test_v1.py
+++ b/tests/api_resources/images/test_v1.py
@@ -172,6 +172,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
v1 = client.images.v1.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(V1DeleteResponse, v1, path=["response"])
@@ -181,6 +182,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.images.v1.with_raw_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -194,6 +196,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.images.v1.with_streaming_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -210,12 +213,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.images.v1.with_raw_response.delete(
"string",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `image_id` but received ''"):
client.images.v1.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -487,6 +492,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
v1 = await async_client.images.v1.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(V1DeleteResponse, v1, path=["response"])
@@ -496,6 +502,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.with_raw_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -509,6 +516,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.images.v1.with_streaming_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -525,12 +533,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.images.v1.with_raw_response.delete(
"string",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `image_id` but received ''"):
await async_client.images.v1.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py
index c1635eadd07e..eb53e54eccaf 100644
--- a/tests/api_resources/images/v1/test_variants.py
+++ b/tests/api_resources/images/v1/test_variants.py
@@ -155,6 +155,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@@ -164,6 +165,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.images.v1.variants.with_raw_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -177,6 +179,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.images.v1.variants.with_streaming_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -193,12 +196,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.images.v1.variants.with_raw_response.delete(
"string",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
client.images.v1.variants.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -489,6 +494,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@@ -498,6 +504,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.variants.with_raw_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -511,6 +518,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.images.v1.variants.with_streaming_response.delete(
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -527,12 +535,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.images.v1.variants.with_raw_response.delete(
"string",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
await async_client.images.v1.variants.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/kv/namespaces/test_values.py b/tests/api_resources/kv/namespaces/test_values.py
index 0327c01e662d..9003443b5e9d 100644
--- a/tests/api_resources/kv/namespaces/test_values.py
+++ b/tests/api_resources/kv/namespaces/test_values.py
@@ -103,6 +103,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
assert_matches_type(ValueDeleteResponse, value, path=["response"])
@@ -113,6 +114,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
assert response.is_closed is True
@@ -127,6 +129,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -144,6 +147,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"My-Key",
account_id="",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `namespace_id` but received ''"):
@@ -151,6 +155,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_name` but received ''"):
@@ -158,6 +163,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
@pytest.mark.skip()
@@ -311,6 +317,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
assert_matches_type(ValueDeleteResponse, value, path=["response"])
@@ -321,6 +328,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
assert response.is_closed is True
@@ -335,6 +343,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -352,6 +361,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"My-Key",
account_id="",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `namespace_id` but received ''"):
@@ -359,6 +369,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"My-Key",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `key_name` but received ''"):
@@ -366,6 +377,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
namespace_id="0f2ac74b498b48028cb68387c421e279",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/kv/test_namespaces.py b/tests/api_resources/kv/test_namespaces.py
index 4378cf98d84f..9c99fad6cc80 100644
--- a/tests/api_resources/kv/test_namespaces.py
+++ b/tests/api_resources/kv/test_namespaces.py
@@ -185,6 +185,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
namespace = client.kv.namespaces.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@@ -194,6 +195,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.kv.namespaces.with_raw_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -207,6 +209,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.kv.namespaces.with_streaming_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -223,12 +226,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.kv.namespaces.with_raw_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `namespace_id` but received ''"):
client.kv.namespaces.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -398,6 +403,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
namespace = await async_client.kv.namespaces.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@@ -407,6 +413,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.kv.namespaces.with_raw_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -420,6 +427,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.kv.namespaces.with_streaming_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -436,10 +444,12 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.kv.namespaces.with_raw_response.delete(
"0f2ac74b498b48028cb68387c421e279",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `namespace_id` but received ''"):
await async_client.kv.namespaces.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/load_balancers/test_monitors.py b/tests/api_resources/load_balancers/test_monitors.py
index 3fb7491a8c80..89de1a27886d 100644
--- a/tests/api_resources/load_balancers/test_monitors.py
+++ b/tests/api_resources/load_balancers/test_monitors.py
@@ -227,6 +227,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
monitor = client.load_balancers.monitors.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(MonitorDeleteResponse, monitor, path=["response"])
@@ -236,6 +237,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -249,6 +251,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.load_balancers.monitors.with_streaming_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -265,12 +268,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `monitor_id` but received ''"):
client.load_balancers.monitors.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -620,6 +625,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
monitor = await async_client.load_balancers.monitors.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(MonitorDeleteResponse, monitor, path=["response"])
@@ -629,6 +635,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -642,6 +649,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.load_balancers.monitors.with_streaming_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -658,12 +666,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `monitor_id` but received ''"):
await async_client.load_balancers.monitors.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/load_balancers/test_pools.py b/tests/api_resources/load_balancers/test_pools.py
index ee970e0cc7ec..c51a0dc6b337 100644
--- a/tests/api_resources/load_balancers/test_pools.py
+++ b/tests/api_resources/load_balancers/test_pools.py
@@ -310,6 +310,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
pool = client.load_balancers.pools.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(PoolDeleteResponse, pool, path=["response"])
@@ -319,6 +320,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -332,6 +334,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.load_balancers.pools.with_streaming_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -348,12 +351,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pool_id` but received ''"):
client.load_balancers.pools.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -814,6 +819,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
pool = await async_client.load_balancers.pools.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(PoolDeleteResponse, pool, path=["response"])
@@ -823,6 +829,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -836,6 +843,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.load_balancers.pools.with_streaming_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -852,12 +860,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pool_id` but received ''"):
await async_client.load_balancers.pools.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/logpush/test_jobs.py b/tests/api_resources/logpush/test_jobs.py
index a8239d273d14..674038ac83c2 100644
--- a/tests/api_resources/logpush/test_jobs.py
+++ b/tests/api_resources/logpush/test_jobs.py
@@ -258,6 +258,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
job = client.logpush.jobs.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -268,6 +269,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
job = client.logpush.jobs.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -278,6 +280,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -292,6 +295,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.logpush.jobs.with_streaming_response.delete(
1,
+ body={},
account_id="string",
zone_id="string",
) as response:
@@ -309,6 +313,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="",
zone_id="string",
)
@@ -316,6 +321,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="string",
zone_id="",
)
@@ -630,6 +636,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
job = await async_client.logpush.jobs.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -640,6 +647,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare) -> None:
job = await async_client.logpush.jobs.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -650,6 +658,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="string",
zone_id="string",
)
@@ -664,6 +673,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.logpush.jobs.with_streaming_response.delete(
1,
+ body={},
account_id="string",
zone_id="string",
) as response:
@@ -681,6 +691,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="",
zone_id="string",
)
@@ -688,6 +699,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.logpush.jobs.with_raw_response.delete(
1,
+ body={},
account_id="string",
zone_id="",
)
diff --git a/tests/api_resources/logs/control/cmb/test_config.py b/tests/api_resources/logs/control/cmb/test_config.py
index 4792cc9ed778..556af0c050d9 100644
--- a/tests/api_resources/logs/control/cmb/test_config.py
+++ b/tests/api_resources/logs/control/cmb/test_config.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.logs.control.cmb import CmbConfig, ConfigDeleteResponse
+from cloudflare.types.logs.control.cmb import (
+ CmbConfig,
+ ConfigDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -73,6 +76,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
config = client.logs.control.cmb.config.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@@ -81,6 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.logs.control.cmb.config.with_raw_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -93,6 +98,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.logs.control.cmb.config.with_streaming_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -108,6 +114,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.logs.control.cmb.config.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -212,6 +219,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
config = await async_client.logs.control.cmb.config.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@@ -220,6 +228,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.logs.control.cmb.config.with_raw_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -232,6 +241,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.logs.control.cmb.config.with_streaming_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -247,6 +257,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.logs.control.cmb.config.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
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 a1a24e48efe0..41ff67b49b13 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,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.magic_network_monitoring.rules import MagicNetworkMonitoringRuleAdvertisable
+from cloudflare.types.magic_network_monitoring.rules import (
+ MagicNetworkMonitoringRuleAdvertisable,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,6 +25,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
advertisement = client.magic_network_monitoring.rules.advertisements.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRuleAdvertisable], advertisement, path=["response"])
@@ -32,6 +35,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -45,6 +49,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.rules.advertisements.with_streaming_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,12 +66,14 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
@@ -79,6 +86,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
advertisement = await async_client.magic_network_monitoring.rules.advertisements.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRuleAdvertisable], advertisement, path=["response"])
@@ -88,6 +96,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -101,6 +110,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
async with async_client.magic_network_monitoring.rules.advertisements.with_streaming_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -117,10 +127,12 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
diff --git a/tests/api_resources/magic_network_monitoring/test_configs.py b/tests/api_resources/magic_network_monitoring/test_configs.py
index 47cd42f94e8d..ef7f9d58f285 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 import MagicNetworkMonitoringConfig
+from cloudflare.types.magic_network_monitoring import (
+ MagicNetworkMonitoringConfig,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -22,6 +24,7 @@ class TestConfigs:
def test_method_create(self, client: Cloudflare) -> None:
config = client.magic_network_monitoring.configs.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -30,6 +33,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.configs.with_raw_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -42,6 +46,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.configs.with_streaming_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -57,6 +62,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.configs.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -64,6 +70,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
def test_method_update(self, client: Cloudflare) -> None:
config = client.magic_network_monitoring.configs.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -72,6 +79,7 @@ def test_method_update(self, client: Cloudflare) -> None:
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.configs.with_raw_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -84,6 +92,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.configs.with_streaming_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -99,6 +108,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.configs.with_raw_response.update(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -106,6 +116,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
config = client.magic_network_monitoring.configs.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -114,6 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.configs.with_raw_response.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -126,6 +138,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.configs.with_streaming_response.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -141,6 +154,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.configs.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -148,6 +162,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
def test_method_edit(self, client: Cloudflare) -> None:
config = client.magic_network_monitoring.configs.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -156,6 +171,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.configs.with_raw_response.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -168,6 +184,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.configs.with_streaming_response.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -183,6 +200,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.configs.with_raw_response.edit(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -236,6 +254,7 @@ class TestAsyncConfigs:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
config = await async_client.magic_network_monitoring.configs.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -244,6 +263,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.configs.with_raw_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -256,6 +276,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.configs.with_streaming_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -271,6 +292,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.configs.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -278,6 +300,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
config = await async_client.magic_network_monitoring.configs.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -286,6 +309,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.configs.with_raw_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -298,6 +322,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.configs.with_streaming_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -313,6 +338,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.configs.with_raw_response.update(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -320,6 +346,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
config = await async_client.magic_network_monitoring.configs.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -328,6 +355,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.configs.with_raw_response.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -340,6 +368,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.configs.with_streaming_response.delete(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -355,6 +384,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.configs.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -362,6 +392,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
config = await async_client.magic_network_monitoring.configs.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(MagicNetworkMonitoringConfig, config, path=["response"])
@@ -370,6 +401,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.configs.with_raw_response.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -382,6 +414,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.configs.with_streaming_response.edit(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -397,6 +430,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.configs.with_raw_response.edit(
account_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_network_monitoring/test_rules.py b/tests/api_resources/magic_network_monitoring/test_rules.py
index f5002da51fa2..2d5ba5032842 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 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")
@@ -23,6 +25,7 @@ class TestRules:
def test_method_create(self, client: Cloudflare) -> None:
rule = client.magic_network_monitoring.rules.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -31,6 +34,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.rules.with_raw_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -43,6 +47,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.rules.with_streaming_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -58,6 +63,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.rules.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -65,6 +71,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
def test_method_update(self, client: Cloudflare) -> None:
rule = client.magic_network_monitoring.rules.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -73,6 +80,7 @@ def test_method_update(self, client: Cloudflare) -> None:
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.rules.with_raw_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -85,6 +93,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.rules.with_streaming_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -100,6 +109,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.magic_network_monitoring.rules.with_raw_response.update(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -150,6 +160,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
rule = client.magic_network_monitoring.rules.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -159,6 +170,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.rules.with_raw_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -172,6 +184,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.rules.with_streaming_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -188,12 +201,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.magic_network_monitoring.rules.with_raw_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.magic_network_monitoring.rules.with_raw_response.delete(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
@pytest.mark.skip()
@@ -202,6 +217,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
rule = client.magic_network_monitoring.rules.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -211,6 +227,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.magic_network_monitoring.rules.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -224,6 +241,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.magic_network_monitoring.rules.with_streaming_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -240,12 +258,14 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
client.magic_network_monitoring.rules.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.magic_network_monitoring.rules.with_raw_response.edit(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
@pytest.mark.skip()
@@ -309,6 +329,7 @@ class TestAsyncRules:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.magic_network_monitoring.rules.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -317,6 +338,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.rules.with_raw_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -329,6 +351,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.rules.with_streaming_response.create(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -344,6 +367,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.rules.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -351,6 +375,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.magic_network_monitoring.rules.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -359,6 +384,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.rules.with_raw_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -371,6 +397,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
async with async_client.magic_network_monitoring.rules.with_streaming_response.update(
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -386,6 +413,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.magic_network_monitoring.rules.with_raw_response.update(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -436,6 +464,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.magic_network_monitoring.rules.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -445,6 +474,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.rules.with_raw_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -458,6 +488,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.magic_network_monitoring.rules.with_streaming_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -474,12 +505,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_network_monitoring.rules.with_raw_response.delete(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.magic_network_monitoring.rules.with_raw_response.delete(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
@pytest.mark.skip()
@@ -488,6 +521,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.magic_network_monitoring.rules.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert_matches_type(Optional[MagicNetworkMonitoringRule], rule, path=["response"])
@@ -497,6 +531,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_network_monitoring.rules.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
assert response.is_closed is True
@@ -510,6 +545,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
async with async_client.magic_network_monitoring.rules.with_streaming_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -526,12 +562,14 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_network_monitoring.rules.with_raw_response.edit(
"2890e6fa406311ed9b5a23f70f6fb8cf",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.magic_network_monitoring.rules.with_raw_response.edit(
"",
account_id="6f91088a406011ed95aed352566e8d4c",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/sites/test_acls.py b/tests/api_resources/magic_transit/sites/test_acls.py
index 3899cceaca6e..97709ac7ee21 100644
--- a/tests/api_resources/magic_transit/sites/test_acls.py
+++ b/tests/api_resources/magic_transit/sites/test_acls.py
@@ -253,6 +253,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(ACLDeleteResponse, acl, path=["response"])
@@ -263,6 +264,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -277,6 +279,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -294,6 +297,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -301,6 +305,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_identifier` but received ''"):
@@ -308,6 +313,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -608,6 +614,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(ACLDeleteResponse, acl, path=["response"])
@@ -618,6 +625,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -632,6 +640,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -649,6 +658,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -656,6 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_identifier` but received ''"):
@@ -663,6 +674,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/sites/test_lans.py b/tests/api_resources/magic_transit/sites/test_lans.py
index 8b75553ed959..c32b860414ae 100644
--- a/tests/api_resources/magic_transit/sites/test_lans.py
+++ b/tests/api_resources/magic_transit/sites/test_lans.py
@@ -294,6 +294,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(LANDeleteResponse, lan, path=["response"])
@@ -304,6 +305,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -318,6 +320,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -335,6 +338,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -342,6 +346,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `lan_id` but received ''"):
@@ -349,6 +354,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -690,6 +696,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(LANDeleteResponse, lan, path=["response"])
@@ -700,6 +707,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -714,6 +722,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -731,6 +740,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -738,6 +748,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `lan_id` but received ''"):
@@ -745,6 +756,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/sites/test_wans.py b/tests/api_resources/magic_transit/sites/test_wans.py
index e7b7728e024c..163a1a1d6f51 100644
--- a/tests/api_resources/magic_transit/sites/test_wans.py
+++ b/tests/api_resources/magic_transit/sites/test_wans.py
@@ -239,6 +239,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WANDeleteResponse, wan, path=["response"])
@@ -249,6 +250,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -263,6 +265,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -280,6 +283,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -287,6 +291,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `wan_id` but received ''"):
@@ -294,6 +299,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -580,6 +586,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WANDeleteResponse, wan, path=["response"])
@@ -590,6 +597,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -604,6 +612,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -621,6 +630,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
@@ -628,6 +638,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `wan_id` but received ''"):
@@ -635,6 +646,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
site_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/test_gre_tunnels.py b/tests/api_resources/magic_transit/test_gre_tunnels.py
index 31d91baf984f..41761c377953 100644
--- a/tests/api_resources/magic_transit/test_gre_tunnels.py
+++ b/tests/api_resources/magic_transit/test_gre_tunnels.py
@@ -212,6 +212,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
gre_tunnel = client.magic_transit.gre_tunnels.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(GRETunnelDeleteResponse, gre_tunnel, path=["response"])
@@ -221,6 +222,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_transit.gre_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -234,6 +236,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_transit.gre_tunnels.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -250,12 +253,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.magic_transit.gre_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
client.magic_transit.gre_tunnels.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -503,6 +508,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
gre_tunnel = await async_client.magic_transit.gre_tunnels.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(GRETunnelDeleteResponse, gre_tunnel, path=["response"])
@@ -512,6 +518,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_transit.gre_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -525,6 +532,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.magic_transit.gre_tunnels.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -541,12 +549,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_transit.gre_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
await async_client.magic_transit.gre_tunnels.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/test_ipsec_tunnels.py b/tests/api_resources/magic_transit/test_ipsec_tunnels.py
index 10fb20f2edce..0b528f25c67b 100644
--- a/tests/api_resources/magic_transit/test_ipsec_tunnels.py
+++ b/tests/api_resources/magic_transit/test_ipsec_tunnels.py
@@ -238,6 +238,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
ipsec_tunnel = client.magic_transit.ipsec_tunnels.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(IPSECTunnelDeleteResponse, ipsec_tunnel, path=["response"])
@@ -247,6 +248,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -260,6 +262,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_transit.ipsec_tunnels.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -276,12 +279,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -342,6 +347,7 @@ def test_method_psk_generate(self, client: Cloudflare) -> None:
ipsec_tunnel = client.magic_transit.ipsec_tunnels.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(IPSECTunnelPSKGenerateResponse, ipsec_tunnel, path=["response"])
@@ -351,6 +357,7 @@ def test_raw_response_psk_generate(self, client: Cloudflare) -> None:
response = client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -364,6 +371,7 @@ def test_streaming_response_psk_generate(self, client: Cloudflare) -> None:
with client.magic_transit.ipsec_tunnels.with_streaming_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -380,12 +388,14 @@ def test_path_params_psk_generate(self, client: Cloudflare) -> None:
client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -606,6 +616,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
ipsec_tunnel = await async_client.magic_transit.ipsec_tunnels.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(IPSECTunnelDeleteResponse, ipsec_tunnel, path=["response"])
@@ -615,6 +626,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -628,6 +640,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.magic_transit.ipsec_tunnels.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -644,12 +657,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
await async_client.magic_transit.ipsec_tunnels.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -710,6 +725,7 @@ async def test_method_psk_generate(self, async_client: AsyncCloudflare) -> None:
ipsec_tunnel = await async_client.magic_transit.ipsec_tunnels.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(IPSECTunnelPSKGenerateResponse, ipsec_tunnel, path=["response"])
@@ -719,6 +735,7 @@ async def test_raw_response_psk_generate(self, async_client: AsyncCloudflare) ->
response = await async_client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -732,6 +749,7 @@ async def test_streaming_response_psk_generate(self, async_client: AsyncCloudfla
async with async_client.magic_transit.ipsec_tunnels.with_streaming_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -748,10 +766,12 @@ async def test_path_params_psk_generate(self, async_client: AsyncCloudflare) ->
await async_client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tunnel_identifier` but received ''"):
await async_client.magic_transit.ipsec_tunnels.with_raw_response.psk_generate(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/magic_transit/test_routes.py b/tests/api_resources/magic_transit/test_routes.py
index aa6fb26e1f78..1278b9ccae57 100644
--- a/tests/api_resources/magic_transit/test_routes.py
+++ b/tests/api_resources/magic_transit/test_routes.py
@@ -203,6 +203,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
route = client.magic_transit.routes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RouteDeleteResponse, route, path=["response"])
@@ -212,6 +213,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_transit.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -225,6 +227,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_transit.routes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -241,12 +244,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.magic_transit.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `route_identifier` but received ''"):
client.magic_transit.routes.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -530,6 +535,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
route = await async_client.magic_transit.routes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RouteDeleteResponse, route, path=["response"])
@@ -539,6 +545,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_transit.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -552,6 +559,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.magic_transit.routes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -568,12 +576,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_transit.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `route_identifier` but received ''"):
await async_client.magic_transit.routes.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/magic_transit/test_sites.py b/tests/api_resources/magic_transit/test_sites.py
index 28df8c5d1a70..d3c2faa8f481 100644
--- a/tests/api_resources/magic_transit/test_sites.py
+++ b/tests/api_resources/magic_transit/test_sites.py
@@ -163,6 +163,15 @@ def test_method_list(self, client: Cloudflare) -> None:
)
assert_matches_type(SiteListResponse, site, path=["response"])
+ @pytest.mark.skip()
+ @parametrize
+ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
+ site = client.magic_transit.sites.list(
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ connector_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+ assert_matches_type(SiteListResponse, site, path=["response"])
+
@pytest.mark.skip()
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
@@ -203,6 +212,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
site = client.magic_transit.sites.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SiteDeleteResponse, site, path=["response"])
@@ -212,6 +222,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.magic_transit.sites.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -225,6 +236,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.magic_transit.sites.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -241,12 +253,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.magic_transit.sites.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
client.magic_transit.sites.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -445,6 +459,15 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(SiteListResponse, site, path=["response"])
+ @pytest.mark.skip()
+ @parametrize
+ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
+ site = await async_client.magic_transit.sites.list(
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ connector_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+ assert_matches_type(SiteListResponse, site, path=["response"])
+
@pytest.mark.skip()
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -485,6 +508,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
site = await async_client.magic_transit.sites.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SiteDeleteResponse, site, path=["response"])
@@ -494,6 +518,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.magic_transit.sites.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -507,6 +532,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.magic_transit.sites.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -523,12 +549,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.magic_transit.sites.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `site_id` but received ''"):
await async_client.magic_transit.sites.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
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 dbbd7ee9e780..11c2ca11fbdd 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
@@ -11,7 +11,9 @@
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
from cloudflare.types.origin_tls_client_auth import OriginTLSClientCertificateID
-from cloudflare.types.origin_tls_client_auth.hostnames import OriginTLSClientCertificate
+from cloudflare.types.origin_tls_client_auth.hostnames import (
+ OriginTLSClientCertificate,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -117,6 +119,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
certificate = client.origin_tls_client_auth.hostnames.certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginTLSClientCertificate, certificate, path=["response"])
@@ -126,6 +129,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -139,6 +143,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.origin_tls_client_auth.hostnames.certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -155,12 +160,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -317,6 +324,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
certificate = await async_client.origin_tls_client_auth.hostnames.certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginTLSClientCertificate, certificate, path=["response"])
@@ -326,6 +334,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -339,6 +348,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.origin_tls_client_auth.hostnames.certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -355,12 +365,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
await async_client.origin_tls_client_auth.hostnames.certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/pages/projects/test_deployments.py b/tests/api_resources/pages/projects/test_deployments.py
index 8cfb0f16fbe6..a824f3a38b73 100644
--- a/tests/api_resources/pages/projects/test_deployments.py
+++ b/tests/api_resources/pages/projects/test_deployments.py
@@ -149,6 +149,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(object, deployment, path=["response"])
@@ -159,6 +160,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -173,6 +175,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -190,6 +193,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -197,6 +201,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -204,6 +209,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -277,6 +283,7 @@ def test_method_retry(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(PagesDeployments, deployment, path=["response"])
@@ -287,6 +294,7 @@ def test_raw_response_retry(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -301,6 +309,7 @@ def test_streaming_response_retry(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -318,6 +327,7 @@ def test_path_params_retry(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -325,6 +335,7 @@ def test_path_params_retry(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -332,6 +343,7 @@ def test_path_params_retry(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -341,6 +353,7 @@ def test_method_rollback(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(PagesDeployments, deployment, path=["response"])
@@ -351,6 +364,7 @@ def test_raw_response_rollback(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -365,6 +379,7 @@ def test_streaming_response_rollback(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -382,6 +397,7 @@ def test_path_params_rollback(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -389,6 +405,7 @@ def test_path_params_rollback(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -396,6 +413,7 @@ def test_path_params_rollback(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@@ -533,6 +551,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(object, deployment, path=["response"])
@@ -543,6 +562,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -557,6 +577,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -574,6 +595,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -581,6 +603,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -588,6 +611,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -661,6 +685,7 @@ async def test_method_retry(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(PagesDeployments, deployment, path=["response"])
@@ -671,6 +696,7 @@ async def test_raw_response_retry(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -685,6 +711,7 @@ async def test_streaming_response_retry(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -702,6 +729,7 @@ async def test_path_params_retry(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -709,6 +737,7 @@ async def test_path_params_retry(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -716,6 +745,7 @@ async def test_path_params_retry(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -725,6 +755,7 @@ async def test_method_rollback(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(PagesDeployments, deployment, path=["response"])
@@ -735,6 +766,7 @@ async def test_raw_response_rollback(self, async_client: AsyncCloudflare) -> Non
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -749,6 +781,7 @@ async def test_streaming_response_rollback(self, async_client: AsyncCloudflare)
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -766,6 +799,7 @@ async def test_path_params_rollback(self, async_client: AsyncCloudflare) -> None
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -773,6 +807,7 @@ async def test_path_params_rollback(self, async_client: AsyncCloudflare) -> None
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_id` but received ''"):
@@ -780,4 +815,5 @@ async def test_path_params_rollback(self, async_client: AsyncCloudflare) -> None
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
diff --git a/tests/api_resources/pages/projects/test_domains.py b/tests/api_resources/pages/projects/test_domains.py
index 2bd272a95f03..d0d7abd6aabe 100644
--- a/tests/api_resources/pages/projects/test_domains.py
+++ b/tests/api_resources/pages/projects/test_domains.py
@@ -138,6 +138,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(object, domain, path=["response"])
@@ -148,6 +149,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -162,6 +164,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -179,6 +182,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"string",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -186,6 +190,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_name` but received ''"):
@@ -193,6 +198,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -202,6 +208,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@@ -212,6 +219,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -226,6 +234,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -243,6 +252,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
"string",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -250,6 +260,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_name` but received ''"):
@@ -257,6 +268,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -443,6 +455,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(object, domain, path=["response"])
@@ -453,6 +466,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -467,6 +481,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -484,6 +499,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -491,6 +507,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_name` but received ''"):
@@ -498,6 +515,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
@@ -507,6 +525,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@@ -517,6 +536,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
assert response.is_closed is True
@@ -531,6 +551,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -548,6 +569,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="",
project_name="this-is-my-project-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
@@ -555,6 +577,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_name` but received ''"):
@@ -562,6 +585,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/pages/test_projects.py b/tests/api_resources/pages/test_projects.py
index cb7cb1085828..8bd5d365760b 100644
--- a/tests/api_resources/pages/test_projects.py
+++ b/tests/api_resources/pages/test_projects.py
@@ -193,6 +193,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
project = client.pages.projects.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(object, project, path=["response"])
@@ -202,6 +203,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.pages.projects.with_raw_response.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -215,6 +217,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.pages.projects.with_streaming_response.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -231,12 +234,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.pages.projects.with_raw_response.delete(
"this-is-my-project-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
client.pages.projects.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -649,6 +654,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
project = await async_client.pages.projects.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(object, project, path=["response"])
@@ -658,6 +664,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.pages.projects.with_raw_response.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -671,6 +678,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.pages.projects.with_streaming_response.delete(
"this-is-my-project-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -687,12 +695,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.pages.projects.with_raw_response.delete(
"this-is-my-project-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `project_name` but received ''"):
await async_client.pages.projects.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/queues/test_consumers.py b/tests/api_resources/queues/test_consumers.py
index 7c1c4a3c9520..20b325cd82f1 100644
--- a/tests/api_resources/queues/test_consumers.py
+++ b/tests/api_resources/queues/test_consumers.py
@@ -231,6 +231,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@@ -241,6 +242,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -255,6 +257,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -272,6 +275,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `queue_id` but received ''"):
@@ -279,6 +283,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `consumer_id` but received ''"):
@@ -286,6 +291,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -553,6 +559,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@@ -563,6 +570,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -577,6 +585,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -594,6 +603,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `queue_id` but received ''"):
@@ -601,6 +611,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `consumer_id` but received ''"):
@@ -608,6 +619,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/rules/test_lists.py b/tests/api_resources/rules/test_lists.py
index a3284737579d..c63a54d2fa18 100644
--- a/tests/api_resources/rules/test_lists.py
+++ b/tests/api_resources/rules/test_lists.py
@@ -10,7 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.rules import ListsList, ListDeleteResponse
+from cloudflare.types.rules import (
+ ListsList,
+ ListDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -189,6 +192,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
list = client.rules.lists.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ListDeleteResponse], list, path=["response"])
@@ -198,6 +202,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.rules.lists.with_raw_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -211,6 +216,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.rules.lists.with_streaming_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -227,12 +233,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.rules.lists.with_raw_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.rules.lists.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -462,6 +470,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
list = await async_client.rules.lists.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[ListDeleteResponse], list, path=["response"])
@@ -471,6 +480,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.rules.lists.with_raw_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -484,6 +494,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.rules.lists.with_streaming_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -500,12 +511,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.rules.lists.with_raw_response.delete(
"2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.rules.lists.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/secondary_dns/test_acls.py b/tests/api_resources/secondary_dns/test_acls.py
index 81e4b8297c08..5f48f0c9b3c2 100644
--- a/tests/api_resources/secondary_dns/test_acls.py
+++ b/tests/api_resources/secondary_dns/test_acls.py
@@ -10,7 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.secondary_dns import SecondaryDNSACL, ACLDeleteResponse
+from cloudflare.types.secondary_dns import (
+ SecondaryDNSACL,
+ ACLDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -174,6 +177,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
acl = client.secondary_dns.acls.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(ACLDeleteResponse, acl, path=["response"])
@@ -183,6 +187,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.secondary_dns.acls.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -196,6 +201,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.secondary_dns.acls.with_streaming_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -212,12 +218,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.secondary_dns.acls.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
client.secondary_dns.acls.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
@@ -432,6 +440,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
acl = await async_client.secondary_dns.acls.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(ACLDeleteResponse, acl, path=["response"])
@@ -441,6 +450,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.acls.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -454,6 +464,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.secondary_dns.acls.with_streaming_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -470,12 +481,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.secondary_dns.acls.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
await async_client.secondary_dns.acls.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/secondary_dns/test_force_axfr.py b/tests/api_resources/secondary_dns/test_force_axfr.py
index 11d35c2f830a..dee1012a5a17 100644
--- a/tests/api_resources/secondary_dns/test_force_axfr.py
+++ b/tests/api_resources/secondary_dns/test_force_axfr.py
@@ -21,6 +21,7 @@ class TestForceAXFR:
def test_method_create(self, client: Cloudflare) -> None:
force_axfr = client.secondary_dns.force_axfr.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, force_axfr, path=["response"])
@@ -29,6 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.secondary_dns.force_axfr.with_raw_response.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -41,6 +43,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.secondary_dns.force_axfr.with_streaming_response.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -56,6 +59,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.force_axfr.with_raw_response.create(
zone_id="",
+ body={},
)
@@ -67,6 +71,7 @@ class TestAsyncForceAXFR:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
force_axfr = await async_client.secondary_dns.force_axfr.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, force_axfr, path=["response"])
@@ -75,6 +80,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.force_axfr.with_raw_response.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -87,6 +93,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.force_axfr.with_streaming_response.create(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -102,4 +109,5 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.force_axfr.with_raw_response.create(
zone_id="",
+ body={},
)
diff --git a/tests/api_resources/secondary_dns/test_incoming.py b/tests/api_resources/secondary_dns/test_incoming.py
index 565a200a7bae..f2619c9b378a 100644
--- a/tests/api_resources/secondary_dns/test_incoming.py
+++ b/tests/api_resources/secondary_dns/test_incoming.py
@@ -135,6 +135,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
incoming = client.secondary_dns.incoming.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(IncomingDeleteResponse, incoming, path=["response"])
@@ -143,6 +144,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.secondary_dns.incoming.with_raw_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -155,6 +157,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.secondary_dns.incoming.with_streaming_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -170,6 +173,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.incoming.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -331,6 +335,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
incoming = await async_client.secondary_dns.incoming.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(IncomingDeleteResponse, incoming, path=["response"])
@@ -339,6 +344,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.incoming.with_raw_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -351,6 +357,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.incoming.with_streaming_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -366,6 +373,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.incoming.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/secondary_dns/test_outgoing.py b/tests/api_resources/secondary_dns/test_outgoing.py
index 48fd0ac4c31a..5eb4ff40ab9d 100644
--- a/tests/api_resources/secondary_dns/test_outgoing.py
+++ b/tests/api_resources/secondary_dns/test_outgoing.py
@@ -127,6 +127,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
outgoing = client.secondary_dns.outgoing.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(OutgoingDeleteResponse, outgoing, path=["response"])
@@ -135,6 +136,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.secondary_dns.outgoing.with_raw_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -147,6 +149,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.secondary_dns.outgoing.with_streaming_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -162,6 +165,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.outgoing.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -169,6 +173,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
def test_method_disable(self, client: Cloudflare) -> None:
outgoing = client.secondary_dns.outgoing.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -177,6 +182,7 @@ def test_method_disable(self, client: Cloudflare) -> None:
def test_raw_response_disable(self, client: Cloudflare) -> None:
response = client.secondary_dns.outgoing.with_raw_response.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -189,6 +195,7 @@ def test_raw_response_disable(self, client: Cloudflare) -> None:
def test_streaming_response_disable(self, client: Cloudflare) -> None:
with client.secondary_dns.outgoing.with_streaming_response.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -204,6 +211,7 @@ def test_path_params_disable(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.outgoing.with_raw_response.disable(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -211,6 +219,7 @@ def test_path_params_disable(self, client: Cloudflare) -> None:
def test_method_enable(self, client: Cloudflare) -> None:
outgoing = client.secondary_dns.outgoing.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -219,6 +228,7 @@ def test_method_enable(self, client: Cloudflare) -> None:
def test_raw_response_enable(self, client: Cloudflare) -> None:
response = client.secondary_dns.outgoing.with_raw_response.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -231,6 +241,7 @@ def test_raw_response_enable(self, client: Cloudflare) -> None:
def test_streaming_response_enable(self, client: Cloudflare) -> None:
with client.secondary_dns.outgoing.with_streaming_response.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -246,6 +257,7 @@ def test_path_params_enable(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.outgoing.with_raw_response.enable(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -253,6 +265,7 @@ def test_path_params_enable(self, client: Cloudflare) -> None:
def test_method_force_notify(self, client: Cloudflare) -> None:
outgoing = client.secondary_dns.outgoing.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -261,6 +274,7 @@ def test_method_force_notify(self, client: Cloudflare) -> None:
def test_raw_response_force_notify(self, client: Cloudflare) -> None:
response = client.secondary_dns.outgoing.with_raw_response.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -273,6 +287,7 @@ def test_raw_response_force_notify(self, client: Cloudflare) -> None:
def test_streaming_response_force_notify(self, client: Cloudflare) -> None:
with client.secondary_dns.outgoing.with_streaming_response.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -288,6 +303,7 @@ def test_path_params_force_notify(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.secondary_dns.outgoing.with_raw_response.force_notify(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -441,6 +457,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
outgoing = await async_client.secondary_dns.outgoing.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(OutgoingDeleteResponse, outgoing, path=["response"])
@@ -449,6 +466,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.outgoing.with_raw_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -461,6 +479,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.outgoing.with_streaming_response.delete(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -476,6 +495,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.outgoing.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -483,6 +503,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
async def test_method_disable(self, async_client: AsyncCloudflare) -> None:
outgoing = await async_client.secondary_dns.outgoing.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -491,6 +512,7 @@ async def test_method_disable(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_disable(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.outgoing.with_raw_response.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -503,6 +525,7 @@ async def test_raw_response_disable(self, async_client: AsyncCloudflare) -> None
async def test_streaming_response_disable(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.outgoing.with_streaming_response.disable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -518,6 +541,7 @@ async def test_path_params_disable(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.outgoing.with_raw_response.disable(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -525,6 +549,7 @@ async def test_path_params_disable(self, async_client: AsyncCloudflare) -> None:
async def test_method_enable(self, async_client: AsyncCloudflare) -> None:
outgoing = await async_client.secondary_dns.outgoing.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -533,6 +558,7 @@ async def test_method_enable(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_enable(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.outgoing.with_raw_response.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -545,6 +571,7 @@ async def test_raw_response_enable(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_enable(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.outgoing.with_streaming_response.enable(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -560,6 +587,7 @@ async def test_path_params_enable(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.outgoing.with_raw_response.enable(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -567,6 +595,7 @@ async def test_path_params_enable(self, async_client: AsyncCloudflare) -> None:
async def test_method_force_notify(self, async_client: AsyncCloudflare) -> None:
outgoing = await async_client.secondary_dns.outgoing.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert_matches_type(str, outgoing, path=["response"])
@@ -575,6 +604,7 @@ async def test_method_force_notify(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_force_notify(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.outgoing.with_raw_response.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
)
assert response.is_closed is True
@@ -587,6 +617,7 @@ async def test_raw_response_force_notify(self, async_client: AsyncCloudflare) ->
async def test_streaming_response_force_notify(self, async_client: AsyncCloudflare) -> None:
async with async_client.secondary_dns.outgoing.with_streaming_response.force_notify(
zone_id="269d8f4853475ca241c4e730be286b20",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -602,6 +633,7 @@ async def test_path_params_force_notify(self, async_client: AsyncCloudflare) ->
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.secondary_dns.outgoing.with_raw_response.force_notify(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/secondary_dns/test_peers.py b/tests/api_resources/secondary_dns/test_peers.py
index ac16741dc7a7..c97554863108 100644
--- a/tests/api_resources/secondary_dns/test_peers.py
+++ b/tests/api_resources/secondary_dns/test_peers.py
@@ -10,7 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.secondary_dns import SecondaryDNSPeer, PeerDeleteResponse
+from cloudflare.types.secondary_dns import (
+ SecondaryDNSPeer,
+ PeerDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -183,6 +186,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
peer = client.secondary_dns.peers.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(PeerDeleteResponse, peer, path=["response"])
@@ -192,6 +196,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.secondary_dns.peers.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -205,6 +210,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.secondary_dns.peers.with_streaming_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -221,12 +227,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.secondary_dns.peers.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
client.secondary_dns.peers.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
@@ -450,6 +458,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
peer = await async_client.secondary_dns.peers.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(PeerDeleteResponse, peer, path=["response"])
@@ -459,6 +468,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.peers.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -472,6 +482,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.secondary_dns.peers.with_streaming_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -488,12 +499,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.secondary_dns.peers.with_raw_response.delete(
"23ff594956f20c2a721606e94745a8aa",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
await async_client.secondary_dns.peers.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/secondary_dns/test_tsigs.py b/tests/api_resources/secondary_dns/test_tsigs.py
index b80d8acaf5e5..0e384f492d6d 100644
--- a/tests/api_resources/secondary_dns/test_tsigs.py
+++ b/tests/api_resources/secondary_dns/test_tsigs.py
@@ -10,7 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.secondary_dns import SecondaryDNSTSIG, TSIGDeleteResponse
+from cloudflare.types.secondary_dns import (
+ SecondaryDNSTSIG,
+ TSIGDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -187,6 +190,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
tsig = client.secondary_dns.tsigs.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(TSIGDeleteResponse, tsig, path=["response"])
@@ -196,6 +200,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.secondary_dns.tsigs.with_raw_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -209,6 +214,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.secondary_dns.tsigs.with_streaming_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -225,12 +231,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.secondary_dns.tsigs.with_raw_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
client.secondary_dns.tsigs.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
@@ -458,6 +466,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
tsig = await async_client.secondary_dns.tsigs.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert_matches_type(TSIGDeleteResponse, tsig, path=["response"])
@@ -467,6 +476,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.secondary_dns.tsigs.with_raw_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
assert response.is_closed is True
@@ -480,6 +490,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.secondary_dns.tsigs.with_streaming_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -496,12 +507,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.secondary_dns.tsigs.with_raw_response.delete(
"69cd1e104af3e6ed3cb344f263fd0d5a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
await async_client.secondary_dns.tsigs.with_raw_response.delete(
"",
account_id="01a7362d577a6c3019a474fd6f485823",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/spectrum/test_apps.py b/tests/api_resources/spectrum/test_apps.py
index 8659482ce660..bb84325f08dc 100644
--- a/tests/api_resources/spectrum/test_apps.py
+++ b/tests/api_resources/spectrum/test_apps.py
@@ -270,6 +270,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
app = client.spectrum.apps.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AppDeleteResponse], app, path=["response"])
@@ -279,6 +280,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.spectrum.apps.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -292,6 +294,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.spectrum.apps.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -308,12 +311,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.spectrum.apps.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_id` but received ''"):
client.spectrum.apps.with_raw_response.delete(
"",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -619,6 +624,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
app = await async_client.spectrum.apps.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[AppDeleteResponse], app, path=["response"])
@@ -628,6 +634,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.spectrum.apps.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -641,6 +648,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.spectrum.apps.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -657,12 +665,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.spectrum.apps.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
zone="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `app_id` but received ''"):
await async_client.spectrum.apps.with_raw_response.delete(
"",
zone="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/ssl/test_certificate_packs.py b/tests/api_resources/ssl/test_certificate_packs.py
index 20180cc88f5f..8cc4c1436fe5 100644
--- a/tests/api_resources/ssl/test_certificate_packs.py
+++ b/tests/api_resources/ssl/test_certificate_packs.py
@@ -79,6 +79,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
certificate_pack = client.ssl.certificate_packs.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CertificatePackDeleteResponse, certificate_pack, path=["response"])
@@ -88,6 +89,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.ssl.certificate_packs.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -101,6 +103,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.ssl.certificate_packs.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -117,12 +120,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.ssl.certificate_packs.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_pack_id` but received ''"):
client.ssl.certificate_packs.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -131,6 +136,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
certificate_pack = client.ssl.certificate_packs.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CertificatePackEditResponse, certificate_pack, path=["response"])
@@ -140,6 +146,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.ssl.certificate_packs.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -153,6 +160,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.ssl.certificate_packs.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -169,12 +177,14 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
client.ssl.certificate_packs.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_pack_id` but received ''"):
client.ssl.certificate_packs.with_raw_response.edit(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -290,6 +300,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
certificate_pack = await async_client.ssl.certificate_packs.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CertificatePackDeleteResponse, certificate_pack, path=["response"])
@@ -299,6 +310,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.ssl.certificate_packs.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -312,6 +324,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.ssl.certificate_packs.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -328,12 +341,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.ssl.certificate_packs.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_pack_id` but received ''"):
await async_client.ssl.certificate_packs.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -342,6 +357,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
certificate_pack = await async_client.ssl.certificate_packs.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CertificatePackEditResponse, certificate_pack, path=["response"])
@@ -351,6 +367,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.ssl.certificate_packs.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -364,6 +381,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
async with async_client.ssl.certificate_packs.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -380,12 +398,14 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
await async_client.ssl.certificate_packs.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_pack_id` but received ''"):
await async_client.ssl.certificate_packs.with_raw_response.edit(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/live_inputs/test_outputs.py b/tests/api_resources/stream/live_inputs/test_outputs.py
index 486e740b60bf..bd5e3668ca85 100644
--- a/tests/api_resources/stream/live_inputs/test_outputs.py
+++ b/tests/api_resources/stream/live_inputs/test_outputs.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.stream.live_inputs import StreamOutput
+from cloudflare.types.stream.live_inputs import (
+ StreamOutput,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -221,6 +223,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
assert output is None
@@ -231,6 +234,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
assert response.is_closed is True
@@ -245,6 +249,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -262,6 +267,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `live_input_identifier` but received ''"):
@@ -269,6 +275,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `output_identifier` but received ''"):
@@ -276,6 +283,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
@@ -485,6 +493,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
assert output is None
@@ -495,6 +504,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
assert response.is_closed is True
@@ -509,6 +519,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -526,6 +537,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `live_input_identifier` but received ''"):
@@ -533,6 +545,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"baea4d9c515887b80289d5c33cf01145",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `output_identifier` but received ''"):
@@ -540,4 +553,5 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
live_input_identifier="66be4bf738797e01e1fca35a7bdecdcd",
+ body={},
)
diff --git a/tests/api_resources/stream/test_captions.py b/tests/api_resources/stream/test_captions.py
index a5370a76f4bf..6365db01a96e 100644
--- a/tests/api_resources/stream/test_captions.py
+++ b/tests/api_resources/stream/test_captions.py
@@ -98,6 +98,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
assert_matches_type(CaptionDeleteResponse, caption, path=["response"])
@@ -108,6 +109,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
assert response.is_closed is True
@@ -122,6 +124,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -139,6 +142,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"tr",
account_id="",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -146,6 +150,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `language` but received ''"):
@@ -153,6 +158,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
@pytest.mark.skip()
@@ -288,6 +294,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
assert_matches_type(CaptionDeleteResponse, caption, path=["response"])
@@ -298,6 +305,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
assert response.is_closed is True
@@ -312,6 +320,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -329,6 +338,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -336,6 +346,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"tr",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `language` but received ''"):
@@ -343,6 +354,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/test_downloads.py b/tests/api_resources/stream/test_downloads.py
index 6550b00db06e..c5a8662fa516 100644
--- a/tests/api_resources/stream/test_downloads.py
+++ b/tests/api_resources/stream/test_downloads.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.stream import DownloadGetResponse, DownloadCreateResponse, DownloadDeleteResponse
+from cloudflare.types.stream import (
+ DownloadGetResponse,
+ DownloadCreateResponse,
+ DownloadDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,6 +27,7 @@ def test_method_create(self, client: Cloudflare) -> None:
download = client.stream.downloads.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DownloadCreateResponse, download, path=["response"])
@@ -32,6 +37,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.stream.downloads.with_raw_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -45,6 +51,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.stream.downloads.with_streaming_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,12 +68,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
client.stream.downloads.with_raw_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.stream.downloads.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -183,6 +192,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
download = await async_client.stream.downloads.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DownloadCreateResponse, download, path=["response"])
@@ -192,6 +202,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.downloads.with_raw_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -205,6 +216,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
async with async_client.stream.downloads.with_streaming_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -221,12 +233,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
await async_client.stream.downloads.with_raw_response.create(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.stream.downloads.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/test_keys.py b/tests/api_resources/stream/test_keys.py
index 24e6e0af6812..0a1a04fcee29 100644
--- a/tests/api_resources/stream/test_keys.py
+++ b/tests/api_resources/stream/test_keys.py
@@ -22,6 +22,7 @@ class TestKeys:
def test_method_create(self, client: Cloudflare) -> None:
key = client.stream.keys.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(StreamKeys, key, path=["response"])
@@ -30,6 +31,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.stream.keys.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -42,6 +44,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.stream.keys.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -57,6 +60,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.stream.keys.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -65,6 +69,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
key = client.stream.keys.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(KeyDeleteResponse, key, path=["response"])
@@ -74,6 +79,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.stream.keys.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -87,6 +93,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.stream.keys.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -103,12 +110,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.stream.keys.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.stream.keys.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -162,6 +171,7 @@ class TestAsyncKeys:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
key = await async_client.stream.keys.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(StreamKeys, key, path=["response"])
@@ -170,6 +180,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.keys.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -182,6 +193,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.stream.keys.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -197,6 +209,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.stream.keys.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -205,6 +218,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
key = await async_client.stream.keys.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(KeyDeleteResponse, key, path=["response"])
@@ -214,6 +228,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.keys.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -227,6 +242,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.stream.keys.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -243,12 +259,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.stream.keys.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.stream.keys.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/test_live_inputs.py b/tests/api_resources/stream/test_live_inputs.py
index 4bdb29bce6ca..b9120dde6abb 100644
--- a/tests/api_resources/stream/test_live_inputs.py
+++ b/tests/api_resources/stream/test_live_inputs.py
@@ -206,6 +206,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
live_input = client.stream.live_inputs.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert live_input is None
@@ -215,6 +216,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.stream.live_inputs.with_raw_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -228,6 +230,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.stream.live_inputs.with_streaming_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -244,12 +247,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.stream.live_inputs.with_raw_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `live_input_identifier` but received ''"):
client.stream.live_inputs.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -494,6 +499,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
live_input = await async_client.stream.live_inputs.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert live_input is None
@@ -503,6 +509,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.live_inputs.with_raw_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -516,6 +523,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.stream.live_inputs.with_streaming_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -532,12 +540,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.stream.live_inputs.with_raw_response.delete(
"66be4bf738797e01e1fca35a7bdecdcd",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `live_input_identifier` but received ''"):
await async_client.stream.live_inputs.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/test_watermarks.py b/tests/api_resources/stream/test_watermarks.py
index 80af89c021d1..640b7b33da2f 100644
--- a/tests/api_resources/stream/test_watermarks.py
+++ b/tests/api_resources/stream/test_watermarks.py
@@ -131,6 +131,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
watermark = client.stream.watermarks.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@@ -140,6 +141,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.stream.watermarks.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -153,6 +155,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.stream.watermarks.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -169,12 +172,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.stream.watermarks.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.stream.watermarks.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -341,6 +346,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
watermark = await async_client.stream.watermarks.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@@ -350,6 +356,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.watermarks.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -363,6 +370,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.stream.watermarks.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -379,12 +387,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.stream.watermarks.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.stream.watermarks.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/stream/test_webhooks.py b/tests/api_resources/stream/test_webhooks.py
index 05fd3b060ee7..d9ffbfa7de43 100644
--- a/tests/api_resources/stream/test_webhooks.py
+++ b/tests/api_resources/stream/test_webhooks.py
@@ -72,6 +72,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
webhook = client.stream.webhooks.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@@ -80,6 +81,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.stream.webhooks.with_raw_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -92,6 +94,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.stream.webhooks.with_streaming_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -107,6 +110,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.stream.webhooks.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -206,6 +210,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
webhook = await async_client.stream.webhooks.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@@ -214,6 +219,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.webhooks.with_raw_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -226,6 +232,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.stream.webhooks.with_streaming_response.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -241,6 +248,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.stream.webhooks.with_raw_response.delete(
account_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py
index 2d1c482cae30..272bd5c46fce 100644
--- a/tests/api_resources/test_accounts.py
+++ b/tests/api_resources/test_accounts.py
@@ -80,6 +80,7 @@ def test_method_list(self, client: Cloudflare) -> None:
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
account = client.accounts.list(
direction="desc",
+ name="example.com",
page=1,
per_page=5,
)
@@ -207,6 +208,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
account = await async_client.accounts.list(
direction="desc",
+ name="example.com",
page=1,
per_page=5,
)
diff --git a/tests/api_resources/test_custom_certificates.py b/tests/api_resources/test_custom_certificates.py
index 139dc561d9a8..81fa03c2e4e9 100644
--- a/tests/api_resources/test_custom_certificates.py
+++ b/tests/api_resources/test_custom_certificates.py
@@ -104,6 +104,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
match="any",
page=1,
per_page=5,
+ status="active",
)
assert_matches_type(SyncV4PagePaginationArray[CustomCertificate], custom_certificate, path=["response"])
@@ -147,6 +148,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
custom_certificate = client.custom_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomCertificateDeleteResponse, custom_certificate, path=["response"])
@@ -156,6 +158,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.custom_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -169,6 +172,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.custom_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -185,12 +189,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.custom_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_certificate_id` but received ''"):
client.custom_certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -395,6 +401,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
match="any",
page=1,
per_page=5,
+ status="active",
)
assert_matches_type(AsyncV4PagePaginationArray[CustomCertificate], custom_certificate, path=["response"])
@@ -438,6 +445,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
custom_certificate = await async_client.custom_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomCertificateDeleteResponse, custom_certificate, path=["response"])
@@ -447,6 +455,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.custom_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -460,6 +469,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.custom_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -476,12 +486,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.custom_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_certificate_id` but received ''"):
await async_client.custom_certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_custom_hostnames.py b/tests/api_resources/test_custom_hostnames.py
index d14eb055d342..e45d10f59fd5 100644
--- a/tests/api_resources/test_custom_hostnames.py
+++ b/tests/api_resources/test_custom_hostnames.py
@@ -165,6 +165,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
custom_hostname = client.custom_hostnames.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomHostnameDeleteResponse, custom_hostname, path=["response"])
@@ -174,6 +175,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.custom_hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -187,6 +189,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.custom_hostnames.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -203,12 +206,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.custom_hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_hostname_id` but received ''"):
client.custom_hostnames.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -488,6 +493,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
custom_hostname = await async_client.custom_hostnames.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomHostnameDeleteResponse, custom_hostname, path=["response"])
@@ -497,6 +503,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.custom_hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -510,6 +517,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.custom_hostnames.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -526,12 +534,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.custom_hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_hostname_id` but received ''"):
await async_client.custom_hostnames.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_custom_nameservers.py b/tests/api_resources/test_custom_nameservers.py
index 28b14dca1e28..502a47dd7186 100644
--- a/tests/api_resources/test_custom_nameservers.py
+++ b/tests/api_resources/test_custom_nameservers.py
@@ -85,6 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
custom_nameserver = client.custom_nameservers.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@@ -94,6 +95,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.custom_nameservers.with_raw_response.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert response.is_closed is True
@@ -107,6 +109,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.custom_nameservers.with_streaming_response.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -123,12 +126,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.custom_nameservers.with_raw_response.delete(
"ns1.example.com",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_ns_id` but received ''"):
client.custom_nameservers.with_raw_response.delete(
"",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
@pytest.mark.skip()
@@ -220,6 +225,7 @@ def test_path_params_get(self, client: Cloudflare) -> None:
def test_method_verify(self, client: Cloudflare) -> None:
custom_nameserver = client.custom_nameservers.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert_matches_type(Optional[CustomNameserverVerifyResponse], custom_nameserver, path=["response"])
@@ -228,6 +234,7 @@ def test_method_verify(self, client: Cloudflare) -> None:
def test_raw_response_verify(self, client: Cloudflare) -> None:
response = client.custom_nameservers.with_raw_response.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert response.is_closed is True
@@ -240,6 +247,7 @@ def test_raw_response_verify(self, client: Cloudflare) -> None:
def test_streaming_response_verify(self, client: Cloudflare) -> None:
with client.custom_nameservers.with_streaming_response.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -255,6 +263,7 @@ def test_path_params_verify(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.custom_nameservers.with_raw_response.verify(
account_id="",
+ body={},
)
@@ -323,6 +332,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
custom_nameserver = await async_client.custom_nameservers.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@@ -332,6 +342,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.custom_nameservers.with_raw_response.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert response.is_closed is True
@@ -345,6 +356,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.custom_nameservers.with_streaming_response.delete(
"ns1.example.com",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -361,12 +373,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.custom_nameservers.with_raw_response.delete(
"ns1.example.com",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `custom_ns_id` but received ''"):
await async_client.custom_nameservers.with_raw_response.delete(
"",
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
@pytest.mark.skip()
@@ -458,6 +472,7 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
async def test_method_verify(self, async_client: AsyncCloudflare) -> None:
custom_nameserver = await async_client.custom_nameservers.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert_matches_type(Optional[CustomNameserverVerifyResponse], custom_nameserver, path=["response"])
@@ -466,6 +481,7 @@ async def test_method_verify(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_verify(self, async_client: AsyncCloudflare) -> None:
response = await async_client.custom_nameservers.with_raw_response.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
)
assert response.is_closed is True
@@ -478,6 +494,7 @@ async def test_raw_response_verify(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_verify(self, async_client: AsyncCloudflare) -> None:
async with async_client.custom_nameservers.with_streaming_response.verify(
account_id="372e67954025e0ba6aaa6d586b9e0b59",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -493,4 +510,5 @@ async def test_path_params_verify(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.custom_nameservers.with_raw_response.verify(
account_id="",
+ body={},
)
diff --git a/tests/api_resources/test_dnssec.py b/tests/api_resources/test_dnssec.py
index 9e45b478ef22..6294090c744e 100644
--- a/tests/api_resources/test_dnssec.py
+++ b/tests/api_resources/test_dnssec.py
@@ -22,6 +22,7 @@ class TestDNSSEC:
def test_method_delete(self, client: Cloudflare) -> None:
dnssec = client.dnssec.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@@ -30,6 +31,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.dnssec.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -42,6 +44,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.dnssec.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -57,6 +60,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.dnssec.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -163,6 +167,7 @@ class TestAsyncDNSSEC:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
dnssec = await async_client.dnssec.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@@ -171,6 +176,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dnssec.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -183,6 +189,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.dnssec.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -198,6 +205,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.dnssec.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_email_routing.py b/tests/api_resources/test_email_routing.py
index bf77cca2685e..7e7929fc6469 100644
--- a/tests/api_resources/test_email_routing.py
+++ b/tests/api_resources/test_email_routing.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import EmailRoutingGetResponse, EmailRoutingEnableResponse, EmailRoutingDisableResponse
+from cloudflare.types import (
+ EmailRoutingGetResponse,
+ EmailRoutingEnableResponse,
+ EmailRoutingDisableResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -22,6 +26,7 @@ class TestEmailRouting:
def test_method_disable(self, client: Cloudflare) -> None:
email_routing = client.email_routing.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(EmailRoutingDisableResponse, email_routing, path=["response"])
@@ -30,6 +35,7 @@ def test_method_disable(self, client: Cloudflare) -> None:
def test_raw_response_disable(self, client: Cloudflare) -> None:
response = client.email_routing.with_raw_response.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -42,6 +48,7 @@ def test_raw_response_disable(self, client: Cloudflare) -> None:
def test_streaming_response_disable(self, client: Cloudflare) -> None:
with client.email_routing.with_streaming_response.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -57,6 +64,7 @@ def test_path_params_disable(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
client.email_routing.with_raw_response.disable(
"",
+ body={},
)
@pytest.mark.skip()
@@ -64,6 +72,7 @@ def test_path_params_disable(self, client: Cloudflare) -> None:
def test_method_enable(self, client: Cloudflare) -> None:
email_routing = client.email_routing.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(EmailRoutingEnableResponse, email_routing, path=["response"])
@@ -72,6 +81,7 @@ def test_method_enable(self, client: Cloudflare) -> None:
def test_raw_response_enable(self, client: Cloudflare) -> None:
response = client.email_routing.with_raw_response.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -84,6 +94,7 @@ def test_raw_response_enable(self, client: Cloudflare) -> None:
def test_streaming_response_enable(self, client: Cloudflare) -> None:
with client.email_routing.with_streaming_response.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -99,6 +110,7 @@ def test_path_params_enable(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
client.email_routing.with_raw_response.enable(
"",
+ body={},
)
@pytest.mark.skip()
@@ -152,6 +164,7 @@ class TestAsyncEmailRouting:
async def test_method_disable(self, async_client: AsyncCloudflare) -> None:
email_routing = await async_client.email_routing.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(EmailRoutingDisableResponse, email_routing, path=["response"])
@@ -160,6 +173,7 @@ async def test_method_disable(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_disable(self, async_client: AsyncCloudflare) -> None:
response = await async_client.email_routing.with_raw_response.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -172,6 +186,7 @@ async def test_raw_response_disable(self, async_client: AsyncCloudflare) -> None
async def test_streaming_response_disable(self, async_client: AsyncCloudflare) -> None:
async with async_client.email_routing.with_streaming_response.disable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -187,6 +202,7 @@ async def test_path_params_disable(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
await async_client.email_routing.with_raw_response.disable(
"",
+ body={},
)
@pytest.mark.skip()
@@ -194,6 +210,7 @@ async def test_path_params_disable(self, async_client: AsyncCloudflare) -> None:
async def test_method_enable(self, async_client: AsyncCloudflare) -> None:
email_routing = await async_client.email_routing.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(EmailRoutingEnableResponse, email_routing, path=["response"])
@@ -202,6 +219,7 @@ async def test_method_enable(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_enable(self, async_client: AsyncCloudflare) -> None:
response = await async_client.email_routing.with_raw_response.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -214,6 +232,7 @@ async def test_raw_response_enable(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_enable(self, async_client: AsyncCloudflare) -> None:
async with async_client.email_routing.with_streaming_response.enable(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -229,6 +248,7 @@ async def test_path_params_enable(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_identifier` but received ''"):
await async_client.email_routing.with_raw_response.enable(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_filters.py b/tests/api_resources/test_filters.py
index dfd370574903..69b3b262b519 100644
--- a/tests/api_resources/test_filters.py
+++ b/tests/api_resources/test_filters.py
@@ -137,6 +137,7 @@ def test_method_list(self, client: Cloudflare) -> None:
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
filter = client.filters.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ id="372e67954025e0ba6aaa6d586b9e0b61",
description="browsers",
expression="php",
page=1,
@@ -186,6 +187,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
filter = client.filters.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[FirewallFilter], filter, path=["response"])
@@ -195,6 +197,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.filters.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -208,6 +211,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.filters.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -224,12 +228,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.filters.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
client.filters.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -404,6 +410,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
filter = await async_client.filters.list(
"023e105f4ecef8ad9ca31a8372d0c353",
+ id="372e67954025e0ba6aaa6d586b9e0b61",
description="browsers",
expression="php",
page=1,
@@ -453,6 +460,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
filter = await async_client.filters.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[FirewallFilter], filter, path=["response"])
@@ -462,6 +470,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.filters.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -475,6 +484,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.filters.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -491,12 +501,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.filters.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b61",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
await async_client.filters.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_healthchecks.py b/tests/api_resources/test_healthchecks.py
index 7e5754cb6c03..cb8e16ca7bbd 100644
--- a/tests/api_resources/test_healthchecks.py
+++ b/tests/api_resources/test_healthchecks.py
@@ -254,6 +254,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
healthcheck = client.healthchecks.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(HealthcheckDeleteResponse, healthcheck, path=["response"])
@@ -263,6 +264,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.healthchecks.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -276,6 +278,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.healthchecks.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -292,12 +295,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.healthchecks.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `healthcheck_id` but received ''"):
client.healthchecks.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -688,6 +693,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
healthcheck = await async_client.healthchecks.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(HealthcheckDeleteResponse, healthcheck, path=["response"])
@@ -697,6 +703,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.healthchecks.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -710,6 +717,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.healthchecks.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -726,12 +734,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.healthchecks.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `healthcheck_id` but received ''"):
await async_client.healthchecks.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_keyless_certificates.py b/tests/api_resources/test_keyless_certificates.py
index 6003a52d371d..d08900466375 100644
--- a/tests/api_resources/test_keyless_certificates.py
+++ b/tests/api_resources/test_keyless_certificates.py
@@ -140,6 +140,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
keyless_certificate = client.keyless_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(KeylessCertificateDeleteResponse, keyless_certificate, path=["response"])
@@ -149,6 +150,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.keyless_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -162,6 +164,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.keyless_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -178,6 +181,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.keyless_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(
@@ -186,6 +190,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.keyless_certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -436,6 +441,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
keyless_certificate = await async_client.keyless_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(KeylessCertificateDeleteResponse, keyless_certificate, path=["response"])
@@ -445,6 +451,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.keyless_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -458,6 +465,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.keyless_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -474,6 +482,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.keyless_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(
@@ -482,6 +491,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.keyless_certificates.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_load_balancers.py b/tests/api_resources/test_load_balancers.py
index 6ef827e239a4..e16f28102e51 100644
--- a/tests/api_resources/test_load_balancers.py
+++ b/tests/api_resources/test_load_balancers.py
@@ -688,6 +688,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
load_balancer = client.load_balancers.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(LoadBalancerDeleteResponse, load_balancer, path=["response"])
@@ -697,6 +698,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.load_balancers.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -710,6 +712,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.load_balancers.with_streaming_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -726,12 +729,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.load_balancers.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `load_balancer_id` but received ''"):
client.load_balancers.with_raw_response.delete(
"",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -1741,6 +1746,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
load_balancer = await async_client.load_balancers.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(LoadBalancerDeleteResponse, load_balancer, path=["response"])
@@ -1750,6 +1756,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.load_balancers.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -1763,6 +1770,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.load_balancers.with_streaming_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1779,12 +1787,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.load_balancers.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `load_balancer_id` but received ''"):
await async_client.load_balancers.with_raw_response.delete(
"",
zone_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_memberships.py b/tests/api_resources/test_memberships.py
index a61d32f96f08..5f0f4fb7056d 100644
--- a/tests/api_resources/test_memberships.py
+++ b/tests/api_resources/test_memberships.py
@@ -116,6 +116,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
membership = client.memberships.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
)
assert_matches_type(MembershipDeleteResponse, membership, path=["response"])
@@ -124,6 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.memberships.with_raw_response.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
)
assert response.is_closed is True
@@ -136,6 +138,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.memberships.with_streaming_response.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -151,6 +154,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `membership_id` but received ''"):
client.memberships.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -292,6 +296,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
membership = await async_client.memberships.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
)
assert_matches_type(MembershipDeleteResponse, membership, path=["response"])
@@ -300,6 +305,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.memberships.with_raw_response.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
)
assert response.is_closed is True
@@ -312,6 +318,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.memberships.with_streaming_response.delete(
"4536bcfad5faccb111b47003c79917fa",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -327,6 +334,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `membership_id` but received ''"):
await async_client.memberships.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_mtls_certificates.py b/tests/api_resources/test_mtls_certificates.py
index ca3dbc38d354..41314a8b2856 100644
--- a/tests/api_resources/test_mtls_certificates.py
+++ b/tests/api_resources/test_mtls_certificates.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import MTLSCertificate, MTLSCertificateUpdate
+from cloudflare.types import (
+ MTLSCertificate,
+ MTLSCertificateUpdate,
+)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -128,6 +131,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
mtls_certificate = client.mtls_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(MTLSCertificate, mtls_certificate, path=["response"])
@@ -137,6 +141,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.mtls_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -150,6 +155,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.mtls_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -166,12 +172,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.mtls_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `mtls_certificate_id` but received ''"):
client.mtls_certificates.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -340,6 +348,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
mtls_certificate = await async_client.mtls_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(MTLSCertificate, mtls_certificate, path=["response"])
@@ -349,6 +358,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.mtls_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -362,6 +372,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.mtls_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -378,12 +389,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.mtls_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `mtls_certificate_id` but received ''"):
await async_client.mtls_certificates.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_origin_ca_certificates.py b/tests/api_resources/test_origin_ca_certificates.py
index b20f9c59221c..1b640b94000b 100644
--- a/tests/api_resources/test_origin_ca_certificates.py
+++ b/tests/api_resources/test_origin_ca_certificates.py
@@ -68,6 +68,14 @@ def test_method_list(self, client: Cloudflare) -> None:
origin_ca_certificate = client.origin_ca_certificates.list()
assert_matches_type(SyncSinglePage[OriginCACertificate], origin_ca_certificate, path=["response"])
+ @pytest.mark.skip()
+ @parametrize
+ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
+ origin_ca_certificate = client.origin_ca_certificates.list(
+ identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+ assert_matches_type(SyncSinglePage[OriginCACertificate], origin_ca_certificate, path=["response"])
+
@pytest.mark.skip()
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
@@ -95,6 +103,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
origin_ca_certificate = client.origin_ca_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginCACertificateDeleteResponse, origin_ca_certificate, path=["response"])
@@ -103,6 +112,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.origin_ca_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -115,6 +125,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.origin_ca_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -130,6 +141,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
client.origin_ca_certificates.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -223,6 +235,14 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
origin_ca_certificate = await async_client.origin_ca_certificates.list()
assert_matches_type(AsyncSinglePage[OriginCACertificate], origin_ca_certificate, path=["response"])
+ @pytest.mark.skip()
+ @parametrize
+ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
+ origin_ca_certificate = await async_client.origin_ca_certificates.list(
+ identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+ assert_matches_type(AsyncSinglePage[OriginCACertificate], origin_ca_certificate, path=["response"])
+
@pytest.mark.skip()
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -250,6 +270,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
origin_ca_certificate = await async_client.origin_ca_certificates.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginCACertificateDeleteResponse, origin_ca_certificate, path=["response"])
@@ -258,6 +279,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.origin_ca_certificates.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -270,6 +292,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.origin_ca_certificates.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -285,6 +308,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
await async_client.origin_ca_certificates.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_origin_tls_client_auth.py b/tests/api_resources/test_origin_tls_client_auth.py
index e75e32b30bc7..ebadfa7603cf 100644
--- a/tests/api_resources/test_origin_tls_client_auth.py
+++ b/tests/api_resources/test_origin_tls_client_auth.py
@@ -123,6 +123,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
origin_tls_client_auth = client.origin_tls_client_auth.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@@ -132,6 +133,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.origin_tls_client_auth.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -145,6 +147,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.origin_tls_client_auth.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -161,12 +164,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.origin_tls_client_auth.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
client.origin_tls_client_auth.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -325,6 +330,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
origin_tls_client_auth = await async_client.origin_tls_client_auth.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@@ -334,6 +340,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.origin_tls_client_auth.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -347,6 +354,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.origin_tls_client_auth.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -363,12 +371,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.origin_tls_client_auth.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `certificate_id` but received ''"):
await async_client.origin_tls_client_auth.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_pagerules.py b/tests/api_resources/test_pagerules.py
index 42de780f1d10..7fd08df02973 100644
--- a/tests/api_resources/test_pagerules.py
+++ b/tests/api_resources/test_pagerules.py
@@ -325,6 +325,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
pagerule = client.pagerules.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[PageruleDeleteResponse], pagerule, path=["response"])
@@ -334,6 +335,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.pagerules.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -347,6 +349,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.pagerules.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -363,12 +366,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.pagerules.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pagerule_id` but received ''"):
client.pagerules.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -809,6 +814,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
pagerule = await async_client.pagerules.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[PageruleDeleteResponse], pagerule, path=["response"])
@@ -818,6 +824,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.pagerules.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -831,6 +838,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.pagerules.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -847,12 +855,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.pagerules.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pagerule_id` but received ''"):
await async_client.pagerules.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_queues.py b/tests/api_resources/test_queues.py
index 0d2b8b65738f..09a971a7f1c9 100644
--- a/tests/api_resources/test_queues.py
+++ b/tests/api_resources/test_queues.py
@@ -174,6 +174,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
queue = client.queues.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@@ -183,6 +184,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.queues.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -196,6 +198,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.queues.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -212,12 +215,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.queues.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `queue_id` but received ''"):
client.queues.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -427,6 +432,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
queue = await async_client.queues.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@@ -436,6 +442,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.queues.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -449,6 +456,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.queues.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -465,12 +473,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.queues.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `queue_id` but received ''"):
await async_client.queues.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_rate_limits.py b/tests/api_resources/test_rate_limits.py
index aedc8ca03056..4196c24afe62 100644
--- a/tests/api_resources/test_rate_limits.py
+++ b/tests/api_resources/test_rate_limits.py
@@ -128,6 +128,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
rate_limit = client.rate_limits.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[RateLimitDeleteResponse], rate_limit, path=["response"])
@@ -137,6 +138,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.rate_limits.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -150,6 +152,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.rate_limits.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -166,12 +169,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.rate_limits.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
client.rate_limits.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -391,6 +396,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
rate_limit = await async_client.rate_limits.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[RateLimitDeleteResponse], rate_limit, path=["response"])
@@ -400,6 +406,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.rate_limits.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -413,6 +420,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.rate_limits.with_streaming_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -429,12 +437,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.rate_limits.with_raw_response.delete(
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
await async_client.rate_limits.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_speed.py b/tests/api_resources/test_speed.py
index 5afa72384304..b3dacc27b023 100644
--- a/tests/api_resources/test_speed.py
+++ b/tests/api_resources/test_speed.py
@@ -14,6 +14,7 @@
ObservatorySchedule,
SpeedDeleteResponse,
)
+from cloudflare._utils import parse_datetime
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -154,10 +155,26 @@ def test_method_trends_list(self, client: Cloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
assert_matches_type(Optional[ObservatoryTrend], speed, path=["response"])
+ @pytest.mark.skip()
+ @parametrize
+ def test_method_trends_list_with_all_params(self, client: Cloudflare) -> None:
+ speed = client.speed.trends_list(
+ "example.com",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ device_type="DESKTOP",
+ metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
+ region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
+ tz="string",
+ end=parse_datetime("2014-01-01T05:20:00.12345Z"),
+ )
+ assert_matches_type(Optional[ObservatoryTrend], speed, path=["response"])
+
@pytest.mark.skip()
@parametrize
def test_raw_response_trends_list(self, client: Cloudflare) -> None:
@@ -167,6 +184,7 @@ def test_raw_response_trends_list(self, client: Cloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
@@ -184,6 +202,7 @@ def test_streaming_response_trends_list(self, client: Cloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
) as response:
assert not response.is_closed
@@ -204,6 +223,7 @@ def test_path_params_trends_list(self, client: Cloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
@@ -214,6 +234,7 @@ def test_path_params_trends_list(self, client: Cloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
@@ -354,7 +375,23 @@ async def test_method_trends_list(self, async_client: AsyncCloudflare) -> None:
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
+ tz="string",
+ )
+ assert_matches_type(Optional[ObservatoryTrend], speed, path=["response"])
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_method_trends_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
+ speed = await async_client.speed.trends_list(
+ "example.com",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ device_type="DESKTOP",
+ metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
+ region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
+ end=parse_datetime("2014-01-01T05:20:00.12345Z"),
)
assert_matches_type(Optional[ObservatoryTrend], speed, path=["response"])
@@ -367,6 +404,7 @@ async def test_raw_response_trends_list(self, async_client: AsyncCloudflare) ->
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
@@ -384,6 +422,7 @@ async def test_streaming_response_trends_list(self, async_client: AsyncCloudflar
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
) as response:
assert not response.is_closed
@@ -404,6 +443,7 @@ async def test_path_params_trends_list(self, async_client: AsyncCloudflare) -> N
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
@@ -414,5 +454,6 @@ async def test_path_params_trends_list(self, async_client: AsyncCloudflare) -> N
device_type="DESKTOP",
metrics="performanceScore,ttfb,fcp,si,lcp,tti,tbt,cls",
region="us-central1",
+ start=parse_datetime("2014-01-01T05:20:00.12345Z"),
tz="string",
)
diff --git a/tests/api_resources/test_stream.py b/tests/api_resources/test_stream.py
index 118641ae1d88..5ab79ed336fd 100644
--- a/tests/api_resources/test_stream.py
+++ b/tests/api_resources/test_stream.py
@@ -24,6 +24,7 @@ class TestStream:
def test_method_create(self, client: Cloudflare) -> None:
stream = client.stream.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert stream is None
@@ -32,6 +33,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.stream.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -44,6 +46,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.stream.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -59,6 +62,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.stream.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -125,6 +129,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
stream = client.stream.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert stream is None
@@ -134,6 +139,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.stream.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -147,6 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.stream.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -163,12 +170,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.stream.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.stream.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -232,6 +241,7 @@ class TestAsyncStream:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
stream = await async_client.stream.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert stream is None
@@ -240,6 +250,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -252,6 +263,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.stream.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -267,6 +279,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.stream.with_raw_response.create(
account_id="",
+ body={},
)
@pytest.mark.skip()
@@ -333,6 +346,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
stream = await async_client.stream.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert stream is None
@@ -342,6 +356,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -355,6 +370,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.stream.with_streaming_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -371,12 +387,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.stream.with_raw_response.delete(
"ea95132c15732412d22c1476fa83f27a",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.stream.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_subscriptions.py b/tests/api_resources/test_subscriptions.py
index ed9927ed6184..cc29eb2155e9 100644
--- a/tests/api_resources/test_subscriptions.py
+++ b/tests/api_resources/test_subscriptions.py
@@ -249,6 +249,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
subscription = client.subscriptions.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
@@ -258,6 +259,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -271,6 +273,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.subscriptions.with_streaming_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -287,6 +290,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="",
+ body={},
)
with pytest.raises(
@@ -295,6 +299,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.subscriptions.with_raw_response.delete(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -568,6 +573,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.subscriptions.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
@@ -577,6 +583,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -590,6 +597,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.subscriptions.with_streaming_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -606,6 +614,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="",
+ body={},
)
with pytest.raises(
@@ -614,6 +623,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.subscriptions.with_raw_response.delete(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_waiting_rooms.py b/tests/api_resources/test_waiting_rooms.py
index 5dc12f469b94..a6e9db38ca52 100644
--- a/tests/api_resources/test_waiting_rooms.py
+++ b/tests/api_resources/test_waiting_rooms.py
@@ -284,6 +284,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
waiting_room = client.waiting_rooms.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WaitingRoomDeleteResponse, waiting_room, path=["response"])
@@ -293,6 +294,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.waiting_rooms.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -306,6 +308,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.waiting_rooms.with_streaming_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -322,12 +325,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.waiting_rooms.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
client.waiting_rooms.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -764,6 +769,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
waiting_room = await async_client.waiting_rooms.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(WaitingRoomDeleteResponse, waiting_room, path=["response"])
@@ -773,6 +779,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.waiting_rooms.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -786,6 +793,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.waiting_rooms.with_streaming_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -802,12 +810,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.waiting_rooms.with_raw_response.delete(
"699d98642c564d2e855e9661899b7252",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
await async_client.waiting_rooms.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/test_warp_connector.py b/tests/api_resources/test_warp_connector.py
index cf665427be73..9a8ad00e5966 100644
--- a/tests/api_resources/test_warp_connector.py
+++ b/tests/api_resources/test_warp_connector.py
@@ -92,6 +92,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
name="blog",
page=1,
per_page=1,
+ uuid="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
@@ -425,6 +426,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
name="blog",
page=1,
per_page=1,
+ uuid="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
diff --git a/tests/api_resources/user/billing/test_history.py b/tests/api_resources/user/billing/test_history.py
index 69f5c9ab0044..fbe2c0d675ee 100644
--- a/tests/api_resources/user/billing/test_history.py
+++ b/tests/api_resources/user/billing/test_history.py
@@ -9,6 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare._utils import parse_datetime
from cloudflare.types.user.billing import HistoryGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -27,9 +28,13 @@ def test_method_get(self, client: Cloudflare) -> None:
@parametrize
def test_method_get_with_all_params(self, client: Cloudflare) -> None:
history = client.user.billing.history.get(
+ action="subscription",
+ occured_at=parse_datetime("2014-03-01T12:21:59.3456Z"),
+ occurred_at=parse_datetime("2014-03-01T12:21:59.3456Z"),
order="occured_at",
page=1,
per_page=5,
+ type="charge",
)
assert_matches_type(Optional[HistoryGetResponse], history, path=["response"])
@@ -69,9 +74,13 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -> None:
history = await async_client.user.billing.history.get(
+ action="subscription",
+ occured_at=parse_datetime("2014-03-01T12:21:59.3456Z"),
+ occurred_at=parse_datetime("2014-03-01T12:21:59.3456Z"),
order="occured_at",
page=1,
per_page=5,
+ type="charge",
)
assert_matches_type(Optional[HistoryGetResponse], history, path=["response"])
diff --git a/tests/api_resources/user/firewall/test_access_rules.py b/tests/api_resources/user/firewall/test_access_rules.py
index a20ec3c2db92..508d5672b298 100644
--- a/tests/api_resources/user/firewall/test_access_rules.py
+++ b/tests/api_resources/user/firewall/test_access_rules.py
@@ -128,6 +128,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
access_rule = client.user.firewall.access_rules.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
)
assert_matches_type(Optional[AccessRuleDeleteResponse], access_rule, path=["response"])
@@ -136,6 +137,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.firewall.access_rules.with_raw_response.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
)
assert response.is_closed is True
@@ -148,6 +150,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.firewall.access_rules.with_streaming_response.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -163,6 +166,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.user.firewall.access_rules.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -328,6 +332,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
access_rule = await async_client.user.firewall.access_rules.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
)
assert_matches_type(Optional[AccessRuleDeleteResponse], access_rule, path=["response"])
@@ -336,6 +341,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.firewall.access_rules.with_raw_response.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
)
assert response.is_closed is True
@@ -348,6 +354,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.firewall.access_rules.with_streaming_response.delete(
"92f17202ed8bd63d69a66b86a49a8f6b",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -363,6 +370,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.user.firewall.access_rules.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/user/load_balancers/test_monitors.py b/tests/api_resources/user/load_balancers/test_monitors.py
index 359d83209c72..290acdecad42 100644
--- a/tests/api_resources/user/load_balancers/test_monitors.py
+++ b/tests/api_resources/user/load_balancers/test_monitors.py
@@ -189,6 +189,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
monitor = client.user.load_balancers.monitors.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
)
assert_matches_type(MonitorDeleteResponse, monitor, path=["response"])
@@ -197,6 +198,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
)
assert response.is_closed is True
@@ -209,6 +211,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.load_balancers.monitors.with_streaming_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -224,6 +227,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `monitor_id` but received ''"):
client.user.load_balancers.monitors.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -626,6 +630,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
monitor = await async_client.user.load_balancers.monitors.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
)
assert_matches_type(MonitorDeleteResponse, monitor, path=["response"])
@@ -634,6 +639,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.load_balancers.monitors.with_raw_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
)
assert response.is_closed is True
@@ -646,6 +652,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.load_balancers.monitors.with_streaming_response.delete(
"f1aba936b94213e5b8dca0c0dbf1f9cc",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -661,6 +668,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `monitor_id` but received ''"):
await async_client.user.load_balancers.monitors.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/user/load_balancers/test_pools.py b/tests/api_resources/user/load_balancers/test_pools.py
index 213bc1b0df27..8178c368642b 100644
--- a/tests/api_resources/user/load_balancers/test_pools.py
+++ b/tests/api_resources/user/load_balancers/test_pools.py
@@ -271,6 +271,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
pool = client.user.load_balancers.pools.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
)
assert_matches_type(PoolDeleteResponse, pool, path=["response"])
@@ -279,6 +280,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
)
assert response.is_closed is True
@@ -291,6 +293,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.load_balancers.pools.with_streaming_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -306,6 +309,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pool_id` but received ''"):
client.user.load_balancers.pools.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -860,6 +864,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
pool = await async_client.user.load_balancers.pools.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
)
assert_matches_type(PoolDeleteResponse, pool, path=["response"])
@@ -868,6 +873,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.load_balancers.pools.with_raw_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
)
assert response.is_closed is True
@@ -880,6 +886,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.load_balancers.pools.with_streaming_response.delete(
"17b5962d775c646f3f9725cbc7a53df4",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -895,6 +902,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `pool_id` but received ''"):
await async_client.user.load_balancers.pools.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/user/test_organizations.py b/tests/api_resources/user/test_organizations.py
index b0b008cc682f..9d3593991ee0 100644
--- a/tests/api_resources/user/test_organizations.py
+++ b/tests/api_resources/user/test_organizations.py
@@ -69,6 +69,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
organization = client.user.organizations.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OrganizationDeleteResponse, organization, path=["response"])
@@ -77,6 +78,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.organizations.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -89,6 +91,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.organizations.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -104,6 +107,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `organization_id` but received ''"):
client.user.organizations.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -199,6 +203,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
organization = await async_client.user.organizations.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(OrganizationDeleteResponse, organization, path=["response"])
@@ -207,6 +212,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.organizations.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -219,6 +225,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.organizations.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -234,6 +241,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `organization_id` but received ''"):
await async_client.user.organizations.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/user/test_subscriptions.py b/tests/api_resources/user/test_subscriptions.py
index 916a255ac114..68f8a80684da 100644
--- a/tests/api_resources/user/test_subscriptions.py
+++ b/tests/api_resources/user/test_subscriptions.py
@@ -109,6 +109,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
subscription = client.user.subscriptions.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
)
assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
@@ -117,6 +118,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
)
assert response.is_closed is True
@@ -129,6 +131,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.subscriptions.with_streaming_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -144,6 +147,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.user.subscriptions.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
@@ -347,6 +351,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.user.subscriptions.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
)
assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
@@ -355,6 +360,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.subscriptions.with_raw_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
)
assert response.is_closed is True
@@ -367,6 +373,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.subscriptions.with_streaming_response.delete(
"506e3185e9c882d175a2d0cb0093d9f2",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -382,6 +389,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.user.subscriptions.with_raw_response.delete(
"",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/user/test_tokens.py b/tests/api_resources/user/test_tokens.py
index 3016556574a4..69ffa843fff4 100644
--- a/tests/api_resources/user/test_tokens.py
+++ b/tests/api_resources/user/test_tokens.py
@@ -384,6 +384,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
token = client.user.tokens.delete(
{},
+ body={},
)
assert_matches_type(Optional[TokenDeleteResponse], token, path=["response"])
@@ -392,6 +393,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.user.tokens.with_raw_response.delete(
{},
+ body={},
)
assert response.is_closed is True
@@ -404,6 +406,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.user.tokens.with_streaming_response.delete(
{},
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -838,6 +841,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
token = await async_client.user.tokens.delete(
{},
+ body={},
)
assert_matches_type(Optional[TokenDeleteResponse], token, path=["response"])
@@ -846,6 +850,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.user.tokens.with_raw_response.delete(
{},
+ body={},
)
assert response.is_closed is True
@@ -858,6 +863,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.user.tokens.with_streaming_response.delete(
{},
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
diff --git a/tests/api_resources/vectorize/test_indexes.py b/tests/api_resources/vectorize/test_indexes.py
index 019423f0773a..77c04f69e195 100644
--- a/tests/api_resources/vectorize/test_indexes.py
+++ b/tests/api_resources/vectorize/test_indexes.py
@@ -419,6 +419,7 @@ def test_method_insert(self, client: Cloudflare) -> None:
index = client.vectorize.indexes.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[VectorizeIndexInsert], index, path=["response"])
@@ -428,6 +429,7 @@ def test_raw_response_insert(self, client: Cloudflare) -> None:
response = client.vectorize.indexes.with_raw_response.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -441,6 +443,7 @@ def test_streaming_response_insert(self, client: Cloudflare) -> None:
with client.vectorize.indexes.with_streaming_response.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -457,12 +460,14 @@ def test_path_params_insert(self, client: Cloudflare) -> None:
client.vectorize.indexes.with_raw_response.insert(
"example-index",
account_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `index_name` but received ''"):
client.vectorize.indexes.with_raw_response.insert(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -536,6 +541,7 @@ def test_method_upsert(self, client: Cloudflare) -> None:
index = client.vectorize.indexes.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[VectorizeIndexUpsert], index, path=["response"])
@@ -545,6 +551,7 @@ def test_raw_response_upsert(self, client: Cloudflare) -> None:
response = client.vectorize.indexes.with_raw_response.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -558,6 +565,7 @@ def test_streaming_response_upsert(self, client: Cloudflare) -> None:
with client.vectorize.indexes.with_streaming_response.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -574,12 +582,14 @@ def test_path_params_upsert(self, client: Cloudflare) -> None:
client.vectorize.indexes.with_raw_response.upsert(
"example-index",
account_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `index_name` but received ''"):
client.vectorize.indexes.with_raw_response.upsert(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -980,6 +990,7 @@ async def test_method_insert(self, async_client: AsyncCloudflare) -> None:
index = await async_client.vectorize.indexes.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[VectorizeIndexInsert], index, path=["response"])
@@ -989,6 +1000,7 @@ async def test_raw_response_insert(self, async_client: AsyncCloudflare) -> None:
response = await async_client.vectorize.indexes.with_raw_response.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -1002,6 +1014,7 @@ async def test_streaming_response_insert(self, async_client: AsyncCloudflare) ->
async with async_client.vectorize.indexes.with_streaming_response.insert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1018,12 +1031,14 @@ async def test_path_params_insert(self, async_client: AsyncCloudflare) -> None:
await async_client.vectorize.indexes.with_raw_response.insert(
"example-index",
account_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `index_name` but received ''"):
await async_client.vectorize.indexes.with_raw_response.insert(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -1097,6 +1112,7 @@ async def test_method_upsert(self, async_client: AsyncCloudflare) -> None:
index = await async_client.vectorize.indexes.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[VectorizeIndexUpsert], index, path=["response"])
@@ -1106,6 +1122,7 @@ async def test_raw_response_upsert(self, async_client: AsyncCloudflare) -> None:
response = await async_client.vectorize.indexes.with_raw_response.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -1119,6 +1136,7 @@ async def test_streaming_response_upsert(self, async_client: AsyncCloudflare) ->
async with async_client.vectorize.indexes.with_streaming_response.upsert(
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -1135,10 +1153,12 @@ async def test_path_params_upsert(self, async_client: AsyncCloudflare) -> None:
await async_client.vectorize.indexes.with_raw_response.upsert(
"example-index",
account_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `index_name` but received ''"):
await async_client.vectorize.indexes.with_raw_response.upsert(
"",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/waiting_rooms/test_events.py b/tests/api_resources/waiting_rooms/test_events.py
index eb4a8bf7ce97..88cbe59a02c8 100644
--- a/tests/api_resources/waiting_rooms/test_events.py
+++ b/tests/api_resources/waiting_rooms/test_events.py
@@ -274,6 +274,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(EventDeleteResponse, event, path=["response"])
@@ -284,6 +285,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -298,6 +300,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -315,6 +318,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
@@ -322,6 +326,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
@@ -329,6 +334,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -757,6 +763,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(EventDeleteResponse, event, path=["response"])
@@ -767,6 +774,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -781,6 +789,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -798,6 +807,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
@@ -805,6 +815,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
@@ -812,6 +823,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/waiting_rooms/test_rules.py b/tests/api_resources/waiting_rooms/test_rules.py
index 8098cc7ad03e..4a66cb7fbe9a 100644
--- a/tests/api_resources/waiting_rooms/test_rules.py
+++ b/tests/api_resources/waiting_rooms/test_rules.py
@@ -280,6 +280,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[RuleDeleteResponse], rule, path=["response"])
@@ -290,6 +291,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -304,6 +306,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -321,6 +324,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
@@ -328,6 +332,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
@@ -335,6 +340,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -688,6 +694,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[RuleDeleteResponse], rule, path=["response"])
@@ -698,6 +705,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -712,6 +720,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -729,6 +738,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
@@ -736,6 +746,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"25756b2dfe6e378a06b033b670413757",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
@@ -743,6 +754,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
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 fea633985d2a..2bf92095fbcf 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
@@ -245,6 +245,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[EntryDeleteResponse], entry, path=["response"])
@@ -255,6 +256,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -269,6 +271,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -286,6 +289,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -293,6 +297,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
+ body={},
)
with pytest.raises(
@@ -302,6 +307,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -602,6 +608,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[EntryDeleteResponse], entry, path=["response"])
@@ -613,6 +620,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
)
@@ -628,6 +636,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -645,6 +654,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
@@ -652,6 +662,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="",
+ body={},
)
with pytest.raises(
@@ -661,6 +672,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/web3/test_hostnames.py b/tests/api_resources/web3/test_hostnames.py
index 8b90939ee6c7..dc062f7126e0 100644
--- a/tests/api_resources/web3/test_hostnames.py
+++ b/tests/api_resources/web3/test_hostnames.py
@@ -126,6 +126,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
hostname = client.web3.hostnames.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[HostnameDeleteResponse], hostname, path=["response"])
@@ -135,6 +136,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.web3.hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -148,6 +150,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.web3.hostnames.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -164,12 +167,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.web3.hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
client.web3.hostnames.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -396,6 +401,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
hostname = await async_client.web3.hostnames.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[HostnameDeleteResponse], hostname, path=["response"])
@@ -405,6 +411,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.web3.hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -418,6 +425,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.web3.hostnames.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -434,12 +442,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.web3.hostnames.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
await async_client.web3.hostnames.with_raw_response.delete(
"",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/workers/scripts/test_tail.py b/tests/api_resources/workers/scripts/test_tail.py
index aef0b5b58e2d..819ac972cf9d 100644
--- a/tests/api_resources/workers/scripts/test_tail.py
+++ b/tests/api_resources/workers/scripts/test_tail.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.workers.scripts import TailGetResponse, TailCreateResponse, 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")
@@ -23,6 +27,7 @@ def test_method_create(self, client: Cloudflare) -> None:
tail = client.workers.scripts.tail.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(TailCreateResponse, tail, path=["response"])
@@ -32,6 +37,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.workers.scripts.tail.with_raw_response.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -45,6 +51,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.workers.scripts.tail.with_streaming_response.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -61,12 +68,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
client.workers.scripts.tail.with_raw_response.create(
"this-is_my_script-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
client.workers.scripts.tail.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -76,6 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
assert_matches_type(TailDeleteResponse, tail, path=["response"])
@@ -86,6 +96,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
assert response.is_closed is True
@@ -100,6 +111,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -117,6 +129,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="",
script_name="this-is_my_script-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
@@ -124,6 +137,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -131,6 +145,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
@pytest.mark.skip()
@@ -195,6 +210,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
tail = await async_client.workers.scripts.tail.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(TailCreateResponse, tail, path=["response"])
@@ -204,6 +220,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.workers.scripts.tail.with_raw_response.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -217,6 +234,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
async with async_client.workers.scripts.tail.with_streaming_response.create(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -233,12 +251,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
await async_client.workers.scripts.tail.with_raw_response.create(
"this-is_my_script-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
await async_client.workers.scripts.tail.with_raw_response.create(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -248,6 +268,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
assert_matches_type(TailDeleteResponse, tail, path=["response"])
@@ -258,6 +279,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
assert response.is_closed is True
@@ -272,6 +294,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -289,6 +312,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="",
script_name="this-is_my_script-01",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
@@ -296,6 +320,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"03dc9f77817b488fb26c5861ec18f791",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -303,6 +328,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/workers/test_domains.py b/tests/api_resources/workers/test_domains.py
index f96dbc6dbbb0..490e2c440d32 100644
--- a/tests/api_resources/workers/test_domains.py
+++ b/tests/api_resources/workers/test_domains.py
@@ -137,6 +137,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
domain = client.workers.domains.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
assert domain is None
@@ -146,6 +147,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.workers.domains.with_raw_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
assert response.is_closed is True
@@ -159,6 +161,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.workers.domains.with_streaming_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -175,12 +178,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.workers.domains.with_raw_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
client.workers.domains.with_raw_response.delete(
"",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
@pytest.mark.skip()
@@ -358,6 +363,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
domain = await async_client.workers.domains.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
assert domain is None
@@ -367,6 +373,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.workers.domains.with_raw_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
assert response.is_closed is True
@@ -380,6 +387,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.workers.domains.with_streaming_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -396,12 +404,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.workers.domains.with_raw_response.delete(
"dbe10b4bc17c295377eabd600e1787fd",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
await async_client.workers.domains.with_raw_response.delete(
"",
account_id="9a7806061c88ada191ed06f989cc3dac",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/workers/test_filters.py b/tests/api_resources/workers/test_filters.py
index 8b1f32106c52..77b9bd9c84bb 100644
--- a/tests/api_resources/workers/test_filters.py
+++ b/tests/api_resources/workers/test_filters.py
@@ -182,6 +182,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
filter = client.workers.filters.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[FilterDeleteResponse], filter, path=["response"])
@@ -191,6 +192,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.workers.filters.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -204,6 +206,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.workers.filters.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -220,12 +223,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.workers.filters.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `filter_id` but received ''"):
client.workers.filters.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@@ -392,6 +397,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
filter = await async_client.workers.filters.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(Optional[FilterDeleteResponse], filter, path=["response"])
@@ -401,6 +407,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.workers.filters.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -414,6 +421,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.workers.filters.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -430,10 +438,12 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.workers.filters.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `filter_id` but received ''"):
await async_client.workers.filters.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
diff --git a/tests/api_resources/workers/test_routes.py b/tests/api_resources/workers/test_routes.py
index 96ec8968fa73..29eeb5347e2d 100644
--- a/tests/api_resources/workers/test_routes.py
+++ b/tests/api_resources/workers/test_routes.py
@@ -194,6 +194,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
route = client.workers.routes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RouteDeleteResponse, route, path=["response"])
@@ -203,6 +204,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.workers.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -216,6 +218,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.workers.routes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -232,12 +235,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.workers.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `route_id` but received ''"):
client.workers.routes.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -468,6 +473,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
route = await async_client.workers.routes.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(RouteDeleteResponse, route, path=["response"])
@@ -477,6 +483,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.workers.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -490,6 +497,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.workers.routes.with_streaming_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -506,12 +514,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.workers.routes.with_raw_response.delete(
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `route_id` but received ''"):
await async_client.workers.routes.with_raw_response.delete(
"",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/workers/test_scripts.py b/tests/api_resources/workers/test_scripts.py
index e6cb951422b5..79f625fb8270 100644
--- a/tests/api_resources/workers/test_scripts.py
+++ b/tests/api_resources/workers/test_scripts.py
@@ -273,6 +273,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
script = client.workers.scripts.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert script is None
@@ -282,6 +283,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
script = client.workers.scripts.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
force=True,
)
assert script is None
@@ -292,6 +294,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.workers.scripts.with_raw_response.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -305,6 +308,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.workers.scripts.with_streaming_response.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -321,12 +325,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.workers.scripts.with_raw_response.delete(
"this-is_my_script-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
client.workers.scripts.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -650,6 +656,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
script = await async_client.workers.scripts.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert script is None
@@ -659,6 +666,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
script = await async_client.workers.scripts.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
force=True,
)
assert script is None
@@ -669,6 +677,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.workers.scripts.with_raw_response.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -682,6 +691,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.workers.scripts.with_streaming_response.delete(
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -698,12 +708,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.workers.scripts.with_raw_response.delete(
"this-is_my_script-01",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
await async_client.workers.scripts.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
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 6689db85892c..547f784caae5 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
@@ -250,6 +250,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
assert script is None
@@ -260,6 +261,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
force=True,
)
assert script is None
@@ -271,6 +273,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
assert response.is_closed is True
@@ -285,6 +288,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -302,6 +306,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dispatch_namespace` but received ''"):
@@ -309,6 +314,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
@@ -316,6 +322,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
@pytest.mark.skip()
@@ -616,6 +623,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
assert script is None
@@ -626,6 +634,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
force=True,
)
assert script is None
@@ -637,6 +646,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
assert response.is_closed is True
@@ -651,6 +661,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -668,6 +679,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"this-is_my_script-01",
account_id="",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dispatch_namespace` but received ''"):
@@ -675,6 +687,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"this-is_my_script-01",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `script_name` but received ''"):
@@ -682,6 +695,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/access/test_bookmarks.py b/tests/api_resources/zero_trust/access/test_bookmarks.py
index 64a3451ab3c2..868f025556ec 100644
--- a/tests/api_resources/zero_trust/access/test_bookmarks.py
+++ b/tests/api_resources/zero_trust/access/test_bookmarks.py
@@ -10,7 +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 import ZeroTrustBookmarks, BookmarkDeleteResponse
+from cloudflare.types.zero_trust.access import (
+ ZeroTrustBookmarks,
+ BookmarkDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,6 +27,7 @@ def test_method_create(self, client: Cloudflare) -> None:
bookmark = client.zero_trust.access.bookmarks.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ZeroTrustBookmarks, bookmark, path=["response"])
@@ -33,6 +37,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.zero_trust.access.bookmarks.with_raw_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -46,6 +51,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.zero_trust.access.bookmarks.with_streaming_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -62,12 +68,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
client.zero_trust.access.bookmarks.with_raw_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.create(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -76,6 +84,7 @@ def test_method_update(self, client: Cloudflare) -> None:
bookmark = client.zero_trust.access.bookmarks.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ZeroTrustBookmarks, bookmark, path=["response"])
@@ -85,6 +94,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.zero_trust.access.bookmarks.with_raw_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -98,6 +108,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.zero_trust.access.bookmarks.with_streaming_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -114,12 +125,14 @@ def test_path_params_update(self, client: Cloudflare) -> None:
client.zero_trust.access.bookmarks.with_raw_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.update(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -170,6 +183,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
bookmark = client.zero_trust.access.bookmarks.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(BookmarkDeleteResponse, bookmark, path=["response"])
@@ -179,6 +193,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.access.bookmarks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -192,6 +207,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.access.bookmarks.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -208,12 +224,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.access.bookmarks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.delete(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -278,6 +296,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
bookmark = await async_client.zero_trust.access.bookmarks.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ZeroTrustBookmarks, bookmark, path=["response"])
@@ -287,6 +306,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.access.bookmarks.with_raw_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -300,6 +320,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.access.bookmarks.with_streaming_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -316,12 +337,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.access.bookmarks.with_raw_response.create(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.create(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -330,6 +353,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
bookmark = await async_client.zero_trust.access.bookmarks.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ZeroTrustBookmarks, bookmark, path=["response"])
@@ -339,6 +363,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.access.bookmarks.with_raw_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -352,6 +377,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.access.bookmarks.with_streaming_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -368,12 +394,14 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.access.bookmarks.with_raw_response.update(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.update(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -424,6 +452,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
bookmark = await async_client.zero_trust.access.bookmarks.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(BookmarkDeleteResponse, bookmark, path=["response"])
@@ -433,6 +462,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.access.bookmarks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -446,6 +476,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.access.bookmarks.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -462,12 +493,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.access.bookmarks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
identifier="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.delete(
"",
identifier="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
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 2094d8b4161d..be1d8dd4c296 100644
--- a/tests/api_resources/zero_trust/devices/posture/test_integrations.py
+++ b/tests/api_resources/zero_trust/devices/posture/test_integrations.py
@@ -164,6 +164,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
integration = client.zero_trust.devices.posture.integrations.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
@@ -173,6 +174,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -186,6 +188,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.devices.posture.integrations.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -202,12 +205,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -479,6 +484,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
integration = await async_client.zero_trust.devices.posture.integrations.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
@@ -488,6 +494,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -501,6 +508,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.devices.posture.integrations.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -517,12 +525,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
await async_client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/devices/test_networks.py b/tests/api_resources/zero_trust/devices/test_networks.py
index 232e6be14250..11037d75c30c 100644
--- a/tests/api_resources/zero_trust/devices/test_networks.py
+++ b/tests/api_resources/zero_trust/devices/test_networks.py
@@ -204,6 +204,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
network = client.zero_trust.devices.networks.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[NetworkDeleteResponse], network, path=["response"])
@@ -213,6 +214,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.devices.networks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -226,6 +228,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.devices.networks.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -242,12 +245,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.devices.networks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
client.zero_trust.devices.networks.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -489,6 +494,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
network = await async_client.zero_trust.devices.networks.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[NetworkDeleteResponse], network, path=["response"])
@@ -498,6 +504,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.devices.networks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -511,6 +518,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.devices.networks.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -527,12 +535,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.devices.networks.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
await async_client.zero_trust.devices.networks.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/devices/test_policies.py b/tests/api_resources/zero_trust/devices/test_policies.py
index 2fcbeec752d9..d3e5f9a0cb0c 100644
--- a/tests/api_resources/zero_trust/devices/test_policies.py
+++ b/tests/api_resources/zero_trust/devices/test_policies.py
@@ -151,6 +151,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
policy = client.zero_trust.devices.policies.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@@ -160,6 +161,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.devices.policies.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -173,6 +175,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.devices.policies.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -189,12 +192,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.devices.policies.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -462,6 +467,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
policy = await async_client.zero_trust.devices.policies.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@@ -471,6 +477,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.devices.policies.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -484,6 +491,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.devices.policies.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -500,12 +508,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.devices.policies.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/devices/test_posture.py b/tests/api_resources/zero_trust/devices/test_posture.py
index 22dc0343f2db..a63596df73ef 100644
--- a/tests/api_resources/zero_trust/devices/test_posture.py
+++ b/tests/api_resources/zero_trust/devices/test_posture.py
@@ -224,6 +224,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
posture = client.zero_trust.devices.posture.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[PostureDeleteResponse], posture, path=["response"])
@@ -233,6 +234,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.devices.posture.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -246,6 +248,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.devices.posture.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -262,12 +265,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.devices.posture.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.devices.posture.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -529,6 +534,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
posture = await async_client.zero_trust.devices.posture.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(Optional[PostureDeleteResponse], posture, path=["response"])
@@ -538,6 +544,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.devices.posture.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -551,6 +558,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.devices.posture.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -567,12 +575,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.devices.posture.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.devices.posture.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
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 27b4ce8f3f58..f2da3760ce17 100644
--- a/tests/api_resources/zero_trust/dlp/datasets/test_upload.py
+++ b/tests/api_resources/zero_trust/dlp/datasets/test_upload.py
@@ -77,6 +77,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
assert_matches_type(Optional[DLPDataset], upload, path=["response"])
@@ -87,6 +88,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
assert response.is_closed is True
@@ -101,6 +103,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -118,6 +121,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
0,
account_id="",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dataset_id` but received ''"):
@@ -125,6 +129,7 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
0,
account_id="string",
dataset_id="",
+ body={},
)
@@ -190,6 +195,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
assert_matches_type(Optional[DLPDataset], upload, path=["response"])
@@ -200,6 +206,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
assert response.is_closed is True
@@ -214,6 +221,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
0,
account_id="string",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -231,6 +239,7 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
0,
account_id="",
dataset_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dataset_id` but received ''"):
@@ -238,4 +247,5 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
0,
account_id="string",
dataset_id="",
+ body={},
)
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 6fe7f1aadbf4..dc79083fc4c8 100644
--- a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
+++ b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
@@ -172,6 +172,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
custom = client.zero_trust.dlp.profiles.custom.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@@ -181,6 +182,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -194,6 +196,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.dlp.profiles.custom.with_streaming_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -210,12 +213,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"):
client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
@@ -425,6 +430,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
custom = await async_client.zero_trust.dlp.profiles.custom.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@@ -434,6 +440,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -447,6 +454,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.dlp.profiles.custom.with_streaming_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -463,12 +471,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"384e129d-25bd-403c-8019-bc19eb7a8a5f",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"):
await async_client.zero_trust.dlp.profiles.custom.with_raw_response.delete(
"",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py
index 3744b856256d..982a8d89d63c 100644
--- a/tests/api_resources/zero_trust/gateway/test_lists.py
+++ b/tests/api_resources/zero_trust/gateway/test_lists.py
@@ -200,6 +200,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
list = client.zero_trust.gateway.lists.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ListDeleteResponse, list, path=["response"])
@@ -209,6 +210,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.gateway.lists.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -222,6 +224,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.gateway.lists.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -238,12 +241,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.gateway.lists.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -543,6 +548,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
list = await async_client.zero_trust.gateway.lists.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ListDeleteResponse, list, path=["response"])
@@ -552,6 +558,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.gateway.lists.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -565,6 +572,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.gateway.lists.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -581,12 +589,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.gateway.lists.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/gateway/test_locations.py b/tests/api_resources/zero_trust/gateway/test_locations.py
index fcc448b5063b..1aa91e12fa6f 100644
--- a/tests/api_resources/zero_trust/gateway/test_locations.py
+++ b/tests/api_resources/zero_trust/gateway/test_locations.py
@@ -197,6 +197,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
location = client.zero_trust.gateway.locations.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(LocationDeleteResponse, location, path=["response"])
@@ -206,6 +207,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.gateway.locations.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -219,6 +221,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.gateway.locations.with_streaming_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -235,12 +238,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.gateway.locations.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
client.zero_trust.gateway.locations.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -475,6 +480,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
location = await async_client.zero_trust.gateway.locations.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(LocationDeleteResponse, location, path=["response"])
@@ -484,6 +490,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.gateway.locations.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -497,6 +504,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.gateway.locations.with_streaming_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -513,12 +521,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.gateway.locations.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
await async_client.zero_trust.gateway.locations.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
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 8b9d29867c46..6ad58d66a1b6 100644
--- a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
+++ b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
@@ -31,17 +31,6 @@ def test_method_create(self, client: Cloudflare) -> None:
)
assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
- @pytest.mark.skip()
- @parametrize
- def test_method_create_with_all_params(self, client: Cloudflare) -> None:
- proxy_endpoint = client.zero_trust.gateway.proxy_endpoints.create(
- account_id="699d98642c564d2e855e9661899b7252",
- ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
- name="Devops team",
- subdomain="oli3n9zkz5.proxy.cloudflare-gateway.com",
- )
- assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
-
@pytest.mark.skip()
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
@@ -130,6 +119,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
proxy_endpoint = client.zero_trust.gateway.proxy_endpoints.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@@ -139,6 +129,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -152,6 +143,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.gateway.proxy_endpoints.with_streaming_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -168,12 +160,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -193,7 +187,6 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
name="Devops team",
- subdomain="oli3n9zkz5.proxy.cloudflare-gateway.com",
)
assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
@@ -306,17 +299,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
- @pytest.mark.skip()
- @parametrize
- async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
- proxy_endpoint = await async_client.zero_trust.gateway.proxy_endpoints.create(
- account_id="699d98642c564d2e855e9661899b7252",
- ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
- name="Devops team",
- subdomain="oli3n9zkz5.proxy.cloudflare-gateway.com",
- )
- assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
-
@pytest.mark.skip()
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@@ -405,6 +387,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
proxy_endpoint = await async_client.zero_trust.gateway.proxy_endpoints.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@@ -414,6 +397,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -427,6 +411,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.gateway.proxy_endpoints.with_streaming_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -443,12 +428,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"ed35569b41ce4d1facfe683550f54086",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -468,7 +455,6 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
account_id="699d98642c564d2e855e9661899b7252",
ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
name="Devops team",
- subdomain="oli3n9zkz5.proxy.cloudflare-gateway.com",
)
assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
diff --git a/tests/api_resources/zero_trust/gateway/test_rules.py b/tests/api_resources/zero_trust/gateway/test_rules.py
index c6ba34506554..95f2fc126ca0 100644
--- a/tests/api_resources/zero_trust/gateway/test_rules.py
+++ b/tests/api_resources/zero_trust/gateway/test_rules.py
@@ -68,19 +68,19 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
"dns_resolvers": {
"ipv4": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -88,19 +88,19 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
],
"ipv6": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -233,19 +233,19 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
"dns_resolvers": {
"ipv4": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -253,19 +253,19 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
],
"ipv6": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -408,6 +408,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
rule = client.zero_trust.gateway.rules.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@@ -417,6 +418,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.gateway.rules.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -430,6 +432,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.gateway.rules.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -446,12 +449,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.gateway.rules.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.gateway.rules.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -557,19 +562,19 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
"dns_resolvers": {
"ipv4": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -577,19 +582,19 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
],
"ipv6": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -722,19 +727,19 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
"dns_resolvers": {
"ipv4": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2.2.2.2",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -742,19 +747,19 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
],
"ipv6": [
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
},
{
- "ip": "2001:DB8::/64",
+ "ip": "2001:DB8::",
"port": 5053,
"route_through_private_network": True,
"vnet_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
@@ -897,6 +902,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
rule = await async_client.zero_trust.gateway.rules.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@@ -906,6 +912,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.gateway.rules.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -919,6 +926,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.gateway.rules.with_streaming_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -935,12 +943,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.gateway.rules.with_raw_response.delete(
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.gateway.rules.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
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 2a450b423f49..087470e1890c 100644
--- a/tests/api_resources/zero_trust/networks/routes/test_networks.py
+++ b/tests/api_resources/zero_trust/networks/routes/test_networks.py
@@ -96,6 +96,8 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
"172.16.0.0%2F16",
account_id="699d98642c564d2e855e9661899b7252",
tun_type="cfd_tunnel",
+ tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
+ virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
)
assert_matches_type(TunnelRoute, network, path=["response"])
@@ -277,6 +279,8 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
"172.16.0.0%2F16",
account_id="699d98642c564d2e855e9661899b7252",
tun_type="cfd_tunnel",
+ tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
+ virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
)
assert_matches_type(TunnelRoute, network, path=["response"])
diff --git a/tests/api_resources/zero_trust/networks/test_routes.py b/tests/api_resources/zero_trust/networks/test_routes.py
index fd55a14edef1..89a2a5237ac2 100644
--- a/tests/api_resources/zero_trust/networks/test_routes.py
+++ b/tests/api_resources/zero_trust/networks/test_routes.py
@@ -98,6 +98,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
network_superset={},
page=1,
per_page=1,
+ route_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
tun_types="cfd_tunnel,warp_connector",
tunnel_id={},
virtual_network_id={},
@@ -337,6 +338,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
network_superset={},
page=1,
per_page=1,
+ route_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
tun_types="cfd_tunnel,warp_connector",
tunnel_id={},
virtual_network_id={},
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 0f9798517cbd..c52caf96c86b 100644
--- a/tests/api_resources/zero_trust/networks/test_virtual_networks.py
+++ b/tests/api_resources/zero_trust/networks/test_virtual_networks.py
@@ -96,6 +96,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
is_default={},
is_deleted={},
name="us-east-1-vpc",
+ vnet_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
vnet_name="us-east-1-vpc",
)
assert_matches_type(SyncSinglePage[TunnelVirtualNetwork], virtual_network, path=["response"])
@@ -140,6 +141,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
virtual_network = client.zero_trust.networks.virtual_networks.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@@ -149,6 +151,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -162,6 +165,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zero_trust.networks.virtual_networks.with_streaming_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -178,12 +182,14 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `virtual_network_id` but received ''"):
client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
@@ -327,6 +333,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
is_default={},
is_deleted={},
name="us-east-1-vpc",
+ vnet_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
vnet_name="us-east-1-vpc",
)
assert_matches_type(AsyncSinglePage[TunnelVirtualNetwork], virtual_network, path=["response"])
@@ -371,6 +378,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
virtual_network = await async_client.zero_trust.networks.virtual_networks.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@@ -380,6 +388,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
assert response.is_closed is True
@@ -393,6 +402,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async with async_client.zero_trust.networks.virtual_networks.with_streaming_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -409,12 +419,14 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="",
+ body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `virtual_network_id` but received ''"):
await async_client.zero_trust.networks.virtual_networks.with_raw_response.delete(
"",
account_id="699d98642c564d2e855e9661899b7252",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/api_resources/zero_trust/test_tunnels.py b/tests/api_resources/zero_trust/test_tunnels.py
index c9419f092065..38c791f3ad9c 100644
--- a/tests/api_resources/zero_trust/test_tunnels.py
+++ b/tests/api_resources/zero_trust/test_tunnels.py
@@ -94,6 +94,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
page=1,
per_page=1,
tun_types="cfd_tunnel,warp_connector",
+ uuid="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
@@ -380,6 +381,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
page=1,
per_page=1,
tun_types="cfd_tunnel,warp_connector",
+ uuid="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
diff --git a/tests/api_resources/zones/workers/test_script.py b/tests/api_resources/zones/workers/test_script.py
index 386c937bba62..a8a61e36ddf6 100644
--- a/tests/api_resources/zones/workers/test_script.py
+++ b/tests/api_resources/zones/workers/test_script.py
@@ -30,6 +30,7 @@ class TestScript:
def test_method_update(self, client: Cloudflare) -> None:
script = client.zones.workers.script.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(ScriptUpdateResponse, script, path=["response"])
@@ -38,6 +39,7 @@ def test_method_update(self, client: Cloudflare) -> None:
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.zones.workers.script.with_raw_response.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -50,6 +52,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.zones.workers.script.with_streaming_response.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -65,6 +68,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.zones.workers.script.with_raw_response.update(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -72,6 +76,7 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
script = client.zones.workers.script.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert script is None
@@ -80,6 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.zones.workers.script.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -92,6 +98,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.zones.workers.script.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -107,6 +114,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
client.zones.workers.script.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -178,6 +186,7 @@ class TestAsyncScript:
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
script = await async_client.zones.workers.script.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert_matches_type(ScriptUpdateResponse, script, path=["response"])
@@ -186,6 +195,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zones.workers.script.with_raw_response.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -198,6 +208,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
async with async_client.zones.workers.script.with_streaming_response.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -213,6 +224,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.zones.workers.script.with_raw_response.update(
zone_id="",
+ body={},
)
@pytest.mark.skip()
@@ -220,6 +232,7 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
script = await async_client.zones.workers.script.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert script is None
@@ -228,6 +241,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.zones.workers.script.with_raw_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
)
assert response.is_closed is True
@@ -240,6 +254,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.zones.workers.script.with_streaming_response.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ body={},
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -255,6 +270,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
await async_client.zones.workers.script.with_raw_response.delete(
zone_id="",
+ body={},
)
@pytest.mark.skip()
diff --git a/tests/test_streaming.py b/tests/test_streaming.py
index 0ca088494ab4..373dacc940f4 100644
--- a/tests/test_streaming.py
+++ b/tests/test_streaming.py
@@ -1,104 +1,250 @@
+from __future__ import annotations
+
from typing import Iterator, AsyncIterator
+import httpx
import pytest
-from cloudflare._streaming import SSEDecoder
+from cloudflare import Cloudflare, AsyncCloudflare
+from cloudflare._streaming import Stream, AsyncStream, ServerSentEvent
@pytest.mark.asyncio
-async def test_basic_async() -> None:
- async def body() -> AsyncIterator[str]:
- yield "event: completion"
- yield 'data: {"foo":true}'
- yield ""
-
- async for sse in SSEDecoder().aiter(body()):
- assert sse.event == "completion"
- assert sse.json() == {"foo": True}
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_basic(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: completion\n"
+ yield b'data: {"foo":true}\n'
+ yield b"\n"
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
-def test_basic() -> None:
- def body() -> Iterator[str]:
- yield "event: completion"
- yield 'data: {"foo":true}'
- yield ""
-
- it = SSEDecoder().iter(body())
- sse = next(it)
+ sse = await iter_next(iterator)
assert sse.event == "completion"
assert sse.json() == {"foo": True}
- with pytest.raises(StopIteration):
- next(it)
+ await assert_empty_iter(iterator)
-def test_data_missing_event() -> None:
- def body() -> Iterator[str]:
- yield 'data: {"foo":true}'
- yield ""
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_data_missing_event(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b'data: {"foo":true}\n'
+ yield b"\n"
- it = SSEDecoder().iter(body())
- sse = next(it)
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
assert sse.event is None
assert sse.json() == {"foo": True}
- with pytest.raises(StopIteration):
- next(it)
+ await assert_empty_iter(iterator)
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_event_missing_data(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b"\n"
-def test_event_missing_data() -> None:
- def body() -> Iterator[str]:
- yield "event: ping"
- yield ""
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
- it = SSEDecoder().iter(body())
- sse = next(it)
+ sse = await iter_next(iterator)
assert sse.event == "ping"
assert sse.data == ""
- with pytest.raises(StopIteration):
- next(it)
+ await assert_empty_iter(iterator)
-def test_multiple_events() -> None:
- def body() -> Iterator[str]:
- yield "event: ping"
- yield ""
- yield "event: completion"
- yield ""
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_multiple_events(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b"\n"
+ yield b"event: completion\n"
+ yield b"\n"
- it = SSEDecoder().iter(body())
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
- sse = next(it)
+ sse = await iter_next(iterator)
assert sse.event == "ping"
assert sse.data == ""
- sse = next(it)
+ sse = await iter_next(iterator)
assert sse.event == "completion"
assert sse.data == ""
- with pytest.raises(StopIteration):
- next(it)
-
-
-def test_multiple_events_with_data() -> None:
- def body() -> Iterator[str]:
- yield "event: ping"
- yield 'data: {"foo":true}'
- yield ""
- yield "event: completion"
- yield 'data: {"bar":false}'
- yield ""
+ await assert_empty_iter(iterator)
- it = SSEDecoder().iter(body())
- sse = next(it)
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_multiple_events_with_data(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b'data: {"foo":true}\n'
+ yield b"\n"
+ yield b"event: completion\n"
+ yield b'data: {"bar":false}\n'
+ yield b"\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
assert sse.event == "ping"
assert sse.json() == {"foo": True}
- sse = next(it)
+ sse = await iter_next(iterator)
assert sse.event == "completion"
assert sse.json() == {"bar": False}
- with pytest.raises(StopIteration):
- next(it)
+ await assert_empty_iter(iterator)
+
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_multiple_data_lines_with_empty_line(
+ sync: bool, client: Cloudflare, async_client: AsyncCloudflare
+) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b"data: {\n"
+ yield b'data: "foo":\n'
+ yield b"data: \n"
+ yield b"data:\n"
+ yield b"data: true}\n"
+ yield b"\n\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
+ assert sse.event == "ping"
+ assert sse.json() == {"foo": True}
+ assert sse.data == '{\n"foo":\n\n\ntrue}'
+
+ await assert_empty_iter(iterator)
+
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_data_json_escaped_double_new_line(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b'data: {"foo": "my long\\n\\ncontent"}'
+ yield b"\n\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
+ assert sse.event == "ping"
+ assert sse.json() == {"foo": "my long\n\ncontent"}
+
+ await assert_empty_iter(iterator)
+
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_multiple_data_lines(sync: bool, client: Cloudflare, async_client: AsyncCloudflare) -> None:
+ def body() -> Iterator[bytes]:
+ yield b"event: ping\n"
+ yield b"data: {\n"
+ yield b'data: "foo":\n'
+ yield b"data: true}\n"
+ yield b"\n\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
+ assert sse.event == "ping"
+ assert sse.json() == {"foo": True}
+
+ await assert_empty_iter(iterator)
+
+
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_special_new_line_character(
+ sync: bool,
+ client: Cloudflare,
+ async_client: AsyncCloudflare,
+) -> None:
+ def body() -> Iterator[bytes]:
+ yield b'data: {"content":" culpa"}\n'
+ yield b"\n"
+ yield b'data: {"content":" \xe2\x80\xa8"}\n'
+ yield b"\n"
+ yield b'data: {"content":"foo"}\n'
+ yield b"\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
+ assert sse.event is None
+ assert sse.json() == {"content": " culpa"}
+
+ sse = await iter_next(iterator)
+ assert sse.event is None
+ assert sse.json() == {"content": "
"}
+
+ sse = await iter_next(iterator)
+ assert sse.event is None
+ assert sse.json() == {"content": "foo"}
+
+ await assert_empty_iter(iterator)
+
+
+@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
+async def test_multi_byte_character_multiple_chunks(
+ sync: bool,
+ client: Cloudflare,
+ async_client: AsyncCloudflare,
+) -> None:
+ def body() -> Iterator[bytes]:
+ yield b'data: {"content":"'
+ # bytes taken from the string 'известни' and arbitrarily split
+ # so that some multi-byte characters span multiple chunks
+ yield b"\xd0"
+ yield b"\xb8\xd0\xb7\xd0"
+ yield b"\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xbd\xd0\xb8"
+ yield b'"}\n'
+ yield b"\n"
+
+ iterator = make_event_iterator(content=body(), sync=sync, client=client, async_client=async_client)
+
+ sse = await iter_next(iterator)
+ assert sse.event is None
+ assert sse.json() == {"content": "известни"}
+
+
+async def to_aiter(iter: Iterator[bytes]) -> AsyncIterator[bytes]:
+ for chunk in iter:
+ yield chunk
+
+
+async def iter_next(iter: Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent]) -> ServerSentEvent:
+ if isinstance(iter, AsyncIterator):
+ return await iter.__anext__()
+
+ return next(iter)
+
+
+async def assert_empty_iter(iter: Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent]) -> None:
+ with pytest.raises((StopAsyncIteration, RuntimeError)):
+ await iter_next(iter)
+
+
+def make_event_iterator(
+ content: Iterator[bytes],
+ *,
+ sync: bool,
+ client: Cloudflare,
+ async_client: AsyncCloudflare,
+) -> Iterator[ServerSentEvent] | AsyncIterator[ServerSentEvent]:
+ if sync:
+ return Stream(cast_to=object, client=client, response=httpx.Response(200, content=content))._iter_events()
+
+ return AsyncStream(
+ cast_to=object, client=async_client, response=httpx.Response(200, content=to_aiter(content))
+ )._iter_events()