From a3331321ce02a9652e76a0bb28654cab4d0b4b8a Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 9 Apr 2024 05:37:09 +0000
Subject: [PATCH] feat(api): update via SDK Studio (#237)
---
api.md | 425 ++++++++++++------
src/cloudflare/_client.py | 16 +-
src/cloudflare/resources/__init__.py | 24 +-
src/cloudflare/resources/accounts/members.py | 5 +-
.../addressing/address_maps/accounts.py | 32 +-
.../addressing/address_maps/address_maps.py | 14 +-
.../resources/addressing/address_maps/ips.py | 27 +-
.../addressing/address_maps/zones.py | 32 +-
.../addressing/prefixes/bgp/bindings.py | 15 +-
.../resources/addressing/prefixes/prefixes.py | 21 +-
.../alerting/destinations/pagerduty.py | 20 +-
.../alerting/destinations/webhooks.py | 14 +-
src/cloudflare/resources/alerting/policies.py | 14 +-
src/cloudflare/resources/cache/__init__.py | 24 +-
src/cloudflare/resources/cache/cache.py | 36 +-
.../resources/cache/regional_tiered_cache.py | 38 +-
.../cloudforce_one/requests/message.py | 14 +-
.../cloudforce_one/requests/priority.py | 21 +-
.../cloudforce_one/requests/requests.py | 14 +-
.../resources/custom_nameservers.py | 14 +-
.../resources/dns/firewall/firewall.py | 10 +-
src/cloudflare/resources/dnssec.py | 15 +-
.../intel/attack_surface_report/issues.py | 14 +-
.../resources/intel/miscategorizations.py | 15 +-
.../resources/kv/namespaces/bulk.py | 27 +-
.../resources/kv/namespaces/namespaces.py | 27 +-
.../resources/kv/namespaces/values.py | 32 +-
.../resources/load_balancers/pools/pools.py | 2 +-
src/cloudflare/resources/logpush/jobs.py | 15 +-
.../resources/logs/control/cmb/config.py | 15 +-
src/cloudflare/resources/logs/rayid.py | 19 +-
.../resources/logs/received/received.py | 15 +-
.../projects/deployments/history/logs.py | 16 +-
.../resources/pages/projects/domains.py | 46 +-
.../resources/pages/projects/projects.py | 29 +-
src/cloudflare/resources/queues/consumers.py | 14 +-
src/cloudflare/resources/queues/queues.py | 14 +-
src/cloudflare/resources/registrar/domains.py | 27 +-
src/cloudflare/resources/snippets/snippets.py | 15 +-
.../spectrum/analytics/events/bytimes.py | 17 +-
.../spectrum/analytics/events/summaries.py | 17 +-
.../resources/stream/audio_tracks.py | 21 +-
src/cloudflare/resources/stream/downloads.py | 19 +-
src/cloudflare/resources/stream/keys.py | 15 +-
src/cloudflare/resources/stream/watermarks.py | 19 +-
src/cloudflare/resources/stream/webhooks.py | 19 +-
.../resources/user/load_balancers/pools.py | 2 +-
src/cloudflare/resources/warp_connector.py | 107 +++--
.../resources/workers/scripts/tail.py | 21 +-
.../access/applications/applications.py | 142 +++---
.../resources/zero_trust/access/keys.py | 39 +-
.../zero_trust/dlp/profiles/custom.py | 14 +-
.../zero_trust/identity_providers.py | 292 ++++++------
.../zero_trust/networks/virtual_networks.py | 42 +-
.../resources/zero_trust/organizations.py | 26 +-
.../zero_trust/tunnels/configurations.py | 33 +-
.../zero_trust/tunnels/connections.py | 15 +-
.../resources/zero_trust/tunnels/tunnels.py | 33 +-
.../resources/zones/custom_nameservers.py | 27 +-
.../resources/zones/settings/__init__.py | 24 +-
.../zones/settings/origin_max_http_version.py | 38 +-
.../resources/zones/settings/settings.py | 36 +-
src/cloudflare/types/__init__.py | 22 +-
src/cloudflare/types/accounts/__init__.py | 3 +-
src/cloudflare/types/accounts/member.py | 19 +-
src/cloudflare/types/accounts/member_role.py | 21 -
.../types/accounts/member_role_param.py | 12 -
.../types/accounts/member_update_params.py | 11 +-
.../types/accounts/member_with_invite_code.py | 19 +-
src/cloudflare/types/accounts/roles.py | 7 +
src/cloudflare/types/addressing/__init__.py | 2 +
.../addressing/address_map_delete_response.py | 7 +
.../types/addressing/address_maps/__init__.py | 6 +
.../address_maps/account_delete_response.py | 7 +
.../address_maps/account_update_response.py | 7 +
.../address_maps/ip_delete_response.py | 7 +
.../address_maps/ip_update_response.py | 7 +
.../address_maps/zone_delete_response.py | 7 +
.../address_maps/zone_update_response.py | 7 +
.../addressing/prefix_delete_response.py | 7 +
.../types/addressing/prefixes/bgp/__init__.py | 1 +
.../prefixes/bgp/binding_delete_response.py | 7 +
src/cloudflare/types/alerting/__init__.py | 1 +
.../types/alerting/destinations/__init__.py | 2 +
.../destinations/pagerduty_delete_response.py | 7 +
.../destinations/webhook_delete_response.py | 7 +
.../types/alerting/policy_delete_response.py | 7 +
.../types/bot_management_get_response.py | 4 +-
.../types/bot_management_update_params.py | 6 +-
.../types/bot_management_update_response.py | 4 +-
src/cloudflare/types/cache/__init__.py | 4 +-
.../types/cache/regional_tiered_cache.py | 7 +
.../regional_tiered_cache_edit_response.py | 6 +-
.../regional_tiered_cache_get_response.py | 6 +-
...ma_ref_6535d2df7d4d089d21166bd140651307.py | 7 -
.../types/cloudforce_one/__init__.py | 1 +
.../cloudforce_one/request_delete_response.py | 7 +
.../types/cloudforce_one/requests/__init__.py | 2 +
.../requests/message_delete_response.py | 7 +
.../requests/priority_delete_response.py | 7 +
.../custom_nameserver_delete_response.py | 7 +
src/cloudflare/types/dns/__init__.py | 4 +-
src/cloudflare/types/dns/firewall/firewall.py | 4 +-
.../types/dns/firewall_create_params.py | 4 +-
.../types/dns/firewall_edit_params.py | 4 +-
...{upstream_ips_items.py => upstream_ips.py} | 4 +-
...s_items_param.py => upstream_ips_param.py} | 4 +-
.../types/dnssec_delete_response.py | 7 +
src/cloudflare/types/firewall/waf/__init__.py | 2 +-
src/cloudflare/types/firewall/waf/override.py | 4 +-
.../firewall/waf/package_get_response.py | 4 +-
.../firewall/waf/package_list_response.py | 4 +-
.../firewall/waf/{urls_items.py => urls.py} | 4 +-
src/cloudflare/types/health_check.py | 4 +-
src/cloudflare/types/health_check_param.py | 4 +-
src/cloudflare/types/health_check_type.py | 7 +
src/cloudflare/types/intel/__init__.py | 1 +
.../intel/attack_surface_report/__init__.py | 1 +
.../issue_dismiss_response.py | 7 +
.../miscategorization_create_response.py | 7 +
src/cloudflare/types/kv/__init__.py | 2 +
.../types/kv/namespace_delete_response.py | 7 +
.../types/kv/namespace_update_response.py | 7 +
.../types/kv/namespaces/__init__.py | 4 +
.../kv/namespaces/bulk_delete_response.py | 7 +
.../kv/namespaces/bulk_update_response.py | 7 +
.../kv/namespaces/value_delete_response.py | 7 +
.../kv/namespaces/value_update_response.py | 7 +
.../types/load_balancers/__init__.py | 1 +
.../monitors/reference_get_response.py | 4 +-
.../types/{user => }/load_balancers/pool.py | 12 +-
.../pools/reference_get_response.py | 4 +-
src/cloudflare/types/logpush/__init__.py | 1 +
.../types/logpush/job_delete_response.py | 7 +
src/cloudflare/types/logs/__init__.py | 2 +
.../types/logs/control/cmb/__init__.py | 1 +
.../control/cmb/config_delete_response.py | 7 +
.../types/logs/rayid_get_response.py | 7 +
.../types/logs/received_get_response.py | 7 +
.../cf_interconnect_list_response.py | 4 +-
.../cf_interconnect_update_params.py | 4 +-
.../ipsec_tunnel_create_response.py | 4 +-
.../ipsec_tunnel_list_response.py | 4 +-
src/cloudflare/types/membership.py | 5 +-
src/cloudflare/types/pages/__init__.py | 2 +
.../types/pages/project_create_response.py | 7 +
.../types/pages/project_edit_response.py | 7 +
.../types/pages/projects/__init__.py | 3 +
.../projects/deployments/history/__init__.py | 2 +
.../deployments/history/log_get_response.py | 7 +
.../pages/projects/domain_create_response.py | 7 +
.../pages/projects/domain_edit_response.py | 7 +
.../pages/projects/domain_get_response.py | 7 +
src/cloudflare/types/queue_delete_response.py | 7 +
src/cloudflare/types/queues/__init__.py | 1 +
.../types/queues/consumer_delete_response.py | 7 +
src/cloudflare/types/r2/__init__.py | 4 +-
src/cloudflare/types/r2/provider.py | 7 +
src/cloudflare/types/r2/sippy.py | 4 +-
.../types/r2/sippy_update_params.py | 6 +-
...ma_ref_6430970563db310f19d39aafe3debd27.py | 7 -
src/cloudflare/types/registrar/__init__.py | 2 +
.../types/registrar/domain_get_response.py | 7 +
.../types/registrar/domain_update_response.py | 7 +
.../types/secondary_dns/__init__.py | 4 +-
...3d85505dc69d4adc.py => outgoing_status.py} | 4 +-
src/cloudflare/types/shared/__init__.py | 25 +-
.../types/shared/pagination_info.py | 21 +
src/cloudflare/types/shared/result.py | 3 +-
...ma_ref_602dd5f63eab958d53da61434dec08f0.py | 7 -
...ma_ref_65e3c8c1a9c4638ec25cdbbaca7165c1.py | 7 -
...ma_ref_67bbb1ccdd42c3e2937b9fd19f791151.py | 7 -
...ma_ref_8d6a37a1e4190f86652802244d29525f.py | 7 -
...ma_ref_b0ec5cc02c98b665099a5707a2db4ea6.py | 2 +-
...ma_ref_b92f86eb861cd3dee83c40884802fda6.py | 107 -----
...ma_ref_d8600eb4758b3ae35607a0327bcd691b.py | 7 -
...ma_ref_ec4d85c3d1bcc6b3b7e99c199ae99846.py | 7 -
.../types/snippet_delete_response.py | 7 +
.../spectrum/analytics/events/__init__.py | 2 +
.../analytics/events/bytime_get_response.py | 7 +
.../analytics/events/summary_get_response.py | 7 +
src/cloudflare/types/stream/__init__.py | 5 +
.../stream/audio_track_delete_response.py | 7 +
.../types/stream/download_delete_response.py | 7 +
.../types/stream/key_delete_response.py | 7 +
.../types/stream/watermark_delete_response.py | 7 +
.../types/stream/webhook_delete_response.py | 7 +
...er_bot_fight_mode_likely_configuration.py} | 4 +-
...ma_ref_3b1a76a5e4a139b72ed7d93834773d39.py | 7 -
.../types/user/load_balancers/__init__.py | 1 -
.../monitor_references_response.py | 4 +-
.../pool_references_response.py | 4 +-
...f63444799121fe2f8.py => warp_connector.py} | 8 +-
.../types/workers/scripts/__init__.py | 1 +
.../workers/scripts/tail_delete_response.py | 7 +
src/cloudflare/types/zero_trust/__init__.py | 20 +-
.../types/zero_trust/access/__init__.py | 19 +-
...lowed_idps_item.py => allowed_headersh.py} | 4 +-
...{custom_pages_item.py => allowed_idpsh.py} | 4 +-
.../zero_trust/access/allowed_methods_item.py | 7 -
.../zero_trust/access/allowed_methodsh.py | 7 +
...ed_origins_item.py => allowed_originsh.py} | 4 +-
.../types/zero_trust/access/application.py | 42 +-
.../access/application_create_params.py | 42 +-
.../access/application_update_params.py | 42 +-
.../types/zero_trust/access/cors_headers.py | 12 +-
.../zero_trust/access/cors_headers_param.py | 12 +-
.../types/zero_trust/access/custom_pagesh.py | 6 +
.../zero_trust/access/key_get_response.py | 7 +
.../zero_trust/access/key_rotate_response.py | 7 +
.../zero_trust/access/key_update_response.py | 7 +
.../types/zero_trust/access/saml_saas_app.py | 4 +-
.../zero_trust/access/saml_saas_app_param.py | 4 +-
.../access/self_hosted_domains_item.py | 6 -
...eaders_item.py => self_hosted_domainsh.py} | 4 +-
.../types/zero_trust/access_rule.py | 4 +-
.../types/zero_trust/access_rule_param.py | 4 +-
src/cloudflare/types/zero_trust/azure_ad.py | 12 +-
.../types/zero_trust/azure_group_rule.py | 6 +-
.../zero_trust/azure_group_rule_param.py | 6 +-
.../types/zero_trust/dlp/__init__.py | 8 +-
.../types/zero_trust/dlp/custom_profile.py | 7 +
.../zero_trust/dlp/predefined_profile.py | 7 +
.../types/zero_trust/dlp/profiles/__init__.py | 1 +
.../dlp/profiles/custom_delete_response.py | 7 +
.../zero_trust/dlp/profiles/custom_profile.py | 4 +-
.../dlp/profiles/predefined_profile.py | 4 +-
...ma_ref_c105db122868c71badeac3b4822ad6b1.py | 7 -
...ma_ref_e38bfdf1acf5a4bfada6779c79528bc0.py | 7 -
.../types/zero_trust/identity_provider.py | 90 ++--
.../identity_provider_create_params.py | 104 +++--
.../identity_provider_list_response.py | 86 ++--
...48bcdabcb.py => identity_provider_type.py} | 4 +-
.../identity_provider_update_params.py | 104 +++--
.../types/zero_trust/networks/__init__.py | 3 +
.../virtual_network_create_response.py | 7 +
.../virtual_network_delete_response.py | 7 +
.../networks/virtual_network_edit_response.py | 7 +
.../{organizations.py => organization.py} | 4 +-
.../types/zero_trust/saml_group_rule.py | 8 +-
.../types/zero_trust/saml_group_rule_param.py | 8 +-
...283da7b160ed3f86cae1.py => scim_config.py} | 4 +-
...3f86cae1_param.py => scim_config_param.py} | 4 +-
.../types/zero_trust/tunnels/__init__.py | 3 +
.../tunnels/configuration_get_response.py | 7 +
.../tunnels/configuration_update_response.py | 7 +
.../tunnels/connection_delete_response.py | 7 +
src/cloudflare/types/zones/__init__.py | 2 +
.../zones/custom_nameserver_get_response.py | 7 +
.../custom_nameserver_update_response.py | 7 +
.../types/zones/settings/__init__.py | 4 +-
.../zones/settings/origin_max_http_version.py | 7 +
.../origin_max_http_version_edit_response.py | 4 +-
.../origin_max_http_version_get_response.py | 4 +-
...ma_ref_b234e6a28c1a1c7c29213787c0621eaa.py | 7 -
.../addressing/address_maps/test_accounts.py | 29 +-
.../addressing/address_maps/test_ips.py | 29 +-
.../addressing/address_maps/test_zones.py | 29 +-
.../addressing/prefixes/bgp/test_bindings.py | 15 +-
.../addressing/test_address_maps.py | 18 +-
.../api_resources/addressing/test_prefixes.py | 18 +-
.../alerting/destinations/test_pagerduty.py | 24 +-
.../alerting/destinations/test_webhooks.py | 14 +-
tests/api_resources/alerting/test_policies.py | 14 +-
.../cloudforce_one/requests/test_message.py | 14 +-
.../cloudforce_one/requests/test_priority.py | 18 +-
.../cloudforce_one/test_requests.py | 14 +-
.../attack_surface_report/test_issues.py | 18 +-
.../intel/test_miscategorizations.py | 18 +-
.../api_resources/kv/namespaces/test_bulk.py | 29 +-
.../kv/namespaces/test_values.py | 29 +-
tests/api_resources/kv/test_namespaces.py | 27 +-
.../load_balancers/test_pools.py | 2 +-
tests/api_resources/logpush/test_jobs.py | 18 +-
.../logs/control/cmb/test_config.py | 18 +-
tests/api_resources/logs/test_rayid.py | 18 +-
tests/api_resources/logs/test_received.py | 18 +-
.../projects/deployments/history/test_logs.py | 16 +-
.../pages/projects/test_domains.py | 42 +-
tests/api_resources/pages/test_projects.py | 33 +-
tests/api_resources/queues/test_consumers.py | 14 +-
tests/api_resources/registrar/test_domains.py | 31 +-
.../spectrum/analytics/events/test_bytimes.py | 20 +-
.../analytics/events/test_summaries.py | 20 +-
.../api_resources/stream/test_audio_tracks.py | 19 +-
tests/api_resources/stream/test_downloads.py | 18 +-
tests/api_resources/stream/test_keys.py | 15 +-
tests/api_resources/stream/test_watermarks.py | 19 +-
tests/api_resources/stream/test_webhooks.py | 18 +-
.../api_resources/test_custom_nameservers.py | 26 +-
tests/api_resources/test_dnssec.py | 15 +-
tests/api_resources/test_queues.py | 14 +-
tests/api_resources/test_snippets.py | 15 +-
tests/api_resources/test_warp_connector.py | 102 ++---
.../user/load_balancers/test_pools.py | 2 +-
.../workers/scripts/test_tail.py | 19 +-
.../zero_trust/access/test_keys.py | 38 +-
.../zero_trust/dlp/profiles/test_custom.py | 14 +-
.../networks/test_virtual_networks.py | 94 ++--
.../zero_trust/test_organizations.py | 50 +--
.../api_resources/zero_trust/test_tunnels.py | 50 +--
.../zero_trust/tunnels/test_configurations.py | 63 +--
.../zero_trust/tunnels/test_connections.py | 22 +-
.../zones/test_custom_nameservers.py | 61 +--
304 files changed, 2776 insertions(+), 2462 deletions(-)
delete mode 100644 src/cloudflare/types/accounts/member_role.py
delete mode 100644 src/cloudflare/types/accounts/member_role_param.py
create mode 100644 src/cloudflare/types/accounts/roles.py
create mode 100644 src/cloudflare/types/addressing/address_map_delete_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/account_delete_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/account_update_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/ip_delete_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/ip_update_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/zone_delete_response.py
create mode 100644 src/cloudflare/types/addressing/address_maps/zone_update_response.py
create mode 100644 src/cloudflare/types/addressing/prefix_delete_response.py
create mode 100644 src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py
create mode 100644 src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py
create mode 100644 src/cloudflare/types/alerting/destinations/webhook_delete_response.py
create mode 100644 src/cloudflare/types/alerting/policy_delete_response.py
create mode 100644 src/cloudflare/types/cache/regional_tiered_cache.py
delete mode 100644 src/cloudflare/types/cache/unnamed_schema_ref_6535d2df7d4d089d21166bd140651307.py
create mode 100644 src/cloudflare/types/cloudforce_one/request_delete_response.py
create mode 100644 src/cloudflare/types/cloudforce_one/requests/message_delete_response.py
create mode 100644 src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py
create mode 100644 src/cloudflare/types/custom_nameserver_delete_response.py
rename src/cloudflare/types/dns/{upstream_ips_items.py => upstream_ips.py} (63%)
rename src/cloudflare/types/dns/{upstream_ips_items_param.py => upstream_ips_param.py} (66%)
create mode 100644 src/cloudflare/types/dnssec_delete_response.py
rename src/cloudflare/types/firewall/waf/{urls_items.py => urls.py} (68%)
create mode 100644 src/cloudflare/types/health_check_type.py
create mode 100644 src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py
create mode 100644 src/cloudflare/types/intel/miscategorization_create_response.py
create mode 100644 src/cloudflare/types/kv/namespace_delete_response.py
create mode 100644 src/cloudflare/types/kv/namespace_update_response.py
create mode 100644 src/cloudflare/types/kv/namespaces/bulk_delete_response.py
create mode 100644 src/cloudflare/types/kv/namespaces/bulk_update_response.py
create mode 100644 src/cloudflare/types/kv/namespaces/value_delete_response.py
create mode 100644 src/cloudflare/types/kv/namespaces/value_update_response.py
rename src/cloudflare/types/{user => }/load_balancers/pool.py (92%)
create mode 100644 src/cloudflare/types/logpush/job_delete_response.py
create mode 100644 src/cloudflare/types/logs/control/cmb/config_delete_response.py
create mode 100644 src/cloudflare/types/logs/rayid_get_response.py
create mode 100644 src/cloudflare/types/logs/received_get_response.py
create mode 100644 src/cloudflare/types/pages/project_create_response.py
create mode 100644 src/cloudflare/types/pages/project_edit_response.py
create mode 100644 src/cloudflare/types/pages/projects/deployments/history/log_get_response.py
create mode 100644 src/cloudflare/types/pages/projects/domain_create_response.py
create mode 100644 src/cloudflare/types/pages/projects/domain_edit_response.py
create mode 100644 src/cloudflare/types/pages/projects/domain_get_response.py
create mode 100644 src/cloudflare/types/queue_delete_response.py
create mode 100644 src/cloudflare/types/queues/consumer_delete_response.py
create mode 100644 src/cloudflare/types/r2/provider.py
delete mode 100644 src/cloudflare/types/r2/unnamed_schema_ref_6430970563db310f19d39aafe3debd27.py
create mode 100644 src/cloudflare/types/registrar/domain_get_response.py
create mode 100644 src/cloudflare/types/registrar/domain_update_response.py
rename src/cloudflare/types/secondary_dns/{unnamed_schema_ref_bf34e74a34c9a2f63d85505dc69d4adc.py => outgoing_status.py} (54%)
create mode 100644 src/cloudflare/types/shared/pagination_info.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_602dd5f63eab958d53da61434dec08f0.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_65e3c8c1a9c4638ec25cdbbaca7165c1.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_67bbb1ccdd42c3e2937b9fd19f791151.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_8d6a37a1e4190f86652802244d29525f.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_b92f86eb861cd3dee83c40884802fda6.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_d8600eb4758b3ae35607a0327bcd691b.py
delete mode 100644 src/cloudflare/types/shared/unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846.py
create mode 100644 src/cloudflare/types/snippet_delete_response.py
create mode 100644 src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py
create mode 100644 src/cloudflare/types/spectrum/analytics/events/summary_get_response.py
create mode 100644 src/cloudflare/types/stream/audio_track_delete_response.py
create mode 100644 src/cloudflare/types/stream/download_delete_response.py
create mode 100644 src/cloudflare/types/stream/key_delete_response.py
create mode 100644 src/cloudflare/types/stream/watermark_delete_response.py
create mode 100644 src/cloudflare/types/stream/webhook_delete_response.py
rename src/cloudflare/types/{super_bot_fight_mode_likely_config.py => super_bot_fight_mode_likely_configuration.py} (93%)
delete mode 100644 src/cloudflare/types/unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39.py
rename src/cloudflare/types/{shared/unnamed_schema_ref_413ab4522f0bb93f63444799121fe2f8.py => warp_connector.py} (91%)
create mode 100644 src/cloudflare/types/workers/scripts/tail_delete_response.py
rename src/cloudflare/types/zero_trust/access/{allowed_idps_item.py => allowed_headersh.py} (63%)
rename src/cloudflare/types/zero_trust/access/{custom_pages_item.py => allowed_idpsh.py} (63%)
delete mode 100644 src/cloudflare/types/zero_trust/access/allowed_methods_item.py
create mode 100644 src/cloudflare/types/zero_trust/access/allowed_methodsh.py
rename src/cloudflare/types/zero_trust/access/{allowed_origins_item.py => allowed_originsh.py} (60%)
create mode 100644 src/cloudflare/types/zero_trust/access/custom_pagesh.py
create mode 100644 src/cloudflare/types/zero_trust/access/key_get_response.py
create mode 100644 src/cloudflare/types/zero_trust/access/key_rotate_response.py
create mode 100644 src/cloudflare/types/zero_trust/access/key_update_response.py
delete mode 100644 src/cloudflare/types/zero_trust/access/self_hosted_domains_item.py
rename src/cloudflare/types/zero_trust/access/{allowed_headers_item.py => self_hosted_domainsh.py} (60%)
create mode 100644 src/cloudflare/types/zero_trust/dlp/custom_profile.py
create mode 100644 src/cloudflare/types/zero_trust/dlp/predefined_profile.py
create mode 100644 src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py
delete mode 100644 src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1.py
delete mode 100644 src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0.py
rename src/cloudflare/types/zero_trust/{unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb.py => identity_provider_type.py} (73%)
create mode 100644 src/cloudflare/types/zero_trust/networks/virtual_network_create_response.py
create mode 100644 src/cloudflare/types/zero_trust/networks/virtual_network_delete_response.py
create mode 100644 src/cloudflare/types/zero_trust/networks/virtual_network_edit_response.py
rename src/cloudflare/types/zero_trust/{organizations.py => organization.py} (97%)
rename src/cloudflare/types/zero_trust/{unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1.py => scim_config.py} (90%)
rename src/cloudflare/types/zero_trust/{unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param.py => scim_config_param.py} (88%)
create mode 100644 src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py
create mode 100644 src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py
create mode 100644 src/cloudflare/types/zero_trust/tunnels/connection_delete_response.py
create mode 100644 src/cloudflare/types/zones/custom_nameserver_get_response.py
create mode 100644 src/cloudflare/types/zones/custom_nameserver_update_response.py
create mode 100644 src/cloudflare/types/zones/settings/origin_max_http_version.py
delete mode 100644 src/cloudflare/types/zones/settings/unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa.py
diff --git a/api.md b/api.md
index e004f49a646..6772737c72e 100644
--- a/api.md
+++ b/api.md
@@ -4,26 +4,19 @@
from cloudflare.types import (
ErrorData,
Identifier,
+ PaginationInfo,
ResponseInfo,
Result,
UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9,
UnnamedSchemaRef23001f1f0b697900e282236466a95fa3,
UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
UnnamedSchemaRef619309774d07ec6904f1e354560d6028,
- UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1,
- UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151,
UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6,
UnnamedSchemaRefB52ad7cf99890d19f16edcd84d16ef5b,
- UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6,
UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854,
- UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b,
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
)
```
@@ -49,8 +42,8 @@ Types:
```python
from cloudflare.types.accounts import (
Member,
- MemberRole,
MemberWithInviteCode,
+ Roles,
MemberListResponse,
MemberDeleteResponse,
)
@@ -221,7 +214,6 @@ Types:
```python
from cloudflare.types.user.load_balancers import (
- Pool,
PoolDeleteResponse,
PoolHealthResponse,
PoolPreviewResponse,
@@ -231,12 +223,12 @@ from cloudflare.types.user.load_balancers import (
Methods:
-- client.user.load_balancers.pools.create(\*\*params) -> Pool
-- client.user.load_balancers.pools.update(pool_id, \*\*params) -> Pool
-- client.user.load_balancers.pools.list(\*\*params) -> SyncSinglePage[Pool]
+- client.user.load_balancers.pools.create(\*\*params) -> Pool
+- client.user.load_balancers.pools.update(pool_id, \*\*params) -> Pool
+- client.user.load_balancers.pools.list(\*\*params) -> SyncSinglePage[Pool]
- client.user.load_balancers.pools.delete(pool_id, \*\*params) -> PoolDeleteResponse
-- client.user.load_balancers.pools.edit(pool_id, \*\*params) -> Pool
-- client.user.load_balancers.pools.get(pool_id) -> Pool
+- client.user.load_balancers.pools.edit(pool_id, \*\*params) -> Pool
+- client.user.load_balancers.pools.get(pool_id) -> Pool
- client.user.load_balancers.pools.health(pool_id) -> PoolHealthResponse
- client.user.load_balancers.pools.preview(pool_id, \*\*params) -> PoolPreviewResponse
- client.user.load_balancers.pools.references(pool_id) -> Optional
@@ -789,13 +781,13 @@ Methods:
- client.zones.settings.origin_error_page_pass_thru.edit(\*, zone_id, \*\*params) -> Optional
- client.zones.settings.origin_error_page_pass_thru.get(\*, zone_id) -> Optional
-### OriginMaxHTTPVersion
+### OriginMaxHTTPVersionResource
Types:
```python
from cloudflare.types.zones.settings import (
- UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa,
+ OriginMaxHTTPVersion,
OriginMaxHTTPVersionEditResponse,
OriginMaxHTTPVersionGetResponse,
)
@@ -1055,10 +1047,16 @@ Methods:
## CustomNameservers
+Types:
+
+```python
+from cloudflare.types.zones import CustomNameserverUpdateResponse, CustomNameserverGetResponse
+```
+
Methods:
-- client.zones.custom_nameservers.update(\*, zone_id, \*\*params) -> Optional
-- client.zones.custom_nameservers.get(\*, zone_id) -> Optional
+- client.zones.custom_nameservers.update(\*, zone_id, \*\*params) -> Optional
+- client.zones.custom_nameservers.get(\*, zone_id) -> Optional
## Holds
@@ -1163,17 +1161,17 @@ Methods:
Types:
```python
-from cloudflare.types.load_balancers import PoolDeleteResponse
+from cloudflare.types.load_balancers import Pool, PoolDeleteResponse
```
Methods:
-- client.load_balancers.pools.create(\*, account_id, \*\*params) -> Pool
-- client.load_balancers.pools.update(pool_id, \*, account_id, \*\*params) -> Pool
-- client.load_balancers.pools.list(\*, account_id, \*\*params) -> SyncSinglePage[Pool]
+- client.load_balancers.pools.create(\*, account_id, \*\*params) -> Pool
+- client.load_balancers.pools.update(pool_id, \*, account_id, \*\*params) -> Pool
+- client.load_balancers.pools.list(\*, account_id, \*\*params) -> SyncSinglePage[Pool]
- client.load_balancers.pools.delete(pool_id, \*, account_id, \*\*params) -> PoolDeleteResponse
-- client.load_balancers.pools.edit(pool_id, \*, account_id, \*\*params) -> Pool
-- client.load_balancers.pools.get(pool_id, \*, account_id) -> Pool
+- client.load_balancers.pools.edit(pool_id, \*, account_id, \*\*params) -> Pool
+- client.load_balancers.pools.get(pool_id, \*, account_id) -> Pool
### Health
@@ -1292,13 +1290,13 @@ Methods:
- client.cache.variants.edit(\*, zone_id, \*\*params) -> VariantEditResponse
- client.cache.variants.get(\*, zone_id) -> VariantGetResponse
-## RegionalTieredCache
+## RegionalTieredCacheResource
Types:
```python
from cloudflare.types.cache import (
- UnnamedSchemaRef6535d2df7d4d089d21166bd140651307,
+ RegionalTieredCache,
RegionalTieredCacheEditResponse,
RegionalTieredCacheGetResponse,
)
@@ -1576,6 +1574,7 @@ Types:
```python
from cloudflare.types import (
CustomNameserver,
+ CustomNameserverDeleteResponse,
CustomNameserverAvailabiltyResponse,
CustomNameserverGetResponse,
CustomNameserverVerifyResponse,
@@ -1585,7 +1584,7 @@ from cloudflare.types import (
Methods:
- client.custom_nameservers.create(\*, account_id, \*\*params) -> CustomNameserver
-- client.custom_nameservers.delete(custom_ns_id, \*, account_id, \*\*params) -> 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, \*\*params) -> Optional
@@ -1689,7 +1688,7 @@ from cloudflare.types.dns import (
Firewall,
FirewallIPsItem,
UnnamedSchemaRef7a0f93d9e1afc3221d2a57b7bab16955,
- UpstreamIPsItems,
+ UpstreamIPs,
FirewallDeleteResponse,
)
```
@@ -1721,12 +1720,12 @@ Methods:
Types:
```python
-from cloudflare.types import DNSSEC
+from cloudflare.types import DNSSEC, DNSSECDeleteResponse
```
Methods:
-- client.dnssec.delete(\*, zone_id, \*\*params) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.dnssec.delete(\*, zone_id, \*\*params) -> DNSSECDeleteResponse
- client.dnssec.edit(\*, zone_id, \*\*params) -> DNSSEC
- client.dnssec.get(\*, zone_id) -> DNSSEC
@@ -1920,7 +1919,7 @@ from cloudflare.types.firewall.waf import (
Override,
RewriteAction,
Rules,
- URLsItems,
+ URLs,
OverrideDeleteResponse,
)
```
@@ -2086,7 +2085,10 @@ Methods:
Types:
```python
-from cloudflare.types.logpush import UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5
+from cloudflare.types.logpush import (
+ UnnamedSchemaRef2f2e9d7fbcc0e6856257a03a1dbbdfb5,
+ JobDeleteResponse,
+)
```
Methods:
@@ -2094,7 +2096,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, \*\*params) -> 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
@@ -2149,26 +2151,38 @@ Methods:
Types:
```python
-from cloudflare.types.logs.control.cmb import CmbConfig
+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, \*\*params) -> Optional
+- client.logs.control.cmb.config.delete(\*, account_id, \*\*params) -> Optional
- client.logs.control.cmb.config.get(\*, account_id) -> Optional
## RayID
+Types:
+
+```python
+from cloudflare.types.logs import RayIDGetResponse
+```
+
Methods:
-- client.logs.rayid.get(ray_identifier, \*, zone_identifier, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.logs.rayid.get(ray_identifier, \*, zone_identifier, \*\*params) -> RayIDGetResponse
## Received
+Types:
+
+```python
+from cloudflare.types.logs import ReceivedGetResponse
+```
+
Methods:
-- client.logs.received.get(zone_identifier, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.logs.received.get(zone_identifier, \*\*params) -> ReceivedGetResponse
### Fields
@@ -2340,8 +2354,8 @@ Types:
from cloudflare.types.secondary_dns import (
DisableTransfer,
EnableTransfer,
+ OutgoingStatus,
UnnamedSchemaRef0e152c3e4c55b8a0ca6531578a42c564,
- UnnamedSchemaRefBf34e74a34c9a2f63d85505dc69d4adc,
OutgoingCreateResponse,
OutgoingUpdateResponse,
OutgoingDeleteResponse,
@@ -2681,6 +2695,7 @@ from cloudflare.types.workers.scripts import (
ConsumerScript,
ConsumerScriptItem,
TailCreateResponse,
+ TailDeleteResponse,
TailGetResponse,
)
```
@@ -2688,7 +2703,7 @@ from cloudflare.types.workers.scripts import (
Methods:
- client.workers.scripts.tail.create(script_name, \*, account_id, \*\*params) -> TailCreateResponse
-- client.workers.scripts.tail.delete(id, \*, account_id, script_name, \*\*params) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.workers.scripts.tail.delete(id, \*, account_id, script_name, \*\*params) -> TailDeleteResponse
- client.workers.scripts.tail.get(script_name, \*, account_id) -> TailGetResponse
### Content
@@ -2788,22 +2803,28 @@ Methods:
Types:
```python
-from cloudflare.types.kv import Namespace
+from cloudflare.types.kv import Namespace, NamespaceUpdateResponse, NamespaceDeleteResponse
```
Methods:
- client.kv.namespaces.create(\*, account_id, \*\*params) -> Namespace
-- client.kv.namespaces.update(namespace_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.kv.namespaces.update(namespace_id, \*, account_id, \*\*params) -> NamespaceUpdateResponse
- client.kv.namespaces.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[Namespace]
-- client.kv.namespaces.delete(namespace_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.kv.namespaces.delete(namespace_id, \*, account_id, \*\*params) -> NamespaceDeleteResponse
### Bulk
+Types:
+
+```python
+from cloudflare.types.kv.namespaces import BulkUpdateResponse, BulkDeleteResponse
+```
+
Methods:
-- client.kv.namespaces.bulk.update(namespace_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-- client.kv.namespaces.bulk.delete(namespace_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.kv.namespaces.bulk.update(namespace_id, \*, account_id, \*\*params) -> BulkUpdateResponse
+- client.kv.namespaces.bulk.delete(namespace_id, \*, account_id, \*\*params) -> BulkDeleteResponse
### Keys
@@ -2834,13 +2855,17 @@ Methods:
Types:
```python
-from cloudflare.types.kv.namespaces import ValueGetResponse
+from cloudflare.types.kv.namespaces import (
+ ValueUpdateResponse,
+ ValueDeleteResponse,
+ ValueGetResponse,
+)
```
Methods:
-- client.kv.namespaces.values.update(key_name, \*, account_id, namespace_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-- client.kv.namespaces.values.delete(key_name, \*, account_id, namespace_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.kv.namespaces.values.update(key_name, \*, account_id, namespace_id, \*\*params) -> ValueUpdateResponse
+- 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
@@ -2881,6 +2906,7 @@ from cloudflare.types import (
QueueCreateResponse,
QueueUpdateResponse,
QueueListResponse,
+ QueueDeleteResponse,
QueueGetResponse,
)
```
@@ -2890,7 +2916,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, \*\*params) -> Optional
+- client.queues.delete(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.get(queue_id, \*, account_id) -> Optional
## Consumers
@@ -2903,6 +2929,7 @@ from cloudflare.types.queues import (
UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5,
ConsumerCreateResponse,
ConsumerUpdateResponse,
+ ConsumerDeleteResponse,
ConsumerGetResponse,
)
```
@@ -2911,7 +2938,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, \*\*params) -> Optional
+- client.queues.consumers.delete(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
- client.queues.consumers.get(queue_id, \*, account_id) -> Optional
## Messages
@@ -3134,15 +3161,27 @@ from cloudflare.types.spectrum.analytics import DimensionItem
#### Bytimes
+Types:
+
+```python
+from cloudflare.types.spectrum.analytics.events import BytimeGetResponse
+```
+
Methods:
-- client.spectrum.analytics.events.bytimes.get(zone, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.spectrum.analytics.events.bytimes.get(zone, \*\*params) -> Optional
#### Summaries
+Types:
+
+```python
+from cloudflare.types.spectrum.analytics.events import SummaryGetResponse
+```
+
Methods:
-- client.spectrum.analytics.events.summaries.get(zone, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.spectrum.analytics.events.summaries.get(zone, \*\*params) -> Optional
## Apps
@@ -3184,37 +3223,60 @@ Methods:
Types:
```python
-from cloudflare.types.addressing import AddressMap, AddressMapCreateResponse, AddressMapGetResponse
+from cloudflare.types.addressing import (
+ AddressMap,
+ AddressMapCreateResponse,
+ AddressMapDeleteResponse,
+ AddressMapGetResponse,
+)
```
Methods:
- client.addressing.address_maps.create(\*, account_id, \*\*params) -> AddressMapCreateResponse
- client.addressing.address_maps.list(\*, account_id) -> SyncSinglePage[AddressMap]
-- client.addressing.address_maps.delete(address_map_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.delete(address_map_id, \*, account_id, \*\*params) -> Optional
- client.addressing.address_maps.edit(address_map_id, \*, account_id, \*\*params) -> AddressMap
- client.addressing.address_maps.get(address_map_id, \*, account_id) -> AddressMapGetResponse
### Accounts
+Types:
+
+```python
+from cloudflare.types.addressing.address_maps import AccountUpdateResponse, AccountDeleteResponse
+```
+
Methods:
-- 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
+- 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
+Types:
+
+```python
+from cloudflare.types.addressing.address_maps import IPUpdateResponse, IPDeleteResponse
+```
+
Methods:
-- 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
+- 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
+Types:
+
+```python
+from cloudflare.types.addressing.address_maps import ZoneUpdateResponse, ZoneDeleteResponse
+```
+
Methods:
-- 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
+- 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
@@ -3245,14 +3307,18 @@ Methods:
Types:
```python
-from cloudflare.types.addressing import Prefix, UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46
+from cloudflare.types.addressing import (
+ Prefix,
+ UnnamedSchemaRefE358666e049bf8f9281c0a4f89b5fe46,
+ PrefixDeleteResponse,
+)
```
Methods:
- client.addressing.prefixes.create(\*, account_id, \*\*params) -> Prefix
- client.addressing.prefixes.list(\*, account_id) -> SyncSinglePage[Prefix]
-- client.addressing.prefixes.delete(prefix_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.prefixes.delete(prefix_id, \*, account_id, \*\*params) -> Optional
- client.addressing.prefixes.edit(prefix_id, \*, account_id, \*\*params) -> Prefix
- client.addressing.prefixes.get(prefix_id, \*, account_id) -> Prefix
@@ -3263,14 +3329,14 @@ Methods:
Types:
```python
-from cloudflare.types.addressing.prefixes.bgp import ServiceBinding
+from cloudflare.types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse
```
Methods:
- client.addressing.prefixes.bgp.bindings.create(prefix_id, \*, account_id, \*\*params) -> ServiceBinding
- client.addressing.prefixes.bgp.bindings.list(prefix_id, \*, account_id) -> SyncSinglePage[ServiceBinding]
-- client.addressing.prefixes.bgp.bindings.delete(binding_id, \*, account_id, prefix_id) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.addressing.prefixes.bgp.bindings.delete(binding_id, \*, account_id, prefix_id) -> BindingDeleteResponse
- client.addressing.prefixes.bgp.bindings.get(binding_id, \*, account_id, prefix_id) -> ServiceBinding
#### Prefixes
@@ -3571,9 +3637,15 @@ Methods:
## Miscategorizations
+Types:
+
+```python
+from cloudflare.types.intel import MiscategorizationCreateResponse
+```
+
Methods:
-- client.intel.miscategorizations.create(\*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.intel.miscategorizations.create(\*, account_id, \*\*params) -> MiscategorizationCreateResponse
## Whois
@@ -3666,6 +3738,7 @@ from cloudflare.types.intel.attack_surface_report import (
Subject,
IssueListResponse,
IssueClassResponse,
+ IssueDismissResponse,
IssueSeverityResponse,
IssueTypeResponse,
)
@@ -3675,7 +3748,7 @@ Methods:
- client.intel.attack_surface_report.issues.list(\*, account_id, \*\*params) -> SyncV4PagePagination[IssueListResponse]
- client.intel.attack*surface_report.issues.class*(\*, account_id, \*\*params) -> IssueClassResponse
-- client.intel.attack_surface_report.issues.dismiss(issue_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.intel.attack_surface_report.issues.dismiss(issue_id, \*, account_id, \*\*params) -> IssueDismissResponse
- client.intel.attack_surface_report.issues.severity(\*, account_id, \*\*params) -> IssueSeverityResponse
- client.intel.attack_surface_report.issues.type(\*, account_id, \*\*params) -> IssueTypeResponse
@@ -3686,7 +3759,7 @@ Types:
```python
from cloudflare.types import (
HealthCheck,
- UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39,
+ HealthCheckType,
UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5,
)
```
@@ -3982,17 +4055,19 @@ from cloudflare.types.pages import (
Deployment,
Project,
Stage,
+ ProjectCreateResponse,
ProjectDeleteResponse,
+ ProjectEditResponse,
ProjectPurgeBuildCacheResponse,
)
```
Methods:
-- client.pages.projects.create(\*, account_id, \*\*params) -> Optional
+- client.pages.projects.create(\*, account_id, \*\*params) -> ProjectCreateResponse
- client.pages.projects.list(\*, account_id) -> SyncSinglePage[Deployment]
- client.pages.projects.delete(project_name, \*, account_id, \*\*params) -> object
-- client.pages.projects.edit(project_name, \*, account_id, \*\*params) -> Optional
+- client.pages.projects.edit(project_name, \*, account_id, \*\*params) -> ProjectEditResponse
- client.pages.projects.get(project_name, \*, account_id) -> Project
- client.pages.projects.purge_build_cache(project_name, \*, account_id) -> object
@@ -4017,25 +4092,37 @@ Methods:
##### Logs
+Types:
+
+```python
+from cloudflare.types.pages.projects.deployments.history import LogGetResponse
+```
+
Methods:
-- client.pages.projects.deployments.history.logs.get(deployment_id, \*, account_id, project_name) -> Optional
+- client.pages.projects.deployments.history.logs.get(deployment_id, \*, account_id, project_name) -> LogGetResponse
### Domains
Types:
```python
-from cloudflare.types.pages.projects import DomainListResponse, DomainDeleteResponse
+from cloudflare.types.pages.projects import (
+ DomainCreateResponse,
+ DomainListResponse,
+ DomainDeleteResponse,
+ DomainEditResponse,
+ DomainGetResponse,
+)
```
Methods:
-- client.pages.projects.domains.create(project_name, \*, account_id, \*\*params) -> Optional
+- 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, \*\*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
+- 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
@@ -4079,14 +4166,14 @@ Methods:
Types:
```python
-from cloudflare.types.registrar import Domain
+from cloudflare.types.registrar import Domain, DomainUpdateResponse, DomainGetResponse
```
Methods:
-- client.registrar.domains.update(domain_name, \*, account_id, \*\*params) -> Optional
+- client.registrar.domains.update(domain_name, \*, account_id, \*\*params) -> Optional
- client.registrar.domains.list(\*, account_id) -> SyncSinglePage[Domain]
-- client.registrar.domains.get(domain_name, \*, account_id) -> Optional
+- client.registrar.domains.get(domain_name, \*, account_id) -> Optional
# RequestTracers
@@ -4204,12 +4291,12 @@ Methods:
Types:
```python
-from cloudflare.types.stream import Audio, AudioTrackGetResponse
+from cloudflare.types.stream import Audio, AudioTrackDeleteResponse, AudioTrackGetResponse
```
Methods:
-- client.stream.audio_tracks.delete(audio_identifier, \*, account_id, identifier) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.stream.audio_tracks.delete(audio_identifier, \*, account_id, identifier) -> AudioTrackDeleteResponse
- client.stream.audio_tracks.copy(identifier, \*, account_id, \*\*params) -> Audio
- client.stream.audio_tracks.edit(audio_identifier, \*, account_id, identifier, \*\*params) -> Audio
- client.stream.audio_tracks.get(identifier, \*, account_id) -> AudioTrackGetResponse
@@ -4261,13 +4348,13 @@ Methods:
Types:
```python
-from cloudflare.types.stream import Keys, KeyGetResponse
+from cloudflare.types.stream import Keys, KeyDeleteResponse, KeyGetResponse
```
Methods:
- client.stream.keys.create(\*, account_id, \*\*params) -> Keys
-- client.stream.keys.delete(identifier, \*, account_id, \*\*params) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.stream.keys.delete(identifier, \*, account_id, \*\*params) -> KeyDeleteResponse
- client.stream.keys.get(\*, account_id) -> KeyGetResponse
## LiveInputs
@@ -4306,22 +4393,28 @@ Methods:
Types:
```python
-from cloudflare.types.stream import Watermaks
+from cloudflare.types.stream import Watermaks, WatermarkDeleteResponse
```
Methods:
- client.stream.watermarks.create(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
- client.stream.watermarks.list(\*, account_id) -> SyncSinglePage[Watermaks]
-- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> WatermarkDeleteResponse
- client.stream.watermarks.get(identifier, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
## Webhooks
+Types:
+
+```python
+from cloudflare.types.stream import WebhookDeleteResponse
+```
+
Methods:
- client.stream.webhooks.update(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.stream.webhooks.delete(\*, account_id, \*\*params) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.stream.webhooks.delete(\*, account_id, \*\*params) -> WebhookDeleteResponse
- client.stream.webhooks.get(\*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
## Captions
@@ -4340,10 +4433,16 @@ Methods:
## Downloads
+Types:
+
+```python
+from cloudflare.types.stream import DownloadDeleteResponse
+```
+
Methods:
- client.stream.downloads.create(identifier, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.stream.downloads.delete(identifier, \*, account_id) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+- client.stream.downloads.delete(identifier, \*, account_id) -> DownloadDeleteResponse
- client.stream.downloads.get(identifier, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
## Embed
@@ -4412,6 +4511,7 @@ Types:
from cloudflare.types.alerting.destinations import (
Pagerduty,
PagerdutyCreateResponse,
+ PagerdutyDeleteResponse,
PagerdutyGetResponse,
PagerdutyLinkResponse,
)
@@ -4420,7 +4520,7 @@ from cloudflare.types.alerting.destinations import (
Methods:
- client.alerting.destinations.pagerduty.create(\*, account_id) -> PagerdutyCreateResponse
-- client.alerting.destinations.pagerduty.delete(\*, account_id) -> Optional
+- client.alerting.destinations.pagerduty.delete(\*, account_id) -> Optional
- client.alerting.destinations.pagerduty.get(\*, account_id) -> Optional
- client.alerting.destinations.pagerduty.link(token_id, \*, account_id) -> PagerdutyLinkResponse
@@ -4433,6 +4533,7 @@ from cloudflare.types.alerting.destinations import (
Webhooks,
WebhookCreateResponse,
WebhookUpdateResponse,
+ WebhookDeleteResponse,
)
```
@@ -4441,7 +4542,7 @@ Methods:
- client.alerting.destinations.webhooks.create(\*, account_id, \*\*params) -> WebhookCreateResponse
- client.alerting.destinations.webhooks.update(webhook_id, \*, account_id, \*\*params) -> WebhookUpdateResponse
- client.alerting.destinations.webhooks.list(\*, account_id) -> SyncSinglePage[Webhooks]
-- client.alerting.destinations.webhooks.delete(webhook_id, \*, account_id) -> Optional
+- client.alerting.destinations.webhooks.delete(webhook_id, \*, account_id) -> Optional
- client.alerting.destinations.webhooks.get(webhook_id, \*, account_id) -> Webhooks
## HistoryResource
@@ -4467,6 +4568,7 @@ from cloudflare.types.alerting import (
Policy,
PolicyCreateResponse,
PolicyUpdateResponse,
+ PolicyDeleteResponse,
)
```
@@ -4475,7 +4577,7 @@ Methods:
- client.alerting.policies.create(\*, account_id, \*\*params) -> PolicyCreateResponse
- client.alerting.policies.update(policy_id, \*, account_id, \*\*params) -> PolicyUpdateResponse
- client.alerting.policies.list(\*, account_id) -> SyncSinglePage[Policy]
-- client.alerting.policies.delete(policy_id, \*, account_id) -> Optional
+- client.alerting.policies.delete(policy_id, \*, account_id) -> Optional
- client.alerting.policies.get(policy_id, \*, account_id) -> Policy
# D1Resource
@@ -4529,11 +4631,7 @@ Methods:
Types:
```python
-from cloudflare.types.r2 import (
- Sippy,
- UnnamedSchemaRef6430970563db310f19d39aafe3debd27,
- SippyDeleteResponse,
-)
+from cloudflare.types.r2 import Provider, Sippy, SippyDeleteResponse
```
Methods:
@@ -4542,21 +4640,21 @@ Methods:
- client.r2.sippy.delete(bucket_name, \*, account_id) -> SippyDeleteResponse
- client.r2.sippy.get(bucket_name, \*, account_id) -> Sippy
-# WARPConnector
+# WARPConnectorResource
Types:
```python
-from cloudflare.types import WARPConnectorTokenResponse
+from cloudflare.types import WARPConnector, WARPConnectorTokenResponse
```
Methods:
-- client.warp_connector.create(\*, account_id, \*\*params) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
-- client.warp_connector.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
-- client.warp_connector.delete(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
-- client.warp_connector.edit(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
-- client.warp_connector.get(tunnel_id, \*, account_id) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
+- client.warp_connector.create(\*, account_id, \*\*params) -> WARPConnector
+- client.warp_connector.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WARPConnector]
+- client.warp_connector.delete(tunnel_id, \*, account_id, \*\*params) -> WARPConnector
+- client.warp_connector.edit(tunnel_id, \*, account_id, \*\*params) -> WARPConnector
+- client.warp_connector.get(tunnel_id, \*, account_id) -> WARPConnector
- client.warp_connector.token(tunnel_id, \*, account_id) -> WARPConnectorTokenResponse
# WorkersForPlatforms
@@ -4848,11 +4946,11 @@ Types:
```python
from cloudflare.types.zero_trust import (
- AzureAd,
+ AzureAD,
GenericOAuthConfig,
IdentityProvider,
- UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1,
+ IdentityProviderType,
+ ScimConfig,
IdentityProviderListResponse,
IdentityProviderDeleteResponse,
)
@@ -4871,14 +4969,14 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust import LoginDesign, Organizations, OrganizationRevokeUsersResponse
+from cloudflare.types.zero_trust import LoginDesign, Organization, OrganizationRevokeUsersResponse
```
Methods:
-- client.zero_trust.organizations.create(\*, account_id, zone_id, \*\*params) -> Organizations
-- client.zero_trust.organizations.update(\*, account_id, zone_id, \*\*params) -> Organizations
-- client.zero_trust.organizations.list(\*, account_id, zone_id) -> Organizations
+- client.zero_trust.organizations.create(\*, account_id, zone_id, \*\*params) -> Organization
+- client.zero_trust.organizations.update(\*, account_id, zone_id, \*\*params) -> Organization
+- client.zero_trust.organizations.list(\*, account_id, zone_id) -> Organization
- client.zero_trust.organizations.revoke_users(\*, account_id, zone_id, \*\*params) -> Optional
## Seats
@@ -4917,7 +5015,7 @@ from cloudflare.types.zero_trust import (
IPListRule,
IPRule,
OktaGroupRule,
- SamlGroupRule,
+ SAMLGroupRule,
ServiceTokenRule,
)
```
@@ -4928,16 +5026,16 @@ Types:
```python
from cloudflare.types.zero_trust.access import (
- AllowedHeadersItem,
- AllowedIDPsItem,
- AllowedMethodsItem,
- AllowedOriginsItem,
+ AllowedHeadersh,
+ AllowedIdpsh,
+ AllowedMethodsh,
+ AllowedOriginsh,
AppID,
Application,
CorsHeaders,
- CustomPagesItem,
- SamlSaasApp,
- SelfHostedDomainsItem,
+ CustomPagesh,
+ SAMLSaasApp,
+ SelfHostedDomainsh,
ApplicationDeleteResponse,
ApplicationRevokeTokensResponse,
)
@@ -5091,11 +5189,17 @@ Methods:
### Keys
+Types:
+
+```python
+from cloudflare.types.zero_trust.access import KeyUpdateResponse, KeyGetResponse, KeyRotateResponse
+```
+
Methods:
-- client.zero_trust.access.keys.update(identifier, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-- client.zero_trust.access.keys.get(identifier) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-- client.zero_trust.access.keys.rotate(identifier) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.zero_trust.access.keys.update(identifier, \*\*params) -> KeyUpdateResponse
+- client.zero_trust.access.keys.get(identifier) -> KeyGetResponse
+- client.zero_trust.access.keys.rotate(identifier) -> KeyRotateResponse
### Logs
@@ -5342,29 +5446,42 @@ from cloudflare.types.zero_trust import (
Methods:
- client.zero_trust.tunnels.create(\*, account_id, \*\*params) -> Tunnel
-- client.zero_trust.tunnels.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+- client.zero_trust.tunnels.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WARPConnector]
- client.zero_trust.tunnels.delete(tunnel_id, \*, account_id, \*\*params) -> Tunnel
-- client.zero_trust.tunnels.edit(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
+- client.zero_trust.tunnels.edit(tunnel_id, \*, account_id, \*\*params) -> WARPConnector
- client.zero_trust.tunnels.get(tunnel_id, \*, account_id) -> Tunnel
### Configurations
+Types:
+
+```python
+from cloudflare.types.zero_trust.tunnels import (
+ ConfigurationUpdateResponse,
+ ConfigurationGetResponse,
+)
+```
+
Methods:
-- client.zero_trust.tunnels.configurations.update(tunnel_id, \*, account_id, \*\*params) -> Optional
-- client.zero_trust.tunnels.configurations.get(tunnel_id, \*, account_id) -> Optional
+- client.zero_trust.tunnels.configurations.update(tunnel_id, \*, account_id, \*\*params) -> ConfigurationUpdateResponse
+- client.zero_trust.tunnels.configurations.get(tunnel_id, \*, account_id) -> ConfigurationGetResponse
### Connections
Types:
```python
-from cloudflare.types.zero_trust.tunnels import Client, ConnectionGetResponse
+from cloudflare.types.zero_trust.tunnels import (
+ Client,
+ ConnectionDeleteResponse,
+ ConnectionGetResponse,
+)
```
Methods:
-- client.zero_trust.tunnels.connections.delete(tunnel_id, \*, account_id, \*\*params) -> Optional
+- client.zero_trust.tunnels.connections.delete(tunnel_id, \*, account_id, \*\*params) -> ConnectionDeleteResponse
- client.zero_trust.tunnels.connections.get(tunnel_id, \*, account_id) -> Optional
### Token
@@ -5470,10 +5587,10 @@ Types:
```python
from cloudflare.types.zero_trust.dlp import (
ContextAwareness,
+ CustomProfile,
+ PredefinedProfile,
Profile,
SkipConfiguration,
- UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1,
- UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0,
ProfileGetResponse,
)
```
@@ -5488,14 +5605,19 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.dlp.profiles import CustomProfile, Pattern, CustomCreateResponse
+from cloudflare.types.zero_trust.dlp.profiles import (
+ CustomProfile,
+ Pattern,
+ CustomCreateResponse,
+ CustomDeleteResponse,
+)
```
Methods:
- client.zero_trust.dlp.profiles.custom.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.dlp.profiles.custom.update(profile_id, \*, account_id, \*\*params) -> CustomProfile
-- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id, \*\*params) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id, \*\*params) -> CustomDeleteResponse
- client.zero_trust.dlp.profiles.custom.get(profile_id, \*, account_id) -> CustomProfile
#### Predefined
@@ -5744,15 +5866,20 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.networks import VirtualNetwork
+from cloudflare.types.zero_trust.networks import (
+ VirtualNetwork,
+ VirtualNetworkCreateResponse,
+ VirtualNetworkDeleteResponse,
+ VirtualNetworkEditResponse,
+)
```
Methods:
-- client.zero_trust.networks.virtual_networks.create(\*, account_id, \*\*params) -> Optional
+- client.zero_trust.networks.virtual_networks.create(\*, account_id, \*\*params) -> VirtualNetworkCreateResponse
- client.zero_trust.networks.virtual_networks.list(\*, account_id, \*\*params) -> SyncSinglePage[VirtualNetwork]
-- client.zero_trust.networks.virtual_networks.delete(virtual_network_id, \*, account_id, \*\*params) -> Optional
-- client.zero_trust.networks.virtual_networks.edit(virtual_network_id, \*, account_id, \*\*params) -> Optional
+- 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
@@ -6966,7 +7093,7 @@ from cloudflare.types import (
BotFightModeConfiguration,
SubscriptionConfiguration,
SuperBotFightModeDefinitelyConfiguration,
- SuperBotFightModeLikelyConfig,
+ SuperBotFightModeLikelyConfiguration,
BotManagementUpdateResponse,
BotManagementGetResponse,
)
@@ -7091,14 +7218,14 @@ Methods:
Types:
```python
-from cloudflare.types import Snippet
+from cloudflare.types import Snippet, SnippetDeleteResponse
```
Methods:
- client.snippets.update(snippet_name, \*, zone_identifier, \*\*params) -> Snippet
- client.snippets.list(zone_identifier) -> SyncSinglePage[Snippet]
-- client.snippets.delete(snippet_name, \*, zone_identifier) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.snippets.delete(snippet_name, \*, zone_identifier) -> SnippetDeleteResponse
- client.snippets.get(snippet_name, \*, zone_identifier) -> Snippet
## Content
@@ -7143,7 +7270,14 @@ Methods:
Types:
```python
-from cloudflare.types.cloudforce_one import Item, ListItem, Quota, RequestConstants, RequestTypes
+from cloudflare.types.cloudforce_one import (
+ Item,
+ ListItem,
+ Quota,
+ RequestConstants,
+ RequestTypes,
+ RequestDeleteResponse,
+)
```
Methods:
@@ -7151,7 +7285,7 @@ Methods:
- client.cloudforce_one.requests.create(account_identifier, \*\*params) -> Item
- client.cloudforce_one.requests.update(request_identifier, \*, account_identifier, \*\*params) -> Item
- client.cloudforce_one.requests.list(account_identifier, \*\*params) -> SyncV4PagePaginationArray[ListItem]
-- client.cloudforce_one.requests.delete(request_identifier, \*, account_identifier) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.cloudforce_one.requests.delete(request_identifier, \*, account_identifier) -> RequestDeleteResponse
- client.cloudforce_one.requests.constants(account_identifier) -> RequestConstants
- client.cloudforce_one.requests.get(request_identifier, \*, account_identifier) -> Item
- client.cloudforce_one.requests.quota(account_identifier) -> Quota
@@ -7162,14 +7296,18 @@ Methods:
Types:
```python
-from cloudflare.types.cloudforce_one.requests import Message, MessageGetResponse
+from cloudflare.types.cloudforce_one.requests import (
+ Message,
+ MessageDeleteResponse,
+ MessageGetResponse,
+)
```
Methods:
- client.cloudforce_one.requests.message.create(request_identifier, \*, account_identifier, \*\*params) -> Message
- client.cloudforce_one.requests.message.update(message_identifer, \*, account_identifier, request_identifier, \*\*params) -> Message
-- client.cloudforce_one.requests.message.delete(message_identifer, \*, account_identifier, request_identifier) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.cloudforce_one.requests.message.delete(message_identifer, \*, account_identifier, request_identifier) -> MessageDeleteResponse
- client.cloudforce_one.requests.message.get(request_identifier, \*, account_identifier, \*\*params) -> MessageGetResponse
### PriorityResource
@@ -7177,13 +7315,18 @@ Methods:
Types:
```python
-from cloudflare.types.cloudforce_one.requests import LabelItem, Priority, PriorityEdit
+from cloudflare.types.cloudforce_one.requests import (
+ LabelItem,
+ Priority,
+ PriorityEdit,
+ PriorityDeleteResponse,
+)
```
Methods:
- client.cloudforce_one.requests.priority.create(account_identifier, \*\*params) -> Priority
- client.cloudforce_one.requests.priority.update(priority_identifer, \*, account_identifier, \*\*params) -> Item
-- client.cloudforce_one.requests.priority.delete(priority_identifer, \*, account_identifier) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+- client.cloudforce_one.requests.priority.delete(priority_identifer, \*, account_identifier) -> PriorityDeleteResponse
- client.cloudforce_one.requests.priority.get(priority_identifer, \*, account_identifier) -> Item
- client.cloudforce_one.requests.priority.quota(account_identifier) -> Quota
diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py
index 000dc7fe45a..d85574035e0 100644
--- a/src/cloudflare/_client.py
+++ b/src/cloudflare/_client.py
@@ -110,7 +110,7 @@ class Cloudflare(SyncAPIClient):
alerting: resources.Alerting
d1: resources.D1Resource
r2: resources.R2
- warp_connector: resources.WARPConnector
+ warp_connector: resources.WARPConnectorResource
workers_for_platforms: resources.WorkersForPlatforms
zero_trust: resources.ZeroTrust
challenges: resources.Challenges
@@ -265,7 +265,7 @@ def __init__(
self.alerting = resources.Alerting(self)
self.d1 = resources.D1Resource(self)
self.r2 = resources.R2(self)
- self.warp_connector = resources.WARPConnector(self)
+ self.warp_connector = resources.WARPConnectorResource(self)
self.workers_for_platforms = resources.WorkersForPlatforms(self)
self.zero_trust = resources.ZeroTrust(self)
self.challenges = resources.Challenges(self)
@@ -523,7 +523,7 @@ class AsyncCloudflare(AsyncAPIClient):
alerting: resources.AsyncAlerting
d1: resources.AsyncD1Resource
r2: resources.AsyncR2
- warp_connector: resources.AsyncWARPConnector
+ warp_connector: resources.AsyncWARPConnectorResource
workers_for_platforms: resources.AsyncWorkersForPlatforms
zero_trust: resources.AsyncZeroTrust
challenges: resources.AsyncChallenges
@@ -678,7 +678,7 @@ def __init__(
self.alerting = resources.AsyncAlerting(self)
self.d1 = resources.AsyncD1Resource(self)
self.r2 = resources.AsyncR2(self)
- self.warp_connector = resources.AsyncWARPConnector(self)
+ self.warp_connector = resources.AsyncWARPConnectorResource(self)
self.workers_for_platforms = resources.AsyncWorkersForPlatforms(self)
self.zero_trust = resources.AsyncZeroTrust(self)
self.challenges = resources.AsyncChallenges(self)
@@ -937,7 +937,7 @@ def __init__(self, client: Cloudflare) -> None:
self.alerting = resources.AlertingWithRawResponse(client.alerting)
self.d1 = resources.D1ResourceWithRawResponse(client.d1)
self.r2 = resources.R2WithRawResponse(client.r2)
- self.warp_connector = resources.WARPConnectorWithRawResponse(client.warp_connector)
+ self.warp_connector = resources.WARPConnectorResourceWithRawResponse(client.warp_connector)
self.workers_for_platforms = resources.WorkersForPlatformsWithRawResponse(client.workers_for_platforms)
self.zero_trust = resources.ZeroTrustWithRawResponse(client.zero_trust)
self.challenges = resources.ChallengesWithRawResponse(client.challenges)
@@ -1027,7 +1027,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.alerting = resources.AsyncAlertingWithRawResponse(client.alerting)
self.d1 = resources.AsyncD1ResourceWithRawResponse(client.d1)
self.r2 = resources.AsyncR2WithRawResponse(client.r2)
- self.warp_connector = resources.AsyncWARPConnectorWithRawResponse(client.warp_connector)
+ self.warp_connector = resources.AsyncWARPConnectorResourceWithRawResponse(client.warp_connector)
self.workers_for_platforms = resources.AsyncWorkersForPlatformsWithRawResponse(client.workers_for_platforms)
self.zero_trust = resources.AsyncZeroTrustWithRawResponse(client.zero_trust)
self.challenges = resources.AsyncChallengesWithRawResponse(client.challenges)
@@ -1117,7 +1117,7 @@ def __init__(self, client: Cloudflare) -> None:
self.alerting = resources.AlertingWithStreamingResponse(client.alerting)
self.d1 = resources.D1ResourceWithStreamingResponse(client.d1)
self.r2 = resources.R2WithStreamingResponse(client.r2)
- self.warp_connector = resources.WARPConnectorWithStreamingResponse(client.warp_connector)
+ self.warp_connector = resources.WARPConnectorResourceWithStreamingResponse(client.warp_connector)
self.workers_for_platforms = resources.WorkersForPlatformsWithStreamingResponse(client.workers_for_platforms)
self.zero_trust = resources.ZeroTrustWithStreamingResponse(client.zero_trust)
self.challenges = resources.ChallengesWithStreamingResponse(client.challenges)
@@ -1211,7 +1211,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.alerting = resources.AsyncAlertingWithStreamingResponse(client.alerting)
self.d1 = resources.AsyncD1ResourceWithStreamingResponse(client.d1)
self.r2 = resources.AsyncR2WithStreamingResponse(client.r2)
- self.warp_connector = resources.AsyncWARPConnectorWithStreamingResponse(client.warp_connector)
+ self.warp_connector = resources.AsyncWARPConnectorResourceWithStreamingResponse(client.warp_connector)
self.workers_for_platforms = resources.AsyncWorkersForPlatformsWithStreamingResponse(
client.workers_for_platforms
)
diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py
index 22875e389ef..096d7cfd8ea 100644
--- a/src/cloudflare/resources/__init__.py
+++ b/src/cloudflare/resources/__init__.py
@@ -497,12 +497,12 @@
AsyncLoadBalancersWithStreamingResponse,
)
from .warp_connector import (
- WARPConnector,
- AsyncWARPConnector,
- WARPConnectorWithRawResponse,
- AsyncWARPConnectorWithRawResponse,
- WARPConnectorWithStreamingResponse,
- AsyncWARPConnectorWithStreamingResponse,
+ WARPConnectorResource,
+ AsyncWARPConnectorResource,
+ WARPConnectorResourceWithRawResponse,
+ AsyncWARPConnectorResourceWithRawResponse,
+ WARPConnectorResourceWithStreamingResponse,
+ AsyncWARPConnectorResourceWithStreamingResponse,
)
from .durable_objects import (
DurableObjects,
@@ -1020,12 +1020,12 @@
"AsyncR2WithRawResponse",
"R2WithStreamingResponse",
"AsyncR2WithStreamingResponse",
- "WARPConnector",
- "AsyncWARPConnector",
- "WARPConnectorWithRawResponse",
- "AsyncWARPConnectorWithRawResponse",
- "WARPConnectorWithStreamingResponse",
- "AsyncWARPConnectorWithStreamingResponse",
+ "WARPConnectorResource",
+ "AsyncWARPConnectorResource",
+ "WARPConnectorResourceWithRawResponse",
+ "AsyncWARPConnectorResourceWithRawResponse",
+ "WARPConnectorResourceWithStreamingResponse",
+ "AsyncWARPConnectorResourceWithStreamingResponse",
"WorkersForPlatforms",
"AsyncWorkersForPlatforms",
"WorkersForPlatformsWithRawResponse",
diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py
index 76b969ef07c..6657d3c7e15 100644
--- a/src/cloudflare/resources/accounts/members.py
+++ b/src/cloudflare/resources/accounts/members.py
@@ -28,7 +28,6 @@
)
from ...types.accounts import (
Member,
- MemberRoleParam,
MemberListResponse,
MemberDeleteResponse,
MemberWithInviteCode,
@@ -105,7 +104,7 @@ def update(
member_id: str,
*,
account_id: object,
- roles: Iterable[MemberRoleParam],
+ roles: Iterable[member_update_params.Role],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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,7 +350,7 @@ async def update(
member_id: str,
*,
account_id: object,
- roles: Iterable[MemberRoleParam],
+ roles: Iterable[member_update_params.Role],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py
index bfb1b39ad44..71b9fb4dd2a 100644
--- a/src/cloudflare/resources/addressing/address_maps/accounts.py
+++ b/src/cloudflare/resources/addressing/address_maps/accounts.py
@@ -23,8 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from ....types.addressing.address_maps import account_delete_params, account_update_params
+from ....types.addressing.address_maps import (
+ AccountDeleteResponse,
+ AccountUpdateResponse,
+ account_delete_params,
+ account_update_params,
+)
__all__ = ["Accounts", "AsyncAccounts"]
@@ -50,7 +54,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AccountUpdateResponse]:
"""
Add an account as a member of a particular address map.
@@ -72,7 +76,7 @@ def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -84,7 +88,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AccountUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -101,7 +105,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AccountDeleteResponse]:
"""
Remove an account as a member of a particular address map.
@@ -123,7 +127,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -135,7 +139,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AccountDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -162,7 +166,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AccountUpdateResponse]:
"""
Add an account as a member of a particular address map.
@@ -184,7 +188,7 @@ async def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -196,7 +200,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AccountUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -213,7 +217,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AccountDeleteResponse]:
"""
Remove an account as a member of a particular address map.
@@ -235,7 +239,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -247,7 +251,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AccountDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py
index 4c21df1fac0..f2f22081512 100644
--- a/src/cloudflare/resources/addressing/address_maps/address_maps.py
+++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py
@@ -49,11 +49,11 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from ....types.addressing import (
AddressMap,
AddressMapGetResponse,
AddressMapCreateResponse,
+ AddressMapDeleteResponse,
address_map_edit_params,
address_map_create_params,
address_map_delete_params,
@@ -185,7 +185,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AddressMapDeleteResponse]:
"""Delete a particular address map owned by the account.
An Address Map must be
@@ -209,7 +209,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[AddressMapDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
body=maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
@@ -221,7 +221,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AddressMapDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -461,7 +461,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[AddressMapDeleteResponse]:
"""Delete a particular address map owned by the account.
An Address Map must be
@@ -485,7 +485,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -497,7 +497,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[AddressMapDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py
index 1cfc8cfe177..ff87f190f0b 100644
--- a/src/cloudflare/resources/addressing/address_maps/ips.py
+++ b/src/cloudflare/resources/addressing/address_maps/ips.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from ....types.addressing.address_maps import ip_delete_params, ip_update_params
+from ....types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse, ip_delete_params, ip_update_params
__all__ = ["IPs", "AsyncIPs"]
@@ -51,7 +50,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[IPUpdateResponse]:
"""
Add an IP from a prefix owned by the account to a particular address map.
@@ -77,7 +76,7 @@ def update(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -89,7 +88,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[IPUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -107,7 +106,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[IPDeleteResponse]:
"""
Remove an IP from a particular address map.
@@ -133,7 +132,7 @@ def delete(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -145,7 +144,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[IPDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -173,7 +172,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[IPUpdateResponse]:
"""
Add an IP from a prefix owned by the account to a particular address map.
@@ -199,7 +198,7 @@ async def update(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -211,7 +210,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[IPUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -229,7 +228,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[IPDeleteResponse]:
"""
Remove an IP from a particular address map.
@@ -255,7 +254,7 @@ async def delete(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -267,7 +266,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[IPDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py
index 092e5f711de..6bf140d4d71 100644
--- a/src/cloudflare/resources/addressing/address_maps/zones.py
+++ b/src/cloudflare/resources/addressing/address_maps/zones.py
@@ -23,8 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from ....types.addressing.address_maps import zone_delete_params, zone_update_params
+from ....types.addressing.address_maps import (
+ ZoneDeleteResponse,
+ ZoneUpdateResponse,
+ zone_delete_params,
+ zone_update_params,
+)
__all__ = ["Zones", "AsyncZones"]
@@ -51,7 +55,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ZoneUpdateResponse]:
"""
Add a zone as a member of a particular address map.
@@ -77,7 +81,7 @@ def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[ZoneUpdateResponse],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=maybe_transform(body, zone_update_params.ZoneUpdateParams),
@@ -89,7 +93,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ZoneUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -107,7 +111,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ZoneDeleteResponse]:
"""
Remove a zone as a member of a particular address map.
@@ -133,7 +137,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[ZoneDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=maybe_transform(body, zone_delete_params.ZoneDeleteParams),
@@ -145,7 +149,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ZoneDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -173,7 +177,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ZoneUpdateResponse]:
"""
Add a zone as a member of a particular address map.
@@ -199,7 +203,7 @@ async def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[ZoneUpdateResponse],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=await async_maybe_transform(body, zone_update_params.ZoneUpdateParams),
@@ -211,7 +215,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ZoneUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -229,7 +233,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ZoneDeleteResponse]:
"""
Remove a zone as a member of a particular address map.
@@ -255,7 +259,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[ZoneDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=await async_maybe_transform(body, zone_delete_params.ZoneDeleteParams),
@@ -267,7 +271,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ZoneDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
index a292cb3ea77..33958d71ba9 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
@@ -25,8 +25,7 @@
AsyncPaginator,
make_request_options,
)
-from .....types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
-from .....types.addressing.prefixes.bgp import ServiceBinding, binding_create_params
+from .....types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse, binding_create_params
__all__ = ["Bindings", "AsyncBindings"]
@@ -159,7 +158,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> BindingDeleteResponse:
"""
Delete a Service Binding
@@ -185,7 +184,7 @@ def delete(
if not binding_id:
raise ValueError(f"Expected a non-empty value for `binding_id` but received {binding_id!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ BindingDeleteResponse,
self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings/{binding_id}",
options=make_request_options(
@@ -196,7 +195,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[BindingDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -379,7 +378,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> BindingDeleteResponse:
"""
Delete a Service Binding
@@ -405,7 +404,7 @@ async def delete(
if not binding_id:
raise ValueError(f"Expected a non-empty value for `binding_id` but received {binding_id!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ BindingDeleteResponse,
await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings/{binding_id}",
options=make_request_options(
@@ -416,7 +415,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[BindingDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py
index c42d1662141..e187e9f4a55 100644
--- a/src/cloudflare/resources/addressing/prefixes/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py
@@ -42,8 +42,13 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from ....types.addressing import Prefix, prefix_edit_params, prefix_create_params, prefix_delete_params
+from ....types.addressing import (
+ Prefix,
+ PrefixDeleteResponse,
+ prefix_edit_params,
+ prefix_create_params,
+ prefix_delete_params,
+)
__all__ = ["Prefixes", "AsyncPrefixes"]
@@ -169,7 +174,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PrefixDeleteResponse]:
"""
Delete an unapproved prefix owned by the account.
@@ -191,7 +196,7 @@ def delete(
if not prefix_id:
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PrefixDeleteResponse],
self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
@@ -203,7 +208,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PrefixDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -422,7 +427,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PrefixDeleteResponse]:
"""
Delete an unapproved prefix owned by the account.
@@ -444,7 +449,7 @@ async def delete(
if not prefix_id:
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PrefixDeleteResponse],
await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=await async_maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
@@ -456,7 +461,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PrefixDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/destinations/pagerduty.py b/src/cloudflare/resources/alerting/destinations/pagerduty.py
index f92086ae8fb..f60a5d48a92 100644
--- a/src/cloudflare/resources/alerting/destinations/pagerduty.py
+++ b/src/cloudflare/resources/alerting/destinations/pagerduty.py
@@ -19,8 +19,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from ....types.alerting.destinations import PagerdutyGetResponse, PagerdutyLinkResponse, PagerdutyCreateResponse
+from ....types.alerting.destinations import (
+ PagerdutyGetResponse,
+ PagerdutyLinkResponse,
+ PagerdutyCreateResponse,
+ PagerdutyDeleteResponse,
+)
__all__ = ["PagerdutyResource", "AsyncPagerdutyResource"]
@@ -83,7 +87,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PagerdutyDeleteResponse]:
"""
Deletes all the PagerDuty Services connected to the account.
@@ -101,7 +105,7 @@ def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PagerdutyDeleteResponse],
self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/pagerduty",
options=make_request_options(
@@ -112,7 +116,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PagerdutyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -259,7 +263,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PagerdutyDeleteResponse]:
"""
Deletes all the PagerDuty Services connected to the account.
@@ -277,7 +281,7 @@ async def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PagerdutyDeleteResponse],
await self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/pagerduty",
options=make_request_options(
@@ -288,7 +292,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PagerdutyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/destinations/webhooks.py b/src/cloudflare/resources/alerting/destinations/webhooks.py
index f6ed4d29692..d6356303003 100644
--- a/src/cloudflare/resources/alerting/destinations/webhooks.py
+++ b/src/cloudflare/resources/alerting/destinations/webhooks.py
@@ -25,9 +25,9 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from ....types.alerting.destinations import (
WebhookCreateResponse,
+ WebhookDeleteResponse,
WebhookUpdateResponse,
webhooks,
webhook_create_params,
@@ -216,7 +216,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[WebhookDeleteResponse]:
"""
Delete a configured webhook destination.
@@ -238,7 +238,7 @@ def delete(
if not webhook_id:
raise ValueError(f"Expected a non-empty value for `webhook_id` but received {webhook_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[WebhookDeleteResponse],
self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}",
options=make_request_options(
@@ -249,7 +249,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[WebhookDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -478,7 +478,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[WebhookDeleteResponse]:
"""
Delete a configured webhook destination.
@@ -500,7 +500,7 @@ async def delete(
if not webhook_id:
raise ValueError(f"Expected a non-empty value for `webhook_id` but received {webhook_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[WebhookDeleteResponse],
await self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}",
options=make_request_options(
@@ -511,7 +511,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[WebhookDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/policies.py b/src/cloudflare/resources/alerting/policies.py
index f9499a2efd2..438bc46d534 100644
--- a/src/cloudflare/resources/alerting/policies.py
+++ b/src/cloudflare/resources/alerting/policies.py
@@ -26,12 +26,12 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from ...types.alerting import (
Policy,
FilterParam,
MechanismParam,
PolicyCreateResponse,
+ PolicyDeleteResponse,
PolicyUpdateResponse,
policy_create_params,
policy_update_params,
@@ -360,7 +360,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PolicyDeleteResponse]:
"""
Delete a Notification policy.
@@ -382,7 +382,7 @@ def delete(
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PolicyDeleteResponse],
self._delete(
f"/accounts/{account_id}/alerting/v3/policies/{policy_id}",
options=make_request_options(
@@ -393,7 +393,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PolicyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -763,7 +763,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[PolicyDeleteResponse]:
"""
Delete a Notification policy.
@@ -785,7 +785,7 @@ async def delete(
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[PolicyDeleteResponse],
await self._delete(
f"/accounts/{account_id}/alerting/v3/policies/{policy_id}",
options=make_request_options(
@@ -796,7 +796,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[PolicyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cache/__init__.py b/src/cloudflare/resources/cache/__init__.py
index 3ee20b0af7f..94f003573ac 100644
--- a/src/cloudflare/resources/cache/__init__.py
+++ b/src/cloudflare/resources/cache/__init__.py
@@ -33,12 +33,12 @@
AsyncSmartTieredCacheWithStreamingResponse,
)
from .regional_tiered_cache import (
- RegionalTieredCache,
- AsyncRegionalTieredCache,
- RegionalTieredCacheWithRawResponse,
- AsyncRegionalTieredCacheWithRawResponse,
- RegionalTieredCacheWithStreamingResponse,
- AsyncRegionalTieredCacheWithStreamingResponse,
+ RegionalTieredCacheResource,
+ AsyncRegionalTieredCacheResource,
+ RegionalTieredCacheResourceWithRawResponse,
+ AsyncRegionalTieredCacheResourceWithRawResponse,
+ RegionalTieredCacheResourceWithStreamingResponse,
+ AsyncRegionalTieredCacheResourceWithStreamingResponse,
)
__all__ = [
@@ -60,12 +60,12 @@
"AsyncVariantsWithRawResponse",
"VariantsWithStreamingResponse",
"AsyncVariantsWithStreamingResponse",
- "RegionalTieredCache",
- "AsyncRegionalTieredCache",
- "RegionalTieredCacheWithRawResponse",
- "AsyncRegionalTieredCacheWithRawResponse",
- "RegionalTieredCacheWithStreamingResponse",
- "AsyncRegionalTieredCacheWithStreamingResponse",
+ "RegionalTieredCacheResource",
+ "AsyncRegionalTieredCacheResource",
+ "RegionalTieredCacheResourceWithRawResponse",
+ "AsyncRegionalTieredCacheResourceWithRawResponse",
+ "RegionalTieredCacheResourceWithStreamingResponse",
+ "AsyncRegionalTieredCacheResourceWithStreamingResponse",
"Cache",
"AsyncCache",
"CacheWithRawResponse",
diff --git a/src/cloudflare/resources/cache/cache.py b/src/cloudflare/resources/cache/cache.py
index fb77d157009..2ba1cf15a19 100644
--- a/src/cloudflare/resources/cache/cache.py
+++ b/src/cloudflare/resources/cache/cache.py
@@ -50,12 +50,12 @@
AsyncSmartTieredCacheWithStreamingResponse,
)
from .regional_tiered_cache import (
- RegionalTieredCache,
- AsyncRegionalTieredCache,
- RegionalTieredCacheWithRawResponse,
- AsyncRegionalTieredCacheWithRawResponse,
- RegionalTieredCacheWithStreamingResponse,
- AsyncRegionalTieredCacheWithStreamingResponse,
+ RegionalTieredCacheResource,
+ AsyncRegionalTieredCacheResource,
+ RegionalTieredCacheResourceWithRawResponse,
+ AsyncRegionalTieredCacheResourceWithRawResponse,
+ RegionalTieredCacheResourceWithStreamingResponse,
+ AsyncRegionalTieredCacheResourceWithStreamingResponse,
)
__all__ = ["Cache", "AsyncCache"]
@@ -75,8 +75,8 @@ def variants(self) -> Variants:
return Variants(self._client)
@cached_property
- def regional_tiered_cache(self) -> RegionalTieredCache:
- return RegionalTieredCache(self._client)
+ def regional_tiered_cache(self) -> RegionalTieredCacheResource:
+ return RegionalTieredCacheResource(self._client)
@cached_property
def with_raw_response(self) -> CacheWithRawResponse:
@@ -427,8 +427,8 @@ def variants(self) -> AsyncVariants:
return AsyncVariants(self._client)
@cached_property
- def regional_tiered_cache(self) -> AsyncRegionalTieredCache:
- return AsyncRegionalTieredCache(self._client)
+ def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResource:
+ return AsyncRegionalTieredCacheResource(self._client)
@cached_property
def with_raw_response(self) -> AsyncCacheWithRawResponse:
@@ -786,8 +786,8 @@ def variants(self) -> VariantsWithRawResponse:
return VariantsWithRawResponse(self._cache.variants)
@cached_property
- def regional_tiered_cache(self) -> RegionalTieredCacheWithRawResponse:
- return RegionalTieredCacheWithRawResponse(self._cache.regional_tiered_cache)
+ def regional_tiered_cache(self) -> RegionalTieredCacheResourceWithRawResponse:
+ return RegionalTieredCacheResourceWithRawResponse(self._cache.regional_tiered_cache)
class AsyncCacheWithRawResponse:
@@ -811,8 +811,8 @@ def variants(self) -> AsyncVariantsWithRawResponse:
return AsyncVariantsWithRawResponse(self._cache.variants)
@cached_property
- def regional_tiered_cache(self) -> AsyncRegionalTieredCacheWithRawResponse:
- return AsyncRegionalTieredCacheWithRawResponse(self._cache.regional_tiered_cache)
+ def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResourceWithRawResponse:
+ return AsyncRegionalTieredCacheResourceWithRawResponse(self._cache.regional_tiered_cache)
class CacheWithStreamingResponse:
@@ -836,8 +836,8 @@ def variants(self) -> VariantsWithStreamingResponse:
return VariantsWithStreamingResponse(self._cache.variants)
@cached_property
- def regional_tiered_cache(self) -> RegionalTieredCacheWithStreamingResponse:
- return RegionalTieredCacheWithStreamingResponse(self._cache.regional_tiered_cache)
+ def regional_tiered_cache(self) -> RegionalTieredCacheResourceWithStreamingResponse:
+ return RegionalTieredCacheResourceWithStreamingResponse(self._cache.regional_tiered_cache)
class AsyncCacheWithStreamingResponse:
@@ -861,5 +861,5 @@ def variants(self) -> AsyncVariantsWithStreamingResponse:
return AsyncVariantsWithStreamingResponse(self._cache.variants)
@cached_property
- def regional_tiered_cache(self) -> AsyncRegionalTieredCacheWithStreamingResponse:
- return AsyncRegionalTieredCacheWithStreamingResponse(self._cache.regional_tiered_cache)
+ def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResourceWithStreamingResponse:
+ return AsyncRegionalTieredCacheResourceWithStreamingResponse(self._cache.regional_tiered_cache)
diff --git a/src/cloudflare/resources/cache/regional_tiered_cache.py b/src/cloudflare/resources/cache/regional_tiered_cache.py
index ef500dc4371..942a5e466e0 100644
--- a/src/cloudflare/resources/cache/regional_tiered_cache.py
+++ b/src/cloudflare/resources/cache/regional_tiered_cache.py
@@ -30,17 +30,17 @@
make_request_options,
)
-__all__ = ["RegionalTieredCache", "AsyncRegionalTieredCache"]
+__all__ = ["RegionalTieredCacheResource", "AsyncRegionalTieredCacheResource"]
-class RegionalTieredCache(SyncAPIResource):
+class RegionalTieredCacheResource(SyncAPIResource):
@cached_property
- def with_raw_response(self) -> RegionalTieredCacheWithRawResponse:
- return RegionalTieredCacheWithRawResponse(self)
+ def with_raw_response(self) -> RegionalTieredCacheResourceWithRawResponse:
+ return RegionalTieredCacheResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> RegionalTieredCacheWithStreamingResponse:
- return RegionalTieredCacheWithStreamingResponse(self)
+ def with_streaming_response(self) -> RegionalTieredCacheResourceWithStreamingResponse:
+ return RegionalTieredCacheResourceWithStreamingResponse(self)
def edit(
self,
@@ -129,14 +129,14 @@ def get(
)
-class AsyncRegionalTieredCache(AsyncAPIResource):
+class AsyncRegionalTieredCacheResource(AsyncAPIResource):
@cached_property
- def with_raw_response(self) -> AsyncRegionalTieredCacheWithRawResponse:
- return AsyncRegionalTieredCacheWithRawResponse(self)
+ def with_raw_response(self) -> AsyncRegionalTieredCacheResourceWithRawResponse:
+ return AsyncRegionalTieredCacheResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncRegionalTieredCacheWithStreamingResponse:
- return AsyncRegionalTieredCacheWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncRegionalTieredCacheResourceWithStreamingResponse:
+ return AsyncRegionalTieredCacheResourceWithStreamingResponse(self)
async def edit(
self,
@@ -227,8 +227,8 @@ async def get(
)
-class RegionalTieredCacheWithRawResponse:
- def __init__(self, regional_tiered_cache: RegionalTieredCache) -> None:
+class RegionalTieredCacheResourceWithRawResponse:
+ def __init__(self, regional_tiered_cache: RegionalTieredCacheResource) -> None:
self._regional_tiered_cache = regional_tiered_cache
self.edit = to_raw_response_wrapper(
@@ -239,8 +239,8 @@ def __init__(self, regional_tiered_cache: RegionalTieredCache) -> None:
)
-class AsyncRegionalTieredCacheWithRawResponse:
- def __init__(self, regional_tiered_cache: AsyncRegionalTieredCache) -> None:
+class AsyncRegionalTieredCacheResourceWithRawResponse:
+ def __init__(self, regional_tiered_cache: AsyncRegionalTieredCacheResource) -> None:
self._regional_tiered_cache = regional_tiered_cache
self.edit = async_to_raw_response_wrapper(
@@ -251,8 +251,8 @@ def __init__(self, regional_tiered_cache: AsyncRegionalTieredCache) -> None:
)
-class RegionalTieredCacheWithStreamingResponse:
- def __init__(self, regional_tiered_cache: RegionalTieredCache) -> None:
+class RegionalTieredCacheResourceWithStreamingResponse:
+ def __init__(self, regional_tiered_cache: RegionalTieredCacheResource) -> None:
self._regional_tiered_cache = regional_tiered_cache
self.edit = to_streamed_response_wrapper(
@@ -263,8 +263,8 @@ def __init__(self, regional_tiered_cache: RegionalTieredCache) -> None:
)
-class AsyncRegionalTieredCacheWithStreamingResponse:
- def __init__(self, regional_tiered_cache: AsyncRegionalTieredCache) -> None:
+class AsyncRegionalTieredCacheResourceWithStreamingResponse:
+ def __init__(self, regional_tiered_cache: AsyncRegionalTieredCacheResource) -> None:
self._regional_tiered_cache = regional_tiered_cache
self.edit = async_to_streamed_response_wrapper(
diff --git a/src/cloudflare/resources/cloudforce_one/requests/message.py b/src/cloudflare/resources/cloudforce_one/requests/message.py
index 49c3ac654b0..cfdf315b3bb 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/message.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/message.py
@@ -25,10 +25,10 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from ....types.cloudforce_one.requests import (
Message,
MessageGetResponse,
+ MessageDeleteResponse,
message_get_params,
message_create_params,
message_update_params,
@@ -178,7 +178,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> MessageDeleteResponse:
"""
Delete a Request Message
@@ -200,7 +200,7 @@ def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ MessageDeleteResponse,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}/message/{message_identifer}",
options=make_request_options(
@@ -211,7 +211,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[MessageDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -431,7 +431,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> MessageDeleteResponse:
"""
Delete a Request Message
@@ -453,7 +453,7 @@ async def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ MessageDeleteResponse,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}/message/{message_identifer}",
options=make_request_options(
@@ -464,7 +464,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[MessageDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/priority.py b/src/cloudflare/resources/cloudforce_one/requests/priority.py
index aa4c0be0cf0..6b6e9abf29d 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/priority.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/priority.py
@@ -24,9 +24,14 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from ....types.cloudforce_one import Item, Quota
-from ....types.cloudforce_one.requests import Priority, LabelItem, priority_create_params, priority_update_params
+from ....types.cloudforce_one.requests import (
+ Priority,
+ LabelItem,
+ PriorityDeleteResponse,
+ priority_create_params,
+ priority_update_params,
+)
__all__ = ["PriorityResource", "AsyncPriorityResource"]
@@ -176,7 +181,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> PriorityDeleteResponse:
"""
Delete a Priority Intelligence Report
@@ -198,7 +203,7 @@ def delete(
if not priority_identifer:
raise ValueError(f"Expected a non-empty value for `priority_identifer` but received {priority_identifer!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ PriorityDeleteResponse,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}",
options=make_request_options(
@@ -209,7 +214,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[PriorityDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -443,7 +448,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> PriorityDeleteResponse:
"""
Delete a Priority Intelligence Report
@@ -465,7 +470,7 @@ async def delete(
if not priority_identifer:
raise ValueError(f"Expected a non-empty value for `priority_identifer` but received {priority_identifer!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ PriorityDeleteResponse,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}",
options=make_request_options(
@@ -476,7 +481,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[PriorityDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/requests.py b/src/cloudflare/resources/cloudforce_one/requests/requests.py
index f3b1eeafd91..24c4d97b9d3 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/requests.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/requests.py
@@ -43,13 +43,13 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from ....types.cloudforce_one import (
Item,
Quota,
ListItem,
RequestTypes,
RequestConstants,
+ RequestDeleteResponse,
request_list_params,
request_create_params,
request_update_params,
@@ -306,7 +306,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> RequestDeleteResponse:
"""
Delete a Request
@@ -328,7 +328,7 @@ def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ RequestDeleteResponse,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}",
options=make_request_options(
@@ -339,7 +339,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[RequestDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -754,7 +754,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> RequestDeleteResponse:
"""
Delete a Request
@@ -776,7 +776,7 @@ async def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ RequestDeleteResponse,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}",
options=make_request_options(
@@ -787,7 +787,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[RequestDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/custom_nameservers.py b/src/cloudflare/resources/custom_nameservers.py
index 343c7059495..6223345685a 100644
--- a/src/cloudflare/resources/custom_nameservers.py
+++ b/src/cloudflare/resources/custom_nameservers.py
@@ -9,6 +9,7 @@
from ..types import (
CustomNameserver,
CustomNameserverGetResponse,
+ CustomNameserverDeleteResponse,
CustomNameserverVerifyResponse,
CustomNameserverAvailabiltyResponse,
custom_nameserver_create_params,
@@ -32,7 +33,6 @@
from .._base_client import (
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
__all__ = ["CustomNameservers", "AsyncCustomNameservers"]
@@ -110,7 +110,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverDeleteResponse]:
"""
Delete Account Custom Nameserver
@@ -132,7 +132,7 @@ def delete(
if not custom_ns_id:
raise ValueError(f"Expected a non-empty value for `custom_ns_id` but received {custom_ns_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[CustomNameserverDeleteResponse],
self._delete(
f"/accounts/{account_id}/custom_ns/{custom_ns_id}",
body=maybe_transform(body, custom_nameserver_delete_params.CustomNameserverDeleteParams),
@@ -144,7 +144,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -344,7 +344,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverDeleteResponse]:
"""
Delete Account Custom Nameserver
@@ -366,7 +366,7 @@ async def delete(
if not custom_ns_id:
raise ValueError(f"Expected a non-empty value for `custom_ns_id` but received {custom_ns_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -378,7 +378,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py
index b3b2fa22a50..3c89f1fec4b 100644
--- a/src/cloudflare/resources/dns/firewall/firewall.py
+++ b/src/cloudflare/resources/dns/firewall/firewall.py
@@ -30,9 +30,9 @@
from ...._wrappers import ResultWrapper
from ....types.dns import (
Firewall,
+ UpstreamIPsParam,
FirewallIPsItemParam,
AttackMitigationParam,
- UpstreamIPsItemsParam,
FirewallDeleteResponse,
firewall_edit_params,
firewall_list_params,
@@ -67,7 +67,7 @@ def create(
*,
account_id: str,
name: str,
- upstream_ips: List[UpstreamIPsItemsParam],
+ upstream_ips: List[UpstreamIPsParam],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
deprecate_any_requests: bool | NotGiven = NOT_GIVEN,
ecs_fallback: bool | NotGiven = NOT_GIVEN,
@@ -255,7 +255,7 @@ def edit(
maximum_cache_ttl: float,
minimum_cache_ttl: float,
name: str,
- upstream_ips: List[UpstreamIPsItemsParam],
+ upstream_ips: List[UpstreamIPsParam],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
negative_cache_ttl: Optional[float] | NotGiven = NOT_GIVEN,
ratelimit: Optional[float] | NotGiven = NOT_GIVEN,
@@ -398,7 +398,7 @@ async def create(
*,
account_id: str,
name: str,
- upstream_ips: List[UpstreamIPsItemsParam],
+ upstream_ips: List[UpstreamIPsParam],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
deprecate_any_requests: bool | NotGiven = NOT_GIVEN,
ecs_fallback: bool | NotGiven = NOT_GIVEN,
@@ -586,7 +586,7 @@ async def edit(
maximum_cache_ttl: float,
minimum_cache_ttl: float,
name: str,
- upstream_ips: List[UpstreamIPsItemsParam],
+ upstream_ips: List[UpstreamIPsParam],
attack_mitigation: Optional[AttackMitigationParam] | NotGiven = NOT_GIVEN,
negative_cache_ttl: Optional[float] | NotGiven = NOT_GIVEN,
ratelimit: Optional[float] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/dnssec.py b/src/cloudflare/resources/dnssec.py
index de852178cb0..5cb64138375 100644
--- a/src/cloudflare/resources/dnssec.py
+++ b/src/cloudflare/resources/dnssec.py
@@ -7,7 +7,7 @@
import httpx
-from ..types import DNSSEC, dnssec_edit_params, dnssec_delete_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,
@@ -25,7 +25,6 @@
from .._base_client import (
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
__all__ = ["DNSSECResource", "AsyncDNSSECResource"]
@@ -50,7 +49,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> DNSSECDeleteResponse:
"""
Delete DNSSEC.
@@ -68,7 +67,7 @@ def delete(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ DNSSECDeleteResponse,
self._delete(
f"/zones/{zone_id}/dnssec",
body=maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
@@ -80,7 +79,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[DNSSECDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -214,7 +213,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> DNSSECDeleteResponse:
"""
Delete DNSSEC.
@@ -232,7 +231,7 @@ async def delete(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ DNSSECDeleteResponse,
await self._delete(
f"/zones/{zone_id}/dnssec",
body=await async_maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
@@ -244,7 +243,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[DNSSECDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/intel/attack_surface_report/issues.py b/src/cloudflare/resources/intel/attack_surface_report/issues.py
index 55cd6a8b592..fb4b60d7f66 100644
--- a/src/cloudflare/resources/intel/attack_surface_report/issues.py
+++ b/src/cloudflare/resources/intel/attack_surface_report/issues.py
@@ -25,7 +25,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from ....types.intel.attack_surface_report import (
Product,
Subject,
@@ -35,6 +34,7 @@
IssueTypeResponse,
IssueClassResponse,
SeverityQueryParam,
+ IssueDismissResponse,
IssueSeverityResponse,
issue_list_params,
issue_type_params,
@@ -207,7 +207,7 @@ def dismiss(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> IssueDismissResponse:
"""
Archive Security Center Insight
@@ -227,7 +227,7 @@ def dismiss(
if not issue_id:
raise ValueError(f"Expected a non-empty value for `issue_id` but received {issue_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ IssueDismissResponse,
self._put(
f"/accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss",
body=maybe_transform({"dismiss": dismiss}, issue_dismiss_params.IssueDismissParams),
@@ -239,7 +239,7 @@ def dismiss(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[IssueDismissResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -538,7 +538,7 @@ async def dismiss(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> IssueDismissResponse:
"""
Archive Security Center Insight
@@ -558,7 +558,7 @@ async def dismiss(
if not issue_id:
raise ValueError(f"Expected a non-empty value for `issue_id` but received {issue_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ IssueDismissResponse,
await self._put(
f"/accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss",
body=await async_maybe_transform({"dismiss": dismiss}, issue_dismiss_params.IssueDismissParams),
@@ -570,7 +570,7 @@ async def dismiss(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[IssueDismissResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/intel/miscategorizations.py b/src/cloudflare/resources/intel/miscategorizations.py
index 1ff73f92159..34b12eb83da 100644
--- a/src/cloudflare/resources/intel/miscategorizations.py
+++ b/src/cloudflare/resources/intel/miscategorizations.py
@@ -21,11 +21,10 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.intel import miscategorization_create_params
+from ...types.intel import MiscategorizationCreateResponse, miscategorization_create_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
__all__ = ["Miscategorizations", "AsyncMiscategorizations"]
@@ -56,7 +55,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> MiscategorizationCreateResponse:
"""
Create Miscategorization
@@ -88,7 +87,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ MiscategorizationCreateResponse,
self._post(
f"/accounts/{account_id}/intel/miscategorization",
body=maybe_transform(
@@ -111,7 +110,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[MiscategorizationCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -143,7 +142,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> MiscategorizationCreateResponse:
"""
Create Miscategorization
@@ -175,7 +174,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ MiscategorizationCreateResponse,
await self._post(
f"/accounts/{account_id}/intel/miscategorization",
body=await async_maybe_transform(
@@ -198,7 +197,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[MiscategorizationCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/kv/namespaces/bulk.py b/src/cloudflare/resources/kv/namespaces/bulk.py
index a526205645f..87a61239976 100644
--- a/src/cloudflare/resources/kv/namespaces/bulk.py
+++ b/src/cloudflare/resources/kv/namespaces/bulk.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-from ....types.kv.namespaces import bulk_delete_params, bulk_update_params
+from ....types.kv.namespaces import BulkDeleteResponse, BulkUpdateResponse, bulk_delete_params, bulk_update_params
__all__ = ["Bulk", "AsyncBulk"]
@@ -50,7 +49,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> BulkUpdateResponse:
"""Write multiple keys and values at once.
Body should be an array of up to 10,000
@@ -78,7 +77,7 @@ def update(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ BulkUpdateResponse,
self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk",
body=maybe_transform(body, bulk_update_params.BulkUpdateParams),
@@ -90,7 +89,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BulkUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -107,7 +106,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> BulkDeleteResponse:
"""Remove multiple KV pairs from the namespace.
Body should be an array of up to
@@ -131,7 +130,7 @@ def delete(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ BulkDeleteResponse,
self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk",
body=maybe_transform(body, bulk_delete_params.BulkDeleteParams),
@@ -143,7 +142,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BulkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -170,7 +169,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> BulkUpdateResponse:
"""Write multiple keys and values at once.
Body should be an array of up to 10,000
@@ -198,7 +197,7 @@ async def update(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ BulkUpdateResponse,
await self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk",
body=await async_maybe_transform(body, bulk_update_params.BulkUpdateParams),
@@ -210,7 +209,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BulkUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -227,7 +226,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> BulkDeleteResponse:
"""Remove multiple KV pairs from the namespace.
Body should be an array of up to
@@ -251,7 +250,7 @@ async def delete(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ BulkDeleteResponse,
await self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk",
body=await async_maybe_transform(body, bulk_delete_params.BulkDeleteParams),
@@ -263,7 +262,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BulkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/kv/namespaces/namespaces.py b/src/cloudflare/resources/kv/namespaces/namespaces.py
index ef005563556..a0a578c5d70 100644
--- a/src/cloudflare/resources/kv/namespaces/namespaces.py
+++ b/src/cloudflare/resources/kv/namespaces/namespaces.py
@@ -47,6 +47,8 @@
from ...._compat import cached_property
from ....types.kv import (
Namespace,
+ NamespaceDeleteResponse,
+ NamespaceUpdateResponse,
namespace_list_params,
namespace_create_params,
namespace_delete_params,
@@ -65,7 +67,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
__all__ = ["Namespaces", "AsyncNamespaces"]
@@ -153,7 +154,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> NamespaceUpdateResponse:
"""
Modifies a namespace's title.
@@ -177,7 +178,7 @@ def update(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ NamespaceUpdateResponse,
self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
body=maybe_transform({"title": title}, namespace_update_params.NamespaceUpdateParams),
@@ -189,7 +190,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[NamespaceUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -266,7 +267,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> NamespaceDeleteResponse:
"""
Deletes the namespace corresponding to the given ID.
@@ -288,7 +289,7 @@ def delete(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ NamespaceDeleteResponse,
self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
body=maybe_transform(body, namespace_delete_params.NamespaceDeleteParams),
@@ -300,7 +301,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[NamespaceDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -389,7 +390,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> NamespaceUpdateResponse:
"""
Modifies a namespace's title.
@@ -413,7 +414,7 @@ async def update(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ NamespaceUpdateResponse,
await self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
body=await async_maybe_transform({"title": title}, namespace_update_params.NamespaceUpdateParams),
@@ -425,7 +426,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[NamespaceUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -502,7 +503,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> NamespaceDeleteResponse:
"""
Deletes the namespace corresponding to the given ID.
@@ -524,7 +525,7 @@ async def delete(
if not namespace_id:
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ NamespaceDeleteResponse,
await self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}",
body=await async_maybe_transform(body, namespace_delete_params.NamespaceDeleteParams),
@@ -536,7 +537,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[NamespaceDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/kv/namespaces/values.py b/src/cloudflare/resources/kv/namespaces/values.py
index f6fa4b62326..d2ca7c619c4 100644
--- a/src/cloudflare/resources/kv/namespaces/values.py
+++ b/src/cloudflare/resources/kv/namespaces/values.py
@@ -23,8 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-from ....types.kv.namespaces import value_delete_params, value_update_params
+from ....types.kv.namespaces import (
+ ValueDeleteResponse,
+ ValueUpdateResponse,
+ value_delete_params,
+ value_update_params,
+)
__all__ = ["Values", "AsyncValues"]
@@ -52,7 +56,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ValueUpdateResponse:
"""Write a value identified by a key.
Use URL-encoding to use special characters
@@ -89,7 +93,7 @@ def update(
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ ValueUpdateResponse,
self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
body=maybe_transform(
@@ -107,7 +111,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[ValueUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -125,7 +129,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ValueDeleteResponse:
"""Remove a KV pair from the namespace.
Use URL-encoding to use special characters
@@ -154,7 +158,7 @@ def delete(
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ ValueDeleteResponse,
self._delete(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
body=maybe_transform(body, value_delete_params.ValueDeleteParams),
@@ -166,7 +170,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[ValueDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -246,7 +250,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ValueUpdateResponse:
"""Write a value identified by a key.
Use URL-encoding to use special characters
@@ -283,7 +287,7 @@ async def update(
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ ValueUpdateResponse,
await self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
body=await async_maybe_transform(
@@ -301,7 +305,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[ValueUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -319,7 +323,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ValueDeleteResponse:
"""Remove a KV pair from the namespace.
Use URL-encoding to use special characters
@@ -348,7 +352,7 @@ async def delete(
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ 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),
@@ -360,7 +364,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[ValueDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py
index 9c4f01c48c6..a2ff1ad7464 100644
--- a/src/cloudflare/resources/load_balancers/pools/pools.py
+++ b/src/cloudflare/resources/load_balancers/pools/pools.py
@@ -49,6 +49,7 @@
make_request_options,
)
from ....types.load_balancers import (
+ Pool,
PoolDeleteResponse,
pool_edit_params,
pool_list_params,
@@ -56,7 +57,6 @@
pool_delete_params,
pool_update_params,
)
-from ....types.user.load_balancers import Pool
__all__ = ["Pools", "AsyncPools"]
diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py
index ad3355d04f2..5724b344c21 100644
--- a/src/cloudflare/resources/logpush/jobs.py
+++ b/src/cloudflare/resources/logpush/jobs.py
@@ -26,8 +26,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from ...types.logpush import job_create_params, job_delete_params, job_update_params
+from ...types.logpush import JobDeleteResponse, job_create_params, job_delete_params, job_update_params
from ...types.logpush.datasets import Job, OutputOptionsParam
__all__ = ["Jobs", "AsyncJobs"]
@@ -306,7 +305,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[JobDeleteResponse]:
"""
Deletes a Logpush job.
@@ -341,7 +340,7 @@ def delete(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[JobDeleteResponse],
self._delete(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
body=maybe_transform(body, job_delete_params.JobDeleteParams),
@@ -353,7 +352,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[JobDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -690,7 +689,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[JobDeleteResponse]:
"""
Deletes a Logpush job.
@@ -725,7 +724,7 @@ async def delete(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ 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),
@@ -737,7 +736,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[JobDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py
index 9cbb4fe4987..86da5f0ff2c 100644
--- a/src/cloudflare/resources/logs/control/cmb/config.py
+++ b/src/cloudflare/resources/logs/control/cmb/config.py
@@ -23,8 +23,7 @@
from ....._base_client import (
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from .....types.logs.control.cmb import CmbConfig, config_create_params, config_delete_params
+from .....types.logs.control.cmb import CmbConfig, ConfigDeleteResponse, config_create_params, config_delete_params
__all__ = ["Config", "AsyncConfig"]
@@ -92,7 +91,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[ConfigDeleteResponse]:
"""
Deletes CMB config.
@@ -110,7 +109,7 @@ def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[ConfigDeleteResponse],
self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
body=maybe_transform(body, config_delete_params.ConfigDeleteParams),
@@ -122,7 +121,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -230,7 +229,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[ConfigDeleteResponse]:
"""
Deletes CMB config.
@@ -248,7 +247,7 @@ async def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[ConfigDeleteResponse],
await self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
body=await async_maybe_transform(body, config_delete_params.ConfigDeleteParams),
@@ -260,7 +259,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/logs/rayid.py b/src/cloudflare/resources/logs/rayid.py
index e8673b92f36..7b21e5fb1bc 100644
--- a/src/cloudflare/resources/logs/rayid.py
+++ b/src/cloudflare/resources/logs/rayid.py
@@ -20,11 +20,10 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ...types.logs import rayid_get_params
+from ...types.logs import RayIDGetResponse, rayid_get_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
__all__ = ["RayID", "AsyncRayID"]
@@ -51,7 +50,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> RayIDGetResponse:
"""The `/rayids` api route allows lookups by specific rayid.
The rayids route will
@@ -93,7 +92,7 @@ def get(
if not ray_identifier:
raise ValueError(f"Expected a non-empty value for `ray_identifier` but received {ray_identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ RayIDGetResponse,
self._get(
f"/zones/{zone_identifier}/logs/rayids/{ray_identifier}",
options=make_request_options(
@@ -109,9 +108,7 @@ def get(
rayid_get_params.RayIDGetParams,
),
),
- cast_to=cast(
- Any, UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
- ), # Union types cannot be passed in as arguments in the type system
+ cast_to=cast(Any, RayIDGetResponse), # Union types cannot be passed in as arguments in the type system
),
)
@@ -138,7 +135,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> RayIDGetResponse:
"""The `/rayids` api route allows lookups by specific rayid.
The rayids route will
@@ -180,7 +177,7 @@ async def get(
if not ray_identifier:
raise ValueError(f"Expected a non-empty value for `ray_identifier` but received {ray_identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ RayIDGetResponse,
await self._get(
f"/zones/{zone_identifier}/logs/rayids/{ray_identifier}",
options=make_request_options(
@@ -196,9 +193,7 @@ async def get(
rayid_get_params.RayIDGetParams,
),
),
- cast_to=cast(
- Any, UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
- ), # Union types cannot be passed in as arguments in the type system
+ cast_to=cast(Any, RayIDGetResponse), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/logs/received/received.py b/src/cloudflare/resources/logs/received/received.py
index 2289ede39b1..ffc41c0d3c6 100644
--- a/src/cloudflare/resources/logs/received/received.py
+++ b/src/cloudflare/resources/logs/received/received.py
@@ -28,11 +28,10 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ....types.logs import received_get_params
+from ....types.logs import ReceivedGetResponse, received_get_params
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
__all__ = ["Received", "AsyncReceived"]
@@ -66,7 +65,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ReceivedGetResponse:
"""The `/received` api route allows customers to retrieve their edge HTTP logs.
The
@@ -134,7 +133,7 @@ def get(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ ReceivedGetResponse,
self._get(
f"/zones/{zone_identifier}/logs/received",
options=make_request_options(
@@ -155,7 +154,7 @@ def get(
),
),
cast_to=cast(
- Any, UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+ Any, ReceivedGetResponse
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -190,7 +189,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> ReceivedGetResponse:
"""The `/received` api route allows customers to retrieve their edge HTTP logs.
The
@@ -258,7 +257,7 @@ async def get(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ ReceivedGetResponse,
await self._get(
f"/zones/{zone_identifier}/logs/received",
options=make_request_options(
@@ -279,7 +278,7 @@ async def get(
),
),
cast_to=cast(
- Any, UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+ Any, ReceivedGetResponse
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/pages/projects/deployments/history/logs.py b/src/cloudflare/resources/pages/projects/deployments/history/logs.py
index cad974ebd7c..16a9f3a2f75 100644
--- a/src/cloudflare/resources/pages/projects/deployments/history/logs.py
+++ b/src/cloudflare/resources/pages/projects/deployments/history/logs.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Optional, cast
+from typing import Any, cast
import httpx
@@ -19,7 +19,7 @@
from ......_base_client import (
make_request_options,
)
-from ......types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
+from ......types.pages.projects.deployments.history import LogGetResponse
__all__ = ["Logs", "AsyncLogs"]
@@ -45,7 +45,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> LogGetResponse:
"""
Fetch deployment logs for a project.
@@ -71,7 +71,7 @@ def get(
if not deployment_id:
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ LogGetResponse,
self._get(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/history/logs",
options=make_request_options(
@@ -82,7 +82,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[LogGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -109,7 +109,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> LogGetResponse:
"""
Fetch deployment logs for a project.
@@ -135,7 +135,7 @@ async def get(
if not deployment_id:
raise ValueError(f"Expected a non-empty value for `deployment_id` but received {deployment_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ LogGetResponse,
await self._get(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments/{deployment_id}/history/logs",
options=make_request_options(
@@ -146,7 +146,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[LogGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py
index 6c0f993945b..1bf8f0871c4 100644
--- a/src/cloudflare/resources/pages/projects/domains.py
+++ b/src/cloudflare/resources/pages/projects/domains.py
@@ -25,8 +25,14 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from ....types.pages.projects import domain_edit_params, domain_create_params, domain_delete_params
+from ....types.pages.projects import (
+ DomainGetResponse,
+ DomainEditResponse,
+ DomainCreateResponse,
+ domain_edit_params,
+ domain_create_params,
+ domain_delete_params,
+)
__all__ = ["Domains", "AsyncDomains"]
@@ -52,7 +58,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainCreateResponse]:
"""
Add a new domain for the Pages project.
@@ -74,7 +80,7 @@ def create(
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainCreateResponse],
self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/domains",
body=maybe_transform(body, domain_create_params.DomainCreateParams),
@@ -86,7 +92,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -192,7 +198,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainEditResponse]:
"""
Retry the validation status of a single domain.
@@ -218,7 +224,7 @@ def edit(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainEditResponse],
self._patch(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
body=maybe_transform(body, domain_edit_params.DomainEditParams),
@@ -230,7 +236,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -247,7 +253,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainGetResponse]:
"""
Fetch a single domain.
@@ -273,7 +279,7 @@ def get(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainGetResponse],
self._get(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
options=make_request_options(
@@ -284,7 +290,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -311,7 +317,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainCreateResponse]:
"""
Add a new domain for the Pages project.
@@ -333,7 +339,7 @@ async def create(
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainCreateResponse],
await self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/domains",
body=await async_maybe_transform(body, domain_create_params.DomainCreateParams),
@@ -345,7 +351,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -451,7 +457,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainEditResponse]:
"""
Retry the validation status of a single domain.
@@ -477,7 +483,7 @@ async def edit(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ 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),
@@ -489,7 +495,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -506,7 +512,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainGetResponse]:
"""
Fetch a single domain.
@@ -532,7 +538,7 @@ async def get(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainGetResponse],
await self._get(
f"/accounts/{account_id}/pages/projects/{project_name}/domains/{domain_name}",
options=make_request_options(
@@ -543,7 +549,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py
index eac82c21d31..4f630d6b984 100644
--- a/src/cloudflare/resources/pages/projects/projects.py
+++ b/src/cloudflare/resources/pages/projects/projects.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Type, Optional, cast
+from typing import Any, Type, cast
import httpx
@@ -41,6 +41,8 @@
Project,
Deployment,
DeploymentParam,
+ ProjectEditResponse,
+ ProjectCreateResponse,
project_edit_params,
project_create_params,
project_delete_params,
@@ -49,7 +51,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
from .deployments.deployments import Deployments, AsyncDeployments
__all__ = ["Projects", "AsyncProjects"]
@@ -88,7 +89,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ProjectCreateResponse:
"""
Create a new project.
@@ -114,7 +115,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ProjectCreateResponse,
self._post(
f"/accounts/{account_id}/pages/projects",
body=maybe_transform(
@@ -136,7 +137,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ProjectCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -231,7 +232,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ProjectEditResponse:
"""Set new attributes for an existing project.
Modify environment variables. To
@@ -255,7 +256,7 @@ def edit(
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ProjectEditResponse,
self._patch(
f"/accounts/{account_id}/pages/projects/{project_name}",
body=maybe_transform(body, project_edit_params.ProjectEditParams),
@@ -267,7 +268,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ProjectEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -390,7 +391,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ProjectCreateResponse:
"""
Create a new project.
@@ -416,7 +417,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ProjectCreateResponse,
await self._post(
f"/accounts/{account_id}/pages/projects",
body=await async_maybe_transform(
@@ -438,7 +439,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ProjectCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -533,7 +534,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ProjectEditResponse:
"""Set new attributes for an existing project.
Modify environment variables. To
@@ -557,7 +558,7 @@ async def edit(
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ProjectEditResponse,
await self._patch(
f"/accounts/{account_id}/pages/projects/{project_name}",
body=await async_maybe_transform(body, project_edit_params.ProjectEditParams),
@@ -569,7 +570,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ProjectEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py
index c21839dd263..e860164b69c 100644
--- a/src/cloudflare/resources/queues/consumers.py
+++ b/src/cloudflare/resources/queues/consumers.py
@@ -26,12 +26,12 @@
from ...types.queues import (
ConsumerGetResponse,
ConsumerCreateResponse,
+ ConsumerDeleteResponse,
ConsumerUpdateResponse,
consumer_create_params,
consumer_delete_params,
consumer_update_params,
)
-from ...types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
__all__ = ["Consumers", "AsyncConsumers"]
@@ -155,7 +155,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ConsumerDeleteResponse]:
"""
Deletes the consumer for a queue.
@@ -181,7 +181,7 @@ def delete(
if not consumer_id:
raise ValueError(f"Expected a non-empty value for `consumer_id` but received {consumer_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[ConsumerDeleteResponse],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}",
body=maybe_transform(body, consumer_delete_params.ConsumerDeleteParams),
@@ -193,7 +193,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ConsumerDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -362,7 +362,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[ConsumerDeleteResponse]:
"""
Deletes the consumer for a queue.
@@ -388,7 +388,7 @@ async def delete(
if not consumer_id:
raise ValueError(f"Expected a non-empty value for `consumer_id` but received {consumer_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ 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),
@@ -400,7 +400,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[ConsumerDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py
index 96ca383760f..4cc9fd64ac5 100644
--- a/src/cloudflare/resources/queues/queues.py
+++ b/src/cloudflare/resources/queues/queues.py
@@ -10,6 +10,7 @@
QueueGetResponse,
QueueListResponse,
QueueCreateResponse,
+ QueueDeleteResponse,
QueueUpdateResponse,
queue_create_params,
queue_delete_params,
@@ -48,7 +49,6 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
__all__ = ["Queues", "AsyncQueues"]
@@ -208,7 +208,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[QueueDeleteResponse]:
"""
Deletes a queue.
@@ -230,7 +230,7 @@ def delete(
if not queue_id:
raise ValueError(f"Expected a non-empty value for `queue_id` but received {queue_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[QueueDeleteResponse],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
body=maybe_transform(body, queue_delete_params.QueueDeleteParams),
@@ -242,7 +242,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[QueueDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -447,7 +447,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[QueueDeleteResponse]:
"""
Deletes a queue.
@@ -469,7 +469,7 @@ async def delete(
if not queue_id:
raise ValueError(f"Expected a non-empty value for `queue_id` but received {queue_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[QueueDeleteResponse],
await self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
body=await async_maybe_transform(body, queue_delete_params.QueueDeleteParams),
@@ -481,7 +481,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[QueueDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/registrar/domains.py b/src/cloudflare/resources/registrar/domains.py
index 40d5252b132..dc79f0a8b88 100644
--- a/src/cloudflare/resources/registrar/domains.py
+++ b/src/cloudflare/resources/registrar/domains.py
@@ -25,8 +25,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from ...types.registrar import Domain, domain_update_params
+from ...types.registrar import Domain, DomainGetResponse, DomainUpdateResponse, domain_update_params
__all__ = ["Domains", "AsyncDomains"]
@@ -54,7 +53,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainUpdateResponse]:
"""
Update individual domain.
@@ -83,7 +82,7 @@ def update(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainUpdateResponse],
self._put(
f"/accounts/{account_id}/registrar/domains/{domain_name}",
body=maybe_transform(
@@ -102,7 +101,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -154,7 +153,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainGetResponse]:
"""
Show individual domain.
@@ -176,7 +175,7 @@ def get(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainGetResponse],
self._get(
f"/accounts/{account_id}/registrar/domains/{domain_name}",
options=make_request_options(
@@ -187,7 +186,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -216,7 +215,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainUpdateResponse]:
"""
Update individual domain.
@@ -245,7 +244,7 @@ async def update(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainUpdateResponse],
await self._put(
f"/accounts/{account_id}/registrar/domains/{domain_name}",
body=await async_maybe_transform(
@@ -264,7 +263,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -316,7 +315,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> Optional[DomainGetResponse]:
"""
Show individual domain.
@@ -338,7 +337,7 @@ async def get(
if not domain_name:
raise ValueError(f"Expected a non-empty value for `domain_name` but received {domain_name!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ Optional[DomainGetResponse],
await self._get(
f"/accounts/{account_id}/registrar/domains/{domain_name}",
options=make_request_options(
@@ -349,7 +348,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[DomainGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py
index 3fb04274fa0..b0427590db5 100644
--- a/src/cloudflare/resources/snippets/snippets.py
+++ b/src/cloudflare/resources/snippets/snippets.py
@@ -14,7 +14,7 @@
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
-from ...types import Snippet, snippet_update_params
+from ...types import Snippet, SnippetDeleteResponse, snippet_update_params
from .content import (
Content,
AsyncContent,
@@ -42,7 +42,6 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
__all__ = ["Snippets", "AsyncSnippets"]
@@ -166,7 +165,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> SnippetDeleteResponse:
"""
Delete Snippet
@@ -188,7 +187,7 @@ def delete(
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ SnippetDeleteResponse,
self._delete(
f"/zones/{zone_identifier}/snippets/{snippet_name}",
options=make_request_options(
@@ -199,7 +198,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[SnippetDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -368,7 +367,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> SnippetDeleteResponse:
"""
Delete Snippet
@@ -390,7 +389,7 @@ async def delete(
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ SnippetDeleteResponse,
await self._delete(
f"/zones/{zone_identifier}/snippets/{snippet_name}",
options=make_request_options(
@@ -401,7 +400,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[SnippetDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
index 38d0c9452c5..3297aac4dd4 100644
--- a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
+++ b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, List, Union, Iterable, cast
+from typing import Any, List, Union, Iterable, Optional, cast
from datetime import datetime
from typing_extensions import Literal
@@ -25,9 +25,8 @@
from ....._base_client import (
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from .....types.spectrum.analytics import DimensionItem
-from .....types.spectrum.analytics.events import bytime_get_params
+from .....types.spectrum.analytics.events import BytimeGetResponse, bytime_get_params
__all__ = ["Bytimes", "AsyncBytimes"]
@@ -64,7 +63,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> Optional[BytimeGetResponse]:
"""
Retrieves a list of aggregate metrics grouped by time interval.
@@ -132,7 +131,7 @@ def get(
if not zone:
raise ValueError(f"Expected a non-empty value for `zone` but received {zone!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ Optional[BytimeGetResponse],
self._get(
f"/zones/{zone}/spectrum/analytics/events/bytime",
options=make_request_options(
@@ -155,7 +154,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BytimeGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -193,7 +192,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> Optional[BytimeGetResponse]:
"""
Retrieves a list of aggregate metrics grouped by time interval.
@@ -261,7 +260,7 @@ async def get(
if not zone:
raise ValueError(f"Expected a non-empty value for `zone` but received {zone!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ Optional[BytimeGetResponse],
await self._get(
f"/zones/{zone}/spectrum/analytics/events/bytime",
options=make_request_options(
@@ -284,7 +283,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[BytimeGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/spectrum/analytics/events/summaries.py b/src/cloudflare/resources/spectrum/analytics/events/summaries.py
index 22d2e4a0f5e..12b862c5633 100644
--- a/src/cloudflare/resources/spectrum/analytics/events/summaries.py
+++ b/src/cloudflare/resources/spectrum/analytics/events/summaries.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, List, Union, Iterable, cast
+from typing import Any, List, Union, Iterable, Optional, cast
from datetime import datetime
from typing_extensions import Literal
@@ -25,9 +25,8 @@
from ....._base_client import (
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from .....types.spectrum.analytics import DimensionItem
-from .....types.spectrum.analytics.events import summary_get_params
+from .....types.spectrum.analytics.events import SummaryGetResponse, summary_get_params
__all__ = ["Summaries", "AsyncSummaries"]
@@ -62,7 +61,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> Optional[SummaryGetResponse]:
"""
Retrieves a list of summarised aggregate metrics over a given time period.
@@ -128,7 +127,7 @@ def get(
if not zone:
raise ValueError(f"Expected a non-empty value for `zone` but received {zone!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ Optional[SummaryGetResponse],
self._get(
f"/zones/{zone}/spectrum/analytics/events/summary",
options=make_request_options(
@@ -150,7 +149,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[SummaryGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -186,7 +185,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> Optional[SummaryGetResponse]:
"""
Retrieves a list of summarised aggregate metrics over a given time period.
@@ -252,7 +251,7 @@ async def get(
if not zone:
raise ValueError(f"Expected a non-empty value for `zone` but received {zone!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ Optional[SummaryGetResponse],
await self._get(
f"/zones/{zone}/spectrum/analytics/events/summary",
options=make_request_options(
@@ -274,7 +273,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[SummaryGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/audio_tracks.py b/src/cloudflare/resources/stream/audio_tracks.py
index b1012dd8d4f..9f951057472 100644
--- a/src/cloudflare/resources/stream/audio_tracks.py
+++ b/src/cloudflare/resources/stream/audio_tracks.py
@@ -23,8 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
-from ...types.stream import Audio, AudioTrackGetResponse, audio_track_copy_params, audio_track_edit_params
+from ...types.stream import (
+ Audio,
+ AudioTrackGetResponse,
+ AudioTrackDeleteResponse,
+ audio_track_copy_params,
+ audio_track_edit_params,
+)
__all__ = ["AudioTracks", "AsyncAudioTracks"]
@@ -50,7 +55,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> AudioTrackDeleteResponse:
"""Deletes additional audio tracks on a video.
Deleting a default audio track is
@@ -78,7 +83,7 @@ def delete(
if not audio_identifier:
raise ValueError(f"Expected a non-empty value for `audio_identifier` but received {audio_identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ AudioTrackDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}",
options=make_request_options(
@@ -89,7 +94,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[AudioTrackDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -288,7 +293,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> AudioTrackDeleteResponse:
"""Deletes additional audio tracks on a video.
Deleting a default audio track is
@@ -316,7 +321,7 @@ async def delete(
if not audio_identifier:
raise ValueError(f"Expected a non-empty value for `audio_identifier` but received {audio_identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ AudioTrackDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/{identifier}/audio/{audio_identifier}",
options=make_request_options(
@@ -327,7 +332,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[AudioTrackDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py
index be53de627a3..b08964ca105 100644
--- a/src/cloudflare/resources/stream/downloads.py
+++ b/src/cloudflare/resources/stream/downloads.py
@@ -23,11 +23,8 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
-from ...types.stream import download_create_params
+from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ...types.stream import DownloadDeleteResponse, download_create_params
__all__ = ["Downloads", "AsyncDownloads"]
@@ -103,7 +100,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> DownloadDeleteResponse:
"""
Delete the downloads for a video.
@@ -125,7 +122,7 @@ def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ DownloadDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/{identifier}/downloads",
options=make_request_options(
@@ -136,7 +133,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[DownloadDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -262,7 +259,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> DownloadDeleteResponse:
"""
Delete the downloads for a video.
@@ -284,7 +281,7 @@ async def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ DownloadDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/{identifier}/downloads",
options=make_request_options(
@@ -295,7 +292,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[DownloadDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py
index 789fce22a64..158827f4bd2 100644
--- a/src/cloudflare/resources/stream/keys.py
+++ b/src/cloudflare/resources/stream/keys.py
@@ -23,8 +23,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
-from ...types.stream import KeyGetResponse, keys, key_create_params, key_delete_params
+from ...types.stream import KeyGetResponse, KeyDeleteResponse, keys, key_create_params, key_delete_params
__all__ = ["Keys", "AsyncKeys"]
@@ -94,7 +93,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> KeyDeleteResponse:
"""
Deletes signing keys and revokes all signed URLs generated with the key.
@@ -116,7 +115,7 @@ def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ KeyDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/keys/{identifier}",
body=maybe_transform(body, key_delete_params.KeyDeleteParams),
@@ -128,7 +127,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[KeyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -238,7 +237,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> KeyDeleteResponse:
"""
Deletes signing keys and revokes all signed URLs generated with the key.
@@ -260,7 +259,7 @@ async def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ KeyDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/keys/{identifier}",
body=await async_maybe_transform(body, key_delete_params.KeyDeleteParams),
@@ -272,7 +271,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[KeyDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py
index 55a2b2a0c54..1ce6519a646 100644
--- a/src/cloudflare/resources/stream/watermarks.py
+++ b/src/cloudflare/resources/stream/watermarks.py
@@ -25,11 +25,8 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
-from ...types.stream import Watermaks, watermark_create_params, watermark_delete_params
+from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ...types.stream import Watermaks, WatermarkDeleteResponse, watermark_create_params, watermark_delete_params
__all__ = ["Watermarks", "AsyncWatermarks"]
@@ -174,7 +171,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> WatermarkDeleteResponse:
"""
Deletes a watermark profile.
@@ -196,7 +193,7 @@ def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ WatermarkDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
body=maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
@@ -208,7 +205,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[WatermarkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -403,7 +400,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> WatermarkDeleteResponse:
"""
Deletes a watermark profile.
@@ -425,7 +422,7 @@ async def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ WatermarkDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
body=await async_maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
@@ -437,7 +434,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[WatermarkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py
index 11ee5657f9f..b2307157fd2 100644
--- a/src/cloudflare/resources/stream/webhooks.py
+++ b/src/cloudflare/resources/stream/webhooks.py
@@ -23,11 +23,8 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
-from ...types.stream import webhook_delete_params, webhook_update_params
+from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ...types.stream import WebhookDeleteResponse, webhook_delete_params, webhook_update_params
__all__ = ["Webhooks", "AsyncWebhooks"]
@@ -100,7 +97,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> WebhookDeleteResponse:
"""
Deletes a webhook.
@@ -118,7 +115,7 @@ def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ WebhookDeleteResponse,
self._delete(
f"/accounts/{account_id}/stream/webhook",
body=maybe_transform(body, webhook_delete_params.WebhookDeleteParams),
@@ -130,7 +127,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[WebhookDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -250,7 +247,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0:
+ ) -> WebhookDeleteResponse:
"""
Deletes a webhook.
@@ -268,7 +265,7 @@ async def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
+ WebhookDeleteResponse,
await self._delete(
f"/accounts/{account_id}/stream/webhook",
body=await async_maybe_transform(body, webhook_delete_params.WebhookDeleteParams),
@@ -280,7 +277,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0]
+ Any, ResultWrapper[WebhookDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/load_balancers/pools.py b/src/cloudflare/resources/user/load_balancers/pools.py
index 0df03ddaf73..58b1f964306 100644
--- a/src/cloudflare/resources/user/load_balancers/pools.py
+++ b/src/cloudflare/resources/user/load_balancers/pools.py
@@ -33,8 +33,8 @@
AsyncPaginator,
make_request_options,
)
+from ....types.load_balancers import Pool
from ....types.user.load_balancers import (
- Pool,
PoolDeleteResponse,
PoolHealthResponse,
PoolPreviewResponse,
diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py
index fa49f5230ec..cca02fe40b7 100644
--- a/src/cloudflare/resources/warp_connector.py
+++ b/src/cloudflare/resources/warp_connector.py
@@ -8,6 +8,7 @@
import httpx
from ..types import (
+ WARPConnector,
WARPConnectorTokenResponse,
warp_connector_edit_params,
warp_connector_list_params,
@@ -33,19 +34,18 @@
AsyncPaginator,
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
-__all__ = ["WARPConnector", "AsyncWARPConnector"]
+__all__ = ["WARPConnectorResource", "AsyncWARPConnectorResource"]
-class WARPConnector(SyncAPIResource):
+class WARPConnectorResource(SyncAPIResource):
@cached_property
- def with_raw_response(self) -> WARPConnectorWithRawResponse:
- return WARPConnectorWithRawResponse(self)
+ def with_raw_response(self) -> WARPConnectorResourceWithRawResponse:
+ return WARPConnectorResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> WARPConnectorWithStreamingResponse:
- return WARPConnectorWithStreamingResponse(self)
+ def with_streaming_response(self) -> WARPConnectorResourceWithStreamingResponse:
+ return WARPConnectorResourceWithStreamingResponse(self)
def create(
self,
@@ -58,7 +58,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Creates a new Warp Connector Tunnel in an account.
@@ -78,7 +78,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
self._post(
f"/accounts/{account_id}/warp_connector",
body=maybe_transform({"name": name}, warp_connector_create_params.WARPConnectorCreateParams),
@@ -90,7 +90,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -115,7 +115,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]:
+ ) -> SyncV4PagePaginationArray[WARPConnector]:
"""
Lists and filters Warp Connector Tunnels in an account.
@@ -148,7 +148,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/warp_connector",
- page=SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
+ page=SyncV4PagePaginationArray[WARPConnector],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -170,9 +170,7 @@ def list(
warp_connector_list_params.WARPConnectorListParams,
),
),
- model=cast(
- Any, UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, WARPConnector), # Union types cannot be passed in as arguments in the type system
)
def delete(
@@ -187,7 +185,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Deletes a Warp Connector Tunnel from an account.
@@ -209,7 +207,7 @@ def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
self._delete(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=maybe_transform(body, warp_connector_delete_params.WARPConnectorDeleteParams),
@@ -221,7 +219,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -239,7 +237,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Updates an existing Warp Connector Tunnel.
@@ -266,7 +264,7 @@ def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
self._patch(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=maybe_transform(
@@ -284,7 +282,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -300,7 +298,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Fetches a single Warp Connector Tunnel.
@@ -322,7 +320,7 @@ def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
self._get(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
options=make_request_options(
@@ -333,7 +331,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -389,14 +387,14 @@ def token(
)
-class AsyncWARPConnector(AsyncAPIResource):
+class AsyncWARPConnectorResource(AsyncAPIResource):
@cached_property
- def with_raw_response(self) -> AsyncWARPConnectorWithRawResponse:
- return AsyncWARPConnectorWithRawResponse(self)
+ def with_raw_response(self) -> AsyncWARPConnectorResourceWithRawResponse:
+ return AsyncWARPConnectorResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncWARPConnectorWithStreamingResponse:
- return AsyncWARPConnectorWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncWARPConnectorResourceWithStreamingResponse:
+ return AsyncWARPConnectorResourceWithStreamingResponse(self)
async def create(
self,
@@ -409,7 +407,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Creates a new Warp Connector Tunnel in an account.
@@ -429,7 +427,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
await self._post(
f"/accounts/{account_id}/warp_connector",
body=await async_maybe_transform(
@@ -443,7 +441,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -468,10 +466,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- ]:
+ ) -> AsyncPaginator[WARPConnector, AsyncV4PagePaginationArray[WARPConnector]]:
"""
Lists and filters Warp Connector Tunnels in an account.
@@ -504,7 +499,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/warp_connector",
- page=AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
+ page=AsyncV4PagePaginationArray[WARPConnector],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -526,9 +521,7 @@ def list(
warp_connector_list_params.WARPConnectorListParams,
),
),
- model=cast(
- Any, UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, WARPConnector), # Union types cannot be passed in as arguments in the type system
)
async def delete(
@@ -543,7 +536,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Deletes a Warp Connector Tunnel from an account.
@@ -565,7 +558,7 @@ async def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
await self._delete(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=await async_maybe_transform(body, warp_connector_delete_params.WARPConnectorDeleteParams),
@@ -577,7 +570,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -595,7 +588,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Updates an existing Warp Connector Tunnel.
@@ -622,7 +615,7 @@ async def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
await self._patch(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=await async_maybe_transform(
@@ -640,7 +633,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -656,7 +649,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Fetches a single Warp Connector Tunnel.
@@ -678,7 +671,7 @@ async def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
await self._get(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
options=make_request_options(
@@ -689,7 +682,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -745,8 +738,8 @@ async def token(
)
-class WARPConnectorWithRawResponse:
- def __init__(self, warp_connector: WARPConnector) -> None:
+class WARPConnectorResourceWithRawResponse:
+ def __init__(self, warp_connector: WARPConnectorResource) -> None:
self._warp_connector = warp_connector
self.create = to_raw_response_wrapper(
@@ -769,8 +762,8 @@ def __init__(self, warp_connector: WARPConnector) -> None:
)
-class AsyncWARPConnectorWithRawResponse:
- def __init__(self, warp_connector: AsyncWARPConnector) -> None:
+class AsyncWARPConnectorResourceWithRawResponse:
+ def __init__(self, warp_connector: AsyncWARPConnectorResource) -> None:
self._warp_connector = warp_connector
self.create = async_to_raw_response_wrapper(
@@ -793,8 +786,8 @@ def __init__(self, warp_connector: AsyncWARPConnector) -> None:
)
-class WARPConnectorWithStreamingResponse:
- def __init__(self, warp_connector: WARPConnector) -> None:
+class WARPConnectorResourceWithStreamingResponse:
+ def __init__(self, warp_connector: WARPConnectorResource) -> None:
self._warp_connector = warp_connector
self.create = to_streamed_response_wrapper(
@@ -817,8 +810,8 @@ def __init__(self, warp_connector: WARPConnector) -> None:
)
-class AsyncWARPConnectorWithStreamingResponse:
- def __init__(self, warp_connector: AsyncWARPConnector) -> None:
+class AsyncWARPConnectorResourceWithStreamingResponse:
+ def __init__(self, warp_connector: AsyncWARPConnectorResource) -> None:
self._warp_connector = warp_connector
self.create = async_to_streamed_response_wrapper(
diff --git a/src/cloudflare/resources/workers/scripts/tail.py b/src/cloudflare/resources/workers/scripts/tail.py
index f02f47ddc04..0ed29531117 100644
--- a/src/cloudflare/resources/workers/scripts/tail.py
+++ b/src/cloudflare/resources/workers/scripts/tail.py
@@ -23,8 +23,13 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
-from ....types.workers.scripts import TailGetResponse, TailCreateResponse, tail_create_params, tail_delete_params
+from ....types.workers.scripts import (
+ TailGetResponse,
+ TailCreateResponse,
+ TailDeleteResponse,
+ tail_create_params,
+ tail_delete_params,
+)
__all__ = ["Tail", "AsyncTail"]
@@ -97,7 +102,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> TailDeleteResponse:
"""
Deletes a tail from a Worker.
@@ -123,7 +128,7 @@ def delete(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ TailDeleteResponse,
self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
body=maybe_transform(body, tail_delete_params.TailDeleteParams),
@@ -135,7 +140,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[TailDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -253,7 +258,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846:
+ ) -> TailDeleteResponse:
"""
Deletes a tail from a Worker.
@@ -279,7 +284,7 @@ async def delete(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
+ TailDeleteResponse,
await self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
body=await async_maybe_transform(body, tail_delete_params.TailDeleteParams),
@@ -291,7 +296,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846]
+ Any, ResultWrapper[TailDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py
index 8e298a4d2ab..008b75654aa 100644
--- a/src/cloudflare/resources/zero_trust/access/applications/applications.py
+++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py
@@ -53,10 +53,10 @@
from .....types.zero_trust.access import (
AppIDParam,
Application,
- AllowedIDPsItem,
- CustomPagesItem,
+ AllowedIdpsh,
+ CustomPagesh,
CorsHeadersParam,
- SelfHostedDomainsItem,
+ SelfHostedDomainsh,
ApplicationDeleteResponse,
application_create_params,
application_update_params,
@@ -95,21 +95,21 @@ def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -203,10 +203,10 @@ def create(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN,
@@ -265,21 +265,21 @@ def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -376,21 +376,21 @@ def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -485,7 +485,7 @@ def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -532,7 +532,7 @@ def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -579,7 +579,7 @@ def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -679,21 +679,21 @@ def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -776,21 +776,21 @@ def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -887,10 +887,10 @@ def update(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN,
@@ -952,21 +952,21 @@ def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -1066,21 +1066,21 @@ def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -1178,7 +1178,7 @@ def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1228,7 +1228,7 @@ def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1278,7 +1278,7 @@ def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1384,21 +1384,21 @@ def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -1733,21 +1733,21 @@ async def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -1841,10 +1841,10 @@ async def create(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN,
@@ -1903,21 +1903,21 @@ async def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2014,21 +2014,21 @@ async def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2123,7 +2123,7 @@ async def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2170,7 +2170,7 @@ async def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2217,7 +2217,7 @@ async def create(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2317,21 +2317,21 @@ async def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2414,21 +2414,21 @@ async def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2525,10 +2525,10 @@ async def update(
*,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN,
@@ -2590,21 +2590,21 @@ async def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2704,21 +2704,21 @@ async def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
@@ -2816,7 +2816,7 @@ async def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2866,7 +2866,7 @@ async def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2916,7 +2916,7 @@ async def update(
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"],
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -3022,21 +3022,21 @@ async def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN,
- allowed_idps: List[AllowedIDPsItem] | NotGiven = NOT_GIVEN,
+ allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN,
app_launcher_visible: bool | NotGiven = NOT_GIVEN,
auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN,
cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN,
custom_deny_message: str | NotGiven = NOT_GIVEN,
custom_deny_url: str | NotGiven = NOT_GIVEN,
custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN,
- custom_pages: List[CustomPagesItem] | NotGiven = NOT_GIVEN,
+ custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN,
enable_binding_cookie: bool | NotGiven = NOT_GIVEN,
http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
- self_hosted_domains: List[SelfHostedDomainsItem] | NotGiven = NOT_GIVEN,
+ self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN,
service_auth_401_redirect: bool | NotGiven = NOT_GIVEN,
session_duration: str | NotGiven = NOT_GIVEN,
skip_interstitial: bool | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/zero_trust/access/keys.py b/src/cloudflare/resources/zero_trust/access/keys.py
index 4fee688af02..ae4837b10ac 100644
--- a/src/cloudflare/resources/zero_trust/access/keys.py
+++ b/src/cloudflare/resources/zero_trust/access/keys.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
-from ....types.zero_trust.access import key_update_params
+from ....types.zero_trust.access import KeyGetResponse, KeyRotateResponse, KeyUpdateResponse, key_update_params
__all__ = ["Keys", "AsyncKeys"]
@@ -49,7 +48,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyUpdateResponse:
"""
Updates the Access key rotation settings for an account.
@@ -69,7 +68,7 @@ def update(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyUpdateResponse,
self._put(
f"/accounts/{identifier}/access/keys",
body=maybe_transform(
@@ -83,7 +82,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -98,7 +97,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyGetResponse:
"""
Gets the Access key rotation settings for an account.
@@ -116,7 +115,7 @@ def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyGetResponse,
self._get(
f"/accounts/{identifier}/access/keys",
options=make_request_options(
@@ -127,7 +126,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -142,7 +141,7 @@ def rotate(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyRotateResponse:
"""
Perfoms a key rotation for an account.
@@ -160,7 +159,7 @@ def rotate(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyRotateResponse,
self._post(
f"/accounts/{identifier}/access/keys/rotate",
options=make_request_options(
@@ -171,7 +170,7 @@ def rotate(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyRotateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -197,7 +196,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyUpdateResponse:
"""
Updates the Access key rotation settings for an account.
@@ -217,7 +216,7 @@ async def update(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyUpdateResponse,
await self._put(
f"/accounts/{identifier}/access/keys",
body=await async_maybe_transform(
@@ -231,7 +230,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -246,7 +245,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyGetResponse:
"""
Gets the Access key rotation settings for an account.
@@ -264,7 +263,7 @@ async def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyGetResponse,
await self._get(
f"/accounts/{identifier}/access/keys",
options=make_request_options(
@@ -275,7 +274,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -290,7 +289,7 @@ async def rotate(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> KeyRotateResponse:
"""
Perfoms a key rotation for an account.
@@ -308,7 +307,7 @@ async def rotate(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ KeyRotateResponse,
await self._post(
f"/accounts/{identifier}/access/keys/rotate",
options=make_request_options(
@@ -319,7 +318,7 @@ async def rotate(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[KeyRotateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
index 6ef2d5530e9..86e8d2fec6a 100644
--- a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
+++ b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
@@ -23,11 +23,11 @@
from ....._base_client import (
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from .....types.zero_trust.dlp import ContextAwarenessParam
from .....types.zero_trust.dlp.profiles import (
CustomProfile,
CustomCreateResponse,
+ CustomDeleteResponse,
custom_create_params,
custom_delete_params,
custom_update_params,
@@ -175,7 +175,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> CustomDeleteResponse:
"""
Deletes a DLP custom profile.
@@ -197,7 +197,7 @@ def delete(
if not profile_id:
raise ValueError(f"Expected a non-empty value for `profile_id` but received {profile_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ CustomDeleteResponse,
self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
body=maybe_transform(body, custom_delete_params.CustomDeleteParams),
@@ -209,7 +209,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[CustomDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -398,7 +398,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f:
+ ) -> CustomDeleteResponse:
"""
Deletes a DLP custom profile.
@@ -420,7 +420,7 @@ async def delete(
if not profile_id:
raise ValueError(f"Expected a non-empty value for `profile_id` but received {profile_id!r}")
return cast(
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
+ CustomDeleteResponse,
await self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
body=await async_maybe_transform(body, custom_delete_params.CustomDeleteParams),
@@ -432,7 +432,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f]
+ Any, ResultWrapper[CustomDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/identity_providers.py b/src/cloudflare/resources/zero_trust/identity_providers.py
index b2c7b20c9c8..6565d6ecd5f 100644
--- a/src/cloudflare/resources/zero_trust/identity_providers.py
+++ b/src/cloudflare/resources/zero_trust/identity_providers.py
@@ -27,12 +27,12 @@
make_request_options,
)
from ...types.zero_trust import (
+ ScimConfigParam,
IdentityProvider,
+ IdentityProviderType,
GenericOAuthConfigParam,
IdentityProviderListResponse,
IdentityProviderDeleteResponse,
- UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param,
identity_provider_create_params,
identity_provider_update_params,
)
@@ -53,12 +53,12 @@ def with_streaming_response(self) -> IdentityProvidersWithStreamingResponse:
def create(
self,
*,
- config: identity_provider_create_params.AzureAdConfig,
+ config: identity_provider_create_params.AzureADConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -103,10 +103,10 @@ def create(
*,
config: identity_provider_create_params.AccessCentrifyConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -151,10 +151,10 @@ def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -199,10 +199,10 @@ def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -247,10 +247,10 @@ def create(
*,
config: identity_provider_create_params.AccessGoogleConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -295,10 +295,10 @@ def create(
*,
config: identity_provider_create_params.AccessGoogleAppsConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -343,10 +343,10 @@ def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -389,12 +389,12 @@ def create(
def create(
self,
*,
- config: identity_provider_create_params.AccessOidcConfig,
+ config: identity_provider_create_params.AccessOIDCConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -439,10 +439,10 @@ def create(
*,
config: identity_provider_create_params.AccessOktaConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -487,10 +487,10 @@ def create(
*,
config: identity_provider_create_params.AccessOneloginConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -535,10 +535,10 @@ def create(
*,
config: identity_provider_create_params.AccessPingoneConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -581,12 +581,12 @@ def create(
def create(
self,
*,
- config: identity_provider_create_params.AccessSamlConfig,
+ config: identity_provider_create_params.AccessSAMLConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -631,10 +631,10 @@ def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -679,10 +679,10 @@ def create(
*,
config: object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -740,22 +740,22 @@ def create(
def create(
self,
*,
- config: identity_provider_create_params.AzureAdConfig
+ config: identity_provider_create_params.AzureADConfig
| identity_provider_create_params.AccessCentrifyConfig
| GenericOAuthConfigParam
| identity_provider_create_params.AccessGoogleConfig
| identity_provider_create_params.AccessGoogleAppsConfig
- | identity_provider_create_params.AccessOidcConfig
+ | identity_provider_create_params.AccessOIDCConfig
| identity_provider_create_params.AccessOktaConfig
| identity_provider_create_params.AccessOneloginConfig
| identity_provider_create_params.AccessPingoneConfig
- | identity_provider_create_params.AccessSamlConfig
+ | identity_provider_create_params.AccessSAMLConfig
| object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -809,12 +809,12 @@ def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AzureAdConfig,
+ config: identity_provider_update_params.AzureADConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -862,10 +862,10 @@ def update(
*,
config: identity_provider_update_params.AccessCentrifyConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -913,10 +913,10 @@ def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -964,10 +964,10 @@ def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1015,10 +1015,10 @@ def update(
*,
config: identity_provider_update_params.AccessGoogleConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1066,10 +1066,10 @@ def update(
*,
config: identity_provider_update_params.AccessGoogleAppsConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1117,10 +1117,10 @@ def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1166,12 +1166,12 @@ def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AccessOidcConfig,
+ config: identity_provider_update_params.AccessOIDCConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1219,10 +1219,10 @@ def update(
*,
config: identity_provider_update_params.AccessOktaConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1270,10 +1270,10 @@ def update(
*,
config: identity_provider_update_params.AccessOneloginConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1321,10 +1321,10 @@ def update(
*,
config: identity_provider_update_params.AccessPingoneConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1370,12 +1370,12 @@ def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AccessSamlConfig,
+ config: identity_provider_update_params.AccessSAMLConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1423,10 +1423,10 @@ def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1474,10 +1474,10 @@ def update(
*,
config: object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1538,22 +1538,22 @@ def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AzureAdConfig
+ config: identity_provider_update_params.AzureADConfig
| identity_provider_update_params.AccessCentrifyConfig
| GenericOAuthConfigParam
| identity_provider_update_params.AccessGoogleConfig
| identity_provider_update_params.AccessGoogleAppsConfig
- | identity_provider_update_params.AccessOidcConfig
+ | identity_provider_update_params.AccessOIDCConfig
| identity_provider_update_params.AccessOktaConfig
| identity_provider_update_params.AccessOneloginConfig
| identity_provider_update_params.AccessPingoneConfig
- | identity_provider_update_params.AccessSamlConfig
+ | identity_provider_update_params.AccessSAMLConfig
| object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1797,12 +1797,12 @@ def with_streaming_response(self) -> AsyncIdentityProvidersWithStreamingResponse
async def create(
self,
*,
- config: identity_provider_create_params.AzureAdConfig,
+ config: identity_provider_create_params.AzureADConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1847,10 +1847,10 @@ async def create(
*,
config: identity_provider_create_params.AccessCentrifyConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1895,10 +1895,10 @@ async def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1943,10 +1943,10 @@ async def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -1991,10 +1991,10 @@ async def create(
*,
config: identity_provider_create_params.AccessGoogleConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2039,10 +2039,10 @@ async def create(
*,
config: identity_provider_create_params.AccessGoogleAppsConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2087,10 +2087,10 @@ async def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2133,12 +2133,12 @@ async def create(
async def create(
self,
*,
- config: identity_provider_create_params.AccessOidcConfig,
+ config: identity_provider_create_params.AccessOIDCConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2183,10 +2183,10 @@ async def create(
*,
config: identity_provider_create_params.AccessOktaConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2231,10 +2231,10 @@ async def create(
*,
config: identity_provider_create_params.AccessOneloginConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2279,10 +2279,10 @@ async def create(
*,
config: identity_provider_create_params.AccessPingoneConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2325,12 +2325,12 @@ async def create(
async def create(
self,
*,
- config: identity_provider_create_params.AccessSamlConfig,
+ config: identity_provider_create_params.AccessSAMLConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2375,10 +2375,10 @@ async def create(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2423,10 +2423,10 @@ async def create(
*,
config: object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2484,22 +2484,22 @@ async def create(
async def create(
self,
*,
- config: identity_provider_create_params.AzureAdConfig
+ config: identity_provider_create_params.AzureADConfig
| identity_provider_create_params.AccessCentrifyConfig
| GenericOAuthConfigParam
| identity_provider_create_params.AccessGoogleConfig
| identity_provider_create_params.AccessGoogleAppsConfig
- | identity_provider_create_params.AccessOidcConfig
+ | identity_provider_create_params.AccessOIDCConfig
| identity_provider_create_params.AccessOktaConfig
| identity_provider_create_params.AccessOneloginConfig
| identity_provider_create_params.AccessPingoneConfig
- | identity_provider_create_params.AccessSamlConfig
+ | identity_provider_create_params.AccessSAMLConfig
| object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2553,12 +2553,12 @@ async def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AzureAdConfig,
+ config: identity_provider_update_params.AzureADConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2606,10 +2606,10 @@ async def update(
*,
config: identity_provider_update_params.AccessCentrifyConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2657,10 +2657,10 @@ async def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2708,10 +2708,10 @@ async def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2759,10 +2759,10 @@ async def update(
*,
config: identity_provider_update_params.AccessGoogleConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2810,10 +2810,10 @@ async def update(
*,
config: identity_provider_update_params.AccessGoogleAppsConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2861,10 +2861,10 @@ async def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2910,12 +2910,12 @@ async def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AccessOidcConfig,
+ config: identity_provider_update_params.AccessOIDCConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -2963,10 +2963,10 @@ async def update(
*,
config: identity_provider_update_params.AccessOktaConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3014,10 +3014,10 @@ async def update(
*,
config: identity_provider_update_params.AccessOneloginConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3065,10 +3065,10 @@ async def update(
*,
config: identity_provider_update_params.AccessPingoneConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3114,12 +3114,12 @@ async def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AccessSamlConfig,
+ config: identity_provider_update_params.AccessSAMLConfig,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3167,10 +3167,10 @@ async def update(
*,
config: GenericOAuthConfigParam,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3218,10 +3218,10 @@ async def update(
*,
config: object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | 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,
@@ -3282,22 +3282,22 @@ async def update(
self,
uuid: str,
*,
- config: identity_provider_update_params.AzureAdConfig
+ config: identity_provider_update_params.AzureADConfig
| identity_provider_update_params.AccessCentrifyConfig
| GenericOAuthConfigParam
| identity_provider_update_params.AccessGoogleConfig
| identity_provider_update_params.AccessGoogleAppsConfig
- | identity_provider_update_params.AccessOidcConfig
+ | identity_provider_update_params.AccessOIDCConfig
| identity_provider_update_params.AccessOktaConfig
| identity_provider_update_params.AccessOneloginConfig
| identity_provider_update_params.AccessPingoneConfig
- | identity_provider_update_params.AccessSamlConfig
+ | identity_provider_update_params.AccessSAMLConfig
| object,
name: str,
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
+ type: IdentityProviderType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param | NotGiven = NOT_GIVEN,
+ scim_config: ScimConfigParam | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
diff --git a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
index b1ad4a34f41..abd370b80a3 100644
--- a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
+++ b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Optional, cast
+from typing import Any, cast
import httpx
@@ -25,9 +25,11 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
from ....types.zero_trust.networks import (
VirtualNetwork,
+ VirtualNetworkEditResponse,
+ VirtualNetworkCreateResponse,
+ VirtualNetworkDeleteResponse,
virtual_network_edit_params,
virtual_network_list_params,
virtual_network_create_params,
@@ -59,7 +61,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkCreateResponse:
"""
Adds a new virtual network to an account.
@@ -83,7 +85,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ VirtualNetworkCreateResponse,
self._post(
f"/accounts/{account_id}/teamnet/virtual_networks",
body=maybe_transform(
@@ -102,7 +104,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -185,7 +187,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkDeleteResponse:
"""
Deletes an existing virtual network.
@@ -207,7 +209,7 @@ def delete(
if not virtual_network_id:
raise ValueError(f"Expected a non-empty value for `virtual_network_id` but received {virtual_network_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ VirtualNetworkDeleteResponse,
self._delete(
f"/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}",
body=maybe_transform(body, virtual_network_delete_params.VirtualNetworkDeleteParams),
@@ -219,7 +221,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -238,7 +240,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkEditResponse:
"""
Updates an existing virtual network.
@@ -266,7 +268,7 @@ def edit(
if not virtual_network_id:
raise ValueError(f"Expected a non-empty value for `virtual_network_id` but received {virtual_network_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ VirtualNetworkEditResponse,
self._patch(
f"/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}",
body=maybe_transform(
@@ -285,7 +287,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -313,7 +315,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkCreateResponse:
"""
Adds a new virtual network to an account.
@@ -337,7 +339,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ VirtualNetworkCreateResponse,
await self._post(
f"/accounts/{account_id}/teamnet/virtual_networks",
body=await async_maybe_transform(
@@ -356,7 +358,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -439,7 +441,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkDeleteResponse:
"""
Deletes an existing virtual network.
@@ -461,7 +463,7 @@ async def delete(
if not virtual_network_id:
raise ValueError(f"Expected a non-empty value for `virtual_network_id` but received {virtual_network_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ 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),
@@ -473,7 +475,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -492,7 +494,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> VirtualNetworkEditResponse:
"""
Updates an existing virtual network.
@@ -520,7 +522,7 @@ async def edit(
if not virtual_network_id:
raise ValueError(f"Expected a non-empty value for `virtual_network_id` but received {virtual_network_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ VirtualNetworkEditResponse,
await self._patch(
f"/accounts/{account_id}/teamnet/virtual_networks/{virtual_network_id}",
body=await async_maybe_transform(
@@ -539,7 +541,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[VirtualNetworkEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/organizations.py b/src/cloudflare/resources/zero_trust/organizations.py
index beb3ac973dd..a065a59d9c3 100644
--- a/src/cloudflare/resources/zero_trust/organizations.py
+++ b/src/cloudflare/resources/zero_trust/organizations.py
@@ -24,9 +24,9 @@
make_request_options,
)
from ...types.zero_trust import (
+ Organization,
LoginDesignParam,
OrganizationRevokeUsersResponse,
- organizations,
organization_create_params,
organization_update_params,
organization_revoke_users_params,
@@ -65,7 +65,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Sets up a Zero Trust organization for your account or zone.
@@ -148,7 +148,7 @@ def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
def update(
@@ -173,7 +173,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Updates the configuration for your Zero Trust organization.
@@ -257,7 +257,7 @@ def update(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
def list(
@@ -271,7 +271,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Returns the configuration for your Zero Trust organization.
@@ -312,7 +312,7 @@ def list(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
def revoke_users(
@@ -407,7 +407,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Sets up a Zero Trust organization for your account or zone.
@@ -490,7 +490,7 @@ async def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
async def update(
@@ -515,7 +515,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Updates the configuration for your Zero Trust organization.
@@ -599,7 +599,7 @@ async def update(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
async def list(
@@ -613,7 +613,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> organizations.Organizations:
+ ) -> Organization:
"""
Returns the configuration for your Zero Trust organization.
@@ -654,7 +654,7 @@ async def list(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[organizations.Organizations], ResultWrapper[organizations.Organizations]),
+ cast_to=cast(Type[Organization], ResultWrapper[Organization]),
)
async def revoke_users(
diff --git a/src/cloudflare/resources/zero_trust/tunnels/configurations.py b/src/cloudflare/resources/zero_trust/tunnels/configurations.py
index 6742f37e709..95c44333428 100644
--- a/src/cloudflare/resources/zero_trust/tunnels/configurations.py
+++ b/src/cloudflare/resources/zero_trust/tunnels/configurations.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Optional, cast
+from typing import Any, cast
import httpx
@@ -23,8 +23,11 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from ....types.zero_trust.tunnels import configuration_update_params
+from ....types.zero_trust.tunnels import (
+ ConfigurationGetResponse,
+ ConfigurationUpdateResponse,
+ configuration_update_params,
+)
__all__ = ["Configurations", "AsyncConfigurations"]
@@ -50,7 +53,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConfigurationUpdateResponse:
"""
Adds or updates the configuration for a remotely-managed tunnel.
@@ -74,7 +77,7 @@ def update(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConfigurationUpdateResponse,
self._put(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}/configurations",
body=maybe_transform({"config": config}, configuration_update_params.ConfigurationUpdateParams),
@@ -86,7 +89,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigurationUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -102,7 +105,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConfigurationGetResponse:
"""
Gets the configuration for a remotely-managed tunnel
@@ -124,7 +127,7 @@ def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConfigurationGetResponse,
self._get(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}/configurations",
options=make_request_options(
@@ -135,7 +138,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigurationGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -162,7 +165,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConfigurationUpdateResponse:
"""
Adds or updates the configuration for a remotely-managed tunnel.
@@ -186,7 +189,7 @@ async def update(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConfigurationUpdateResponse,
await self._put(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}/configurations",
body=await async_maybe_transform(
@@ -200,7 +203,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigurationUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -216,7 +219,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConfigurationGetResponse:
"""
Gets the configuration for a remotely-managed tunnel
@@ -238,7 +241,7 @@ async def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConfigurationGetResponse,
await self._get(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}/configurations",
options=make_request_options(
@@ -249,7 +252,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConfigurationGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/tunnels/connections.py b/src/cloudflare/resources/zero_trust/tunnels/connections.py
index ba8feefb6a2..76114b8aa27 100644
--- a/src/cloudflare/resources/zero_trust/tunnels/connections.py
+++ b/src/cloudflare/resources/zero_trust/tunnels/connections.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from ....types.zero_trust.tunnels import ConnectionGetResponse, connection_delete_params
+from ....types.zero_trust.tunnels import ConnectionGetResponse, ConnectionDeleteResponse, connection_delete_params
__all__ = ["Connections", "AsyncConnections"]
@@ -50,7 +49,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConnectionDeleteResponse:
"""Removes connections that are in a disconnected or pending reconnect state.
We
@@ -74,7 +73,7 @@ def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConnectionDeleteResponse,
self._delete(
f"/accounts/{account_id}/tunnels/{tunnel_id}/connections",
body=maybe_transform(body, connection_delete_params.ConnectionDeleteParams),
@@ -86,7 +85,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConnectionDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -157,7 +156,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]:
+ ) -> ConnectionDeleteResponse:
"""Removes connections that are in a disconnected or pending reconnect state.
We
@@ -181,7 +180,7 @@ async def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1],
+ ConnectionDeleteResponse,
await self._delete(
f"/accounts/{account_id}/tunnels/{tunnel_id}/connections",
body=await async_maybe_transform(body, connection_delete_params.ConnectionDeleteParams),
@@ -193,7 +192,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1]
+ Any, ResultWrapper[ConnectionDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
index ee0452b2c89..17585c77db7 100644
--- a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
+++ b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
@@ -15,6 +15,7 @@
TokenWithStreamingResponse,
AsyncTokenWithStreamingResponse,
)
+from ....types import WARPConnector
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
@@ -66,7 +67,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
from ....types.zero_trust import (
Tunnel,
tunnel_edit_params,
@@ -181,7 +181,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]:
+ ) -> SyncV4PagePaginationArray[WARPConnector]:
"""
Lists and filters all types of Tunnels in an account.
@@ -216,7 +216,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/tunnels",
- page=SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
+ page=SyncV4PagePaginationArray[WARPConnector],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -239,9 +239,7 @@ def list(
tunnel_list_params.TunnelListParams,
),
),
- model=cast(
- Any, UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, WARPConnector), # Union types cannot be passed in as arguments in the type system
)
def delete(
@@ -303,7 +301,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Updates an existing Cloudflare Tunnel.
@@ -330,7 +328,7 @@ def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
self._patch(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}",
body=maybe_transform(
@@ -348,7 +346,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -501,10 +499,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- ]:
+ ) -> AsyncPaginator[WARPConnector, AsyncV4PagePaginationArray[WARPConnector]]:
"""
Lists and filters all types of Tunnels in an account.
@@ -539,7 +534,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/tunnels",
- page=AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
+ page=AsyncV4PagePaginationArray[WARPConnector],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -562,9 +557,7 @@ def list(
tunnel_list_params.TunnelListParams,
),
),
- model=cast(
- Any, UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, WARPConnector), # Union types cannot be passed in as arguments in the type system
)
async def delete(
@@ -626,7 +619,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8:
+ ) -> WARPConnector:
"""
Updates an existing Cloudflare Tunnel.
@@ -653,7 +646,7 @@ async def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
+ WARPConnector,
await self._patch(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}",
body=await async_maybe_transform(
@@ -671,7 +664,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8]
+ Any, ResultWrapper[WARPConnector]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zones/custom_nameservers.py b/src/cloudflare/resources/zones/custom_nameservers.py
index 2c01b237bff..f5a2db1748d 100644
--- a/src/cloudflare/resources/zones/custom_nameservers.py
+++ b/src/cloudflare/resources/zones/custom_nameservers.py
@@ -20,11 +20,10 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.zones import custom_nameserver_update_params
+from ...types.zones import CustomNameserverGetResponse, CustomNameserverUpdateResponse, custom_nameserver_update_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
__all__ = ["CustomNameservers", "AsyncCustomNameservers"]
@@ -50,7 +49,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverUpdateResponse]:
"""
Set metadata for account-level custom nameservers on a zone.
@@ -76,7 +75,7 @@ def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[CustomNameserverUpdateResponse],
self._put(
f"/zones/{zone_id}/custom_ns",
body=maybe_transform(
@@ -94,7 +93,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -109,7 +108,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverGetResponse]:
"""
Get metadata for account-level custom nameservers on a zone.
@@ -127,7 +126,7 @@ def get(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[CustomNameserverGetResponse],
self._get(
f"/zones/{zone_id}/custom_ns",
options=make_request_options(
@@ -138,7 +137,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -165,7 +164,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverUpdateResponse]:
"""
Set metadata for account-level custom nameservers on a zone.
@@ -191,7 +190,7 @@ async def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[CustomNameserverUpdateResponse],
await self._put(
f"/zones/{zone_id}/custom_ns",
body=await async_maybe_transform(
@@ -209,7 +208,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -224,7 +223,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]:
+ ) -> Optional[CustomNameserverGetResponse]:
"""
Get metadata for account-level custom nameservers on a zone.
@@ -242,7 +241,7 @@ async def get(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151],
+ Optional[CustomNameserverGetResponse],
await self._get(
f"/zones/{zone_id}/custom_ns",
options=make_request_options(
@@ -253,7 +252,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151]
+ Any, ResultWrapper[CustomNameserverGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zones/settings/__init__.py b/src/cloudflare/resources/zones/settings/__init__.py
index 424ca93c194..13c288a737d 100644
--- a/src/cloudflare/resources/zones/settings/__init__.py
+++ b/src/cloudflare/resources/zones/settings/__init__.py
@@ -369,12 +369,12 @@
AsyncTrueClientIPHeaderResourceWithStreamingResponse,
)
from .origin_max_http_version import (
- OriginMaxHTTPVersion,
- AsyncOriginMaxHTTPVersion,
- OriginMaxHTTPVersionWithRawResponse,
- AsyncOriginMaxHTTPVersionWithRawResponse,
- OriginMaxHTTPVersionWithStreamingResponse,
- AsyncOriginMaxHTTPVersionWithStreamingResponse,
+ OriginMaxHTTPVersionResource,
+ AsyncOriginMaxHTTPVersionResource,
+ OriginMaxHTTPVersionResourceWithRawResponse,
+ AsyncOriginMaxHTTPVersionResourceWithRawResponse,
+ OriginMaxHTTPVersionResourceWithStreamingResponse,
+ AsyncOriginMaxHTTPVersionResourceWithStreamingResponse,
)
from .automatic_https_rewrites import (
AutomaticHTTPSRewrites,
@@ -604,12 +604,12 @@
"AsyncOriginErrorPagePassThruResourceWithRawResponse",
"OriginErrorPagePassThruResourceWithStreamingResponse",
"AsyncOriginErrorPagePassThruResourceWithStreamingResponse",
- "OriginMaxHTTPVersion",
- "AsyncOriginMaxHTTPVersion",
- "OriginMaxHTTPVersionWithRawResponse",
- "AsyncOriginMaxHTTPVersionWithRawResponse",
- "OriginMaxHTTPVersionWithStreamingResponse",
- "AsyncOriginMaxHTTPVersionWithStreamingResponse",
+ "OriginMaxHTTPVersionResource",
+ "AsyncOriginMaxHTTPVersionResource",
+ "OriginMaxHTTPVersionResourceWithRawResponse",
+ "AsyncOriginMaxHTTPVersionResourceWithRawResponse",
+ "OriginMaxHTTPVersionResourceWithStreamingResponse",
+ "AsyncOriginMaxHTTPVersionResourceWithStreamingResponse",
"PolishResource",
"AsyncPolishResource",
"PolishResourceWithRawResponse",
diff --git a/src/cloudflare/resources/zones/settings/origin_max_http_version.py b/src/cloudflare/resources/zones/settings/origin_max_http_version.py
index 4613cf3aa73..fbcd2210a59 100644
--- a/src/cloudflare/resources/zones/settings/origin_max_http_version.py
+++ b/src/cloudflare/resources/zones/settings/origin_max_http_version.py
@@ -30,17 +30,17 @@
origin_max_http_version_edit_params,
)
-__all__ = ["OriginMaxHTTPVersion", "AsyncOriginMaxHTTPVersion"]
+__all__ = ["OriginMaxHTTPVersionResource", "AsyncOriginMaxHTTPVersionResource"]
-class OriginMaxHTTPVersion(SyncAPIResource):
+class OriginMaxHTTPVersionResource(SyncAPIResource):
@cached_property
- def with_raw_response(self) -> OriginMaxHTTPVersionWithRawResponse:
- return OriginMaxHTTPVersionWithRawResponse(self)
+ def with_raw_response(self) -> OriginMaxHTTPVersionResourceWithRawResponse:
+ return OriginMaxHTTPVersionResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> OriginMaxHTTPVersionWithStreamingResponse:
- return OriginMaxHTTPVersionWithStreamingResponse(self)
+ def with_streaming_response(self) -> OriginMaxHTTPVersionResourceWithStreamingResponse:
+ return OriginMaxHTTPVersionResourceWithStreamingResponse(self)
def edit(
self,
@@ -135,14 +135,14 @@ def get(
)
-class AsyncOriginMaxHTTPVersion(AsyncAPIResource):
+class AsyncOriginMaxHTTPVersionResource(AsyncAPIResource):
@cached_property
- def with_raw_response(self) -> AsyncOriginMaxHTTPVersionWithRawResponse:
- return AsyncOriginMaxHTTPVersionWithRawResponse(self)
+ def with_raw_response(self) -> AsyncOriginMaxHTTPVersionResourceWithRawResponse:
+ return AsyncOriginMaxHTTPVersionResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncOriginMaxHTTPVersionWithStreamingResponse:
- return AsyncOriginMaxHTTPVersionWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncOriginMaxHTTPVersionResourceWithStreamingResponse:
+ return AsyncOriginMaxHTTPVersionResourceWithStreamingResponse(self)
async def edit(
self,
@@ -239,8 +239,8 @@ async def get(
)
-class OriginMaxHTTPVersionWithRawResponse:
- def __init__(self, origin_max_http_version: OriginMaxHTTPVersion) -> None:
+class OriginMaxHTTPVersionResourceWithRawResponse:
+ def __init__(self, origin_max_http_version: OriginMaxHTTPVersionResource) -> None:
self._origin_max_http_version = origin_max_http_version
self.edit = to_raw_response_wrapper(
@@ -251,8 +251,8 @@ def __init__(self, origin_max_http_version: OriginMaxHTTPVersion) -> None:
)
-class AsyncOriginMaxHTTPVersionWithRawResponse:
- def __init__(self, origin_max_http_version: AsyncOriginMaxHTTPVersion) -> None:
+class AsyncOriginMaxHTTPVersionResourceWithRawResponse:
+ def __init__(self, origin_max_http_version: AsyncOriginMaxHTTPVersionResource) -> None:
self._origin_max_http_version = origin_max_http_version
self.edit = async_to_raw_response_wrapper(
@@ -263,8 +263,8 @@ def __init__(self, origin_max_http_version: AsyncOriginMaxHTTPVersion) -> None:
)
-class OriginMaxHTTPVersionWithStreamingResponse:
- def __init__(self, origin_max_http_version: OriginMaxHTTPVersion) -> None:
+class OriginMaxHTTPVersionResourceWithStreamingResponse:
+ def __init__(self, origin_max_http_version: OriginMaxHTTPVersionResource) -> None:
self._origin_max_http_version = origin_max_http_version
self.edit = to_streamed_response_wrapper(
@@ -275,8 +275,8 @@ def __init__(self, origin_max_http_version: OriginMaxHTTPVersion) -> None:
)
-class AsyncOriginMaxHTTPVersionWithStreamingResponse:
- def __init__(self, origin_max_http_version: AsyncOriginMaxHTTPVersion) -> None:
+class AsyncOriginMaxHTTPVersionResourceWithStreamingResponse:
+ def __init__(self, origin_max_http_version: AsyncOriginMaxHTTPVersionResource) -> None:
self._origin_max_http_version = origin_max_http_version
self.edit = async_to_streamed_response_wrapper(
diff --git a/src/cloudflare/resources/zones/settings/settings.py b/src/cloudflare/resources/zones/settings/settings.py
index 3974be59ac1..4f4a0ccf34b 100644
--- a/src/cloudflare/resources/zones/settings/settings.py
+++ b/src/cloudflare/resources/zones/settings/settings.py
@@ -365,12 +365,12 @@
AsyncTrueClientIPHeaderResourceWithStreamingResponse,
)
from .origin_max_http_version import (
- OriginMaxHTTPVersion,
- AsyncOriginMaxHTTPVersion,
- OriginMaxHTTPVersionWithRawResponse,
- AsyncOriginMaxHTTPVersionWithRawResponse,
- OriginMaxHTTPVersionWithStreamingResponse,
- AsyncOriginMaxHTTPVersionWithStreamingResponse,
+ OriginMaxHTTPVersionResource,
+ AsyncOriginMaxHTTPVersionResource,
+ OriginMaxHTTPVersionResourceWithRawResponse,
+ AsyncOriginMaxHTTPVersionResourceWithRawResponse,
+ OriginMaxHTTPVersionResourceWithStreamingResponse,
+ AsyncOriginMaxHTTPVersionResourceWithStreamingResponse,
)
from .automatic_https_rewrites import (
AutomaticHTTPSRewrites,
@@ -542,8 +542,8 @@ def origin_error_page_pass_thru(self) -> OriginErrorPagePassThruResource:
return OriginErrorPagePassThruResource(self._client)
@cached_property
- def origin_max_http_version(self) -> OriginMaxHTTPVersion:
- return OriginMaxHTTPVersion(self._client)
+ def origin_max_http_version(self) -> OriginMaxHTTPVersionResource:
+ return OriginMaxHTTPVersionResource(self._client)
@cached_property
def polish(self) -> PolishResource:
@@ -756,8 +756,8 @@ def origin_error_page_pass_thru(self) -> AsyncOriginErrorPagePassThruResource:
return AsyncOriginErrorPagePassThruResource(self._client)
@cached_property
- def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersion:
- return AsyncOriginMaxHTTPVersion(self._client)
+ def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersionResource:
+ return AsyncOriginMaxHTTPVersionResource(self._client)
@cached_property
def polish(self) -> AsyncPolishResource:
@@ -973,8 +973,8 @@ def origin_error_page_pass_thru(self) -> OriginErrorPagePassThruResourceWithRawR
return OriginErrorPagePassThruResourceWithRawResponse(self._settings.origin_error_page_pass_thru)
@cached_property
- def origin_max_http_version(self) -> OriginMaxHTTPVersionWithRawResponse:
- return OriginMaxHTTPVersionWithRawResponse(self._settings.origin_max_http_version)
+ def origin_max_http_version(self) -> OriginMaxHTTPVersionResourceWithRawResponse:
+ return OriginMaxHTTPVersionResourceWithRawResponse(self._settings.origin_max_http_version)
@cached_property
def polish(self) -> PolishResourceWithRawResponse:
@@ -1182,8 +1182,8 @@ def origin_error_page_pass_thru(self) -> AsyncOriginErrorPagePassThruResourceWit
return AsyncOriginErrorPagePassThruResourceWithRawResponse(self._settings.origin_error_page_pass_thru)
@cached_property
- def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersionWithRawResponse:
- return AsyncOriginMaxHTTPVersionWithRawResponse(self._settings.origin_max_http_version)
+ def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersionResourceWithRawResponse:
+ return AsyncOriginMaxHTTPVersionResourceWithRawResponse(self._settings.origin_max_http_version)
@cached_property
def polish(self) -> AsyncPolishResourceWithRawResponse:
@@ -1393,8 +1393,8 @@ def origin_error_page_pass_thru(self) -> OriginErrorPagePassThruResourceWithStre
return OriginErrorPagePassThruResourceWithStreamingResponse(self._settings.origin_error_page_pass_thru)
@cached_property
- def origin_max_http_version(self) -> OriginMaxHTTPVersionWithStreamingResponse:
- return OriginMaxHTTPVersionWithStreamingResponse(self._settings.origin_max_http_version)
+ def origin_max_http_version(self) -> OriginMaxHTTPVersionResourceWithStreamingResponse:
+ return OriginMaxHTTPVersionResourceWithStreamingResponse(self._settings.origin_max_http_version)
@cached_property
def polish(self) -> PolishResourceWithStreamingResponse:
@@ -1604,8 +1604,8 @@ def origin_error_page_pass_thru(self) -> AsyncOriginErrorPagePassThruResourceWit
return AsyncOriginErrorPagePassThruResourceWithStreamingResponse(self._settings.origin_error_page_pass_thru)
@cached_property
- def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersionWithStreamingResponse:
- return AsyncOriginMaxHTTPVersionWithStreamingResponse(self._settings.origin_max_http_version)
+ def origin_max_http_version(self) -> AsyncOriginMaxHTTPVersionResourceWithStreamingResponse:
+ return AsyncOriginMaxHTTPVersionResourceWithStreamingResponse(self._settings.origin_max_http_version)
@cached_property
def polish(self) -> AsyncPolishResourceWithStreamingResponse:
diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py
index 0e2fe8d41d1..eb40e1f2368 100644
--- a/src/cloudflare/types/__init__.py
+++ b/src/cloudflare/types/__init__.py
@@ -21,24 +21,17 @@
ErrorData as ErrorData,
Identifier as Identifier,
ResponseInfo as ResponseInfo,
+ PaginationInfo as PaginationInfo,
UnnamedSchemaRef025497b7e63379c31929636b5186e45c as UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f as UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 as UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
- UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1 as UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1,
- UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151 as UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151,
UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c as UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8 as UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0 as UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9 as UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9,
UnnamedSchemaRef23001f1f0b697900e282236466a95fa3 as UnnamedSchemaRef23001f1f0b697900e282236466a95fa3,
UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a as UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
UnnamedSchemaRef619309774d07ec6904f1e354560d6028 as UnnamedSchemaRef619309774d07ec6904f1e354560d6028,
UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6 as UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6,
UnnamedSchemaRefB52ad7cf99890d19f16edcd84d16ef5b as UnnamedSchemaRefB52ad7cf99890d19f16edcd84d16ef5b,
- UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6 as UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6,
UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854 as UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854,
- UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b as UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b,
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846 as UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 as UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
)
from .submit import Submit as Submit
@@ -93,6 +86,7 @@
from .ip_list_params import IPListParams as IPListParams
from .labeled_region import LabeledRegion as LabeledRegion
from .log_rule_param import LogRuleParam as LogRuleParam
+from .warp_connector import WARPConnector as WARPConnector
from .custom_hostname import CustomHostname as CustomHostname
from .origin_steering import OriginSteering as OriginSteering
from .random_steering import RandomSteering as RandomSteering
@@ -110,6 +104,7 @@
from .zone_list_params import ZoneListParams as ZoneListParams
from .cookie_attributes import CookieAttributes as CookieAttributes
from .custom_nameserver import CustomNameserver as CustomNameserver
+from .health_check_type import HealthCheckType as HealthCheckType
from .lighthouse_report import LighthouseReport as LighthouseReport
from .location_strategy import LocationStrategy as LocationStrategy
from .mtls_cert_binding import MTLSCERTBinding as MTLSCERTBinding
@@ -168,6 +163,7 @@
from .origin_ca_certificate import OriginCACertificate as OriginCACertificate
from .origin_steering_param import OriginSteeringParam as OriginSteeringParam
from .queue_create_response import QueueCreateResponse as QueueCreateResponse
+from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse
from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse
from .random_steering_param import RandomSteeringParam as RandomSteeringParam
from .ruleset_create_params import RulesetCreateParams as RulesetCreateParams
@@ -176,6 +172,7 @@
from .speed_delete_response import SpeedDeleteResponse as SpeedDeleteResponse
from .adaptive_routing_param import AdaptiveRoutingParam as AdaptiveRoutingParam
from .additional_routes_item import AdditionalRoutesItem as AdditionalRoutesItem
+from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse
from .durable_object_binding import DurableObjectBinding as DurableObjectBinding
from .filter_create_response import FilterCreateResponse as FilterCreateResponse
from .geo_restrictions_param import GeoRestrictionsParam as GeoRestrictionsParam
@@ -193,6 +190,7 @@
from .location_strategy_param import LocationStrategyParam as LocationStrategyParam
from .ruleset_create_response import RulesetCreateResponse as RulesetCreateResponse
from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse
+from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse
from .stepped_migration_param import SteppedMigrationParam as SteppedMigrationParam
from .tcp_configuration_param import TCPConfigurationParam as TCPConfigurationParam
from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams
@@ -272,6 +270,7 @@
from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams
from .custom_certificate_delete_params import CustomCertificateDeleteParams as CustomCertificateDeleteParams
from .mtls_certificate_create_response import MTLSCertificateCreateResponse as MTLSCertificateCreateResponse
+from .custom_nameserver_delete_response import CustomNameserverDeleteResponse as CustomNameserverDeleteResponse
from .custom_nameserver_verify_response import CustomNameserverVerifyResponse as CustomNameserverVerifyResponse
from .keyless_certificate_create_params import KeylessCertificateCreateParams as KeylessCertificateCreateParams
from .keyless_certificate_delete_params import KeylessCertificateDeleteParams as KeylessCertificateDeleteParams
@@ -279,7 +278,6 @@
from .session_affinity_attributes_param import SessionAffinityAttributesParam as SessionAffinityAttributesParam
from .url_normalization_update_response import URLNormalizationUpdateResponse as URLNormalizationUpdateResponse
from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse
-from .super_bot_fight_mode_likely_config import SuperBotFightModeLikelyConfig as SuperBotFightModeLikelyConfig
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
@@ -291,15 +289,15 @@
from .custom_nameserver_availabilty_response import (
CustomNameserverAvailabiltyResponse as CustomNameserverAvailabiltyResponse,
)
+from .super_bot_fight_mode_likely_configuration import (
+ SuperBotFightModeLikelyConfiguration as SuperBotFightModeLikelyConfiguration,
+)
from .origin_post_quantum_encryption_update_params import (
OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams,
)
from .super_bot_fight_mode_definitely_configuration import (
SuperBotFightModeDefinitelyConfiguration as SuperBotFightModeDefinitelyConfiguration,
)
-from .unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import (
- UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39 as UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39,
-)
from .unnamed_schema_ref_3e10ea08deb8102a27500f986488c1e8 import (
UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8 as UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8,
)
diff --git a/src/cloudflare/types/accounts/__init__.py b/src/cloudflare/types/accounts/__init__.py
index eba2b6a8969..13bc27e7852 100644
--- a/src/cloudflare/types/accounts/__init__.py
+++ b/src/cloudflare/types/accounts/__init__.py
@@ -3,10 +3,9 @@
from __future__ import annotations
from .role import Role as Role
+from .roles import Roles as Roles
from .member import Member as Member
-from .member_role import MemberRole as MemberRole
from .permission_grant import PermissionGrant as PermissionGrant
-from .member_role_param import MemberRoleParam as MemberRoleParam
from .member_list_params import MemberListParams as MemberListParams
from .member_create_params import MemberCreateParams as MemberCreateParams
from .member_delete_params import MemberDeleteParams as MemberDeleteParams
diff --git a/src/cloudflare/types/accounts/member.py b/src/cloudflare/types/accounts/member.py
index c357dd2a41f..3aee13498fb 100644
--- a/src/cloudflare/types/accounts/member.py
+++ b/src/cloudflare/types/accounts/member.py
@@ -3,9 +3,22 @@
from typing import List, Optional
from ..._models import BaseModel
-from .member_role import MemberRole
+from ..user.tokens import Permission
-__all__ = ["Member", "User"]
+__all__ = ["Member", "Role", "User"]
+
+
+class Role(BaseModel):
+ id: str
+ """Role identifier tag."""
+
+ description: str
+ """Description of role's permissions."""
+
+ name: str
+ """Role name."""
+
+ permissions: Permission
class User(BaseModel):
@@ -32,7 +45,7 @@ class Member(BaseModel):
id: str
"""Membership identifier tag."""
- roles: List[MemberRole]
+ roles: List[Role]
"""Roles assigned to this member."""
status: object
diff --git a/src/cloudflare/types/accounts/member_role.py b/src/cloudflare/types/accounts/member_role.py
deleted file mode 100644
index c0532541089..00000000000
--- a/src/cloudflare/types/accounts/member_role.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-
-
-from ..._models import BaseModel
-from ..user.tokens import Permission
-
-__all__ = ["MemberRole"]
-
-
-class MemberRole(BaseModel):
- id: str
- """Role identifier tag."""
-
- description: str
- """Description of role's permissions."""
-
- name: str
- """Role name."""
-
- permissions: Permission
diff --git a/src/cloudflare/types/accounts/member_role_param.py b/src/cloudflare/types/accounts/member_role_param.py
deleted file mode 100644
index 70bce379300..00000000000
--- a/src/cloudflare/types/accounts/member_role_param.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing_extensions import Required, TypedDict
-
-__all__ = ["MemberRoleParam"]
-
-
-class MemberRoleParam(TypedDict, total=False):
- id: Required[str]
- """Role identifier tag."""
diff --git a/src/cloudflare/types/accounts/member_update_params.py b/src/cloudflare/types/accounts/member_update_params.py
index fa8bc46954b..69867eb443e 100644
--- a/src/cloudflare/types/accounts/member_update_params.py
+++ b/src/cloudflare/types/accounts/member_update_params.py
@@ -5,13 +5,16 @@
from typing import Iterable
from typing_extensions import Required, TypedDict
-from .member_role_param import MemberRoleParam
-
-__all__ = ["MemberUpdateParams"]
+__all__ = ["MemberUpdateParams", "Role"]
class MemberUpdateParams(TypedDict, total=False):
account_id: Required[object]
- roles: Required[Iterable[MemberRoleParam]]
+ roles: Required[Iterable[Role]]
"""Roles assigned to this member."""
+
+
+class Role(TypedDict, total=False):
+ id: Required[str]
+ """Role identifier tag."""
diff --git a/src/cloudflare/types/accounts/member_with_invite_code.py b/src/cloudflare/types/accounts/member_with_invite_code.py
index 7584f6b2c26..d37fdb980b3 100644
--- a/src/cloudflare/types/accounts/member_with_invite_code.py
+++ b/src/cloudflare/types/accounts/member_with_invite_code.py
@@ -3,9 +3,22 @@
from typing import List, Optional
from ..._models import BaseModel
-from .member_role import MemberRole
+from ..user.tokens import Permission
-__all__ = ["MemberWithInviteCode", "User"]
+__all__ = ["MemberWithInviteCode", "Role", "User"]
+
+
+class Role(BaseModel):
+ id: str
+ """Role identifier tag."""
+
+ description: str
+ """Description of role's permissions."""
+
+ name: str
+ """Role name."""
+
+ permissions: Permission
class User(BaseModel):
@@ -32,7 +45,7 @@ class MemberWithInviteCode(BaseModel):
id: str
"""Membership identifier tag."""
- roles: List[MemberRole]
+ roles: List[Role]
"""Roles assigned to this member."""
status: object
diff --git a/src/cloudflare/types/accounts/roles.py b/src/cloudflare/types/accounts/roles.py
new file mode 100644
index 00000000000..6c91f06326e
--- /dev/null
+++ b/src/cloudflare/types/accounts/roles.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+__all__ = ["Roles"]
+
+Roles = List[str]
diff --git a/src/cloudflare/types/addressing/__init__.py b/src/cloudflare/types/addressing/__init__.py
index 569b643f832..09699f91e4e 100644
--- a/src/cloudflare/types/addressing/__init__.py
+++ b/src/cloudflare/types/addressing/__init__.py
@@ -8,10 +8,12 @@
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
from .address_map_get_response import AddressMapGetResponse as AddressMapGetResponse
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
from .loa_document_create_response import LOADocumentCreateResponse as LOADocumentCreateResponse
diff --git a/src/cloudflare/types/addressing/address_map_delete_response.py b/src/cloudflare/types/addressing/address_map_delete_response.py
new file mode 100644
index 00000000000..57b879481e2
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_map_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["AddressMapDeleteResponse"]
+
+AddressMapDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/__init__.py b/src/cloudflare/types/addressing/address_maps/__init__.py
index a9d27b6bf97..3ec4e9eda25 100644
--- a/src/cloudflare/types/addressing/address_maps/__init__.py
+++ b/src/cloudflare/types/addressing/address_maps/__init__.py
@@ -4,7 +4,13 @@
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_response.py b/src/cloudflare/types/addressing/address_maps/account_delete_response.py
new file mode 100644
index 00000000000..3ddf76cafe9
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/account_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["AccountDeleteResponse"]
+
+AccountDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/account_update_response.py b/src/cloudflare/types/addressing/address_maps/account_update_response.py
new file mode 100644
index 00000000000..53831e97698
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/account_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["AccountUpdateResponse"]
+
+AccountUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_delete_response.py b/src/cloudflare/types/addressing/address_maps/ip_delete_response.py
new file mode 100644
index 00000000000..9cb4b12b353
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/ip_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["IPDeleteResponse"]
+
+IPDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_response.py b/src/cloudflare/types/addressing/address_maps/ip_update_response.py
new file mode 100644
index 00000000000..d4b874c9522
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/ip_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["IPUpdateResponse"]
+
+IPUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/zone_delete_response.py b/src/cloudflare/types/addressing/address_maps/zone_delete_response.py
new file mode 100644
index 00000000000..6fdbcc03fa7
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/zone_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ZoneDeleteResponse"]
+
+ZoneDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_response.py b/src/cloudflare/types/addressing/address_maps/zone_update_response.py
new file mode 100644
index 00000000000..1f488961e0d
--- /dev/null
+++ b/src/cloudflare/types/addressing/address_maps/zone_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ZoneUpdateResponse"]
+
+ZoneUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/prefix_delete_response.py b/src/cloudflare/types/addressing/prefix_delete_response.py
new file mode 100644
index 00000000000..cf2acba9231
--- /dev/null
+++ b/src/cloudflare/types/addressing/prefix_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["PrefixDeleteResponse"]
+
+PrefixDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
index f9a62e79c69..bf70ca01135 100644
--- a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
+++ b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
@@ -9,3 +9,4 @@
from .status_get_response import StatusGetResponse as StatusGetResponse
from .status_edit_response import StatusEditResponse as StatusEditResponse
from .binding_create_params import BindingCreateParams as BindingCreateParams
+from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse
diff --git a/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py b/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py
new file mode 100644
index 00000000000..e2afa483e21
--- /dev/null
+++ b/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["BindingDeleteResponse"]
+
+BindingDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/alerting/__init__.py b/src/cloudflare/types/alerting/__init__.py
index 0b385df93b7..ba45cbd1951 100644
--- a/src/cloudflare/types/alerting/__init__.py
+++ b/src/cloudflare/types/alerting/__init__.py
@@ -13,5 +13,6 @@
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams
from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse
+from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse
from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse
from .available_alert_list_response import AvailableAlertListResponse as AvailableAlertListResponse
diff --git a/src/cloudflare/types/alerting/destinations/__init__.py b/src/cloudflare/types/alerting/destinations/__init__.py
index 727eaa8ac42..fd61e30e290 100644
--- a/src/cloudflare/types/alerting/destinations/__init__.py
+++ b/src/cloudflare/types/alerting/destinations/__init__.py
@@ -10,5 +10,7 @@
from .pagerduty_get_response import PagerdutyGetResponse as PagerdutyGetResponse
from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse
from .webhook_create_response import WebhookCreateResponse as WebhookCreateResponse
+from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse
from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse
from .pagerduty_create_response import PagerdutyCreateResponse as PagerdutyCreateResponse
+from .pagerduty_delete_response import PagerdutyDeleteResponse as PagerdutyDeleteResponse
diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py b/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py
new file mode 100644
index 00000000000..3171e8788bc
--- /dev/null
+++ b/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["PagerdutyDeleteResponse"]
+
+PagerdutyDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/alerting/destinations/webhook_delete_response.py b/src/cloudflare/types/alerting/destinations/webhook_delete_response.py
new file mode 100644
index 00000000000..2869927bb58
--- /dev/null
+++ b/src/cloudflare/types/alerting/destinations/webhook_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["WebhookDeleteResponse"]
+
+WebhookDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/alerting/policy_delete_response.py b/src/cloudflare/types/alerting/policy_delete_response.py
new file mode 100644
index 00000000000..f211604e11c
--- /dev/null
+++ b/src/cloudflare/types/alerting/policy_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["PolicyDeleteResponse"]
+
+PolicyDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/bot_management_get_response.py b/src/cloudflare/types/bot_management_get_response.py
index 986e592ad15..2153b087213 100644
--- a/src/cloudflare/types/bot_management_get_response.py
+++ b/src/cloudflare/types/bot_management_get_response.py
@@ -4,7 +4,7 @@
from .subscription_configuration import SubscriptionConfiguration
from .bot_fight_mode_configuration import BotFightModeConfiguration
-from .super_bot_fight_mode_likely_config import SuperBotFightModeLikelyConfig
+from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration
from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration
__all__ = ["BotManagementGetResponse"]
@@ -12,6 +12,6 @@
BotManagementGetResponse = Union[
BotFightModeConfiguration,
SuperBotFightModeDefinitelyConfiguration,
- SuperBotFightModeLikelyConfig,
+ SuperBotFightModeLikelyConfiguration,
SubscriptionConfiguration,
]
diff --git a/src/cloudflare/types/bot_management_update_params.py b/src/cloudflare/types/bot_management_update_params.py
index c919147a1f6..199be0ab054 100644
--- a/src/cloudflare/types/bot_management_update_params.py
+++ b/src/cloudflare/types/bot_management_update_params.py
@@ -9,7 +9,7 @@
"BotManagementUpdateParams",
"BotFightModeConfiguration",
"SuperBotFightModeDefinitelyConfiguration",
- "SuperBotFightModeLikelyConfig",
+ "SuperBotFightModeLikelyConfiguration",
"SubscriptionConfiguration",
]
@@ -55,7 +55,7 @@ class SuperBotFightModeDefinitelyConfiguration(TypedDict, total=False):
"""Super Bot Fight Mode (SBFM) action to take on verified bots requests."""
-class SuperBotFightModeLikelyConfig(TypedDict, total=False):
+class SuperBotFightModeLikelyConfiguration(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
@@ -112,6 +112,6 @@ class SubscriptionConfiguration(TypedDict, total=False):
BotManagementUpdateParams = Union[
BotFightModeConfiguration,
SuperBotFightModeDefinitelyConfiguration,
- SuperBotFightModeLikelyConfig,
+ SuperBotFightModeLikelyConfiguration,
SubscriptionConfiguration,
]
diff --git a/src/cloudflare/types/bot_management_update_response.py b/src/cloudflare/types/bot_management_update_response.py
index fe91c9e3a53..6880ad7a3ef 100644
--- a/src/cloudflare/types/bot_management_update_response.py
+++ b/src/cloudflare/types/bot_management_update_response.py
@@ -4,7 +4,7 @@
from .subscription_configuration import SubscriptionConfiguration
from .bot_fight_mode_configuration import BotFightModeConfiguration
-from .super_bot_fight_mode_likely_config import SuperBotFightModeLikelyConfig
+from .super_bot_fight_mode_likely_configuration import SuperBotFightModeLikelyConfiguration
from .super_bot_fight_mode_definitely_configuration import SuperBotFightModeDefinitelyConfiguration
__all__ = ["BotManagementUpdateResponse"]
@@ -12,6 +12,6 @@
BotManagementUpdateResponse = Union[
BotFightModeConfiguration,
SuperBotFightModeDefinitelyConfiguration,
- SuperBotFightModeLikelyConfig,
+ SuperBotFightModeLikelyConfiguration,
SubscriptionConfiguration,
]
diff --git a/src/cloudflare/types/cache/__init__.py b/src/cloudflare/types/cache/__init__.py
index 621592bc4d7..4c6bf3683d4 100644
--- a/src/cloudflare/types/cache/__init__.py
+++ b/src/cloudflare/types/cache/__init__.py
@@ -5,6 +5,7 @@
from .cache_variants import CacheVariants as CacheVariants
from .variant_edit_params import VariantEditParams as VariantEditParams
from .variant_get_response import VariantGetResponse as VariantGetResponse
+from .regional_tiered_cache import RegionalTieredCache as RegionalTieredCache
from .variant_delete_params import VariantDeleteParams as VariantDeleteParams
from .variant_edit_response import VariantEditResponse as VariantEditResponse
from .cache_reserve_edit_params import CacheReserveEditParams as CacheReserveEditParams
@@ -27,6 +28,3 @@
from .unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0 import (
UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0 as UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0,
)
-from .unnamed_schema_ref_6535d2df7d4d089d21166bd140651307 import (
- UnnamedSchemaRef6535d2df7d4d089d21166bd140651307 as UnnamedSchemaRef6535d2df7d4d089d21166bd140651307,
-)
diff --git a/src/cloudflare/types/cache/regional_tiered_cache.py b/src/cloudflare/types/cache/regional_tiered_cache.py
new file mode 100644
index 00000000000..1f78beeb784
--- /dev/null
+++ b/src/cloudflare/types/cache/regional_tiered_cache.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["RegionalTieredCache"]
+
+RegionalTieredCache = Literal["tc_regional"]
diff --git a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
index e9b855aa258..8350d75dc86 100644
--- a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
+++ b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
@@ -4,13 +4,13 @@
from datetime import datetime
from ..._models import BaseModel
-from .unnamed_schema_ref_6535d2df7d4d089d21166bd140651307 import UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+from .regional_tiered_cache import RegionalTieredCache
__all__ = ["RegionalTieredCacheEditResponse", "Value"]
class Value(BaseModel):
- id: UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+ id: RegionalTieredCache
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
@@ -18,7 +18,7 @@ class Value(BaseModel):
class RegionalTieredCacheEditResponse(BaseModel):
- id: UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+ id: RegionalTieredCache
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
index 5d23a4119a7..ac3f6c4e6e3 100644
--- a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
+++ b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
@@ -4,13 +4,13 @@
from datetime import datetime
from ..._models import BaseModel
-from .unnamed_schema_ref_6535d2df7d4d089d21166bd140651307 import UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+from .regional_tiered_cache import RegionalTieredCache
__all__ = ["RegionalTieredCacheGetResponse", "Value"]
class Value(BaseModel):
- id: UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+ id: RegionalTieredCache
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
@@ -18,7 +18,7 @@ class Value(BaseModel):
class RegionalTieredCacheGetResponse(BaseModel):
- id: UnnamedSchemaRef6535d2df7d4d089d21166bd140651307
+ id: RegionalTieredCache
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/unnamed_schema_ref_6535d2df7d4d089d21166bd140651307.py b/src/cloudflare/types/cache/unnamed_schema_ref_6535d2df7d4d089d21166bd140651307.py
deleted file mode 100644
index 2fbae0fa766..00000000000
--- a/src/cloudflare/types/cache/unnamed_schema_ref_6535d2df7d4d089d21166bd140651307.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef6535d2df7d4d089d21166bd140651307"]
-
-UnnamedSchemaRef6535d2df7d4d089d21166bd140651307 = Literal["tc_regional"]
diff --git a/src/cloudflare/types/cloudforce_one/__init__.py b/src/cloudflare/types/cloudforce_one/__init__.py
index 0283b84c64d..f069202d49b 100644
--- a/src/cloudflare/types/cloudforce_one/__init__.py
+++ b/src/cloudflare/types/cloudforce_one/__init__.py
@@ -10,3 +10,4 @@
from .request_list_params import RequestListParams as RequestListParams
from .request_create_params import RequestCreateParams as RequestCreateParams
from .request_update_params import RequestUpdateParams as RequestUpdateParams
+from .request_delete_response import RequestDeleteResponse as RequestDeleteResponse
diff --git a/src/cloudflare/types/cloudforce_one/request_delete_response.py b/src/cloudflare/types/cloudforce_one/request_delete_response.py
new file mode 100644
index 00000000000..f6dca1edb3f
--- /dev/null
+++ b/src/cloudflare/types/cloudforce_one/request_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["RequestDeleteResponse"]
+
+RequestDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/cloudforce_one/requests/__init__.py b/src/cloudflare/types/cloudforce_one/requests/__init__.py
index 9b414b8a739..0c6cb2b6d3a 100644
--- a/src/cloudflare/types/cloudforce_one/requests/__init__.py
+++ b/src/cloudflare/types/cloudforce_one/requests/__init__.py
@@ -11,3 +11,5 @@
from .message_update_params import MessageUpdateParams as MessageUpdateParams
from .priority_create_params import PriorityCreateParams as PriorityCreateParams
from .priority_update_params import PriorityUpdateParams as PriorityUpdateParams
+from .message_delete_response import MessageDeleteResponse as MessageDeleteResponse
+from .priority_delete_response import PriorityDeleteResponse as PriorityDeleteResponse
diff --git a/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py
new file mode 100644
index 00000000000..eaadbea2ab5
--- /dev/null
+++ b/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["MessageDeleteResponse"]
+
+MessageDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py
new file mode 100644
index 00000000000..60bd9aae8bd
--- /dev/null
+++ b/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["PriorityDeleteResponse"]
+
+PriorityDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/custom_nameserver_delete_response.py b/src/cloudflare/types/custom_nameserver_delete_response.py
new file mode 100644
index 00000000000..f50c645a449
--- /dev/null
+++ b/src/cloudflare/types/custom_nameserver_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["CustomNameserverDeleteResponse"]
+
+CustomNameserverDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py
index a861bde5fbf..6ffc186eddb 100644
--- a/src/cloudflare/types/dns/__init__.py
+++ b/src/cloudflare/types/dns/__init__.py
@@ -24,6 +24,7 @@
from .https_record import HTTPSRecord as HTTPSRecord
from .naptr_record import NAPTRRecord as NAPTRRecord
from .sshfp_record import SSHFPRecord as SSHFPRecord
+from .upstream_ips import UpstreamIPs as UpstreamIPs
from .dnskey_record import DNSKEYRecord as DNSKEYRecord
from .smimea_record import SMIMEARecord as SMIMEARecord
from .record_tags_item import RecordTagsItem as RecordTagsItem
@@ -32,7 +33,7 @@
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 .upstream_ips_items import UpstreamIPsItems as UpstreamIPsItems
+from .upstream_ips_param import UpstreamIPsParam as UpstreamIPsParam
from .firewall_edit_params import FirewallEditParams as FirewallEditParams
from .firewall_list_params import FirewallListParams as FirewallListParams
from .record_create_params import RecordCreateParams as RecordCreateParams
@@ -48,7 +49,6 @@
from .attack_mitigation_param import AttackMitigationParam as AttackMitigationParam
from .firewall_ips_item_param import FirewallIPsItemParam as FirewallIPsItemParam
from .firewall_delete_response import FirewallDeleteResponse as FirewallDeleteResponse
-from .upstream_ips_items_param import UpstreamIPsItemsParam as UpstreamIPsItemsParam
from .unnamed_schema_ref_2f895e023ae55b55d2f5925449b819cd import (
UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd as UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd,
)
diff --git a/src/cloudflare/types/dns/firewall/firewall.py b/src/cloudflare/types/dns/firewall/firewall.py
index 4c0d9ddc17b..0890d2fa6ee 100644
--- a/src/cloudflare/types/dns/firewall/firewall.py
+++ b/src/cloudflare/types/dns/firewall/firewall.py
@@ -4,9 +4,9 @@
from datetime import datetime
from ...._models import BaseModel
+from ..upstream_ips import UpstreamIPs
from ..attack_mitigation import AttackMitigation
from ..firewall_ips_item import FirewallIPsItem
-from ..upstream_ips_items import UpstreamIPsItems
__all__ = ["Firewall"]
@@ -35,7 +35,7 @@ class Firewall(BaseModel):
name: str
"""DNS Firewall Cluster Name."""
- upstream_ips: List[UpstreamIPsItems]
+ upstream_ips: List[UpstreamIPs]
attack_mitigation: Optional[AttackMitigation] = None
"""Attack mitigation settings."""
diff --git a/src/cloudflare/types/dns/firewall_create_params.py b/src/cloudflare/types/dns/firewall_create_params.py
index 59e6d9b1be5..d88aa2d120c 100644
--- a/src/cloudflare/types/dns/firewall_create_params.py
+++ b/src/cloudflare/types/dns/firewall_create_params.py
@@ -5,8 +5,8 @@
from typing import List, Optional
from typing_extensions import Required, TypedDict
+from .upstream_ips_param import UpstreamIPsParam
from .attack_mitigation_param import AttackMitigationParam
-from .upstream_ips_items_param import UpstreamIPsItemsParam
__all__ = ["FirewallCreateParams"]
@@ -18,7 +18,7 @@ class FirewallCreateParams(TypedDict, total=False):
name: Required[str]
"""DNS Firewall Cluster Name."""
- upstream_ips: Required[List[UpstreamIPsItemsParam]]
+ upstream_ips: Required[List[UpstreamIPsParam]]
attack_mitigation: Optional[AttackMitigationParam]
"""Attack mitigation settings."""
diff --git a/src/cloudflare/types/dns/firewall_edit_params.py b/src/cloudflare/types/dns/firewall_edit_params.py
index 96c262c2d36..b91fcf5a904 100644
--- a/src/cloudflare/types/dns/firewall_edit_params.py
+++ b/src/cloudflare/types/dns/firewall_edit_params.py
@@ -5,9 +5,9 @@
from typing import List, Optional
from typing_extensions import Required, TypedDict
+from .upstream_ips_param import UpstreamIPsParam
from .attack_mitigation_param import AttackMitigationParam
from .firewall_ips_item_param import FirewallIPsItemParam
-from .upstream_ips_items_param import UpstreamIPsItemsParam
__all__ = ["FirewallEditParams"]
@@ -33,7 +33,7 @@ class FirewallEditParams(TypedDict, total=False):
name: Required[str]
"""DNS Firewall Cluster Name."""
- upstream_ips: Required[List[UpstreamIPsItemsParam]]
+ upstream_ips: Required[List[UpstreamIPsParam]]
attack_mitigation: Optional[AttackMitigationParam]
"""Attack mitigation settings."""
diff --git a/src/cloudflare/types/dns/upstream_ips_items.py b/src/cloudflare/types/dns/upstream_ips.py
similarity index 63%
rename from src/cloudflare/types/dns/upstream_ips_items.py
rename to src/cloudflare/types/dns/upstream_ips.py
index 1d040baa70b..4c1aa1b226a 100644
--- a/src/cloudflare/types/dns/upstream_ips_items.py
+++ b/src/cloudflare/types/dns/upstream_ips.py
@@ -2,6 +2,6 @@
from typing import Union
-__all__ = ["UpstreamIPsItems"]
+__all__ = ["UpstreamIPs"]
-UpstreamIPsItems = Union[str, str]
+UpstreamIPs = Union[str, str]
diff --git a/src/cloudflare/types/dns/upstream_ips_items_param.py b/src/cloudflare/types/dns/upstream_ips_param.py
similarity index 66%
rename from src/cloudflare/types/dns/upstream_ips_items_param.py
rename to src/cloudflare/types/dns/upstream_ips_param.py
index 8a77e03f4a9..88e14503b2a 100644
--- a/src/cloudflare/types/dns/upstream_ips_items_param.py
+++ b/src/cloudflare/types/dns/upstream_ips_param.py
@@ -4,6 +4,6 @@
from typing import Union
-__all__ = ["UpstreamIPsItemsParam"]
+__all__ = ["UpstreamIPsParam"]
-UpstreamIPsItemsParam = Union[str, str]
+UpstreamIPsParam = Union[str, str]
diff --git a/src/cloudflare/types/dnssec_delete_response.py b/src/cloudflare/types/dnssec_delete_response.py
new file mode 100644
index 00000000000..cf05605b328
--- /dev/null
+++ b/src/cloudflare/types/dnssec_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["DNSSECDeleteResponse"]
+
+DNSSECDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/firewall/waf/__init__.py b/src/cloudflare/types/firewall/waf/__init__.py
index 3637793489f..a70b3b14f6e 100644
--- a/src/cloudflare/types/firewall/waf/__init__.py
+++ b/src/cloudflare/types/firewall/waf/__init__.py
@@ -2,9 +2,9 @@
from __future__ import annotations
+from .urls import URLs as URLs
from .rules import Rules as Rules
from .override import Override as Override
-from .urls_items import URLsItems as URLsItems
from .rewrite_action import RewriteAction as RewriteAction
from .package_list_params import PackageListParams as PackageListParams
from .override_list_params import OverrideListParams as OverrideListParams
diff --git a/src/cloudflare/types/firewall/waf/override.py b/src/cloudflare/types/firewall/waf/override.py
index 382bbf9536d..07b4349d841 100644
--- a/src/cloudflare/types/firewall/waf/override.py
+++ b/src/cloudflare/types/firewall/waf/override.py
@@ -2,9 +2,9 @@
from typing import Dict, List, Optional
+from .urls import URLs
from .rules import Rules
from ...._models import BaseModel
-from .urls_items import URLsItems
from .rewrite_action import RewriteAction
__all__ = ["Override"]
@@ -51,7 +51,7 @@ class Override(BaseModel):
override, you must provide a `groups` object or a `rules` object.
"""
- urls: Optional[List[URLsItems]] = None
+ urls: Optional[List[URLs]] = None
"""The URLs to include in the current WAF override.
You can use wildcards. Each entered URL will be escaped before use, which means
diff --git a/src/cloudflare/types/firewall/waf/package_get_response.py b/src/cloudflare/types/firewall/waf/package_get_response.py
index 15ae939180a..7441ec80961 100644
--- a/src/cloudflare/types/firewall/waf/package_get_response.py
+++ b/src/cloudflare/types/firewall/waf/package_get_response.py
@@ -3,7 +3,7 @@
from typing import List, Union, Optional
from typing_extensions import Literal
-from ...shared import ResponseInfo, UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from ...shared import ResponseInfo
from ...._models import BaseModel
__all__ = ["PackageGetResponse", "FirewallAPIResponseSingle", "Result"]
@@ -14,7 +14,7 @@ class FirewallAPIResponseSingle(BaseModel):
messages: List[ResponseInfo]
- result: UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+ result: Union[Optional[str], Optional[object]]
success: Literal[True]
"""Whether the API call was successful"""
diff --git a/src/cloudflare/types/firewall/waf/package_list_response.py b/src/cloudflare/types/firewall/waf/package_list_response.py
index ce5e23e4e67..c121f7e5f6c 100644
--- a/src/cloudflare/types/firewall/waf/package_list_response.py
+++ b/src/cloudflare/types/firewall/waf/package_list_response.py
@@ -3,7 +3,7 @@
from typing import List, Union, Optional
from typing_extensions import Literal
-from ...shared import ResponseInfo, UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
+from ...shared import ResponseInfo
from ...._models import BaseModel
__all__ = [
@@ -36,7 +36,7 @@ class FirewallAPIResponseCollection(BaseModel):
messages: List[ResponseInfo]
- result: Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151] = None
+ result: Union[List[object], str, object, None] = None
success: Literal[True]
"""Whether the API call was successful"""
diff --git a/src/cloudflare/types/firewall/waf/urls_items.py b/src/cloudflare/types/firewall/waf/urls.py
similarity index 68%
rename from src/cloudflare/types/firewall/waf/urls_items.py
rename to src/cloudflare/types/firewall/waf/urls.py
index 69ec082e1de..dff15d0b9a6 100644
--- a/src/cloudflare/types/firewall/waf/urls_items.py
+++ b/src/cloudflare/types/firewall/waf/urls.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["URLsItems"]
+__all__ = ["URLs"]
-URLsItems = str
+URLs = str
diff --git a/src/cloudflare/types/health_check.py b/src/cloudflare/types/health_check.py
index 1e423a87a52..666eb00f5ec 100644
--- a/src/cloudflare/types/health_check.py
+++ b/src/cloudflare/types/health_check.py
@@ -4,7 +4,7 @@
from typing_extensions import Literal
from .._models import BaseModel
-from .unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from .health_check_type import HealthCheckType
from .unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["HealthCheck"]
@@ -37,5 +37,5 @@ class HealthCheck(BaseModel):
the tunnel) is used as the target.
"""
- type: Optional[UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39] = None
+ type: Optional[HealthCheckType] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/health_check_param.py b/src/cloudflare/types/health_check_param.py
index 2d19d8b0366..5332dc86034 100644
--- a/src/cloudflare/types/health_check_param.py
+++ b/src/cloudflare/types/health_check_param.py
@@ -4,7 +4,7 @@
from typing_extensions import Literal, TypedDict
-from .unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from .health_check_type import HealthCheckType
from .unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["HealthCheckParam"]
@@ -37,5 +37,5 @@ class HealthCheckParam(TypedDict, total=False):
the tunnel) is used as the target.
"""
- type: UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+ type: HealthCheckType
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/health_check_type.py b/src/cloudflare/types/health_check_type.py
new file mode 100644
index 00000000000..a1d16204e08
--- /dev/null
+++ b/src/cloudflare/types/health_check_type.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["HealthCheckType"]
+
+HealthCheckType = Literal["reply", "request"]
diff --git a/src/cloudflare/types/intel/__init__.py b/src/cloudflare/types/intel/__init__.py
index c6dd533c08b..ec3642b8432 100644
--- a/src/cloudflare/types/intel/__init__.py
+++ b/src/cloudflare/types/intel/__init__.py
@@ -27,6 +27,7 @@
from .indicator_feed_create_response import IndicatorFeedCreateResponse as IndicatorFeedCreateResponse
from .indicator_feed_update_response import IndicatorFeedUpdateResponse as IndicatorFeedUpdateResponse
from .miscategorization_create_params import MiscategorizationCreateParams as MiscategorizationCreateParams
+from .miscategorization_create_response import MiscategorizationCreateResponse as MiscategorizationCreateResponse
from .unnamed_schema_ref_b5e16cee4f32382c294201aedb9fc050 import (
UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050 as UnnamedSchemaRefB5e16cee4f32382c294201aedb9fc050,
)
diff --git a/src/cloudflare/types/intel/attack_surface_report/__init__.py b/src/cloudflare/types/intel/attack_surface_report/__init__.py
index 6f1047ed7b8..a8b106967e2 100644
--- a/src/cloudflare/types/intel/attack_surface_report/__init__.py
+++ b/src/cloudflare/types/intel/attack_surface_report/__init__.py
@@ -15,5 +15,6 @@
from .issue_dismiss_params import IssueDismissParams as IssueDismissParams
from .severity_query_param import SeverityQueryParam as SeverityQueryParam
from .issue_severity_params import IssueSeverityParams as IssueSeverityParams
+from .issue_dismiss_response import IssueDismissResponse as IssueDismissResponse
from .issue_severity_response import IssueSeverityResponse as IssueSeverityResponse
from .issue_type_get_response import IssueTypeGetResponse as IssueTypeGetResponse
diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py
new file mode 100644
index 00000000000..f693bbe9eee
--- /dev/null
+++ b/src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["IssueDismissResponse"]
+
+IssueDismissResponse = Union[str, object]
diff --git a/src/cloudflare/types/intel/miscategorization_create_response.py b/src/cloudflare/types/intel/miscategorization_create_response.py
new file mode 100644
index 00000000000..07185dc54c7
--- /dev/null
+++ b/src/cloudflare/types/intel/miscategorization_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["MiscategorizationCreateResponse"]
+
+MiscategorizationCreateResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/__init__.py b/src/cloudflare/types/kv/__init__.py
index 0bcbeb679d0..266c496fe4f 100644
--- a/src/cloudflare/types/kv/__init__.py
+++ b/src/cloudflare/types/kv/__init__.py
@@ -7,3 +7,5 @@
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_response.py b/src/cloudflare/types/kv/namespace_delete_response.py
new file mode 100644
index 00000000000..9e59782ae79
--- /dev/null
+++ b/src/cloudflare/types/kv/namespace_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["NamespaceDeleteResponse"]
+
+NamespaceDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/namespace_update_response.py b/src/cloudflare/types/kv/namespace_update_response.py
new file mode 100644
index 00000000000..fbd61fb15c8
--- /dev/null
+++ b/src/cloudflare/types/kv/namespace_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["NamespaceUpdateResponse"]
+
+NamespaceUpdateResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/namespaces/__init__.py b/src/cloudflare/types/kv/namespaces/__init__.py
index c7e0d3b76ae..4d7671ae206 100644
--- a/src/cloudflare/types/kv/namespaces/__init__.py
+++ b/src/cloudflare/types/kv/namespaces/__init__.py
@@ -9,3 +9,7 @@
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
+from .value_delete_response import ValueDeleteResponse as ValueDeleteResponse
+from .value_update_response import ValueUpdateResponse as ValueUpdateResponse
diff --git a/src/cloudflare/types/kv/namespaces/bulk_delete_response.py b/src/cloudflare/types/kv/namespaces/bulk_delete_response.py
new file mode 100644
index 00000000000..56c602c8530
--- /dev/null
+++ b/src/cloudflare/types/kv/namespaces/bulk_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["BulkDeleteResponse"]
+
+BulkDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/namespaces/bulk_update_response.py b/src/cloudflare/types/kv/namespaces/bulk_update_response.py
new file mode 100644
index 00000000000..7a1f035d954
--- /dev/null
+++ b/src/cloudflare/types/kv/namespaces/bulk_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["BulkUpdateResponse"]
+
+BulkUpdateResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/namespaces/value_delete_response.py b/src/cloudflare/types/kv/namespaces/value_delete_response.py
new file mode 100644
index 00000000000..7c3d2c3fb80
--- /dev/null
+++ b/src/cloudflare/types/kv/namespaces/value_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["ValueDeleteResponse"]
+
+ValueDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/kv/namespaces/value_update_response.py b/src/cloudflare/types/kv/namespaces/value_update_response.py
new file mode 100644
index 00000000000..30f088b4fd9
--- /dev/null
+++ b/src/cloudflare/types/kv/namespaces/value_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["ValueUpdateResponse"]
+
+ValueUpdateResponse = Union[str, object]
diff --git a/src/cloudflare/types/load_balancers/__init__.py b/src/cloudflare/types/load_balancers/__init__.py
index 5cafcb763c9..1ddf89caabd 100644
--- a/src/cloudflare/types/load_balancers/__init__.py
+++ b/src/cloudflare/types/load_balancers/__init__.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+from .pool import Pool as Pool
from .pool_edit_params import PoolEditParams as PoolEditParams
from .pool_list_params import PoolListParams as PoolListParams
from .search_get_params import SearchGetParams as SearchGetParams
diff --git a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
index 45ce2173437..6d8e6c352ed 100644
--- a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
+++ b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
+from typing_extensions import Literal
-from ...shared import UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b
from ...._models import BaseModel
__all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"]
class ReferenceGetResponseItem(BaseModel):
- reference_type: Optional[UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b] = None
+ reference_type: Optional[Literal["*", "referral", "referrer"]] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/user/load_balancers/pool.py b/src/cloudflare/types/load_balancers/pool.py
similarity index 92%
rename from src/cloudflare/types/user/load_balancers/pool.py
rename to src/cloudflare/types/load_balancers/pool.py
index 4083c2a1157..4cc92fd7279 100644
--- a/src/cloudflare/types/user/load_balancers/pool.py
+++ b/src/cloudflare/types/load_balancers/pool.py
@@ -3,12 +3,12 @@
from typing import List, Optional
from datetime import datetime
-from ...origin import Origin
-from ...._models import BaseModel
-from ...check_region import CheckRegion
-from ...load_shedding import LoadShedding
-from ...origin_steering import OriginSteering
-from ...notification_filter import NotificationFilter
+from ..origin import Origin
+from ..._models import BaseModel
+from ..check_region import CheckRegion
+from ..load_shedding import LoadShedding
+from ..origin_steering import OriginSteering
+from ..notification_filter import NotificationFilter
__all__ = ["Pool"]
diff --git a/src/cloudflare/types/load_balancers/pools/reference_get_response.py b/src/cloudflare/types/load_balancers/pools/reference_get_response.py
index 45ce2173437..6d8e6c352ed 100644
--- a/src/cloudflare/types/load_balancers/pools/reference_get_response.py
+++ b/src/cloudflare/types/load_balancers/pools/reference_get_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
+from typing_extensions import Literal
-from ...shared import UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b
from ...._models import BaseModel
__all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"]
class ReferenceGetResponseItem(BaseModel):
- reference_type: Optional[UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b] = None
+ reference_type: Optional[Literal["*", "referral", "referrer"]] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/logpush/__init__.py b/src/cloudflare/types/logpush/__init__.py
index f90508b1130..f73721aa34f 100644
--- a/src/cloudflare/types/logpush/__init__.py
+++ b/src/cloudflare/types/logpush/__init__.py
@@ -8,6 +8,7 @@
from .job_update_params import JobUpdateParams as JobUpdateParams
from .edge_create_params import EdgeCreateParams as EdgeCreateParams
from .instant_logpush_job import InstantLogpushJob as InstantLogpushJob
+from .job_delete_response import JobDeleteResponse as JobDeleteResponse
from .validate_origin_params import ValidateOriginParams as ValidateOriginParams
from .ownership_create_params import OwnershipCreateParams as OwnershipCreateParams
from .validate_origin_response import ValidateOriginResponse as ValidateOriginResponse
diff --git a/src/cloudflare/types/logpush/job_delete_response.py b/src/cloudflare/types/logpush/job_delete_response.py
new file mode 100644
index 00000000000..fef20041b3f
--- /dev/null
+++ b/src/cloudflare/types/logpush/job_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["JobDeleteResponse"]
+
+JobDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/logs/__init__.py b/src/cloudflare/types/logs/__init__.py
index 1d6324d3987..de089dd3968 100644
--- a/src/cloudflare/types/logs/__init__.py
+++ b/src/cloudflare/types/logs/__init__.py
@@ -3,4 +3,6 @@
from __future__ import annotations
from .rayid_get_params import RayIDGetParams as RayIDGetParams
+from .rayid_get_response import RayIDGetResponse as RayIDGetResponse
from .received_get_params import ReceivedGetParams as ReceivedGetParams
+from .received_get_response import ReceivedGetResponse as ReceivedGetResponse
diff --git a/src/cloudflare/types/logs/control/cmb/__init__.py b/src/cloudflare/types/logs/control/cmb/__init__.py
index d96a935ea5d..dc545fb11dd 100644
--- a/src/cloudflare/types/logs/control/cmb/__init__.py
+++ b/src/cloudflare/types/logs/control/cmb/__init__.py
@@ -5,3 +5,4 @@
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_response.py b/src/cloudflare/types/logs/control/cmb/config_delete_response.py
new file mode 100644
index 00000000000..4407776e27b
--- /dev/null
+++ b/src/cloudflare/types/logs/control/cmb/config_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ConfigDeleteResponse"]
+
+ConfigDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/logs/rayid_get_response.py b/src/cloudflare/types/logs/rayid_get_response.py
new file mode 100644
index 00000000000..f4437a09f17
--- /dev/null
+++ b/src/cloudflare/types/logs/rayid_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["RayIDGetResponse"]
+
+RayIDGetResponse = Union[str, object]
diff --git a/src/cloudflare/types/logs/received_get_response.py b/src/cloudflare/types/logs/received_get_response.py
new file mode 100644
index 00000000000..042e8a4bd39
--- /dev/null
+++ b/src/cloudflare/types/logs/received_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["ReceivedGetResponse"]
+
+ReceivedGetResponse = Union[str, object]
diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
index 8e571dcdf4e..d6bd91ccca2 100644
--- a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
+++ b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
@@ -4,7 +4,7 @@
from datetime import datetime
from ..._models import BaseModel
-from ..unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from ..health_check_type import HealthCheckType
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["CfInterconnectListResponse", "Interconnect", "InterconnectGRE", "InterconnectHealthCheck"]
@@ -33,7 +33,7 @@ class InterconnectHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39] = None
+ type: Optional[HealthCheckType] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
index 1d2ed5c689f..0d89fdcaf10 100644
--- a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
+++ b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
@@ -4,7 +4,7 @@
from typing_extensions import Required, TypedDict
-from ..unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from ..health_check_type import HealthCheckType
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["CfInterconnectUpdateParams", "GRE", "HealthCheck"]
@@ -59,5 +59,5 @@ class HealthCheck(TypedDict, total=False):
`customer_gre_endpoint address`.
"""
- type: UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+ type: HealthCheckType
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
index e96b0210609..b1d6d3f1e52 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
@@ -5,7 +5,7 @@
from ..._models import BaseModel
from .psk_metadata import PSKMetadata
-from ..unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from ..health_check_type import HealthCheckType
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["IPSECTunnelCreateResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"]
@@ -26,7 +26,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39] = None
+ type: Optional[HealthCheckType] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
index c61842742c9..3d5dafc572a 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
@@ -5,7 +5,7 @@
from ..._models import BaseModel
from .psk_metadata import PSKMetadata
-from ..unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39 import UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39
+from ..health_check_type import HealthCheckType
from ..unnamed_schema_ref_eebdc868ce7f7ae92e23438caa84e7b5 import UnnamedSchemaRefEebdc868ce7f7ae92e23438caa84e7b5
__all__ = ["IPSECTunnelListResponse", "IPSECTunnel", "IPSECTunnelTunnelHealthCheck"]
@@ -26,7 +26,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39] = None
+ type: Optional[HealthCheckType] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/membership.py b/src/cloudflare/types/membership.py
index 186b8bf6bbe..bc953b67174 100644
--- a/src/cloudflare/types/membership.py
+++ b/src/cloudflare/types/membership.py
@@ -1,10 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Optional
+from typing import Optional
from typing_extensions import Literal
from .account import Account
from .._models import BaseModel
+from .accounts import Roles
from .user.tokens import Permission
__all__ = ["Membership"]
@@ -29,7 +30,7 @@ class Membership(BaseModel):
permissions: Optional[Permission] = None
"""All access permissions for the user at the account."""
- roles: Optional[List[str]] = None
+ roles: Optional[Roles] = None
"""List of role names for the user at the account."""
status: Optional[Literal["accepted", "pending", "rejected"]] = None
diff --git a/src/cloudflare/types/pages/__init__.py b/src/cloudflare/types/pages/__init__.py
index 5041509fcb5..bff15c5407c 100644
--- a/src/cloudflare/types/pages/__init__.py
+++ b/src/cloudflare/types/pages/__init__.py
@@ -10,3 +10,5 @@
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 .project_create_response import ProjectCreateResponse as ProjectCreateResponse
diff --git a/src/cloudflare/types/pages/project_create_response.py b/src/cloudflare/types/pages/project_create_response.py
new file mode 100644
index 00000000000..b9fc105a33a
--- /dev/null
+++ b/src/cloudflare/types/pages/project_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ProjectCreateResponse"]
+
+ProjectCreateResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/pages/project_edit_response.py b/src/cloudflare/types/pages/project_edit_response.py
new file mode 100644
index 00000000000..3a046d1a9c6
--- /dev/null
+++ b/src/cloudflare/types/pages/project_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ProjectEditResponse"]
+
+ProjectEditResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/pages/projects/__init__.py b/src/cloudflare/types/pages/projects/__init__.py
index 27bab72ec3b..366cfd847a0 100644
--- a/src/cloudflare/types/pages/projects/__init__.py
+++ b/src/cloudflare/types/pages/projects/__init__.py
@@ -3,9 +3,12 @@
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
diff --git a/src/cloudflare/types/pages/projects/deployments/history/__init__.py b/src/cloudflare/types/pages/projects/deployments/history/__init__.py
index f8ee8b14b1c..22c69408bb0 100644
--- a/src/cloudflare/types/pages/projects/deployments/history/__init__.py
+++ b/src/cloudflare/types/pages/projects/deployments/history/__init__.py
@@ -1,3 +1,5 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
+
+from .log_get_response import LogGetResponse as LogGetResponse
diff --git a/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py b/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py
new file mode 100644
index 00000000000..c5519eb2f4b
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/deployments/history/log_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["LogGetResponse"]
+
+LogGetResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/pages/projects/domain_create_response.py b/src/cloudflare/types/pages/projects/domain_create_response.py
new file mode 100644
index 00000000000..6d40d9d8a49
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/domain_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["DomainCreateResponse"]
+
+DomainCreateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/pages/projects/domain_edit_response.py b/src/cloudflare/types/pages/projects/domain_edit_response.py
new file mode 100644
index 00000000000..b13c4a8c6f9
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/domain_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["DomainEditResponse"]
+
+DomainEditResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/pages/projects/domain_get_response.py b/src/cloudflare/types/pages/projects/domain_get_response.py
new file mode 100644
index 00000000000..31cc6350778
--- /dev/null
+++ b/src/cloudflare/types/pages/projects/domain_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["DomainGetResponse"]
+
+DomainGetResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/queue_delete_response.py b/src/cloudflare/types/queue_delete_response.py
new file mode 100644
index 00000000000..4e660c2b0e0
--- /dev/null
+++ b/src/cloudflare/types/queue_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["QueueDeleteResponse"]
+
+QueueDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/queues/__init__.py b/src/cloudflare/types/queues/__init__.py
index db0db0d4753..ef24e820fb8 100644
--- a/src/cloudflare/types/queues/__init__.py
+++ b/src/cloudflare/types/queues/__init__.py
@@ -11,6 +11,7 @@
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
from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse
from .unnamed_schema_ref_fbd3a4642487e41594e9af0ccb9a5ca5 import (
UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5 as UnnamedSchemaRefFbd3a4642487e41594e9af0ccb9a5ca5,
diff --git a/src/cloudflare/types/queues/consumer_delete_response.py b/src/cloudflare/types/queues/consumer_delete_response.py
new file mode 100644
index 00000000000..341f83809a0
--- /dev/null
+++ b/src/cloudflare/types/queues/consumer_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ConsumerDeleteResponse"]
+
+ConsumerDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/r2/__init__.py b/src/cloudflare/types/r2/__init__.py
index ebdaa8b7682..9227a53be92 100644
--- a/src/cloudflare/types/r2/__init__.py
+++ b/src/cloudflare/types/r2/__init__.py
@@ -4,10 +4,8 @@
from .sippy import Sippy as Sippy
from .bucket import Bucket as Bucket
+from .provider import Provider as Provider
from .bucket_list_params import BucketListParams as BucketListParams
from .sippy_update_params import SippyUpdateParams as SippyUpdateParams
from .bucket_create_params import BucketCreateParams as BucketCreateParams
from .sippy_delete_response import SippyDeleteResponse as SippyDeleteResponse
-from .unnamed_schema_ref_6430970563db310f19d39aafe3debd27 import (
- UnnamedSchemaRef6430970563db310f19d39aafe3debd27 as UnnamedSchemaRef6430970563db310f19d39aafe3debd27,
-)
diff --git a/src/cloudflare/types/r2/provider.py b/src/cloudflare/types/r2/provider.py
new file mode 100644
index 00000000000..a33e66d2fcc
--- /dev/null
+++ b/src/cloudflare/types/r2/provider.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["Provider"]
+
+Provider = Literal["r2"]
diff --git a/src/cloudflare/types/r2/sippy.py b/src/cloudflare/types/r2/sippy.py
index 2d210744028..89d9935106f 100644
--- a/src/cloudflare/types/r2/sippy.py
+++ b/src/cloudflare/types/r2/sippy.py
@@ -5,8 +5,8 @@
from pydantic import Field as FieldInfo
+from .provider import Provider
from ..._models import BaseModel
-from .unnamed_schema_ref_6430970563db310f19d39aafe3debd27 import UnnamedSchemaRef6430970563db310f19d39aafe3debd27
__all__ = ["Sippy", "Destination", "Source"]
@@ -20,7 +20,7 @@ class Destination(BaseModel):
bucket: Optional[str] = None
"""Name of the bucket on the provider"""
- provider: Optional[UnnamedSchemaRef6430970563db310f19d39aafe3debd27] = None
+ provider: Optional[Provider] = None
class Source(BaseModel):
diff --git a/src/cloudflare/types/r2/sippy_update_params.py b/src/cloudflare/types/r2/sippy_update_params.py
index f44742c413c..e51a01c0921 100644
--- a/src/cloudflare/types/r2/sippy_update_params.py
+++ b/src/cloudflare/types/r2/sippy_update_params.py
@@ -6,7 +6,7 @@
from typing_extensions import Literal, Required, Annotated, TypedDict
from ..._utils import PropertyInfo
-from .unnamed_schema_ref_6430970563db310f19d39aafe3debd27 import UnnamedSchemaRef6430970563db310f19d39aafe3debd27
+from .provider import Provider
__all__ = [
"SippyUpdateParams",
@@ -41,7 +41,7 @@ class R2EnableSippyAwsDestination(TypedDict, total=False):
this token to the bucket you're enabling Sippy for.
"""
- provider: UnnamedSchemaRef6430970563db310f19d39aafe3debd27
+ provider: Provider
secret_access_key: Annotated[str, PropertyInfo(alias="secretAccessKey")]
"""
@@ -92,7 +92,7 @@ class R2EnableSippyGcsDestination(TypedDict, total=False):
this token to the bucket you're enabling Sippy for.
"""
- provider: UnnamedSchemaRef6430970563db310f19d39aafe3debd27
+ provider: Provider
secret_access_key: Annotated[str, PropertyInfo(alias="secretAccessKey")]
"""
diff --git a/src/cloudflare/types/r2/unnamed_schema_ref_6430970563db310f19d39aafe3debd27.py b/src/cloudflare/types/r2/unnamed_schema_ref_6430970563db310f19d39aafe3debd27.py
deleted file mode 100644
index bce25648743..00000000000
--- a/src/cloudflare/types/r2/unnamed_schema_ref_6430970563db310f19d39aafe3debd27.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef6430970563db310f19d39aafe3debd27"]
-
-UnnamedSchemaRef6430970563db310f19d39aafe3debd27 = Literal["r2"]
diff --git a/src/cloudflare/types/registrar/__init__.py b/src/cloudflare/types/registrar/__init__.py
index d6102a096f4..8d08ad33d41 100644
--- a/src/cloudflare/types/registrar/__init__.py
+++ b/src/cloudflare/types/registrar/__init__.py
@@ -3,4 +3,6 @@
from __future__ import annotations
from .domain import Domain as Domain
+from .domain_get_response import DomainGetResponse as DomainGetResponse
from .domain_update_params import DomainUpdateParams as DomainUpdateParams
+from .domain_update_response import DomainUpdateResponse as DomainUpdateResponse
diff --git a/src/cloudflare/types/registrar/domain_get_response.py b/src/cloudflare/types/registrar/domain_get_response.py
new file mode 100644
index 00000000000..31cc6350778
--- /dev/null
+++ b/src/cloudflare/types/registrar/domain_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["DomainGetResponse"]
+
+DomainGetResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/registrar/domain_update_response.py b/src/cloudflare/types/registrar/domain_update_response.py
new file mode 100644
index 00000000000..eda77709047
--- /dev/null
+++ b/src/cloudflare/types/registrar/domain_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["DomainUpdateResponse"]
+
+DomainUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py
index 694ea91a61c..72716c6630b 100644
--- a/src/cloudflare/types/secondary_dns/__init__.py
+++ b/src/cloudflare/types/secondary_dns/__init__.py
@@ -7,6 +7,7 @@
from .tsig import TSIG as TSIG
from .force_axfr import ForceAXFR as ForceAXFR
from .enable_transfer import EnableTransfer as EnableTransfer
+from .outgoing_status import OutgoingStatus as OutgoingStatus
from .disable_transfer import DisableTransfer as DisableTransfer
from .acl_create_params import ACLCreateParams as ACLCreateParams
from .acl_delete_params import ACLDeleteParams as ACLDeleteParams
@@ -39,6 +40,3 @@
from .outgoing_update_response import OutgoingUpdateResponse as OutgoingUpdateResponse
from .outgoing_force_notify_params import OutgoingForceNotifyParams as OutgoingForceNotifyParams
from .outgoing_force_notify_response import OutgoingForceNotifyResponse as OutgoingForceNotifyResponse
-from .unnamed_schema_ref_bf34e74a34c9a2f63d85505dc69d4adc import (
- UnnamedSchemaRefBf34e74a34c9a2f63d85505dc69d4adc as UnnamedSchemaRefBf34e74a34c9a2f63d85505dc69d4adc,
-)
diff --git a/src/cloudflare/types/secondary_dns/unnamed_schema_ref_bf34e74a34c9a2f63d85505dc69d4adc.py b/src/cloudflare/types/secondary_dns/outgoing_status.py
similarity index 54%
rename from src/cloudflare/types/secondary_dns/unnamed_schema_ref_bf34e74a34c9a2f63d85505dc69d4adc.py
rename to src/cloudflare/types/secondary_dns/outgoing_status.py
index e479a3f50f2..2d58b2c2714 100644
--- a/src/cloudflare/types/secondary_dns/unnamed_schema_ref_bf34e74a34c9a2f63d85505dc69d4adc.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_status.py
@@ -3,6 +3,6 @@
from typing import Optional
from typing_extensions import Literal
-__all__ = ["UnnamedSchemaRefBf34e74a34c9a2f63d85505dc69d4adc"]
+__all__ = ["OutgoingStatus"]
-UnnamedSchemaRefBf34e74a34c9a2f63d85505dc69d4adc = Optional[Literal]
+OutgoingStatus = Optional[Literal]
diff --git a/src/cloudflare/types/shared/__init__.py b/src/cloudflare/types/shared/__init__.py
index 4ddeabf905d..520ddfdd28f 100644
--- a/src/cloudflare/types/shared/__init__.py
+++ b/src/cloudflare/types/shared/__init__.py
@@ -4,30 +4,16 @@
from .error_data import ErrorData as ErrorData
from .identifier import Identifier as Identifier
from .response_info import ResponseInfo as ResponseInfo
+from .pagination_info import PaginationInfo as PaginationInfo
from .unnamed_schema_ref_025497b7e63379c31929636b5186e45c import (
UnnamedSchemaRef025497b7e63379c31929636b5186e45c as UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
)
-from .unnamed_schema_ref_8d6a37a1e4190f86652802244d29525f import (
- UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f as UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f,
-)
from .unnamed_schema_ref_33f2e3917f3fe46ad98af0acbb1d9a19 import (
UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 as UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
)
-from .unnamed_schema_ref_65e3c8c1a9c4638ec25cdbbaca7165c1 import (
- UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1 as UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1,
-)
-from .unnamed_schema_ref_67bbb1ccdd42c3e2937b9fd19f791151 import (
- UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151 as UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151,
-)
from .unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c import (
UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c as UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
)
-from .unnamed_schema_ref_413ab4522f0bb93f63444799121fe2f8 import (
- UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8 as UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8,
-)
-from .unnamed_schema_ref_602dd5f63eab958d53da61434dec08f0 import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0 as UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
-)
from .unnamed_schema_ref_2173d81a0b2d332c9e2ac46900fe8bb9 import (
UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9 as UnnamedSchemaRef2173d81a0b2d332c9e2ac46900fe8bb9,
)
@@ -46,18 +32,9 @@
from .unnamed_schema_ref_b52ad7cf99890d19f16edcd84d16ef5b import (
UnnamedSchemaRefB52ad7cf99890d19f16edcd84d16ef5b as UnnamedSchemaRefB52ad7cf99890d19f16edcd84d16ef5b,
)
-from .unnamed_schema_ref_b92f86eb861cd3dee83c40884802fda6 import (
- UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6 as UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6,
-)
from .unnamed_schema_ref_cc2ac1a037e5d6702fc77b3bcb527854 import (
UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854 as UnnamedSchemaRefCc2ac1a037e5d6702fc77b3bcb527854,
)
-from .unnamed_schema_ref_d8600eb4758b3ae35607a0327bcd691b import (
- UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b as UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b,
-)
-from .unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846 import (
- UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846 as UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846,
-)
from .unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24 import (
UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 as UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
)
diff --git a/src/cloudflare/types/shared/pagination_info.py b/src/cloudflare/types/shared/pagination_info.py
new file mode 100644
index 00000000000..917e3e94ea0
--- /dev/null
+++ b/src/cloudflare/types/shared/pagination_info.py
@@ -0,0 +1,21 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["PaginationInfo"]
+
+
+class PaginationInfo(BaseModel):
+ count: Optional[float] = None
+ """Total number of results for the requested service"""
+
+ page: Optional[float] = None
+ """Current page within paginated list of results"""
+
+ per_page: Optional[float] = None
+ """Number of results per page of results"""
+
+ total_count: Optional[float] = None
+ """Total results available without any search parameters"""
diff --git a/src/cloudflare/types/shared/result.py b/src/cloudflare/types/shared/result.py
index 3de75940ec9..82ad0e63b6c 100644
--- a/src/cloudflare/types/shared/result.py
+++ b/src/cloudflare/types/shared/result.py
@@ -8,7 +8,6 @@
from ..._models import BaseModel
from .response_info import ResponseInfo
-from .unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846 import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
__all__ = [
"Result",
@@ -106,7 +105,7 @@ class AaaAPIResponseCommon(BaseModel):
messages: List[ResponseInfo]
- result: UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
+ result: Union[List[object], str, object]
success: Literal[True]
"""Whether the API call was successful"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_602dd5f63eab958d53da61434dec08f0.py b/src/cloudflare/types/shared/unnamed_schema_ref_602dd5f63eab958d53da61434dec08f0.py
deleted file mode 100644
index 7506e0eb62e..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_602dd5f63eab958d53da61434dec08f0.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0"]
-
-UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0 = Union[str, object]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_65e3c8c1a9c4638ec25cdbbaca7165c1.py b/src/cloudflare/types/shared/unnamed_schema_ref_65e3c8c1a9c4638ec25cdbbaca7165c1.py
deleted file mode 100644
index 1d89a23c4a2..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_65e3c8c1a9c4638ec25cdbbaca7165c1.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1"]
-
-UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1 = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_67bbb1ccdd42c3e2937b9fd19f791151.py b/src/cloudflare/types/shared/unnamed_schema_ref_67bbb1ccdd42c3e2937b9fd19f791151.py
deleted file mode 100644
index bdab340356c..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_67bbb1ccdd42c3e2937b9fd19f791151.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151"]
-
-UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151 = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_8d6a37a1e4190f86652802244d29525f.py b/src/cloudflare/types/shared/unnamed_schema_ref_8d6a37a1e4190f86652802244d29525f.py
deleted file mode 100644
index fff122e453b..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_8d6a37a1e4190f86652802244d29525f.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f"]
-
-UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f = Union[str, object]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_b0ec5cc02c98b665099a5707a2db4ea6.py b/src/cloudflare/types/shared/unnamed_schema_ref_b0ec5cc02c98b665099a5707a2db4ea6.py
index bd4144c89c1..aeab148302d 100644
--- a/src/cloudflare/types/shared/unnamed_schema_ref_b0ec5cc02c98b665099a5707a2db4ea6.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_b0ec5cc02c98b665099a5707a2db4ea6.py
@@ -2,7 +2,7 @@
from typing import List
-from ..user.load_balancers import Pool
+from ..load_balancers import Pool
__all__ = ["UnnamedSchemaRefB0ec5cc02c98b665099a5707a2db4ea6"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_b92f86eb861cd3dee83c40884802fda6.py b/src/cloudflare/types/shared/unnamed_schema_ref_b92f86eb861cd3dee83c40884802fda6.py
deleted file mode 100644
index 6bc03e0780d..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_b92f86eb861cd3dee83c40884802fda6.py
+++ /dev/null
@@ -1,107 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Optional
-from datetime import datetime
-
-from ..origin import Origin
-from ..._models import BaseModel
-from ..check_region import CheckRegion
-from ..load_shedding import LoadShedding
-from ..origin_steering import OriginSteering
-from ..notification_filter import NotificationFilter
-
-__all__ = ["UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6"]
-
-
-class UnnamedSchemaRefB92f86eb861cd3dee83c40884802fda6(BaseModel):
- id: Optional[str] = None
-
- check_regions: Optional[List[CheckRegion]] = None
- """A list of regions from which to run health checks.
-
- Null means every Cloudflare data center.
- """
-
- created_on: Optional[datetime] = None
-
- description: Optional[str] = None
- """A human-readable description of the pool."""
-
- disabled_at: Optional[datetime] = None
- """This field shows up only if the pool is disabled.
-
- This field is set with the time the pool was disabled at.
- """
-
- enabled: Optional[bool] = None
- """Whether to enable (the default) or disable this pool.
-
- Disabled pools will not receive traffic and are excluded from health checks.
- Disabling a pool will cause any load balancers using it to failover to the next
- pool (if any).
- """
-
- latitude: Optional[float] = None
- """
- The latitude of the data center containing the origins used in this pool in
- decimal degrees. If this is set, longitude must also be set.
- """
-
- load_shedding: Optional[LoadShedding] = None
- """Configures load shedding policies and percentages for the pool."""
-
- longitude: Optional[float] = None
- """
- The longitude of the data center containing the origins used in this pool in
- decimal degrees. If this is set, latitude must also be set.
- """
-
- minimum_origins: Optional[int] = None
- """
- The minimum number of origins that must be healthy for this pool to serve
- traffic. If the number of healthy origins falls below this number, the pool will
- be marked unhealthy and will failover to the next available pool.
- """
-
- modified_on: Optional[datetime] = None
-
- monitor: Optional[object] = None
- """
- The ID of the Monitor to use for checking the health of origins within this
- pool.
- """
-
- name: Optional[str] = None
- """A short name (tag) for the pool.
-
- Only alphanumeric characters, hyphens, and underscores are allowed.
- """
-
- notification_email: Optional[str] = None
- """This field is now deprecated.
-
- It has been moved to Cloudflare's Centralized Notification service
- https://developers.cloudflare.com/fundamentals/notifications/. The email address
- to send health status notifications to. This can be an individual mailbox or a
- mailing list. Multiple emails can be supplied as a comma delimited list.
- """
-
- notification_filter: Optional[NotificationFilter] = None
- """Filter pool and origin health notifications by resource type or health status.
-
- Use null to reset.
- """
-
- origin_steering: Optional[OriginSteering] = None
- """Configures origin steering for the pool.
-
- Controls how origins are selected for new sessions and traffic without session
- affinity.
- """
-
- origins: Optional[List[Origin]] = None
- """The list of origins within this pool.
-
- Traffic directed at this pool is balanced across all currently healthy origins,
- provided the pool itself is healthy.
- """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_d8600eb4758b3ae35607a0327bcd691b.py b/src/cloudflare/types/shared/unnamed_schema_ref_d8600eb4758b3ae35607a0327bcd691b.py
deleted file mode 100644
index ee6a49363f6..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_d8600eb4758b3ae35607a0327bcd691b.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b"]
-
-UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b = Literal["*", "referral", "referrer"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846.py b/src/cloudflare/types/shared/unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846.py
deleted file mode 100644
index 5549c55be61..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_ec4d85c3d1bcc6b3b7e99c199ae99846.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846"]
-
-UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846 = Union[List[object], str, object]
diff --git a/src/cloudflare/types/snippet_delete_response.py b/src/cloudflare/types/snippet_delete_response.py
new file mode 100644
index 00000000000..4d10682f00e
--- /dev/null
+++ b/src/cloudflare/types/snippet_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["SnippetDeleteResponse"]
+
+SnippetDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/spectrum/analytics/events/__init__.py b/src/cloudflare/types/spectrum/analytics/events/__init__.py
index adc8f70e0ab..628747c3784 100644
--- a/src/cloudflare/types/spectrum/analytics/events/__init__.py
+++ b/src/cloudflare/types/spectrum/analytics/events/__init__.py
@@ -4,3 +4,5 @@
from .bytime_get_params import BytimeGetParams as BytimeGetParams
from .summary_get_params import SummaryGetParams as SummaryGetParams
+from .bytime_get_response import BytimeGetResponse as BytimeGetResponse
+from .summary_get_response import SummaryGetResponse as SummaryGetResponse
diff --git a/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py b/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py
new file mode 100644
index 00000000000..66bf70649f0
--- /dev/null
+++ b/src/cloudflare/types/spectrum/analytics/events/bytime_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["BytimeGetResponse"]
+
+BytimeGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py b/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py
new file mode 100644
index 00000000000..1702aa67226
--- /dev/null
+++ b/src/cloudflare/types/spectrum/analytics/events/summary_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["SummaryGetResponse"]
+
+SummaryGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py
index 7f01aa18ba2..3bc69b1a145 100644
--- a/src/cloudflare/types/stream/__init__.py
+++ b/src/cloudflare/types/stream/__init__.py
@@ -14,6 +14,7 @@
from .clip_create_params import ClipCreateParams as ClipCreateParams
from .copy_create_params import CopyCreateParams as CopyCreateParams
from .embed_get_response import EmbedGetResponse as EmbedGetResponse
+from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse
from .token_create_params import TokenCreateParams as TokenCreateParams
from .caption_get_response import CaptionGetResponse as CaptionGetResponse
from .caption_delete_params import CaptionDeleteParams as CaptionDeleteParams
@@ -28,12 +29,16 @@
from .caption_delete_response import CaptionDeleteResponse as CaptionDeleteResponse
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 .audio_track_get_response import AudioTrackGetResponse as AudioTrackGetResponse
+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_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse
from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams
+from .audio_track_delete_response import AudioTrackDeleteResponse as AudioTrackDeleteResponse
from .direct_upload_create_params import DirectUploadCreateParams as DirectUploadCreateParams
from .video_storage_usage_response import VideoStorageUsageResponse as VideoStorageUsageResponse
from .direct_upload_create_response import DirectUploadCreateResponse as DirectUploadCreateResponse
diff --git a/src/cloudflare/types/stream/audio_track_delete_response.py b/src/cloudflare/types/stream/audio_track_delete_response.py
new file mode 100644
index 00000000000..24406bb13e7
--- /dev/null
+++ b/src/cloudflare/types/stream/audio_track_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["AudioTrackDeleteResponse"]
+
+AudioTrackDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/stream/download_delete_response.py b/src/cloudflare/types/stream/download_delete_response.py
new file mode 100644
index 00000000000..5cc7b88881b
--- /dev/null
+++ b/src/cloudflare/types/stream/download_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["DownloadDeleteResponse"]
+
+DownloadDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/stream/key_delete_response.py b/src/cloudflare/types/stream/key_delete_response.py
new file mode 100644
index 00000000000..3ce3eb0cdf6
--- /dev/null
+++ b/src/cloudflare/types/stream/key_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["KeyDeleteResponse"]
+
+KeyDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/stream/watermark_delete_response.py b/src/cloudflare/types/stream/watermark_delete_response.py
new file mode 100644
index 00000000000..64af4554a0f
--- /dev/null
+++ b/src/cloudflare/types/stream/watermark_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["WatermarkDeleteResponse"]
+
+WatermarkDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/stream/webhook_delete_response.py b/src/cloudflare/types/stream/webhook_delete_response.py
new file mode 100644
index 00000000000..a8193942fa5
--- /dev/null
+++ b/src/cloudflare/types/stream/webhook_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["WebhookDeleteResponse"]
+
+WebhookDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/super_bot_fight_mode_likely_config.py b/src/cloudflare/types/super_bot_fight_mode_likely_configuration.py
similarity index 93%
rename from src/cloudflare/types/super_bot_fight_mode_likely_config.py
rename to src/cloudflare/types/super_bot_fight_mode_likely_configuration.py
index f7e8954ac5b..a0e1ceb8d6d 100644
--- a/src/cloudflare/types/super_bot_fight_mode_likely_config.py
+++ b/src/cloudflare/types/super_bot_fight_mode_likely_configuration.py
@@ -5,10 +5,10 @@
from .._models import BaseModel
-__all__ = ["SuperBotFightModeLikelyConfig"]
+__all__ = ["SuperBotFightModeLikelyConfiguration"]
-class SuperBotFightModeLikelyConfig(BaseModel):
+class SuperBotFightModeLikelyConfiguration(BaseModel):
enable_js: Optional[bool] = None
"""Use lightweight, invisible JavaScript detections to improve Bot Management.
diff --git a/src/cloudflare/types/unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39.py b/src/cloudflare/types/unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39.py
deleted file mode 100644
index 810026cd711..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_3b1a76a5e4a139b72ed7d93834773d39.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39"]
-
-UnnamedSchemaRef3b1a76a5e4a139b72ed7d93834773d39 = Literal["reply", "request"]
diff --git a/src/cloudflare/types/user/load_balancers/__init__.py b/src/cloudflare/types/user/load_balancers/__init__.py
index 07c7f78ad8c..2fdb708a73b 100644
--- a/src/cloudflare/types/user/load_balancers/__init__.py
+++ b/src/cloudflare/types/user/load_balancers/__init__.py
@@ -2,7 +2,6 @@
from __future__ import annotations
-from .pool import Pool as Pool
from .monitor import Monitor as Monitor
from .preview import Preview as Preview
from .analytics import Analytics as Analytics
diff --git a/src/cloudflare/types/user/load_balancers/monitor_references_response.py b/src/cloudflare/types/user/load_balancers/monitor_references_response.py
index e2cf0acc960..2abe92dc5ae 100644
--- a/src/cloudflare/types/user/load_balancers/monitor_references_response.py
+++ b/src/cloudflare/types/user/load_balancers/monitor_references_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
+from typing_extensions import Literal
-from ...shared import UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b
from ...._models import BaseModel
__all__ = ["MonitorReferencesResponse", "MonitorReferencesResponseItem"]
class MonitorReferencesResponseItem(BaseModel):
- reference_type: Optional[UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b] = None
+ reference_type: Optional[Literal["*", "referral", "referrer"]] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/user/load_balancers/pool_references_response.py b/src/cloudflare/types/user/load_balancers/pool_references_response.py
index 1541e222d0b..2dfacceb259 100644
--- a/src/cloudflare/types/user/load_balancers/pool_references_response.py
+++ b/src/cloudflare/types/user/load_balancers/pool_references_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
+from typing_extensions import Literal
-from ...shared import UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b
from ...._models import BaseModel
__all__ = ["PoolReferencesResponse", "PoolReferencesResponseItem"]
class PoolReferencesResponseItem(BaseModel):
- reference_type: Optional[UnnamedSchemaRefD8600eb4758b3ae35607a0327bcd691b] = None
+ reference_type: Optional[Literal["*", "referral", "referrer"]] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_413ab4522f0bb93f63444799121fe2f8.py b/src/cloudflare/types/warp_connector.py
similarity index 91%
rename from src/cloudflare/types/shared/unnamed_schema_ref_413ab4522f0bb93f63444799121fe2f8.py
rename to src/cloudflare/types/warp_connector.py
index 38fee2e630f..6141b142e4b 100644
--- a/src/cloudflare/types/shared/unnamed_schema_ref_413ab4522f0bb93f63444799121fe2f8.py
+++ b/src/cloudflare/types/warp_connector.py
@@ -4,10 +4,10 @@
from datetime import datetime
from typing_extensions import Literal
-from ..._models import BaseModel
-from ..zero_trust import WARPConnectorTunnel
+from .._models import BaseModel
+from .zero_trust import WARPConnectorTunnel
-__all__ = ["UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8", "TunnelCfdTunnel", "TunnelCfdTunnelConnection"]
+__all__ = ["WARPConnector", "TunnelCfdTunnel", "TunnelCfdTunnelConnection"]
class TunnelCfdTunnelConnection(BaseModel):
@@ -97,4 +97,4 @@ class TunnelCfdTunnel(BaseModel):
"""The type of tunnel."""
-UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8 = Union[TunnelCfdTunnel, WARPConnectorTunnel]
+WARPConnector = Union[TunnelCfdTunnel, WARPConnectorTunnel]
diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py
index 65d68f45a35..e55a1ffa5b3 100644
--- a/src/cloudflare/types/workers/scripts/__init__.py
+++ b/src/cloudflare/types/workers/scripts/__init__.py
@@ -8,6 +8,7 @@
from .setting_edit_params import SettingEditParams as SettingEditParams
from .consumer_script_item import ConsumerScriptItem as ConsumerScriptItem
from .tail_create_response import TailCreateResponse as TailCreateResponse
+from .tail_delete_response import TailDeleteResponse as TailDeleteResponse
from .version_get_response import VersionGetResponse as VersionGetResponse
from .content_update_params import ContentUpdateParams as ContentUpdateParams
from .schedule_get_response import ScheduleGetResponse as ScheduleGetResponse
diff --git a/src/cloudflare/types/workers/scripts/tail_delete_response.py b/src/cloudflare/types/workers/scripts/tail_delete_response.py
new file mode 100644
index 00000000000..5c1bf53bdf6
--- /dev/null
+++ b/src/cloudflare/types/workers/scripts/tail_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["TailDeleteResponse"]
+
+TailDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py
index 3c7eca684fa..0357311121d 100644
--- a/src/cloudflare/types/zero_trust/__init__.py
+++ b/src/cloudflare/types/zero_trust/__init__.py
@@ -6,22 +6,23 @@
from .device import Device as Device
from .tunnel import Tunnel as Tunnel
from .ip_rule import IPRule as IPRule
-from .azure_ad import AzureAd as AzureAd
+from .azure_ad import AzureAD as AzureAD
from .email_rule import EmailRule as EmailRule
from .group_rule import GroupRule as GroupRule
from .access_rule import AccessRule as AccessRule
from .domain_rule import DomainRule as DomainRule
from .percentiles import Percentiles as Percentiles
+from .scim_config import ScimConfig as ScimConfig
from .country_rule import CountryRule as CountryRule
from .ip_list_rule import IPListRule as IPListRule
from .login_design import LoginDesign as LoginDesign
+from .organization import Organization as Organization
from .tunnel_param import TunnelParam as TunnelParam
from .everyone_rule import EveryoneRule as EveryoneRule
from .ip_rule_param import IPRuleParam as IPRuleParam
-from .organizations import Organizations as Organizations
from .email_list_rule import EmailListRule as EmailListRule
from .okta_group_rule import OktaGroupRule as OktaGroupRule
-from .saml_group_rule import SamlGroupRule as SamlGroupRule
+from .saml_group_rule import SAMLGroupRule as SAMLGroupRule
from .azure_group_rule import AzureGroupRule as AzureGroupRule
from .certificate_rule import CertificateRule as CertificateRule
from .email_rule_param import EmailRuleParam as EmailRuleParam
@@ -31,6 +32,7 @@
from .domain_rule_param import DomainRuleParam as DomainRuleParam
from .gsuite_group_rule import GsuiteGroupRule as GsuiteGroupRule
from .identity_provider import IdentityProvider as IdentityProvider
+from .scim_config_param import ScimConfigParam as ScimConfigParam
from .country_rule_param import CountryRuleParam as CountryRuleParam
from .ip_list_rule_param import IPListRuleParam as IPListRuleParam
from .login_design_param import LoginDesignParam as LoginDesignParam
@@ -45,10 +47,11 @@
from .email_list_rule_param import EmailListRuleParam as EmailListRuleParam
from .gateway_list_response import GatewayListResponse as GatewayListResponse
from .okta_group_rule_param import OktaGroupRuleParam as OktaGroupRuleParam
-from .saml_group_rule_param import SamlGroupRuleParam as SamlGroupRuleParam
+from .saml_group_rule_param import SAMLGroupRuleParam as SAMLGroupRuleParam
from .warp_connector_tunnel import WARPConnectorTunnel as WARPConnectorTunnel
from .azure_group_rule_param import AzureGroupRuleParam as AzureGroupRuleParam
from .certificate_rule_param import CertificateRuleParam as CertificateRuleParam
+from .identity_provider_type import IdentityProviderType as IdentityProviderType
from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse
from .gsuite_group_rule_param import GsuiteGroupRuleParam as GsuiteGroupRuleParam
from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule
@@ -74,15 +77,6 @@
from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam as AnyValidServiceTokenRuleParam
from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse
from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import (
- UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb as UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb,
-)
from .unnamed_schema_ref_bf9e2abcf1b78a6cab8e6e29e2228a11 import (
UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11 as UnnamedSchemaRefBf9e2abcf1b78a6cab8e6e29e2228a11,
)
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1 import (
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1 as UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1,
-)
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param import (
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param as UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param,
-)
diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py
index ac4f81c8199..f6c6ddc318a 100644
--- a/src/cloudflare/types/zero_trust/access/__init__.py
+++ b/src/cloudflare/types/zero_trust/access/__init__.py
@@ -11,28 +11,31 @@
from .app_id_param import AppIDParam as AppIDParam
from .cors_headers import CorsHeaders as CorsHeaders
from .ervice_token import ErviceToken as ErviceToken
-from .saml_saas_app import SamlSaasApp as SamlSaasApp
+from .allowed_idpsh import AllowedIdpsh as AllowedIdpsh
+from .custom_pagesh import CustomPagesh as CustomPagesh
+from .saml_saas_app import SAMLSaasApp as SAMLSaasApp
+from .allowed_headersh import AllowedHeadersh as AllowedHeadersh
+from .allowed_methodsh import AllowedMethodsh as AllowedMethodsh
+from .allowed_originsh import AllowedOriginsh as AllowedOriginsh
+from .key_get_response import KeyGetResponse as KeyGetResponse
from .zero_trust_group import ZeroTrustGroup as ZeroTrustGroup
-from .allowed_idps_item import AllowedIDPsItem as AllowedIDPsItem
-from .custom_pages_item import CustomPagesItem as CustomPagesItem
from .key_update_params import KeyUpdateParams as KeyUpdateParams
from .tag_create_params import TagCreateParams as TagCreateParams
from .tag_update_params import TagUpdateParams as TagUpdateParams
from .cors_headers_param import CorsHeadersParam as CorsHeadersParam
from .group_create_params import GroupCreateParams as GroupCreateParams
from .group_update_params import GroupUpdateParams as GroupUpdateParams
-from .saml_saas_app_param import SamlSaasAppParam as SamlSaasAppParam
+from .key_rotate_response import KeyRotateResponse as KeyRotateResponse
+from .key_update_response import KeyUpdateResponse as KeyUpdateResponse
+from .saml_saas_app_param import SAMLSaasAppParam as SAMLSaasAppParam
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
-from .allowed_headers_item import AllowedHeadersItem as AllowedHeadersItem
-from .allowed_methods_item import AllowedMethodsItem as AllowedMethodsItem
-from .allowed_origins_item import AllowedOriginsItem as AllowedOriginsItem
+from .self_hosted_domainsh import SelfHostedDomainsh as SelfHostedDomainsh
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 .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse
from .custom_page_without_html import CustomPageWithoutHTML as CustomPageWithoutHTML
-from .self_hosted_domains_item import SelfHostedDomainsItem as SelfHostedDomainsItem
from .application_create_params import ApplicationCreateParams as ApplicationCreateParams
from .application_update_params import ApplicationUpdateParams as ApplicationUpdateParams
from .associated_hostnames_item import AssociatedHostnamesItem as AssociatedHostnamesItem
diff --git a/src/cloudflare/types/zero_trust/access/allowed_idps_item.py b/src/cloudflare/types/zero_trust/access/allowed_headersh.py
similarity index 63%
rename from src/cloudflare/types/zero_trust/access/allowed_idps_item.py
rename to src/cloudflare/types/zero_trust/access/allowed_headersh.py
index 7970ff43d7f..5eab7035a5c 100644
--- a/src/cloudflare/types/zero_trust/access/allowed_idps_item.py
+++ b/src/cloudflare/types/zero_trust/access/allowed_headersh.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["AllowedIDPsItem"]
+__all__ = ["AllowedHeadersh"]
-AllowedIDPsItem = str
+AllowedHeadersh = str
diff --git a/src/cloudflare/types/zero_trust/access/custom_pages_item.py b/src/cloudflare/types/zero_trust/access/allowed_idpsh.py
similarity index 63%
rename from src/cloudflare/types/zero_trust/access/custom_pages_item.py
rename to src/cloudflare/types/zero_trust/access/allowed_idpsh.py
index 0a2a0d18798..06ac561930d 100644
--- a/src/cloudflare/types/zero_trust/access/custom_pages_item.py
+++ b/src/cloudflare/types/zero_trust/access/allowed_idpsh.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["CustomPagesItem"]
+__all__ = ["AllowedIdpsh"]
-CustomPagesItem = str
+AllowedIdpsh = str
diff --git a/src/cloudflare/types/zero_trust/access/allowed_methods_item.py b/src/cloudflare/types/zero_trust/access/allowed_methods_item.py
deleted file mode 100644
index 13f5b9933e5..00000000000
--- a/src/cloudflare/types/zero_trust/access/allowed_methods_item.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["AllowedMethodsItem"]
-
-AllowedMethodsItem = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
diff --git a/src/cloudflare/types/zero_trust/access/allowed_methodsh.py b/src/cloudflare/types/zero_trust/access/allowed_methodsh.py
new file mode 100644
index 00000000000..9ce6cd1709b
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/allowed_methodsh.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["AllowedMethodsh"]
+
+AllowedMethodsh = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
diff --git a/src/cloudflare/types/zero_trust/access/allowed_origins_item.py b/src/cloudflare/types/zero_trust/access/allowed_originsh.py
similarity index 60%
rename from src/cloudflare/types/zero_trust/access/allowed_origins_item.py
rename to src/cloudflare/types/zero_trust/access/allowed_originsh.py
index 3fd719211f6..dbd56ff86ca 100644
--- a/src/cloudflare/types/zero_trust/access/allowed_origins_item.py
+++ b/src/cloudflare/types/zero_trust/access/allowed_originsh.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["AllowedOriginsItem"]
+__all__ = ["AllowedOriginsh"]
-AllowedOriginsItem = str
+AllowedOriginsh = str
diff --git a/src/cloudflare/types/zero_trust/access/application.py b/src/cloudflare/types/zero_trust/access/application.py
index 510a311cb7e..396b0429286 100644
--- a/src/cloudflare/types/zero_trust/access/application.py
+++ b/src/cloudflare/types/zero_trust/access/application.py
@@ -6,17 +6,17 @@
from ...._models import BaseModel
from .cors_headers import CorsHeaders
-from .saml_saas_app import SamlSaasApp
-from .allowed_idps_item import AllowedIDPsItem
-from .custom_pages_item import CustomPagesItem
-from .self_hosted_domains_item import SelfHostedDomainsItem
+from .allowed_idpsh import AllowedIdpsh
+from .custom_pagesh import CustomPagesh
+from .saml_saas_app import SAMLSaasApp
+from .self_hosted_domainsh import SelfHostedDomainsh
__all__ = [
"Application",
"SelfHostedApplication",
"SaaSApplication",
"SaaSApplicationSaasApp",
- "SaaSApplicationSaasAppAccessOidcSaasApp",
+ "SaaSApplicationSaasAppAccessOIDCSaasApp",
"BrowserSSHApplication",
"BrowserVncApplication",
"AppLauncherApplication",
@@ -48,7 +48,7 @@ class SelfHostedApplication(BaseModel):
authentication.
"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -90,7 +90,7 @@ class SelfHostedApplication(BaseModel):
application when failing non-identity rules.
"""
- custom_pages: Optional[List[CustomPagesItem]] = None
+ custom_pages: Optional[List[CustomPagesh]] = None
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: Optional[bool] = None
@@ -123,7 +123,7 @@ class SelfHostedApplication(BaseModel):
attacks.
"""
- self_hosted_domains: Optional[List[SelfHostedDomainsItem]] = None
+ self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
"""List of domains that Access will secure."""
service_auth_401_redirect: Optional[bool] = None
@@ -148,7 +148,7 @@ class SelfHostedApplication(BaseModel):
updated_at: Optional[datetime] = None
-class SaaSApplicationSaasAppAccessOidcSaasApp(BaseModel):
+class SaaSApplicationSaasAppAccessOIDCSaasApp(BaseModel):
app_launcher_url: Optional[str] = None
"""The URL where this applications tile redirects users"""
@@ -187,14 +187,14 @@ class SaaSApplicationSaasAppAccessOidcSaasApp(BaseModel):
updated_at: Optional[datetime] = None
-SaaSApplicationSaasApp = Union[SamlSaasApp, SaaSApplicationSaasAppAccessOidcSaasApp]
+SaaSApplicationSaasApp = Union[SAMLSaasApp, SaaSApplicationSaasAppAccessOIDCSaasApp]
class SaaSApplication(BaseModel):
id: Optional[str] = None
"""UUID"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -216,7 +216,7 @@ class SaaSApplication(BaseModel):
created_at: Optional[datetime] = None
- custom_pages: Optional[List[CustomPagesItem]] = None
+ custom_pages: Optional[List[CustomPagesh]] = None
"""The custom pages that will be displayed when applicable for this application"""
logo_url: Optional[str] = None
@@ -261,7 +261,7 @@ class BrowserSSHApplication(BaseModel):
authentication.
"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -303,7 +303,7 @@ class BrowserSSHApplication(BaseModel):
application when failing non-identity rules.
"""
- custom_pages: Optional[List[CustomPagesItem]] = None
+ custom_pages: Optional[List[CustomPagesh]] = None
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: Optional[bool] = None
@@ -336,7 +336,7 @@ class BrowserSSHApplication(BaseModel):
attacks.
"""
- self_hosted_domains: Optional[List[SelfHostedDomainsItem]] = None
+ self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
"""List of domains that Access will secure."""
service_auth_401_redirect: Optional[bool] = None
@@ -383,7 +383,7 @@ class BrowserVncApplication(BaseModel):
authentication.
"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -425,7 +425,7 @@ class BrowserVncApplication(BaseModel):
application when failing non-identity rules.
"""
- custom_pages: Optional[List[CustomPagesItem]] = None
+ custom_pages: Optional[List[CustomPagesh]] = None
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: Optional[bool] = None
@@ -458,7 +458,7 @@ class BrowserVncApplication(BaseModel):
attacks.
"""
- self_hosted_domains: Optional[List[SelfHostedDomainsItem]] = None
+ self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
"""List of domains that Access will secure."""
service_auth_401_redirect: Optional[bool] = None
@@ -490,7 +490,7 @@ class AppLauncherApplication(BaseModel):
id: Optional[str] = None
"""UUID"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -536,7 +536,7 @@ class DeviceEnrollmentPermissionsApplication(BaseModel):
id: Optional[str] = None
"""UUID"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
@@ -582,7 +582,7 @@ class BrowserIsolationPermissionsApplication(BaseModel):
id: Optional[str] = None
"""UUID"""
- allowed_idps: Optional[List[AllowedIDPsItem]] = None
+ allowed_idps: Optional[List[AllowedIdpsh]] = None
"""The identity providers your users can select when connecting to this
application.
diff --git a/src/cloudflare/types/zero_trust/access/application_create_params.py b/src/cloudflare/types/zero_trust/access/application_create_params.py
index 79c36f98271..d740be288e7 100644
--- a/src/cloudflare/types/zero_trust/access/application_create_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_create_params.py
@@ -5,18 +5,18 @@
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict
-from .allowed_idps_item import AllowedIDPsItem
-from .custom_pages_item import CustomPagesItem
+from .allowed_idpsh import AllowedIdpsh
+from .custom_pagesh import CustomPagesh
from .cors_headers_param import CorsHeadersParam
-from .saml_saas_app_param import SamlSaasAppParam
-from .self_hosted_domains_item import SelfHostedDomainsItem
+from .saml_saas_app_param import SAMLSaasAppParam
+from .self_hosted_domainsh import SelfHostedDomainsh
__all__ = [
"ApplicationCreateParams",
"SelfHostedApplication",
"SaaSApplication",
"SaaSApplicationSaasApp",
- "SaaSApplicationSaasAppAccessOidcSaasApp",
+ "SaaSApplicationSaasAppAccessOIDCSaasApp",
"BrowserSSHApplication",
"BrowserVncApplication",
"AppLauncherApplication",
@@ -51,7 +51,7 @@ class SelfHostedApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -88,7 +88,7 @@ class SelfHostedApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -121,7 +121,7 @@ class SelfHostedApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -151,7 +151,7 @@ class SaaSApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -168,7 +168,7 @@ class SaaSApplication(TypedDict, total=False):
You must specify only one identity provider in allowed_idps.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
logo_url: str
@@ -189,7 +189,7 @@ class SaaSApplication(TypedDict, total=False):
"""The application type."""
-class SaaSApplicationSaasAppAccessOidcSaasApp(TypedDict, total=False):
+class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False):
app_launcher_url: str
"""The URL where this applications tile redirects users"""
@@ -224,7 +224,7 @@ class SaaSApplicationSaasAppAccessOidcSaasApp(TypedDict, total=False):
"""Define the user information shared with access"""
-SaaSApplicationSaasApp = Union[SamlSaasAppParam, SaaSApplicationSaasAppAccessOidcSaasApp]
+SaaSApplicationSaasApp = Union[SAMLSaasAppParam, SaaSApplicationSaasAppAccessOIDCSaasApp]
class BrowserSSHApplication(TypedDict, total=False):
@@ -252,7 +252,7 @@ class BrowserSSHApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -289,7 +289,7 @@ class BrowserSSHApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -322,7 +322,7 @@ class BrowserSSHApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -370,7 +370,7 @@ class BrowserVncApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -407,7 +407,7 @@ class BrowserVncApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -440,7 +440,7 @@ class BrowserVncApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -473,7 +473,7 @@ class AppLauncherApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -505,7 +505,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -537,7 +537,7 @@ class BrowserIsolationPermissionsApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
diff --git a/src/cloudflare/types/zero_trust/access/application_update_params.py b/src/cloudflare/types/zero_trust/access/application_update_params.py
index db006012feb..d2baaecbcab 100644
--- a/src/cloudflare/types/zero_trust/access/application_update_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_update_params.py
@@ -5,18 +5,18 @@
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict
-from .allowed_idps_item import AllowedIDPsItem
-from .custom_pages_item import CustomPagesItem
+from .allowed_idpsh import AllowedIdpsh
+from .custom_pagesh import CustomPagesh
from .cors_headers_param import CorsHeadersParam
-from .saml_saas_app_param import SamlSaasAppParam
-from .self_hosted_domains_item import SelfHostedDomainsItem
+from .saml_saas_app_param import SAMLSaasAppParam
+from .self_hosted_domainsh import SelfHostedDomainsh
__all__ = [
"ApplicationUpdateParams",
"SelfHostedApplication",
"SaaSApplication",
"SaaSApplicationSaasApp",
- "SaaSApplicationSaasAppAccessOidcSaasApp",
+ "SaaSApplicationSaasAppAccessOIDCSaasApp",
"BrowserSSHApplication",
"BrowserVncApplication",
"AppLauncherApplication",
@@ -51,7 +51,7 @@ class SelfHostedApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -88,7 +88,7 @@ class SelfHostedApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -121,7 +121,7 @@ class SelfHostedApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -151,7 +151,7 @@ class SaaSApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -168,7 +168,7 @@ class SaaSApplication(TypedDict, total=False):
You must specify only one identity provider in allowed_idps.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
logo_url: str
@@ -189,7 +189,7 @@ class SaaSApplication(TypedDict, total=False):
"""The application type."""
-class SaaSApplicationSaasAppAccessOidcSaasApp(TypedDict, total=False):
+class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False):
app_launcher_url: str
"""The URL where this applications tile redirects users"""
@@ -224,7 +224,7 @@ class SaaSApplicationSaasAppAccessOidcSaasApp(TypedDict, total=False):
"""Define the user information shared with access"""
-SaaSApplicationSaasApp = Union[SamlSaasAppParam, SaaSApplicationSaasAppAccessOidcSaasApp]
+SaaSApplicationSaasApp = Union[SAMLSaasAppParam, SaaSApplicationSaasAppAccessOIDCSaasApp]
class BrowserSSHApplication(TypedDict, total=False):
@@ -252,7 +252,7 @@ class BrowserSSHApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -289,7 +289,7 @@ class BrowserSSHApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -322,7 +322,7 @@ class BrowserSSHApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -370,7 +370,7 @@ class BrowserVncApplication(TypedDict, total=False):
authentication.
"""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -407,7 +407,7 @@ class BrowserVncApplication(TypedDict, total=False):
application when failing non-identity rules.
"""
- custom_pages: List[CustomPagesItem]
+ custom_pages: List[CustomPagesh]
"""The custom pages that will be displayed when applicable for this application"""
enable_binding_cookie: bool
@@ -440,7 +440,7 @@ class BrowserVncApplication(TypedDict, total=False):
attacks.
"""
- self_hosted_domains: List[SelfHostedDomainsItem]
+ self_hosted_domains: List[SelfHostedDomainsh]
"""List of domains that Access will secure."""
service_auth_401_redirect: bool
@@ -473,7 +473,7 @@ class AppLauncherApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -505,7 +505,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
@@ -537,7 +537,7 @@ class BrowserIsolationPermissionsApplication(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- allowed_idps: List[AllowedIDPsItem]
+ allowed_idps: List[AllowedIdpsh]
"""The identity providers your users can select when connecting to this
application.
diff --git a/src/cloudflare/types/zero_trust/access/cors_headers.py b/src/cloudflare/types/zero_trust/access/cors_headers.py
index 442865c65d7..5d6fb107ec0 100644
--- a/src/cloudflare/types/zero_trust/access/cors_headers.py
+++ b/src/cloudflare/types/zero_trust/access/cors_headers.py
@@ -3,9 +3,9 @@
from typing import List, Optional
from ...._models import BaseModel
-from .allowed_headers_item import AllowedHeadersItem
-from .allowed_methods_item import AllowedMethodsItem
-from .allowed_origins_item import AllowedOriginsItem
+from .allowed_headersh import AllowedHeadersh
+from .allowed_methodsh import AllowedMethodsh
+from .allowed_originsh import AllowedOriginsh
__all__ = ["CorsHeaders"]
@@ -26,13 +26,13 @@ class CorsHeaders(BaseModel):
client certificates) with requests.
"""
- allowed_headers: Optional[List[AllowedHeadersItem]] = None
+ allowed_headers: Optional[List[AllowedHeadersh]] = None
"""Allowed HTTP request headers."""
- allowed_methods: Optional[List[AllowedMethodsItem]] = None
+ allowed_methods: Optional[List[AllowedMethodsh]] = None
"""Allowed HTTP request methods."""
- allowed_origins: Optional[List[AllowedOriginsItem]] = None
+ allowed_origins: Optional[List[AllowedOriginsh]] = None
"""Allowed origins."""
max_age: Optional[float] = None
diff --git a/src/cloudflare/types/zero_trust/access/cors_headers_param.py b/src/cloudflare/types/zero_trust/access/cors_headers_param.py
index 1733b5036b9..e2125acc5ef 100644
--- a/src/cloudflare/types/zero_trust/access/cors_headers_param.py
+++ b/src/cloudflare/types/zero_trust/access/cors_headers_param.py
@@ -5,9 +5,9 @@
from typing import List
from typing_extensions import TypedDict
-from .allowed_headers_item import AllowedHeadersItem
-from .allowed_methods_item import AllowedMethodsItem
-from .allowed_origins_item import AllowedOriginsItem
+from .allowed_headersh import AllowedHeadersh
+from .allowed_methodsh import AllowedMethodsh
+from .allowed_originsh import AllowedOriginsh
__all__ = ["CorsHeadersParam"]
@@ -28,13 +28,13 @@ class CorsHeadersParam(TypedDict, total=False):
client certificates) with requests.
"""
- allowed_headers: List[AllowedHeadersItem]
+ allowed_headers: List[AllowedHeadersh]
"""Allowed HTTP request headers."""
- allowed_methods: List[AllowedMethodsItem]
+ allowed_methods: List[AllowedMethodsh]
"""Allowed HTTP request methods."""
- allowed_origins: List[AllowedOriginsItem]
+ allowed_origins: List[AllowedOriginsh]
"""Allowed origins."""
max_age: float
diff --git a/src/cloudflare/types/zero_trust/access/custom_pagesh.py b/src/cloudflare/types/zero_trust/access/custom_pagesh.py
new file mode 100644
index 00000000000..c85ccdf5283
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/custom_pagesh.py
@@ -0,0 +1,6 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+__all__ = ["CustomPagesh"]
+
+CustomPagesh = str
diff --git a/src/cloudflare/types/zero_trust/access/key_get_response.py b/src/cloudflare/types/zero_trust/access/key_get_response.py
new file mode 100644
index 00000000000..79cfd988d58
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/key_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["KeyGetResponse"]
+
+KeyGetResponse = Union[str, object]
diff --git a/src/cloudflare/types/zero_trust/access/key_rotate_response.py b/src/cloudflare/types/zero_trust/access/key_rotate_response.py
new file mode 100644
index 00000000000..1ababd82b3c
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/key_rotate_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["KeyRotateResponse"]
+
+KeyRotateResponse = Union[str, object]
diff --git a/src/cloudflare/types/zero_trust/access/key_update_response.py b/src/cloudflare/types/zero_trust/access/key_update_response.py
new file mode 100644
index 00000000000..a63396635f6
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/key_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+__all__ = ["KeyUpdateResponse"]
+
+KeyUpdateResponse = Union[str, object]
diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app.py b/src/cloudflare/types/zero_trust/access/saml_saas_app.py
index 4e5b5659882..17c09585d68 100644
--- a/src/cloudflare/types/zero_trust/access/saml_saas_app.py
+++ b/src/cloudflare/types/zero_trust/access/saml_saas_app.py
@@ -6,7 +6,7 @@
from ...._models import BaseModel
-__all__ = ["SamlSaasApp", "CustomAttributes", "CustomAttributesSource"]
+__all__ = ["SAMLSaasApp", "CustomAttributes", "CustomAttributesSource"]
class CustomAttributesSource(BaseModel):
@@ -30,7 +30,7 @@ class CustomAttributes(BaseModel):
source: Optional[CustomAttributesSource] = None
-class SamlSaasApp(BaseModel):
+class SAMLSaasApp(BaseModel):
auth_type: Optional[Literal["saml", "oidc"]] = None
"""Optional identifier indicating the authentication protocol used for the saas
app.
diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py
index a6773525cc7..7237bbee617 100644
--- a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py
+++ b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py
@@ -4,7 +4,7 @@
from typing_extensions import Literal, TypedDict
-__all__ = ["SamlSaasAppParam", "CustomAttributes", "CustomAttributesSource"]
+__all__ = ["SAMLSaasAppParam", "CustomAttributes", "CustomAttributesSource"]
class CustomAttributesSource(TypedDict, total=False):
@@ -26,7 +26,7 @@ class CustomAttributes(TypedDict, total=False):
source: CustomAttributesSource
-class SamlSaasAppParam(TypedDict, total=False):
+class SAMLSaasAppParam(TypedDict, total=False):
auth_type: Literal["saml", "oidc"]
"""Optional identifier indicating the authentication protocol used for the saas
app.
diff --git a/src/cloudflare/types/zero_trust/access/self_hosted_domains_item.py b/src/cloudflare/types/zero_trust/access/self_hosted_domains_item.py
deleted file mode 100644
index 6ef249e5088..00000000000
--- a/src/cloudflare/types/zero_trust/access/self_hosted_domains_item.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-
-__all__ = ["SelfHostedDomainsItem"]
-
-SelfHostedDomainsItem = str
diff --git a/src/cloudflare/types/zero_trust/access/allowed_headers_item.py b/src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py
similarity index 60%
rename from src/cloudflare/types/zero_trust/access/allowed_headers_item.py
rename to src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py
index 389977a8c0f..7dd81dca382 100644
--- a/src/cloudflare/types/zero_trust/access/allowed_headers_item.py
+++ b/src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__all__ = ["AllowedHeadersItem"]
+__all__ = ["SelfHostedDomainsh"]
-AllowedHeadersItem = str
+SelfHostedDomainsh = str
diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py
index 9b98f25bbd5..252edbf96e4 100644
--- a/src/cloudflare/types/zero_trust/access_rule.py
+++ b/src/cloudflare/types/zero_trust/access_rule.py
@@ -11,7 +11,7 @@
from .everyone_rule import EveryoneRule
from .email_list_rule import EmailListRule
from .okta_group_rule import OktaGroupRule
-from .saml_group_rule import SamlGroupRule
+from .saml_group_rule import SAMLGroupRule
from .azure_group_rule import AzureGroupRule
from .certificate_rule import CertificateRule
from .gsuite_group_rule import GsuiteGroupRule
@@ -37,7 +37,7 @@
GitHubOrganizationRule,
GsuiteGroupRule,
OktaGroupRule,
- SamlGroupRule,
+ SAMLGroupRule,
ServiceTokenRule,
AnyValidServiceTokenRule,
ExternalEvaluationRule,
diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py
index fc3ade70b26..49ed8656f83 100644
--- a/src/cloudflare/types/zero_trust/access_rule_param.py
+++ b/src/cloudflare/types/zero_trust/access_rule_param.py
@@ -13,7 +13,7 @@
from .everyone_rule_param import EveryoneRuleParam
from .email_list_rule_param import EmailListRuleParam
from .okta_group_rule_param import OktaGroupRuleParam
-from .saml_group_rule_param import SamlGroupRuleParam
+from .saml_group_rule_param import SAMLGroupRuleParam
from .azure_group_rule_param import AzureGroupRuleParam
from .certificate_rule_param import CertificateRuleParam
from .gsuite_group_rule_param import GsuiteGroupRuleParam
@@ -39,7 +39,7 @@
GitHubOrganizationRuleParam,
GsuiteGroupRuleParam,
OktaGroupRuleParam,
- SamlGroupRuleParam,
+ SAMLGroupRuleParam,
ServiceTokenRuleParam,
AnyValidServiceTokenRuleParam,
ExternalEvaluationRuleParam,
diff --git a/src/cloudflare/types/zero_trust/azure_ad.py b/src/cloudflare/types/zero_trust/azure_ad.py
index e6091d0ad5b..2d8690b282a 100644
--- a/src/cloudflare/types/zero_trust/azure_ad.py
+++ b/src/cloudflare/types/zero_trust/azure_ad.py
@@ -4,10 +4,10 @@
from typing_extensions import Literal
from ..._models import BaseModel
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1 import UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1
+from .scim_config import ScimConfig
+from .identity_provider_type import IdentityProviderType
-__all__ = ["AzureAd", "Config"]
+__all__ = ["AzureAD", "Config"]
class Config(BaseModel):
@@ -46,7 +46,7 @@ class Config(BaseModel):
"""Should Cloudflare try to load groups from your account"""
-class AzureAd(BaseModel):
+class AzureAD(BaseModel):
config: Config
"""The configuration parameters for the identity provider.
@@ -57,7 +57,7 @@ class AzureAd(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -67,7 +67,7 @@ class AzureAd(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
diff --git a/src/cloudflare/types/zero_trust/azure_group_rule.py b/src/cloudflare/types/zero_trust/azure_group_rule.py
index 0f518ecad99..aecd2930885 100644
--- a/src/cloudflare/types/zero_trust/azure_group_rule.py
+++ b/src/cloudflare/types/zero_trust/azure_group_rule.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["AzureGroupRule", "AzureAd"]
+__all__ = ["AzureGroupRule", "AzureAD"]
-class AzureAd(BaseModel):
+class AzureAD(BaseModel):
id: str
"""The ID of an Azure group."""
@@ -16,4 +16,4 @@ class AzureAd(BaseModel):
class AzureGroupRule(BaseModel):
- azure_ad: AzureAd = FieldInfo(alias="azureAD")
+ azure_ad: AzureAD = FieldInfo(alias="azureAD")
diff --git a/src/cloudflare/types/zero_trust/azure_group_rule_param.py b/src/cloudflare/types/zero_trust/azure_group_rule_param.py
index f6f6b16c229..93a64fab94e 100644
--- a/src/cloudflare/types/zero_trust/azure_group_rule_param.py
+++ b/src/cloudflare/types/zero_trust/azure_group_rule_param.py
@@ -6,10 +6,10 @@
from ..._utils import PropertyInfo
-__all__ = ["AzureGroupRuleParam", "AzureAd"]
+__all__ = ["AzureGroupRuleParam", "AzureAD"]
-class AzureAd(TypedDict, total=False):
+class AzureAD(TypedDict, total=False):
id: Required[str]
"""The ID of an Azure group."""
@@ -18,4 +18,4 @@ class AzureAd(TypedDict, total=False):
class AzureGroupRuleParam(TypedDict, total=False):
- azure_ad: Required[Annotated[AzureAd, PropertyInfo(alias="azureAD")]]
+ azure_ad: Required[Annotated[AzureAD, PropertyInfo(alias="azureAD")]]
diff --git a/src/cloudflare/types/zero_trust/dlp/__init__.py b/src/cloudflare/types/zero_trust/dlp/__init__.py
index affc5de7787..382dcc7a2d0 100644
--- a/src/cloudflare/types/zero_trust/dlp/__init__.py
+++ b/src/cloudflare/types/zero_trust/dlp/__init__.py
@@ -5,8 +5,10 @@
from .dataset import Dataset as Dataset
from .profile import Profile as Profile
from .dataset_array import DatasetArray as DatasetArray
+from .custom_profile import CustomProfile as CustomProfile
from .dataset_creation import DatasetCreation as DatasetCreation
from .context_awareness import ContextAwareness as ContextAwareness
+from .predefined_profile import PredefinedProfile as PredefinedProfile
from .skip_configuration import SkipConfiguration as SkipConfiguration
from .profile_get_response import ProfileGetResponse as ProfileGetResponse
from .dataset_create_params import DatasetCreateParams as DatasetCreateParams
@@ -17,9 +19,3 @@
from .skip_configuration_param import SkipConfigurationParam as SkipConfigurationParam
from .payload_log_update_params import PayloadLogUpdateParams as PayloadLogUpdateParams
from .payload_log_update_response import PayloadLogUpdateResponse as PayloadLogUpdateResponse
-from .unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1 import (
- UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1 as UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1,
-)
-from .unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0 import (
- UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0 as UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0,
-)
diff --git a/src/cloudflare/types/zero_trust/dlp/custom_profile.py b/src/cloudflare/types/zero_trust/dlp/custom_profile.py
new file mode 100644
index 00000000000..42724f2fcc6
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/dlp/custom_profile.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["CustomProfile"]
+
+CustomProfile = Literal["custom"]
diff --git a/src/cloudflare/types/zero_trust/dlp/predefined_profile.py b/src/cloudflare/types/zero_trust/dlp/predefined_profile.py
new file mode 100644
index 00000000000..91019533571
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/dlp/predefined_profile.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["PredefinedProfile"]
+
+PredefinedProfile = Literal["predefined"]
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
index 77d742c3c40..0b64a904912 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
@@ -10,4 +10,5 @@
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
from .predefined_update_params import PredefinedUpdateParams as PredefinedUpdateParams
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py
new file mode 100644
index 00000000000..15f451c25c3
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CustomDeleteResponse"]
+
+CustomDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_profile.py b/src/cloudflare/types/zero_trust/dlp/profiles/custom_profile.py
index 47a7e6989eb..5ac9be1eec0 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/custom_profile.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/custom_profile.py
@@ -3,10 +3,10 @@
from typing import List, Optional
from datetime import datetime
+from . import custom_profile
from .pattern import Pattern
from ....._models import BaseModel
from ..context_awareness import ContextAwareness
-from ..unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1 import UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1
__all__ = ["CustomProfile", "Entry"]
@@ -59,7 +59,7 @@ class CustomProfile(BaseModel):
ocr_enabled: Optional[bool] = None
"""If true, scan images via OCR to determine if any text present matches filters."""
- type: Optional[UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1] = None
+ type: Optional[custom_profile.CustomProfile] = None
"""The type of the profile."""
updated_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/predefined_profile.py b/src/cloudflare/types/zero_trust/dlp/profiles/predefined_profile.py
index ca912103706..284922e764a 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/predefined_profile.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/predefined_profile.py
@@ -2,9 +2,9 @@
from typing import List, Optional
+from . import predefined_profile
from ....._models import BaseModel
from ..context_awareness import ContextAwareness
-from ..unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0 import UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0
__all__ = ["PredefinedProfile", "Entry"]
@@ -45,5 +45,5 @@ class PredefinedProfile(BaseModel):
ocr_enabled: Optional[bool] = None
"""If true, scan images via OCR to determine if any text present matches filters."""
- type: Optional[UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0] = None
+ type: Optional[predefined_profile.PredefinedProfile] = None
"""The type of the profile."""
diff --git a/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1.py b/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1.py
deleted file mode 100644
index 2d8ab8385d9..00000000000
--- a/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_c105db122868c71badeac3b4822ad6b1.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1"]
-
-UnnamedSchemaRefC105db122868c71badeac3b4822ad6b1 = Literal["custom"]
diff --git a/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0.py b/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0.py
deleted file mode 100644
index dcb84eb40bd..00000000000
--- a/src/cloudflare/types/zero_trust/dlp/unnamed_schema_ref_e38bfdf1acf5a4bfada6779c79528bc0.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0"]
-
-UnnamedSchemaRefE38bfdf1acf5a4bfada6779c79528bc0 = Literal["predefined"]
diff --git a/src/cloudflare/types/zero_trust/identity_provider.py b/src/cloudflare/types/zero_trust/identity_provider.py
index 895934553f9..6731d7bc439 100644
--- a/src/cloudflare/types/zero_trust/identity_provider.py
+++ b/src/cloudflare/types/zero_trust/identity_provider.py
@@ -2,11 +2,11 @@
from typing import List, Union, Optional
-from .azure_ad import AzureAd
+from .azure_ad import AzureAD
from ..._models import BaseModel
+from .scim_config import ScimConfig
from .generic_oauth_config import GenericOAuthConfig
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1 import UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1
+from .identity_provider_type import IdentityProviderType
__all__ = [
"IdentityProvider",
@@ -19,17 +19,17 @@
"AccessGoogleApps",
"AccessGoogleAppsConfig",
"AccessLinkedin",
- "AccessOidc",
- "AccessOidcConfig",
+ "AccessOIDC",
+ "AccessOIDCConfig",
"AccessOkta",
"AccessOktaConfig",
"AccessOnelogin",
"AccessOneloginConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessSaml",
- "AccessSamlConfig",
- "AccessSamlConfigHeaderAttribute",
+ "AccessSAML",
+ "AccessSAMLConfig",
+ "AccessSAMLConfigHeaderAttribute",
"AccessYandex",
"AccessOnetimepin",
]
@@ -66,7 +66,7 @@ class AccessCentrify(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -76,7 +76,7 @@ class AccessCentrify(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -94,7 +94,7 @@ class AccessFacebook(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -104,7 +104,7 @@ class AccessFacebook(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -122,7 +122,7 @@ class AccessGitHub(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -132,7 +132,7 @@ class AccessGitHub(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -164,7 +164,7 @@ class AccessGoogle(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -174,7 +174,7 @@ class AccessGoogle(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -209,7 +209,7 @@ class AccessGoogleApps(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -219,7 +219,7 @@ class AccessGoogleApps(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -237,7 +237,7 @@ class AccessLinkedin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -247,14 +247,14 @@ class AccessLinkedin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidcConfig(BaseModel):
+class AccessOIDCConfig(BaseModel):
auth_url: Optional[str] = None
"""The authorization_endpoint URL of your IdP"""
@@ -280,8 +280,8 @@ class AccessOidcConfig(BaseModel):
"""The token_endpoint URL of your IdP"""
-class AccessOidc(BaseModel):
- config: AccessOidcConfig
+class AccessOIDC(BaseModel):
+ config: AccessOIDCConfig
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -291,7 +291,7 @@ class AccessOidc(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -301,7 +301,7 @@ class AccessOidc(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -339,7 +339,7 @@ class AccessOkta(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -349,7 +349,7 @@ class AccessOkta(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -384,7 +384,7 @@ class AccessOnelogin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -394,7 +394,7 @@ class AccessOnelogin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -429,7 +429,7 @@ class AccessPingone(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -439,14 +439,14 @@ class AccessPingone(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessSamlConfigHeaderAttribute(BaseModel):
+class AccessSAMLConfigHeaderAttribute(BaseModel):
attribute_name: Optional[str] = None
"""attribute name from the IDP"""
@@ -454,7 +454,7 @@ class AccessSamlConfigHeaderAttribute(BaseModel):
"""header that will be added on the request to the origin"""
-class AccessSamlConfig(BaseModel):
+class AccessSAMLConfig(BaseModel):
attributes: Optional[List[str]] = None
"""
A list of SAML attribute names that will be added to your signed JWT token and
@@ -464,7 +464,7 @@ class AccessSamlConfig(BaseModel):
email_attribute_name: Optional[str] = None
"""The attribute name for email in the SAML response."""
- header_attributes: Optional[List[AccessSamlConfigHeaderAttribute]] = None
+ header_attributes: Optional[List[AccessSAMLConfigHeaderAttribute]] = None
"""
Add a list of attribute names that will be returned in the response header from
the Access callback.
@@ -486,8 +486,8 @@ class AccessSamlConfig(BaseModel):
"""URL to send the SAML authentication requests to"""
-class AccessSaml(BaseModel):
- config: AccessSamlConfig
+class AccessSAML(BaseModel):
+ config: AccessSAMLConfig
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -497,7 +497,7 @@ class AccessSaml(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -507,7 +507,7 @@ class AccessSaml(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -525,7 +525,7 @@ class AccessYandex(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -535,7 +535,7 @@ class AccessYandex(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -553,7 +553,7 @@ class AccessOnetimepin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -563,7 +563,7 @@ class AccessOnetimepin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -571,18 +571,18 @@ class AccessOnetimepin(BaseModel):
IdentityProvider = Union[
- AzureAd,
+ AzureAD,
AccessCentrify,
AccessFacebook,
AccessGitHub,
AccessGoogle,
AccessGoogleApps,
AccessLinkedin,
- AccessOidc,
+ AccessOIDC,
AccessOkta,
AccessOnelogin,
AccessPingone,
- AccessSaml,
+ AccessSAML,
AccessYandex,
AccessOnetimepin,
]
diff --git a/src/cloudflare/types/zero_trust/identity_provider_create_params.py b/src/cloudflare/types/zero_trust/identity_provider_create_params.py
index 0161c811b5d..907f7124fdb 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_create_params.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_create_params.py
@@ -5,16 +5,14 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from .scim_config_param import ScimConfigParam
+from .identity_provider_type import IdentityProviderType
from .generic_oauth_config_param import GenericOAuthConfigParam
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param import (
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param,
-)
__all__ = [
"IdentityProviderCreateParams",
- "AzureAd",
- "AzureAdConfig",
+ "AzureAD",
+ "AzureADConfig",
"AccessCentrify",
"AccessCentrifyConfig",
"AccessFacebook",
@@ -24,24 +22,24 @@
"AccessGoogleApps",
"AccessGoogleAppsConfig",
"AccessLinkedin",
- "AccessOidc",
- "AccessOidcConfig",
+ "AccessOIDC",
+ "AccessOIDCConfig",
"AccessOkta",
"AccessOktaConfig",
"AccessOnelogin",
"AccessOneloginConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessSaml",
- "AccessSamlConfig",
- "AccessSamlConfigHeaderAttribute",
+ "AccessSAML",
+ "AccessSAMLConfig",
+ "AccessSAMLConfigHeaderAttribute",
"AccessYandex",
"AccessOnetimepin",
]
-class AzureAd(TypedDict, total=False):
- config: Required[AzureAdConfig]
+class AzureAD(TypedDict, total=False):
+ config: Required[AzureADConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -51,7 +49,7 @@ class AzureAd(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -64,14 +62,14 @@ class AzureAd(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AzureAdConfig(TypedDict, total=False):
+class AzureADConfig(TypedDict, total=False):
claims: List[str]
"""Custom claims"""
@@ -118,7 +116,7 @@ class AccessCentrify(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -131,7 +129,7 @@ class AccessCentrify(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -169,7 +167,7 @@ class AccessFacebook(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -182,7 +180,7 @@ class AccessFacebook(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -200,7 +198,7 @@ class AccessGitHub(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -213,7 +211,7 @@ class AccessGitHub(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -231,7 +229,7 @@ class AccessGoogle(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -244,7 +242,7 @@ class AccessGoogle(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -276,7 +274,7 @@ class AccessGoogleApps(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -289,7 +287,7 @@ class AccessGoogleApps(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -324,7 +322,7 @@ class AccessLinkedin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -337,15 +335,15 @@ class AccessLinkedin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidc(TypedDict, total=False):
- config: Required[AccessOidcConfig]
+class AccessOIDC(TypedDict, total=False):
+ config: Required[AccessOIDCConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -355,7 +353,7 @@ class AccessOidc(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -368,14 +366,14 @@ class AccessOidc(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidcConfig(TypedDict, total=False):
+class AccessOIDCConfig(TypedDict, total=False):
auth_url: str
"""The authorization_endpoint URL of your IdP"""
@@ -412,7 +410,7 @@ class AccessOkta(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -425,7 +423,7 @@ class AccessOkta(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -463,7 +461,7 @@ class AccessOnelogin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -476,7 +474,7 @@ class AccessOnelogin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -511,7 +509,7 @@ class AccessPingone(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -524,7 +522,7 @@ class AccessPingone(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -548,8 +546,8 @@ class AccessPingoneConfig(TypedDict, total=False):
"""Your PingOne environment identifier"""
-class AccessSaml(TypedDict, total=False):
- config: Required[AccessSamlConfig]
+class AccessSAML(TypedDict, total=False):
+ config: Required[AccessSAMLConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -559,7 +557,7 @@ class AccessSaml(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -572,14 +570,14 @@ class AccessSaml(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessSamlConfigHeaderAttribute(TypedDict, total=False):
+class AccessSAMLConfigHeaderAttribute(TypedDict, total=False):
attribute_name: str
"""attribute name from the IDP"""
@@ -587,7 +585,7 @@ class AccessSamlConfigHeaderAttribute(TypedDict, total=False):
"""header that will be added on the request to the origin"""
-class AccessSamlConfig(TypedDict, total=False):
+class AccessSAMLConfig(TypedDict, total=False):
attributes: List[str]
"""
A list of SAML attribute names that will be added to your signed JWT token and
@@ -597,7 +595,7 @@ class AccessSamlConfig(TypedDict, total=False):
email_attribute_name: str
"""The attribute name for email in the SAML response."""
- header_attributes: Iterable[AccessSamlConfigHeaderAttribute]
+ header_attributes: Iterable[AccessSAMLConfigHeaderAttribute]
"""
Add a list of attribute names that will be returned in the response header from
the Access callback.
@@ -630,7 +628,7 @@ class AccessYandex(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -643,7 +641,7 @@ class AccessYandex(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -661,7 +659,7 @@ class AccessOnetimepin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -674,7 +672,7 @@ class AccessOnetimepin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -682,18 +680,18 @@ class AccessOnetimepin(TypedDict, total=False):
IdentityProviderCreateParams = Union[
- AzureAd,
+ AzureAD,
AccessCentrify,
AccessFacebook,
AccessGitHub,
AccessGoogle,
AccessGoogleApps,
AccessLinkedin,
- AccessOidc,
+ AccessOIDC,
AccessOkta,
AccessOnelogin,
AccessPingone,
- AccessSaml,
+ AccessSAML,
AccessYandex,
AccessOnetimepin,
]
diff --git a/src/cloudflare/types/zero_trust/identity_provider_list_response.py b/src/cloudflare/types/zero_trust/identity_provider_list_response.py
index cf51af410c1..7fe980dcac8 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_list_response.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_list_response.py
@@ -2,11 +2,11 @@
from typing import List, Union, Optional
-from .azure_ad import AzureAd
+from .azure_ad import AzureAD
from ..._models import BaseModel
+from .scim_config import ScimConfig
from .generic_oauth_config import GenericOAuthConfig
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1 import UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1
+from .identity_provider_type import IdentityProviderType
__all__ = [
"IdentityProviderListResponse",
@@ -19,17 +19,17 @@
"AccessGoogleApps",
"AccessGoogleAppsConfig",
"AccessLinkedin",
- "AccessOidc",
- "AccessOidcConfig",
+ "AccessOIDC",
+ "AccessOIDCConfig",
"AccessOkta",
"AccessOktaConfig",
"AccessOnelogin",
"AccessOneloginConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessSaml",
- "AccessSamlConfig",
- "AccessSamlConfigHeaderAttribute",
+ "AccessSAML",
+ "AccessSAMLConfig",
+ "AccessSAMLConfigHeaderAttribute",
"AccessYandex",
]
@@ -65,7 +65,7 @@ class AccessCentrify(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -75,7 +75,7 @@ class AccessCentrify(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -93,7 +93,7 @@ class AccessFacebook(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -103,7 +103,7 @@ class AccessFacebook(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -121,7 +121,7 @@ class AccessGitHub(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -131,7 +131,7 @@ class AccessGitHub(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -163,7 +163,7 @@ class AccessGoogle(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -173,7 +173,7 @@ class AccessGoogle(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -208,7 +208,7 @@ class AccessGoogleApps(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -218,7 +218,7 @@ class AccessGoogleApps(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -236,7 +236,7 @@ class AccessLinkedin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -246,14 +246,14 @@ class AccessLinkedin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidcConfig(BaseModel):
+class AccessOIDCConfig(BaseModel):
auth_url: Optional[str] = None
"""The authorization_endpoint URL of your IdP"""
@@ -279,8 +279,8 @@ class AccessOidcConfig(BaseModel):
"""The token_endpoint URL of your IdP"""
-class AccessOidc(BaseModel):
- config: AccessOidcConfig
+class AccessOIDC(BaseModel):
+ config: AccessOIDCConfig
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -290,7 +290,7 @@ class AccessOidc(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -300,7 +300,7 @@ class AccessOidc(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -338,7 +338,7 @@ class AccessOkta(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -348,7 +348,7 @@ class AccessOkta(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -383,7 +383,7 @@ class AccessOnelogin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -393,7 +393,7 @@ class AccessOnelogin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -428,7 +428,7 @@ class AccessPingone(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -438,14 +438,14 @@ class AccessPingone(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessSamlConfigHeaderAttribute(BaseModel):
+class AccessSAMLConfigHeaderAttribute(BaseModel):
attribute_name: Optional[str] = None
"""attribute name from the IDP"""
@@ -453,7 +453,7 @@ class AccessSamlConfigHeaderAttribute(BaseModel):
"""header that will be added on the request to the origin"""
-class AccessSamlConfig(BaseModel):
+class AccessSAMLConfig(BaseModel):
attributes: Optional[List[str]] = None
"""
A list of SAML attribute names that will be added to your signed JWT token and
@@ -463,7 +463,7 @@ class AccessSamlConfig(BaseModel):
email_attribute_name: Optional[str] = None
"""The attribute name for email in the SAML response."""
- header_attributes: Optional[List[AccessSamlConfigHeaderAttribute]] = None
+ header_attributes: Optional[List[AccessSAMLConfigHeaderAttribute]] = None
"""
Add a list of attribute names that will be returned in the response header from
the Access callback.
@@ -485,8 +485,8 @@ class AccessSamlConfig(BaseModel):
"""URL to send the SAML authentication requests to"""
-class AccessSaml(BaseModel):
- config: AccessSamlConfig
+class AccessSAML(BaseModel):
+ config: AccessSAMLConfig
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -496,7 +496,7 @@ class AccessSaml(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -506,7 +506,7 @@ class AccessSaml(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -524,7 +524,7 @@ class AccessYandex(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
+ type: IdentityProviderType
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -534,7 +534,7 @@ class AccessYandex(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1] = None
+ scim_config: Optional[ScimConfig] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -542,17 +542,17 @@ class AccessYandex(BaseModel):
IdentityProviderListResponse = Union[
- AzureAd,
+ AzureAD,
AccessCentrify,
AccessFacebook,
AccessGitHub,
AccessGoogle,
AccessGoogleApps,
AccessLinkedin,
- AccessOidc,
+ AccessOIDC,
AccessOkta,
AccessOnelogin,
AccessPingone,
- AccessSaml,
+ AccessSAML,
AccessYandex,
]
diff --git a/src/cloudflare/types/zero_trust/unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb.py b/src/cloudflare/types/zero_trust/identity_provider_type.py
similarity index 73%
rename from src/cloudflare/types/zero_trust/unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb.py
rename to src/cloudflare/types/zero_trust/identity_provider_type.py
index 59557688957..8435e951d8d 100644
--- a/src/cloudflare/types/zero_trust/unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_type.py
@@ -2,9 +2,9 @@
from typing_extensions import Literal
-__all__ = ["UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb"]
+__all__ = ["IdentityProviderType"]
-UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb = Literal[
+IdentityProviderType = Literal[
"onetimepin",
"azureAD",
"saml",
diff --git a/src/cloudflare/types/zero_trust/identity_provider_update_params.py b/src/cloudflare/types/zero_trust/identity_provider_update_params.py
index 26b4c316705..9667f9f04ba 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_update_params.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_update_params.py
@@ -5,16 +5,14 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from .scim_config_param import ScimConfigParam
+from .identity_provider_type import IdentityProviderType
from .generic_oauth_config_param import GenericOAuthConfigParam
-from .unnamed_schema_ref_9ab84e842cdf571c8f3898648bcdabcb import UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb
-from .unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param import (
- UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param,
-)
__all__ = [
"IdentityProviderUpdateParams",
- "AzureAd",
- "AzureAdConfig",
+ "AzureAD",
+ "AzureADConfig",
"AccessCentrify",
"AccessCentrifyConfig",
"AccessFacebook",
@@ -24,24 +22,24 @@
"AccessGoogleApps",
"AccessGoogleAppsConfig",
"AccessLinkedin",
- "AccessOidc",
- "AccessOidcConfig",
+ "AccessOIDC",
+ "AccessOIDCConfig",
"AccessOkta",
"AccessOktaConfig",
"AccessOnelogin",
"AccessOneloginConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessSaml",
- "AccessSamlConfig",
- "AccessSamlConfigHeaderAttribute",
+ "AccessSAML",
+ "AccessSAMLConfig",
+ "AccessSAMLConfigHeaderAttribute",
"AccessYandex",
"AccessOnetimepin",
]
-class AzureAd(TypedDict, total=False):
- config: Required[AzureAdConfig]
+class AzureAD(TypedDict, total=False):
+ config: Required[AzureADConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -51,7 +49,7 @@ class AzureAd(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -64,14 +62,14 @@ class AzureAd(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AzureAdConfig(TypedDict, total=False):
+class AzureADConfig(TypedDict, total=False):
claims: List[str]
"""Custom claims"""
@@ -118,7 +116,7 @@ class AccessCentrify(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -131,7 +129,7 @@ class AccessCentrify(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -169,7 +167,7 @@ class AccessFacebook(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -182,7 +180,7 @@ class AccessFacebook(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -200,7 +198,7 @@ class AccessGitHub(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -213,7 +211,7 @@ class AccessGitHub(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -231,7 +229,7 @@ class AccessGoogle(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -244,7 +242,7 @@ class AccessGoogle(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -276,7 +274,7 @@ class AccessGoogleApps(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -289,7 +287,7 @@ class AccessGoogleApps(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -324,7 +322,7 @@ class AccessLinkedin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -337,15 +335,15 @@ class AccessLinkedin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidc(TypedDict, total=False):
- config: Required[AccessOidcConfig]
+class AccessOIDC(TypedDict, total=False):
+ config: Required[AccessOIDCConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -355,7 +353,7 @@ class AccessOidc(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -368,14 +366,14 @@ class AccessOidc(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOidcConfig(TypedDict, total=False):
+class AccessOIDCConfig(TypedDict, total=False):
auth_url: str
"""The authorization_endpoint URL of your IdP"""
@@ -412,7 +410,7 @@ class AccessOkta(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -425,7 +423,7 @@ class AccessOkta(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -463,7 +461,7 @@ class AccessOnelogin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -476,7 +474,7 @@ class AccessOnelogin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -511,7 +509,7 @@ class AccessPingone(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -524,7 +522,7 @@ class AccessPingone(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -548,8 +546,8 @@ class AccessPingoneConfig(TypedDict, total=False):
"""Your PingOne environment identifier"""
-class AccessSaml(TypedDict, total=False):
- config: Required[AccessSamlConfig]
+class AccessSAML(TypedDict, total=False):
+ config: Required[AccessSAMLConfig]
"""The configuration parameters for the identity provider.
To view the required parameters for a specific provider, refer to our
@@ -559,7 +557,7 @@ class AccessSaml(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -572,14 +570,14 @@ class AccessSaml(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessSamlConfigHeaderAttribute(TypedDict, total=False):
+class AccessSAMLConfigHeaderAttribute(TypedDict, total=False):
attribute_name: str
"""attribute name from the IDP"""
@@ -587,7 +585,7 @@ class AccessSamlConfigHeaderAttribute(TypedDict, total=False):
"""header that will be added on the request to the origin"""
-class AccessSamlConfig(TypedDict, total=False):
+class AccessSAMLConfig(TypedDict, total=False):
attributes: List[str]
"""
A list of SAML attribute names that will be added to your signed JWT token and
@@ -597,7 +595,7 @@ class AccessSamlConfig(TypedDict, total=False):
email_attribute_name: str
"""The attribute name for email in the SAML response."""
- header_attributes: Iterable[AccessSamlConfigHeaderAttribute]
+ header_attributes: Iterable[AccessSAMLConfigHeaderAttribute]
"""
Add a list of attribute names that will be returned in the response header from
the Access callback.
@@ -630,7 +628,7 @@ class AccessYandex(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -643,7 +641,7 @@ class AccessYandex(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -661,7 +659,7 @@ class AccessOnetimepin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[UnnamedSchemaRef9ab84e842cdf571c8f3898648bcdabcb]
+ type: Required[IdentityProviderType]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -674,7 +672,7 @@ class AccessOnetimepin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param
+ scim_config: ScimConfigParam
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -682,18 +680,18 @@ class AccessOnetimepin(TypedDict, total=False):
IdentityProviderUpdateParams = Union[
- AzureAd,
+ AzureAD,
AccessCentrify,
AccessFacebook,
AccessGitHub,
AccessGoogle,
AccessGoogleApps,
AccessLinkedin,
- AccessOidc,
+ AccessOIDC,
AccessOkta,
AccessOnelogin,
AccessPingone,
- AccessSaml,
+ AccessSAML,
AccessYandex,
AccessOnetimepin,
]
diff --git a/src/cloudflare/types/zero_trust/networks/__init__.py b/src/cloudflare/types/zero_trust/networks/__init__.py
index 0097f431e21..36cce8dd60e 100644
--- a/src/cloudflare/types/zero_trust/networks/__init__.py
+++ b/src/cloudflare/types/zero_trust/networks/__init__.py
@@ -13,3 +13,6 @@
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/virtual_network_create_response.py b/src/cloudflare/types/zero_trust/networks/virtual_network_create_response.py
new file mode 100644
index 00000000000..72b480fefc9
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/networks/virtual_network_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["VirtualNetworkCreateResponse"]
+
+VirtualNetworkCreateResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_delete_response.py b/src/cloudflare/types/zero_trust/networks/virtual_network_delete_response.py
new file mode 100644
index 00000000000..8974890539f
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/networks/virtual_network_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["VirtualNetworkDeleteResponse"]
+
+VirtualNetworkDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/networks/virtual_network_edit_response.py b/src/cloudflare/types/zero_trust/networks/virtual_network_edit_response.py
new file mode 100644
index 00000000000..df75a34f89c
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/networks/virtual_network_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["VirtualNetworkEditResponse"]
+
+VirtualNetworkEditResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/organizations.py b/src/cloudflare/types/zero_trust/organization.py
similarity index 97%
rename from src/cloudflare/types/zero_trust/organizations.py
rename to src/cloudflare/types/zero_trust/organization.py
index 6909c1f7992..69d8412d852 100644
--- a/src/cloudflare/types/zero_trust/organizations.py
+++ b/src/cloudflare/types/zero_trust/organization.py
@@ -6,7 +6,7 @@
from ..._models import BaseModel
from .login_design import LoginDesign
-__all__ = ["Organizations", "CustomPages"]
+__all__ = ["Organization", "CustomPages"]
class CustomPages(BaseModel):
@@ -20,7 +20,7 @@ class CustomPages(BaseModel):
"""The uid of the custom page to use when a user is denied access."""
-class Organizations(BaseModel):
+class Organization(BaseModel):
allow_authenticate_via_warp: Optional[bool] = None
"""
When set to true, users can authenticate via WARP for any application in your
diff --git a/src/cloudflare/types/zero_trust/saml_group_rule.py b/src/cloudflare/types/zero_trust/saml_group_rule.py
index 196290d8729..7a311bb901c 100644
--- a/src/cloudflare/types/zero_trust/saml_group_rule.py
+++ b/src/cloudflare/types/zero_trust/saml_group_rule.py
@@ -2,10 +2,10 @@
from ..._models import BaseModel
-__all__ = ["SamlGroupRule", "Saml"]
+__all__ = ["SAMLGroupRule", "SAML"]
-class Saml(BaseModel):
+class SAML(BaseModel):
attribute_name: str
"""The name of the SAML attribute."""
@@ -13,5 +13,5 @@ class Saml(BaseModel):
"""The SAML attribute value to look for."""
-class SamlGroupRule(BaseModel):
- saml: Saml
+class SAMLGroupRule(BaseModel):
+ saml: SAML
diff --git a/src/cloudflare/types/zero_trust/saml_group_rule_param.py b/src/cloudflare/types/zero_trust/saml_group_rule_param.py
index c667f24a391..78aa37ef3a7 100644
--- a/src/cloudflare/types/zero_trust/saml_group_rule_param.py
+++ b/src/cloudflare/types/zero_trust/saml_group_rule_param.py
@@ -4,10 +4,10 @@
from typing_extensions import Required, TypedDict
-__all__ = ["SamlGroupRuleParam", "Saml"]
+__all__ = ["SAMLGroupRuleParam", "SAML"]
-class Saml(TypedDict, total=False):
+class SAML(TypedDict, total=False):
attribute_name: Required[str]
"""The name of the SAML attribute."""
@@ -15,5 +15,5 @@ class Saml(TypedDict, total=False):
"""The SAML attribute value to look for."""
-class SamlGroupRuleParam(TypedDict, total=False):
- saml: Required[Saml]
+class SAMLGroupRuleParam(TypedDict, total=False):
+ saml: Required[SAML]
diff --git a/src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1.py b/src/cloudflare/types/zero_trust/scim_config.py
similarity index 90%
rename from src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1.py
rename to src/cloudflare/types/zero_trust/scim_config.py
index 43576d8d14a..f7f9f993662 100644
--- a/src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1.py
+++ b/src/cloudflare/types/zero_trust/scim_config.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1"]
+__all__ = ["ScimConfig"]
-class UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1(BaseModel):
+class ScimConfig(BaseModel):
enabled: Optional[bool] = None
"""A flag to enable or disable SCIM for the identity provider."""
diff --git a/src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param.py b/src/cloudflare/types/zero_trust/scim_config_param.py
similarity index 88%
rename from src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param.py
rename to src/cloudflare/types/zero_trust/scim_config_param.py
index 920a874e4f9..2ae697d9a43 100644
--- a/src/cloudflare/types/zero_trust/unnamed_schema_ref_dd86d8b7ea73283da7b160ed3f86cae1_param.py
+++ b/src/cloudflare/types/zero_trust/scim_config_param.py
@@ -4,10 +4,10 @@
from typing_extensions import TypedDict
-__all__ = ["UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param"]
+__all__ = ["ScimConfigParam"]
-class UnnamedSchemaRefDd86d8b7ea73283da7b160ed3f86cae1Param(TypedDict, total=False):
+class ScimConfigParam(TypedDict, total=False):
enabled: bool
"""A flag to enable or disable SCIM for the identity provider."""
diff --git a/src/cloudflare/types/zero_trust/tunnels/__init__.py b/src/cloudflare/types/zero_trust/tunnels/__init__.py
index 761f66f8839..cdfdf2d324e 100644
--- a/src/cloudflare/types/zero_trust/tunnels/__init__.py
+++ b/src/cloudflare/types/zero_trust/tunnels/__init__.py
@@ -7,5 +7,8 @@
from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse
from .connection_delete_params import ConnectionDeleteParams as ConnectionDeleteParams
from .management_create_params import ManagementCreateParams as ManagementCreateParams
+from .configuration_get_response import ConfigurationGetResponse as ConfigurationGetResponse
+from .connection_delete_response import ConnectionDeleteResponse as ConnectionDeleteResponse
from .management_create_response import ManagementCreateResponse as ManagementCreateResponse
from .configuration_update_params import ConfigurationUpdateParams as ConfigurationUpdateParams
+from .configuration_update_response import ConfigurationUpdateResponse as ConfigurationUpdateResponse
diff --git a/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py b/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py
new file mode 100644
index 00000000000..c85fe4c8221
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/tunnels/configuration_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ConfigurationGetResponse"]
+
+ConfigurationGetResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py b/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py
new file mode 100644
index 00000000000..122da9f590b
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/tunnels/configuration_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ConfigurationUpdateResponse"]
+
+ConfigurationUpdateResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zero_trust/tunnels/connection_delete_response.py b/src/cloudflare/types/zero_trust/tunnels/connection_delete_response.py
new file mode 100644
index 00000000000..256bbaccfc5
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/tunnels/connection_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["ConnectionDeleteResponse"]
+
+ConnectionDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py
index c465b007a78..45e84baf124 100644
--- a/src/cloudflare/types/zones/__init__.py
+++ b/src/cloudflare/types/zones/__init__.py
@@ -10,5 +10,7 @@
from .hold_delete_params import HoldDeleteParams as HoldDeleteParams
from .dns_setting_edit_params import DNSSettingEditParams as DNSSettingEditParams
from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams
+from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse
from .custom_nameserver_update_params import CustomNameserverUpdateParams as CustomNameserverUpdateParams
from .activation_check_trigger_response import ActivationCheckTriggerResponse as ActivationCheckTriggerResponse
+from .custom_nameserver_update_response import CustomNameserverUpdateResponse as CustomNameserverUpdateResponse
diff --git a/src/cloudflare/types/zones/custom_nameserver_get_response.py b/src/cloudflare/types/zones/custom_nameserver_get_response.py
new file mode 100644
index 00000000000..a257787a184
--- /dev/null
+++ b/src/cloudflare/types/zones/custom_nameserver_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["CustomNameserverGetResponse"]
+
+CustomNameserverGetResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/zones/custom_nameserver_update_response.py b/src/cloudflare/types/zones/custom_nameserver_update_response.py
new file mode 100644
index 00000000000..d2c3ed336e7
--- /dev/null
+++ b/src/cloudflare/types/zones/custom_nameserver_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union
+
+__all__ = ["CustomNameserverUpdateResponse"]
+
+CustomNameserverUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/zones/settings/__init__.py b/src/cloudflare/types/zones/settings/__init__.py
index bc892e49a1c..28f4f4e8a01 100644
--- a/src/cloudflare/types/zones/settings/__init__.py
+++ b/src/cloudflare/types/zones/settings/__init__.py
@@ -71,6 +71,7 @@
from .orange_to_orange_param import OrangeToOrangeParam as OrangeToOrangeParam
from .cache_level_edit_params import CacheLevelEditParams as CacheLevelEditParams
from .h2_prioritization_param import H2PrioritizationParam as H2PrioritizationParam
+from .origin_max_http_version import OriginMaxHTTPVersion as OriginMaxHTTPVersion
from .pseudo_ipv4_edit_params import PseudoIPV4EditParams as PseudoIPV4EditParams
from .automatic_https_rewrites import AutomaticHTTPSRewrites as AutomaticHTTPSRewrites
from .font_setting_edit_params import FontSettingEditParams as FontSettingEditParams
@@ -121,6 +122,3 @@
from .automatic_platform_optimization_edit_params import (
AutomaticPlatformOptimizationEditParams as AutomaticPlatformOptimizationEditParams,
)
-from .unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa import (
- UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa as UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa,
-)
diff --git a/src/cloudflare/types/zones/settings/origin_max_http_version.py b/src/cloudflare/types/zones/settings/origin_max_http_version.py
new file mode 100644
index 00000000000..338eb691310
--- /dev/null
+++ b/src/cloudflare/types/zones/settings/origin_max_http_version.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["OriginMaxHTTPVersion"]
+
+OriginMaxHTTPVersion = Literal["origin_max_http_version"]
diff --git a/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py b/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
index 57b6ddd9bff..f147194e780 100644
--- a/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
+++ b/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
@@ -5,13 +5,13 @@
from typing_extensions import Literal
from ...._models import BaseModel
-from .unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa import UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa
+from .origin_max_http_version import OriginMaxHTTPVersion
__all__ = ["OriginMaxHTTPVersionEditResponse"]
class OriginMaxHTTPVersionEditResponse(BaseModel):
- id: UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa
+ id: OriginMaxHTTPVersion
"""Value of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py b/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
index 5fa0cce3f83..035e11644f5 100644
--- a/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
+++ b/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
@@ -5,13 +5,13 @@
from typing_extensions import Literal
from ...._models import BaseModel
-from .unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa import UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa
+from .origin_max_http_version import OriginMaxHTTPVersion
__all__ = ["OriginMaxHTTPVersionGetResponse"]
class OriginMaxHTTPVersionGetResponse(BaseModel):
- id: UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa
+ id: OriginMaxHTTPVersion
"""Value of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/zones/settings/unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa.py b/src/cloudflare/types/zones/settings/unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa.py
deleted file mode 100644
index 9e56b5de142..00000000000
--- a/src/cloudflare/types/zones/settings/unnamed_schema_ref_b234e6a28c1a1c7c29213787c0621eaa.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa"]
-
-UnnamedSchemaRefB234e6a28c1a1c7c29213787c0621eaa = Literal["origin_max_http_version"]
diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py
index ff2115efde8..873237569e9 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.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
+from cloudflare.types.addressing.address_maps import (
+ AccountDeleteResponse,
+ AccountUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -39,7 +42,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -53,7 +56,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -82,7 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,7 +99,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -110,7 +113,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -143,7 +146,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -157,7 +160,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -171,7 +174,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -200,7 +203,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -214,7 +217,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -228,7 +231,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], account, path=["response"])
+ assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py
index 9334638bd8b..5ac092eb762 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.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
+from cloudflare.types.addressing.address_maps import (
+ IPDeleteResponse,
+ IPUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +29,7 @@ def test_method_update(self, client: Cloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,7 +44,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -56,7 +59,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -96,7 +99,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +114,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -126,7 +129,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -170,7 +173,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -185,7 +188,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +203,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -240,7 +243,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -255,7 +258,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -270,7 +273,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], ip, path=["response"])
+ assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py
index cc0dda91917..450019f8c44 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.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
+from cloudflare.types.addressing.address_maps import (
+ ZoneDeleteResponse,
+ ZoneUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +29,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,7 +44,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -56,7 +59,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -96,7 +99,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +114,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -126,7 +129,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -170,7 +173,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -185,7 +188,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +203,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -240,7 +243,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -255,7 +258,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -270,7 +273,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], zone, path=["response"])
+ assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
index 7681385f2e9..ceb620a6d1a 100644
--- a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
+++ b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
-from cloudflare.types.addressing.prefixes.bgp import ServiceBinding
+from cloudflare.types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -142,7 +141,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -156,7 +155,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -170,7 +169,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -389,7 +388,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -403,7 +402,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -417,7 +416,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, binding, path=["response"])
+ assert_matches_type(BindingDeleteResponse, binding, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py
index a4f20ddf584..7536f76aea4 100644
--- a/tests/api_resources/addressing/test_address_maps.py
+++ b/tests/api_resources/addressing/test_address_maps.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from cloudflare.types.addressing import (
AddressMap,
AddressMapGetResponse,
AddressMapCreateResponse,
+ AddressMapDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -125,7 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"])
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -139,7 +139,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"])
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -153,9 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"]
- )
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -398,7 +396,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"])
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -412,7 +410,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"])
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -426,9 +424,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], address_map, path=["response"]
- )
+ assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py
index 3ebd0a2723c..8c570378484 100644
--- a/tests/api_resources/addressing/test_prefixes.py
+++ b/tests/api_resources/addressing/test_prefixes.py
@@ -10,8 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from cloudflare.types.addressing import Prefix
+from cloudflare.types.addressing import (
+ Prefix,
+ PrefixDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -123,7 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -137,7 +139,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -151,7 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -389,7 +391,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -403,7 +405,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -417,7 +419,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], prefix, path=["response"])
+ assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/destinations/test_pagerduty.py b/tests/api_resources/alerting/destinations/test_pagerduty.py
index ae7d8ac9e1a..07b1cb56436 100644
--- a/tests/api_resources/alerting/destinations/test_pagerduty.py
+++ b/tests/api_resources/alerting/destinations/test_pagerduty.py
@@ -9,8 +9,12 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
-from cloudflare.types.alerting.destinations import PagerdutyGetResponse, PagerdutyLinkResponse, PagerdutyCreateResponse
+from cloudflare.types.alerting.destinations import (
+ PagerdutyGetResponse,
+ PagerdutyLinkResponse,
+ PagerdutyCreateResponse,
+ PagerdutyDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -66,7 +70,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
pagerduty = client.alerting.destinations.pagerduty.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"])
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -78,7 +82,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"])
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -90,9 +94,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"]
- )
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -250,7 +252,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
pagerduty = await async_client.alerting.destinations.pagerduty.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"])
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -262,7 +264,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"])
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -274,9 +276,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], pagerduty, path=["response"]
- )
+ assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/destinations/test_webhooks.py b/tests/api_resources/alerting/destinations/test_webhooks.py
index 236fe7d1aae..fbdefa33436 100644
--- a/tests/api_resources/alerting/destinations/test_webhooks.py
+++ b/tests/api_resources/alerting/destinations/test_webhooks.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from cloudflare.types.alerting.destinations import (
Webhooks,
WebhookCreateResponse,
+ WebhookDeleteResponse,
WebhookUpdateResponse,
)
@@ -207,7 +207,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"b115d5ec-15c6-41ee-8b76-92c449b5227b",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -220,7 +220,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -492,7 +492,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"b115d5ec-15c6-41ee-8b76-92c449b5227b",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -505,7 +505,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -518,7 +518,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], webhook, path=["response"])
+ assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/test_policies.py b/tests/api_resources/alerting/test_policies.py
index 092ebc86c15..0c2e2f09aec 100644
--- a/tests/api_resources/alerting/test_policies.py
+++ b/tests/api_resources/alerting/test_policies.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
from cloudflare.types.alerting import (
Policy,
PolicyCreateResponse,
+ PolicyDeleteResponse,
PolicyUpdateResponse,
)
@@ -317,7 +317,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"0da2b59e-f118-439d-8097-bdfb215203c9",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -330,7 +330,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -343,7 +343,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -712,7 +712,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"0da2b59e-f118-439d-8097-bdfb215203c9",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -725,7 +725,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -738,7 +738,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], policy, path=["response"])
+ assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/requests/test_message.py b/tests/api_resources/cloudforce_one/requests/test_message.py
index 500306ca56b..ea91ab0a36e 100644
--- a/tests/api_resources/cloudforce_one/requests/test_message.py
+++ b/tests/api_resources/cloudforce_one/requests/test_message.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from cloudflare.types.cloudforce_one.requests import (
Message,
MessageGetResponse,
+ MessageDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -164,7 +164,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
request_identifier="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -178,7 +178,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -192,7 +192,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -436,7 +436,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
request_identifier="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -450,7 +450,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -464,7 +464,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, message, path=["response"])
+ assert_matches_type(MessageDeleteResponse, message, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/requests/test_priority.py b/tests/api_resources/cloudforce_one/requests/test_priority.py
index 6e4b70bc1b9..136d392955d 100644
--- a/tests/api_resources/cloudforce_one/requests/test_priority.py
+++ b/tests/api_resources/cloudforce_one/requests/test_priority.py
@@ -9,9 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from cloudflare.types.cloudforce_one import Item, Quota
-from cloudflare.types.cloudforce_one.requests import Priority
+from cloudflare.types.cloudforce_one.requests import (
+ Priority,
+ PriorityDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -156,7 +158,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -169,7 +171,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -182,7 +184,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -436,7 +438,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -449,7 +451,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -462,7 +464,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, priority, path=["response"])
+ assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/test_requests.py b/tests/api_resources/cloudforce_one/test_requests.py
index cb6cb0b78aa..ef62fc92095 100644
--- a/tests/api_resources/cloudforce_one/test_requests.py
+++ b/tests/api_resources/cloudforce_one/test_requests.py
@@ -11,13 +11,13 @@
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
from cloudflare.types.cloudforce_one import (
Item,
Quota,
ListItem,
RequestTypes,
RequestConstants,
+ RequestDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -222,7 +222,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +235,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -248,7 +248,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -645,7 +645,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -658,7 +658,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -671,7 +671,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, request, path=["response"])
+ assert_matches_type(RequestDeleteResponse, request, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/intel/attack_surface_report/test_issues.py b/tests/api_resources/intel/attack_surface_report/test_issues.py
index afd8d3b496a..31bd421e533 100644
--- a/tests/api_resources/intel/attack_surface_report/test_issues.py
+++ b/tests/api_resources/intel/attack_surface_report/test_issues.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePagination, AsyncV4PagePagination
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from cloudflare.types.intel.attack_surface_report import (
IssueListResponse,
IssueTypeResponse,
IssueClassResponse,
+ IssueDismissResponse,
IssueSeverityResponse,
)
@@ -155,7 +155,7 @@ def test_method_dismiss(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -165,7 +165,7 @@ def test_method_dismiss_with_all_params(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dismiss=True,
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -178,7 +178,7 @@ def test_raw_response_dismiss(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
issue = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -191,7 +191,7 @@ def test_streaming_response_dismiss(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
issue = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -467,7 +467,7 @@ async def test_method_dismiss(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -477,7 +477,7 @@ async def test_method_dismiss_with_all_params(self, async_client: AsyncCloudflar
account_id="023e105f4ecef8ad9ca31a8372d0c353",
dismiss=True,
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -490,7 +490,7 @@ async def test_raw_response_dismiss(self, async_client: AsyncCloudflare) -> None
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
issue = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -503,7 +503,7 @@ async def test_streaming_response_dismiss(self, async_client: AsyncCloudflare) -
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
issue = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, issue, path=["response"])
+ assert_matches_type(IssueDismissResponse, issue, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/intel/test_miscategorizations.py b/tests/api_resources/intel/test_miscategorizations.py
index 789e89122cd..8231ba952c5 100644
--- a/tests/api_resources/intel/test_miscategorizations.py
+++ b/tests/api_resources/intel/test_miscategorizations.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.intel import MiscategorizationCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,7 +23,7 @@ def test_method_create(self, client: Cloudflare) -> None:
miscategorization = client.intel.miscategorizations.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,7 +38,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
security_removes=[83],
url="string",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
miscategorization = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -62,7 +62,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
miscategorization = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -84,7 +84,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
miscategorization = await async_client.intel.miscategorizations.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,7 +99,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
security_removes=[83],
url="string",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +111,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
miscategorization = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -123,7 +123,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
miscategorization = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, miscategorization, path=["response"])
+ assert_matches_type(MiscategorizationCreateResponse, miscategorization, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/kv/namespaces/test_bulk.py b/tests/api_resources/kv/namespaces/test_bulk.py
index 1e1c1aa2a78..50d6d3c6d99 100644
--- a/tests/api_resources/kv/namespaces/test_bulk.py
+++ b/tests/api_resources/kv/namespaces/test_bulk.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.kv.namespaces import (
+ BulkDeleteResponse,
+ BulkUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=[{}, {}, {}],
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -39,7 +42,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -53,7 +56,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -82,7 +85,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=["My-Key", "My-Key", "My-Key"],
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,7 +99,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -110,7 +113,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -143,7 +146,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=[{}, {}, {}],
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -157,7 +160,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -171,7 +174,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkUpdateResponse, bulk, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -200,7 +203,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=["My-Key", "My-Key", "My-Key"],
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -214,7 +217,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -228,7 +231,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bulk = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bulk, path=["response"])
+ assert_matches_type(BulkDeleteResponse, bulk, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/kv/namespaces/test_values.py b/tests/api_resources/kv/namespaces/test_values.py
index f433fef6891..9003443b5e9 100644
--- a/tests/api_resources/kv/namespaces/test_values.py
+++ b/tests/api_resources/kv/namespaces/test_values.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.kv.namespaces import (
+ ValueDeleteResponse,
+ ValueUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -27,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None:
metadata='{"someMetadataKey": "someMetadataValue"}',
value="Some Value",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -43,7 +46,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -59,7 +62,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -102,7 +105,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
namespace_id="0f2ac74b498b48028cb68387c421e279",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -117,7 +120,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -132,7 +135,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -241,7 +244,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
metadata='{"someMetadataKey": "someMetadataValue"}',
value="Some Value",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -257,7 +260,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -273,7 +276,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueUpdateResponse, value, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -316,7 +319,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
namespace_id="0f2ac74b498b48028cb68387c421e279",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -331,7 +334,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -346,7 +349,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
value = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, value, path=["response"])
+ assert_matches_type(ValueDeleteResponse, value, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/kv/test_namespaces.py b/tests/api_resources/kv/test_namespaces.py
index c812c31ce73..2a4369f39d8 100644
--- a/tests/api_resources/kv/test_namespaces.py
+++ b/tests/api_resources/kv/test_namespaces.py
@@ -11,9 +11,10 @@
from tests.utils import assert_matches_type
from cloudflare.types.kv import (
Namespace,
+ NamespaceDeleteResponse,
+ NamespaceUpdateResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -75,7 +76,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
title="My Own Namespace",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -89,7 +90,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -103,7 +104,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -186,7 +187,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +201,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -214,7 +215,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -293,7 +294,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
title="My Own Namespace",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -307,7 +308,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -321,7 +322,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceUpdateResponse, namespace, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -404,7 +405,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -418,7 +419,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -432,7 +433,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
namespace = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, namespace, path=["response"])
+ assert_matches_type(NamespaceDeleteResponse, namespace, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/load_balancers/test_pools.py b/tests/api_resources/load_balancers/test_pools.py
index 75d188bc943..da5c771f17b 100644
--- a/tests/api_resources/load_balancers/test_pools.py
+++ b/tests/api_resources/load_balancers/test_pools.py
@@ -11,9 +11,9 @@
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
from cloudflare.types.load_balancers import (
+ Pool,
PoolDeleteResponse,
)
-from cloudflare.types.user.load_balancers import Pool
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/logpush/test_jobs.py b/tests/api_resources/logpush/test_jobs.py
index 00c84e3eaaa..7a9041a1064 100644
--- a/tests/api_resources/logpush/test_jobs.py
+++ b/tests/api_resources/logpush/test_jobs.py
@@ -10,7 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
+from cloudflare.types.logpush import JobDeleteResponse
from cloudflare.types.logpush.datasets import Job
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -262,7 +262,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -273,7 +273,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -288,7 +288,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -303,7 +303,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -640,7 +640,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -651,7 +651,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -666,7 +666,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -681,7 +681,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], job, path=["response"])
+ assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/logs/control/cmb/test_config.py b/tests/api_resources/logs/control/cmb/test_config.py
index a28c1208072..556af0c050d 100644
--- a/tests/api_resources/logs/control/cmb/test_config.py
+++ b/tests/api_resources/logs/control/cmb/test_config.py
@@ -9,8 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from cloudflare.types.logs.control.cmb import CmbConfig
+from cloudflare.types.logs.control.cmb import (
+ CmbConfig,
+ ConfigDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -76,7 +78,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -89,7 +91,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -102,7 +104,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -219,7 +221,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -232,7 +234,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -245,7 +247,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], config, path=["response"])
+ assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/logs/test_rayid.py b/tests/api_resources/logs/test_rayid.py
index 722850e7167..a5264c4450a 100644
--- a/tests/api_resources/logs/test_rayid.py
+++ b/tests/api_resources/logs/test_rayid.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.logs import RayIDGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"41ddf1740f67442d",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
fields="ClientIP,RayID,EdgeStartTimestamp",
timestamps="unixnano",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -48,7 +48,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rayid = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -61,7 +61,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rayid = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -91,7 +91,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"41ddf1740f67442d",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -102,7 +102,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
fields="ClientIP,RayID,EdgeStartTimestamp",
timestamps="unixnano",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -115,7 +115,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rayid = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +128,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rayid = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, rayid, path=["response"])
+ assert_matches_type(RayIDGetResponse, rayid, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/logs/test_received.py b/tests/api_resources/logs/test_received.py
index 1c777acc209..38002e7e0f9 100644
--- a/tests/api_resources/logs/test_received.py
+++ b/tests/api_resources/logs/test_received.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.logs import ReceivedGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
end="2018-05-20T10:01:00Z",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
start="2018-05-20T10:00:00Z",
timestamps="unixnano",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +51,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
received = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -64,7 +64,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
received = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -88,7 +88,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
end="2018-05-20T10:01:00Z",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -102,7 +102,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
start="2018-05-20T10:00:00Z",
timestamps="unixnano",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -115,7 +115,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
received = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +128,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
received = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, received, path=["response"])
+ assert_matches_type(ReceivedGetResponse, received, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/pages/projects/deployments/history/test_logs.py b/tests/api_resources/pages/projects/deployments/history/test_logs.py
index dd818af6574..7e59a77f9b2 100644
--- a/tests/api_resources/pages/projects/deployments/history/test_logs.py
+++ b/tests/api_resources/pages/projects/deployments/history/test_logs.py
@@ -3,13 +3,13 @@
from __future__ import annotations
import os
-from typing import Any, Optional, cast
+from typing import Any, cast
import pytest
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
+from cloudflare.types.pages.projects.deployments.history import LogGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +25,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -39,7 +39,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
log = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -53,7 +53,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
log = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -93,7 +93,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -107,7 +107,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
log = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -121,7 +121,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
log = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], log, path=["response"])
+ assert_matches_type(LogGetResponse, log, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/pages/projects/test_domains.py b/tests/api_resources/pages/projects/test_domains.py
index e43e63b9aa7..5e2614a1a25 100644
--- a/tests/api_resources/pages/projects/test_domains.py
+++ b/tests/api_resources/pages/projects/test_domains.py
@@ -10,7 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
+from cloudflare.types.pages.projects import (
+ DomainGetResponse,
+ DomainEditResponse,
+ DomainCreateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={"name": "example.com"},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -40,7 +44,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,7 +58,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -206,7 +210,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
project_name="this-is-my-project-01",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -221,7 +225,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -236,7 +240,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -275,7 +279,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -289,7 +293,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -303,7 +307,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -343,7 +347,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={"name": "example.com"},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -357,7 +361,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -371,7 +375,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainCreateResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -523,7 +527,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
project_name="this-is-my-project-01",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -538,7 +542,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -553,7 +557,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainEditResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -592,7 +596,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
project_name="this-is-my-project-01",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -606,7 +610,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -620,7 +624,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/pages/test_projects.py b/tests/api_resources/pages/test_projects.py
index 7bb79499027..fa15dac6d2a 100644
--- a/tests/api_resources/pages/test_projects.py
+++ b/tests/api_resources/pages/test_projects.py
@@ -3,7 +3,7 @@
from __future__ import annotations
import os
-from typing import Any, Optional, cast
+from typing import Any, cast
import pytest
@@ -13,8 +13,9 @@
from cloudflare.types.pages import (
Project,
Deployment,
+ ProjectEditResponse,
+ ProjectCreateResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
project = client.pages.projects.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -108,7 +109,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
name="NextJS Blog",
production_branch="main",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -120,7 +121,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -132,7 +133,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -266,7 +267,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
}
},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -295,7 +296,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -324,7 +325,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -489,7 +490,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
project = await async_client.pages.projects.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -569,7 +570,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
name="NextJS Blog",
production_branch="main",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -581,7 +582,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -593,7 +594,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectCreateResponse, project, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -727,7 +728,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
}
},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -756,7 +757,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -785,7 +786,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
project = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], project, path=["response"])
+ assert_matches_type(ProjectEditResponse, project, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/queues/test_consumers.py b/tests/api_resources/queues/test_consumers.py
index bbf92b88878..20b325cd82f 100644
--- a/tests/api_resources/queues/test_consumers.py
+++ b/tests/api_resources/queues/test_consumers.py
@@ -12,9 +12,9 @@
from cloudflare.types.queues import (
ConsumerGetResponse,
ConsumerCreateResponse,
+ ConsumerDeleteResponse,
ConsumerUpdateResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -233,7 +233,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -248,7 +248,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -263,7 +263,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -561,7 +561,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -576,7 +576,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -591,7 +591,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], consumer, path=["response"])
+ assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/registrar/test_domains.py b/tests/api_resources/registrar/test_domains.py
index 997f8ef0847..924582e2af1 100644
--- a/tests/api_resources/registrar/test_domains.py
+++ b/tests/api_resources/registrar/test_domains.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from cloudflare.types.registrar import Domain
+from cloudflare.types.registrar import Domain, DomainGetResponse, DomainUpdateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +25,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"cloudflare.com",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,7 +37,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
locked=False,
privacy=True,
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +50,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -64,7 +63,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -132,7 +131,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"cloudflare.com",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -145,7 +144,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -158,7 +157,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -188,7 +187,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"cloudflare.com",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +199,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
locked=False,
privacy=True,
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -213,7 +212,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -226,7 +225,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainUpdateResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -294,7 +293,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"cloudflare.com",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -307,7 +306,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -320,7 +319,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
domain = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], domain, path=["response"])
+ assert_matches_type(Optional[DomainGetResponse], domain, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/spectrum/analytics/events/test_bytimes.py b/tests/api_resources/spectrum/analytics/events/test_bytimes.py
index a0e175f30d3..9afdcf9b72a 100644
--- a/tests/api_resources/spectrum/analytics/events/test_bytimes.py
+++ b/tests/api_resources/spectrum/analytics/events/test_bytimes.py
@@ -3,14 +3,14 @@
from __future__ import annotations
import os
-from typing import Any, cast
+from typing import Any, Optional, cast
import pytest
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.spectrum.analytics.events import BytimeGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
bytime = client.spectrum.analytics.events.bytimes.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -39,7 +39,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
time_delta="minute",
until=parse_datetime("2014-01-02T03:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +51,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bytime = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -63,7 +63,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bytime = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -85,7 +85,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
bytime = await async_client.spectrum.analytics.events.bytimes.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -100,7 +100,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
time_delta="minute",
until=parse_datetime("2014-01-02T03:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -112,7 +112,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bytime = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -124,7 +124,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
bytime = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, bytime, path=["response"])
+ assert_matches_type(Optional[BytimeGetResponse], bytime, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/spectrum/analytics/events/test_summaries.py b/tests/api_resources/spectrum/analytics/events/test_summaries.py
index 196915980ba..5f19bf08707 100644
--- a/tests/api_resources/spectrum/analytics/events/test_summaries.py
+++ b/tests/api_resources/spectrum/analytics/events/test_summaries.py
@@ -3,14 +3,14 @@
from __future__ import annotations
import os
-from typing import Any, cast
+from typing import Any, Optional, cast
import pytest
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.spectrum.analytics.events import SummaryGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_get(self, client: Cloudflare) -> None:
summary = client.spectrum.analytics.events.summaries.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
sort=["+count", "-bytesIngress"],
until=parse_datetime("2014-01-02T03:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
summary = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -62,7 +62,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
summary = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -84,7 +84,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
summary = await async_client.spectrum.analytics.events.summaries.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -98,7 +98,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
sort=["+count", "-bytesIngress"],
until=parse_datetime("2014-01-02T03:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -110,7 +110,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
summary = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -122,7 +122,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
summary = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, summary, path=["response"])
+ assert_matches_type(Optional[SummaryGetResponse], summary, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_audio_tracks.py b/tests/api_resources/stream/test_audio_tracks.py
index 8342581ab94..8924d80f355 100644
--- a/tests/api_resources/stream/test_audio_tracks.py
+++ b/tests/api_resources/stream/test_audio_tracks.py
@@ -9,8 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
-from cloudflare.types.stream import Audio, AudioTrackGetResponse
+from cloudflare.types.stream import (
+ Audio,
+ AudioTrackGetResponse,
+ AudioTrackDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +29,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -40,7 +43,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
audio_track = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,7 +57,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
audio_track = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -290,7 +293,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
identifier="ea95132c15732412d22c1476fa83f27a",
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -304,7 +307,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
audio_track = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -318,7 +321,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
audio_track = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, audio_track, path=["response"])
+ assert_matches_type(AudioTrackDeleteResponse, audio_track, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_downloads.py b/tests/api_resources/stream/test_downloads.py
index 2f2474d8d0d..a9fa2d83736 100644
--- a/tests/api_resources/stream/test_downloads.py
+++ b/tests/api_resources/stream/test_downloads.py
@@ -9,10 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
+from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.stream import DownloadDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -84,7 +82,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -97,7 +95,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -110,7 +108,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -249,7 +247,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -262,7 +260,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -275,7 +273,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, download, path=["response"])
+ assert_matches_type(DownloadDeleteResponse, download, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_keys.py b/tests/api_resources/stream/test_keys.py
index 40883038b82..308f30af324 100644
--- a/tests/api_resources/stream/test_keys.py
+++ b/tests/api_resources/stream/test_keys.py
@@ -9,8 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
-from cloudflare.types.stream import Keys, KeyGetResponse
+from cloudflare.types.stream import Keys, KeyGetResponse, KeyDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -72,7 +71,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -86,7 +85,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -100,7 +99,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -221,7 +220,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +234,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -249,7 +248,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, key, path=["response"])
+ assert_matches_type(KeyDeleteResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_watermarks.py b/tests/api_resources/stream/test_watermarks.py
index 304774e6b4b..64cc3c84785 100644
--- a/tests/api_resources/stream/test_watermarks.py
+++ b/tests/api_resources/stream/test_watermarks.py
@@ -10,11 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
-from cloudflare.types.stream import Watermaks
+from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.stream import Watermaks, WatermarkDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -132,7 +129,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -146,7 +143,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -160,7 +157,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -347,7 +344,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -361,7 +358,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -375,7 +372,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, watermark, path=["response"])
+ assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_webhooks.py b/tests/api_resources/stream/test_webhooks.py
index 0e614b30d4f..dd848dee8f2 100644
--- a/tests/api_resources/stream/test_webhooks.py
+++ b/tests/api_resources/stream/test_webhooks.py
@@ -9,10 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import (
- UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
+from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.stream import WebhookDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -73,7 +71,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -86,7 +84,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,7 +97,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -211,7 +209,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -224,7 +222,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -237,7 +235,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, webhook, path=["response"])
+ assert_matches_type(WebhookDeleteResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_custom_nameservers.py b/tests/api_resources/test_custom_nameservers.py
index 09664d89d16..502a47dd718 100644
--- a/tests/api_resources/test_custom_nameservers.py
+++ b/tests/api_resources/test_custom_nameservers.py
@@ -12,10 +12,10 @@
from cloudflare.types import (
CustomNameserver,
CustomNameserverGetResponse,
+ CustomNameserverDeleteResponse,
CustomNameserverVerifyResponse,
CustomNameserverAvailabiltyResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -87,9 +87,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="372e67954025e0ba6aaa6d586b9e0b59",
body={},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -103,9 +101,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -119,9 +115,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -340,9 +334,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="372e67954025e0ba6aaa6d586b9e0b59",
body={},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -356,9 +348,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -372,9 +362,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverDeleteResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_dnssec.py b/tests/api_resources/test_dnssec.py
index 5faa58dd16d..6294090c744 100644
--- a/tests/api_resources/test_dnssec.py
+++ b/tests/api_resources/test_dnssec.py
@@ -9,8 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import DNSSEC
-from cloudflare.types.shared import UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0
+from cloudflare.types import DNSSEC, DNSSECDeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +24,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,7 +37,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +50,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -170,7 +169,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -183,7 +182,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -196,7 +195,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = await response.parse()
- assert_matches_type(UnnamedSchemaRef602dd5f63eab958d53da61434dec08f0, dnssec, path=["response"])
+ assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_queues.py b/tests/api_resources/test_queues.py
index 1ab9e543cb1..09a971a7f1c 100644
--- a/tests/api_resources/test_queues.py
+++ b/tests/api_resources/test_queues.py
@@ -13,9 +13,9 @@
QueueGetResponse,
QueueListResponse,
QueueCreateResponse,
+ QueueDeleteResponse,
QueueUpdateResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -176,7 +176,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -190,7 +190,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -204,7 +204,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -434,7 +434,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -448,7 +448,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -462,7 +462,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], queue, path=["response"])
+ assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_snippets.py b/tests/api_resources/test_snippets.py
index fcf0594f152..a47c07cf315 100644
--- a/tests/api_resources/test_snippets.py
+++ b/tests/api_resources/test_snippets.py
@@ -9,9 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import Snippet
+from cloudflare.types import Snippet, SnippetDeleteResponse
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -131,7 +130,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"snippet_name_01",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -144,7 +143,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -157,7 +156,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -344,7 +343,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"snippet_name_01",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -357,7 +356,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -370,7 +369,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, snippet, path=["response"])
+ assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_warp_connector.py b/tests/api_resources/test_warp_connector.py
index 6badb18aa01..7dbb76cb6f7 100644
--- a/tests/api_resources/test_warp_connector.py
+++ b/tests/api_resources/test_warp_connector.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
+ WARPConnector,
WARPConnectorTokenResponse,
)
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="blog",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -42,7 +42,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -55,7 +55,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -74,11 +74,7 @@ def test_method_list(self, client: Cloudflare) -> None:
warp_connector = client.warp_connector.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,11 +92,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -112,11 +104,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,11 +116,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -152,7 +136,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -166,7 +150,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -180,7 +164,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -208,7 +192,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -219,7 +203,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -232,7 +216,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -245,7 +229,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -271,7 +255,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -284,7 +268,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -297,7 +281,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -379,7 +363,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="blog",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -392,7 +376,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -405,7 +389,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -424,11 +408,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
warp_connector = await async_client.warp_connector.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -446,11 +426,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -462,11 +438,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -478,11 +450,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8],
- warp_connector,
- path=["response"],
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -502,7 +470,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -516,7 +484,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -530,7 +498,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -558,7 +526,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -569,7 +537,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -582,7 +550,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -595,7 +563,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -621,7 +589,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -634,7 +602,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -647,7 +615,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, warp_connector, path=["response"])
+ assert_matches_type(WARPConnector, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/load_balancers/test_pools.py b/tests/api_resources/user/load_balancers/test_pools.py
index 32c46bceded..4875ba28f5e 100644
--- a/tests/api_resources/user/load_balancers/test_pools.py
+++ b/tests/api_resources/user/load_balancers/test_pools.py
@@ -10,8 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.load_balancers import Pool
from cloudflare.types.user.load_balancers import (
- Pool,
PoolDeleteResponse,
PoolHealthResponse,
PoolPreviewResponse,
diff --git a/tests/api_resources/workers/scripts/test_tail.py b/tests/api_resources/workers/scripts/test_tail.py
index afe6b465782..819ac972cf9 100644
--- a/tests/api_resources/workers/scripts/test_tail.py
+++ b/tests/api_resources/workers/scripts/test_tail.py
@@ -9,8 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846
-from cloudflare.types.workers.scripts import TailGetResponse, TailCreateResponse
+from cloudflare.types.workers.scripts import (
+ TailGetResponse,
+ TailCreateResponse,
+ TailDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -84,7 +87,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
script_name="this-is_my_script-01",
body={},
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,7 +102,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -114,7 +117,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -267,7 +270,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
script_name="this-is_my_script-01",
body={},
)
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -282,7 +285,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -297,7 +300,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = await response.parse()
- assert_matches_type(UnnamedSchemaRefEc4d85c3d1bcc6b3b7e99c199ae99846, tail, path=["response"])
+ assert_matches_type(TailDeleteResponse, tail, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/access/test_keys.py b/tests/api_resources/zero_trust/access/test_keys.py
index dd94a7159aa..3485f9113bb 100644
--- a/tests/api_resources/zero_trust/access/test_keys.py
+++ b/tests/api_resources/zero_trust/access/test_keys.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
+from cloudflare.types.zero_trust.access import KeyGetResponse, KeyRotateResponse, KeyUpdateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
key_rotation_interval_days=30,
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +37,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -69,7 +69,7 @@ def test_method_get(self, client: Cloudflare) -> None:
key = client.zero_trust.access.keys.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,7 +81,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -93,7 +93,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -111,7 +111,7 @@ def test_method_rotate(self, client: Cloudflare) -> None:
key = client.zero_trust.access.keys.rotate(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -123,7 +123,7 @@ def test_raw_response_rotate(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -135,7 +135,7 @@ def test_streaming_response_rotate(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -158,7 +158,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
key_rotation_interval_days=30,
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -171,7 +171,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -184,7 +184,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyUpdateResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -203,7 +203,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
key = await async_client.zero_trust.access.keys.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -215,7 +215,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -227,7 +227,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyGetResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -245,7 +245,7 @@ async def test_method_rotate(self, async_client: AsyncCloudflare) -> None:
key = await async_client.zero_trust.access.keys.rotate(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -257,7 +257,7 @@ async def test_raw_response_rotate(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -269,7 +269,7 @@ async def test_streaming_response_rotate(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
key = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, key, path=["response"])
+ assert_matches_type(KeyRotateResponse, key, path=["response"])
assert cast(Any, response.is_closed) is True
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 ef4f75ebddb..7645cc81700 100644
--- a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
+++ b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
@@ -9,10 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f
from cloudflare.types.zero_trust.dlp.profiles import (
CustomProfile,
CustomCreateResponse,
+ CustomDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -174,7 +174,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +188,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -202,7 +202,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -432,7 +432,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -446,7 +446,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -460,7 +460,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = await response.parse()
- assert_matches_type(UnnamedSchemaRef8d6a37a1e4190f86652802244d29525f, custom, path=["response"])
+ assert_matches_type(CustomDeleteResponse, custom, path=["response"])
assert cast(Any, response.is_closed) is True
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 67af2e09fcd..c785cf1fb63 100644
--- a/tests/api_resources/zero_trust/networks/test_virtual_networks.py
+++ b/tests/api_resources/zero_trust/networks/test_virtual_networks.py
@@ -3,16 +3,18 @@
from __future__ import annotations
import os
-from typing import Any, Optional, cast
+from typing import Any, cast
import pytest
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
from cloudflare.types.zero_trust.networks import (
VirtualNetwork,
+ VirtualNetworkEditResponse,
+ VirtualNetworkCreateResponse,
+ VirtualNetworkDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,9 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="us-east-1-vpc",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,9 +41,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
comment="Staging VPC for data science",
is_default=True,
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -56,9 +54,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -71,9 +67,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -149,9 +143,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -165,9 +157,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -181,9 +171,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -211,9 +199,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -225,9 +211,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
is_default_network=True,
name="us-east-1-vpc",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -240,9 +224,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -255,9 +237,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -287,9 +267,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="us-east-1-vpc",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -300,9 +278,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
comment="Staging VPC for data science",
is_default=True,
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -315,9 +291,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -330,9 +304,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkCreateResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -408,9 +380,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -424,9 +394,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -440,9 +408,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkDeleteResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -470,9 +436,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -484,9 +448,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
is_default_network=True,
name="us-east-1-vpc",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -499,9 +461,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -514,9 +474,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
virtual_network = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], virtual_network, path=["response"]
- )
+ assert_matches_type(VirtualNetworkEditResponse, virtual_network, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/test_organizations.py b/tests/api_resources/zero_trust/test_organizations.py
index 62c7721a086..010456034f4 100644
--- a/tests/api_resources/zero_trust/test_organizations.py
+++ b/tests/api_resources/zero_trust/test_organizations.py
@@ -10,7 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.zero_trust import (
- Organizations,
+ Organization,
OrganizationRevokeUsersResponse,
)
@@ -29,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,7 +54,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
user_seat_expiration_inactive_time="720h",
warp_auth_session_duration="24h",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -69,7 +69,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -84,7 +84,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -114,7 +114,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -143,7 +143,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
user_seat_expiration_inactive_time="720h",
warp_auth_session_duration="24h",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -156,7 +156,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -169,7 +169,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -195,7 +195,7 @@ def test_method_list(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -204,7 +204,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -217,7 +217,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -230,7 +230,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -329,7 +329,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -354,7 +354,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
user_seat_expiration_inactive_time="720h",
warp_auth_session_duration="24h",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -369,7 +369,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -384,7 +384,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -414,7 +414,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -443,7 +443,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
user_seat_expiration_inactive_time="720h",
warp_auth_session_duration="24h",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -456,7 +456,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -469,7 +469,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -495,7 +495,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -504,7 +504,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
account_id="string",
zone_id="string",
)
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -517,7 +517,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -530,7 +530,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(Organizations, organization, path=["response"])
+ assert_matches_type(Organization, organization, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/test_tunnels.py b/tests/api_resources/zero_trust/test_tunnels.py
index dce25a72220..1e5b90f5f72 100644
--- a/tests/api_resources/zero_trust/test_tunnels.py
+++ b/tests/api_resources/zero_trust/test_tunnels.py
@@ -9,9 +9,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare.types import WARPConnector
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8
from cloudflare.types.zero_trust import (
Tunnel,
)
@@ -78,9 +78,7 @@ def test_method_list(self, client: Cloudflare) -> None:
tunnel = client.zero_trust.tunnels.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,9 +97,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -113,9 +109,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -127,9 +121,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(
- SyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(SyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -205,7 +197,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -216,7 +208,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -229,7 +221,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -242,7 +234,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -373,9 +365,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
tunnel = await async_client.zero_trust.tunnels.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -394,9 +384,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -408,9 +396,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -422,9 +408,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(
- AsyncV4PagePaginationArray[UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8], tunnel, path=["response"]
- )
+ assert_matches_type(AsyncV4PagePaginationArray[WARPConnector], tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -500,7 +484,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -511,7 +495,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -524,7 +508,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -537,7 +521,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(UnnamedSchemaRef413ab4522f0bb93f63444799121fe2f8, tunnel, path=["response"])
+ assert_matches_type(WARPConnector, tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/tunnels/test_configurations.py b/tests/api_resources/zero_trust/tunnels/test_configurations.py
index d34a8879382..3b66ce60c1d 100644
--- a/tests/api_resources/zero_trust/tunnels/test_configurations.py
+++ b/tests/api_resources/zero_trust/tunnels/test_configurations.py
@@ -3,13 +3,16 @@
from __future__ import annotations
import os
-from typing import Any, Optional, cast
+from typing import Any, cast
import pytest
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
+from cloudflare.types.zero_trust.tunnels import (
+ ConfigurationGetResponse,
+ ConfigurationUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,9 +27,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -135,9 +136,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
"warp_routing": {"enabled": True},
},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -150,9 +149,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -165,9 +162,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -193,9 +188,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -208,9 +201,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -223,9 +214,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -255,9 +244,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -366,9 +353,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
"warp_routing": {"enabled": True},
},
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -381,9 +366,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -396,9 +379,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationUpdateResponse, configuration, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -424,9 +405,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -439,9 +418,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -454,9 +431,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
configuration = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], configuration, path=["response"]
- )
+ assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/tunnels/test_connections.py b/tests/api_resources/zero_trust/tunnels/test_connections.py
index 972194937f1..d7d2ec576f3 100644
--- a/tests/api_resources/zero_trust/tunnels/test_connections.py
+++ b/tests/api_resources/zero_trust/tunnels/test_connections.py
@@ -9,8 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1
-from cloudflare.types.zero_trust.tunnels import ConnectionGetResponse
+from cloudflare.types.zero_trust.tunnels import (
+ ConnectionGetResponse,
+ ConnectionDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +28,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"])
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -40,7 +42,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
connection = response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"])
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,9 +56,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
connection = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"]
- )
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -141,7 +141,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"])
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -155,7 +155,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
connection = await response.parse()
- assert_matches_type(Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"])
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -169,9 +169,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
connection = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef65e3c8c1a9c4638ec25cdbbaca7165c1], connection, path=["response"]
- )
+ assert_matches_type(ConnectionDeleteResponse, connection, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zones/test_custom_nameservers.py b/tests/api_resources/zones/test_custom_nameservers.py
index 29d739a15ae..0d059a2b75b 100644
--- a/tests/api_resources/zones/test_custom_nameservers.py
+++ b/tests/api_resources/zones/test_custom_nameservers.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151
+from cloudflare.types.zones import (
+ CustomNameserverGetResponse,
+ CustomNameserverUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,9 +26,7 @@ def test_method_update(self, client: Cloudflare) -> None:
custom_nameserver = client.zones.custom_nameservers.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -35,9 +36,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
enabled=True,
ns_set=1,
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -49,9 +48,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -63,9 +60,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -83,9 +78,7 @@ def test_method_get(self, client: Cloudflare) -> None:
custom_nameserver = client.zones.custom_nameservers.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -97,9 +90,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,9 +102,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -135,9 +124,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
custom_nameserver = await async_client.zones.custom_nameservers.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -147,9 +134,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
enabled=True,
ns_set=1,
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -161,9 +146,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -175,9 +158,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverUpdateResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -195,9 +176,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
custom_nameserver = await async_client.zones.custom_nameservers.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -209,9 +188,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -223,9 +200,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(
- Optional[UnnamedSchemaRef67bbb1ccdd42c3e2937b9fd19f791151], custom_nameserver, path=["response"]
- )
+ assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True