From 1979faa2c5399fade29263566551b9a39acdcb24 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 26 Mar 2024 14:09:06 +0000
Subject: [PATCH] feat(api): update via SDK Studio (#175)
---
api.md | 2 +-
src/cloudflare/resources/dns/records.py | 12 +-
src/cloudflare/resources/images/v1/keys.py | 16 +-
.../resources/images/v1/variants.py | 28 ++-
.../resources/intel/domain_history.py | 4 +-
.../resources/intel/miscategorizations.py | 18 +-
.../resources/load_balancers/previews.py | 8 +-
.../configs/configs.py | 40 +++--
.../magic_network_monitoring/configs/full.py | 8 +-
.../rules/advertisements.py | 16 +-
.../magic_network_monitoring/rules/rules.py | 72 ++++++--
.../resources/secondary_dns/acls.py | 64 +++++--
.../resources/secondary_dns/force_axfr.py | 8 +-
.../resources/secondary_dns/incoming.py | 32 +++-
.../secondary_dns/outgoing/outgoing.py | 56 ++++--
.../secondary_dns/outgoing/status.py | 8 +-
.../resources/secondary_dns/peers.py | 64 +++++--
.../resources/secondary_dns/tsigs.py | 64 +++++--
src/cloudflare/resources/stream/embed.py | 8 +-
.../resources/user/load_balancers/preview.py | 8 +-
.../resources/waiting_rooms/events/details.py | 16 +-
.../resources/waiting_rooms/events/events.py | 80 ++++++---
.../resources/waiting_rooms/rules.py | 40 +++--
.../resources/waiting_rooms/statuses.py | 8 +-
.../resources/waiting_rooms/waiting_rooms.py | 32 +++-
.../resources/workers/account_settings.py | 4 +-
src/cloudflare/resources/workers/domains.py | 56 ++++--
.../resources/workers/scripts/schedules.py | 4 +-
.../resources/workers/scripts/usage_model.py | 4 +-
.../resources/workers/subdomains.py | 4 +-
.../access/applications/applications.py | 16 +-
.../resources/zero_trust/access/bookmarks.py | 40 +++--
.../resources/zero_trust/devices/devices.py | 16 +-
.../resources/zero_trust/devices/dex_tests.py | 40 +++--
.../resources/zero_trust/devices/networks.py | 40 +++--
.../zero_trust/devices/override_codes.py | 8 +-
.../devices/policies/default_policy.py | 8 +-
.../zero_trust/devices/policies/excludes.py | 24 ++-
.../devices/policies/fallback_domains.py | 24 ++-
.../zero_trust/devices/policies/includes.py | 24 ++-
.../zero_trust/devices/policies/policies.py | 40 +++--
.../devices/posture/integrations.py | 40 +++--
.../zero_trust/devices/posture/posture.py | 40 +++--
.../resources/zero_trust/devices/revoke.py | 8 +-
.../resources/zero_trust/devices/settings.py | 16 +-
.../resources/zero_trust/devices/unrevoke.py | 8 +-
.../zero_trust/gateway/audit_ssh_settings.py | 16 +-
.../zero_trust/gateway/configurations.py | 24 ++-
.../resources/zero_trust/gateway/gateway.py | 16 +-
.../zero_trust/gateway/lists/items.py | 8 +-
.../zero_trust/gateway/lists/lists.py | 48 +++--
.../resources/zero_trust/gateway/locations.py | 64 +++++--
.../resources/zero_trust/gateway/logging.py | 16 +-
.../zero_trust/gateway/proxy_endpoints.py | 64 +++++--
.../resources/zero_trust/gateway/rules.py | 40 +++--
src/cloudflare/types/d1/d1_create_database.py | 2 +-
.../types/d1/d1_database_details.py | 2 +-
src/cloudflare/types/dns/dns_record.py | 2 +-
.../types/dns/record_create_params.py | 2 +-
.../types/dns/record_edit_params.py | 2 +-
.../types/dns/record_update_params.py | 2 +-
.../types/firewall/waf/legacy_jhs_override.py | 6 +-
...tes_and_hostnames_setting_object_delete.py | 4 +-
.../types/images/v1/image_variant.py | 2 +-
.../types/images/v1/image_variants.py | 2 +-
.../types/images/v1/variant_create_params.py | 2 +-
.../types/intel/domain_history_get_params.py | 2 +-
.../types/intel/domains/bulk_get_response.py | 4 +-
src/cloudflare/types/intel/intel_domain.py | 4 +-
.../types/intel/intel_domain_history.py | 2 +-
.../types/intel/intel_schemas_ip.py | 6 +-
.../intel/miscategorization_create_params.py | 9 +-
.../magic_visibility_mnm_rule.py | 2 +-
.../page_shield/page_shield_connection.py | 22 +--
.../types/page_shield/page_shield_script.py | 32 ++--
.../types/page_shield/script_get_response.py | 30 ++--
.../types/queues/workers_consumer_updated.py | 2 +-
.../types/registrar/domain_list_response.py | 6 +-
.../types/secondary_dns/acl_create_params.py | 2 +-
.../secondary_dns/acl_delete_response.py | 2 +-
.../types/secondary_dns/acl_update_params.py | 2 +-
.../secondary_dns/incoming_create_params.py | 2 +-
.../secondary_dns/incoming_create_response.py | 2 +-
.../secondary_dns/incoming_delete_response.py | 2 +-
.../secondary_dns/incoming_get_response.py | 2 +-
.../secondary_dns/incoming_update_params.py | 2 +-
.../secondary_dns/incoming_update_response.py | 2 +-
.../secondary_dns/outgoing_create_params.py | 2 +-
.../secondary_dns/outgoing_create_response.py | 2 +-
.../secondary_dns/outgoing_delete_response.py | 2 +-
.../secondary_dns/outgoing_get_response.py | 2 +-
.../secondary_dns/outgoing_update_params.py | 2 +-
.../secondary_dns/outgoing_update_response.py | 2 +-
.../types/secondary_dns/peer_create_params.py | 2 +-
.../secondary_dns/peer_delete_response.py | 2 +-
.../types/secondary_dns/peer_update_params.py | 2 +-
.../types/secondary_dns/secondary_dns_acl.py | 2 +-
.../types/secondary_dns/secondary_dns_peer.py | 2 +-
.../types/secondary_dns/secondary_dns_tsig.py | 2 +-
.../types/secondary_dns/tsig_create_params.py | 2 +-
.../secondary_dns/tsig_delete_response.py | 2 +-
.../types/secondary_dns/tsig_update_params.py | 2 +-
src/cloudflare/types/stream/__init__.py | 1 +
.../types/stream/embed_get_response.py | 6 +
.../types/subscription_create_params.py | 2 +-
.../types/subscription_list_response.py | 2 +-
.../types/subscription_update_params.py | 2 +-
.../types/user/subscription_edit_params.py | 2 +-
.../types/user/subscription_get_response.py | 2 +-
.../types/user/subscription_update_params.py | 2 +-
.../types/vectorize/vectorize_create_index.py | 4 +-
.../types/waiting_room_delete_response.py | 2 +-
.../waiting_rooms/event_delete_response.py | 2 +-
.../types/waiting_rooms/event_edit_params.py | 2 +-
.../waiting_rooms/event_update_params.py | 2 +-
.../waitingroom_event_details_result.py | 2 +-
.../types/waiting_rooms/rule_edit_params.py | 2 +-
.../waiting_rooms/waitingroom_event_result.py | 2 +-
.../types/waitingroom_waitingroom.py | 2 +-
.../workers/account_setting_update_params.py | 2 +-
.../types/workers/domain_list_params.py | 4 +-
.../types/workers/domain_update_params.py | 4 +-
.../workers/scripts/schedule_update_params.py | 2 +-
.../scripts/usage_model_update_params.py | 2 +-
.../types/workers/subdomain_update_params.py | 2 +-
.../types/workers/workers_domain.py | 4 +-
.../types/zero_trust/access/access_apps.py | 2 +-
.../access/application_create_params.py | 2 +-
.../access/application_update_params.py | 2 +-
.../access/logs/access_access_requests.py | 2 +-
.../devices/dex_test_create_params.py | 2 +-
.../devices/dex_test_update_params.py | 2 +-
.../devices/network_create_params.py | 2 +-
.../devices/network_update_params.py | 2 +-
.../devices/override_code_list_response.py | 10 +-
.../devices/policies/exclude_update_params.py | 2 +-
.../policies/fallback_domain_update_params.py | 2 +-
.../devices/policies/include_update_params.py | 2 +-
.../devices/policy_create_params.py | 2 +-
.../zero_trust/devices/policy_edit_params.py | 2 +-
.../posture/integration_create_params.py | 2 +-
.../posture/integration_edit_params.py | 2 +-
.../devices/posture_create_params.py | 2 +-
.../devices/posture_update_params.py | 2 +-
.../devices/revoke_create_params.py | 2 +-
.../devices/setting_update_params.py | 2 +-
.../devices/unrevoke_create_params.py | 2 +-
.../audit_ssh_setting_update_params.py | 2 +-
.../gateway/configuration_edit_params.py | 2 +-
.../gateway/configuration_update_params.py | 2 +-
.../zero_trust/gateway/list_create_params.py | 2 +-
.../zero_trust/gateway/list_edit_params.py | 2 +-
.../zero_trust/gateway/list_update_params.py | 2 +-
.../gateway/location_create_params.py | 2 +-
.../gateway/location_update_params.py | 2 +-
.../gateway/logging_update_params.py | 2 +-
.../gateway/proxy_endpoint_create_params.py | 2 +-
.../gateway/proxy_endpoint_edit_params.py | 2 +-
.../zero_trust/gateway/rule_create_params.py | 2 +-
.../zero_trust/gateway/rule_update_params.py | 2 +-
.../gateway/zero_trust_gateway_locations.py | 2 +-
.../zero_trust_gateway_proxy_endpoints.py | 2 +-
.../types/zones/subscription_create_params.py | 2 +-
.../types/zones/subscription_list_response.py | 2 +-
tests/api_resources/images/v1/test_keys.py | 56 ++++--
.../api_resources/images/v1/test_variants.py | 120 +++++++++----
.../load_balancers/test_previews.py | 12 ++
.../configs/test_full.py | 16 ++
.../rules/test_advertisements.py | 30 ++++
.../magic_network_monitoring/test_configs.py | 80 +++++++++
.../magic_network_monitoring/test_rules.py | 138 +++++++++++++++
.../secondary_dns/outgoing/test_status.py | 16 ++
.../api_resources/secondary_dns/test_acls.py | 132 ++++++++++++++
.../secondary_dns/test_force_axfr.py | 16 ++
.../secondary_dns/test_incoming.py | 76 ++++++++
.../secondary_dns/test_outgoing.py | 120 +++++++++++++
.../api_resources/secondary_dns/test_peers.py | 128 ++++++++++++++
.../api_resources/secondary_dns/test_tsigs.py | 140 +++++++++++++++
tests/api_resources/stream/test_embed.py | 12 +-
tests/api_resources/test_waiting_rooms.py | 64 +++++++
.../user/load_balancers/test_preview.py | 16 ++
.../waiting_rooms/events/test_details.py | 28 +++
.../waiting_rooms/test_events.py | 166 ++++++++++++++++++
.../api_resources/waiting_rooms/test_rules.py | 100 +++++++++++
.../waiting_rooms/test_statuses.py | 12 ++
tests/api_resources/workers/test_domains.py | 100 +++++++++++
.../zero_trust/access/test_bookmarks.py | 64 +++++++
.../devices/policies/test_default_policy.py | 16 ++
.../devices/policies/test_excludes.py | 72 ++++++++
.../devices/policies/test_fallback_domains.py | 42 +++++
.../devices/policies/test_includes.py | 72 ++++++++
.../devices/posture/test_integrations.py | 86 +++++++++
.../zero_trust/devices/test_dex_tests.py | 84 +++++++++
.../zero_trust/devices/test_networks.py | 74 ++++++++
.../zero_trust/devices/test_override_codes.py | 12 ++
.../zero_trust/devices/test_policies.py | 74 ++++++++
.../zero_trust/devices/test_posture.py | 76 ++++++++
.../zero_trust/devices/test_revoke.py | 26 +++
.../zero_trust/devices/test_settings.py | 32 ++++
.../zero_trust/devices/test_unrevoke.py | 26 +++
.../zero_trust/gateway/lists/test_items.py | 12 ++
.../gateway/test_audit_ssh_settings.py | 34 ++++
.../zero_trust/gateway/test_configurations.py | 48 +++++
.../zero_trust/gateway/test_lists.py | 86 +++++++++
.../zero_trust/gateway/test_locations.py | 128 ++++++++++++++
.../zero_trust/gateway/test_logging.py | 32 ++++
.../gateway/test_proxy_endpoints.py | 126 +++++++++++++
.../zero_trust/gateway/test_rules.py | 76 ++++++++
.../api_resources/zero_trust/test_devices.py | 28 +++
.../api_resources/zero_trust/test_gateway.py | 32 ++++
210 files changed, 4134 insertions(+), 614 deletions(-)
create mode 100644 src/cloudflare/types/stream/embed_get_response.py
diff --git a/api.md b/api.md
index df8a1c480cf..8e1d82588b6 100644
--- a/api.md
+++ b/api.md
@@ -4446,7 +4446,7 @@ from cloudflare.types.stream import EmbedGetResponse
Methods:
-- client.stream.embed.get(identifier, \*, account_id) -> object
+- client.stream.embed.get(identifier, \*, account_id) -> str
## Token
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index c0e7e7306b4..60a37582da7 100644
--- a/src/cloudflare/resources/dns/records.py
+++ b/src/cloudflare/resources/dns/records.py
@@ -688,7 +688,7 @@ def create(
self,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
@@ -1958,7 +1958,7 @@ def update(
dns_record_id: str,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
@@ -3417,7 +3417,7 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
@@ -4890,7 +4890,7 @@ async def create(
self,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
@@ -6160,7 +6160,7 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
@@ -7619,7 +7619,7 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
- content: object,
+ content: str,
name: str,
type: Literal["NS"],
comment: str | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/images/v1/keys.py b/src/cloudflare/resources/images/v1/keys.py
index bc8e169abbc..b646e0cb140 100644
--- a/src/cloudflare/resources/images/v1/keys.py
+++ b/src/cloudflare/resources/images/v1/keys.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> KeysWithStreamingResponse:
def update(
self,
- signing_key_name: object,
+ signing_key_name: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -62,6 +62,8 @@ def update(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not signing_key_name:
+ raise ValueError(f"Expected a non-empty value for `signing_key_name` but received {signing_key_name!r}")
return self._put(
f"/accounts/{account_id}/images/v1/keys/{signing_key_name}",
options=make_request_options(
@@ -116,7 +118,7 @@ def list(
def delete(
self,
- signing_key_name: object,
+ signing_key_name: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -144,6 +146,8 @@ def delete(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not signing_key_name:
+ raise ValueError(f"Expected a non-empty value for `signing_key_name` but received {signing_key_name!r}")
return self._delete(
f"/accounts/{account_id}/images/v1/keys/{signing_key_name}",
options=make_request_options(
@@ -168,7 +172,7 @@ def with_streaming_response(self) -> AsyncKeysWithStreamingResponse:
async def update(
self,
- signing_key_name: object,
+ signing_key_name: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -195,6 +199,8 @@ async def update(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not signing_key_name:
+ raise ValueError(f"Expected a non-empty value for `signing_key_name` but received {signing_key_name!r}")
return await self._put(
f"/accounts/{account_id}/images/v1/keys/{signing_key_name}",
options=make_request_options(
@@ -249,7 +255,7 @@ async def list(
async def delete(
self,
- signing_key_name: object,
+ signing_key_name: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -277,6 +283,8 @@ async def delete(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not signing_key_name:
+ raise ValueError(f"Expected a non-empty value for `signing_key_name` but received {signing_key_name!r}")
return await self._delete(
f"/accounts/{account_id}/images/v1/keys/{signing_key_name}",
options=make_request_options(
diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py
index f7bda7e28f1..37e4b167dec 100644
--- a/src/cloudflare/resources/images/v1/variants.py
+++ b/src/cloudflare/resources/images/v1/variants.py
@@ -47,7 +47,7 @@ def create(
self,
*,
account_id: str,
- id: object,
+ id: str,
options: variant_create_params.Options,
never_require_signed_urls: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -139,7 +139,7 @@ def list(
def delete(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -165,6 +165,8 @@ def delete(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return cast(
VariantDeleteResponse,
self._delete(
@@ -184,7 +186,7 @@ def delete(
def edit(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
options: variant_edit_params.Options,
@@ -217,6 +219,8 @@ def edit(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return self._patch(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
body=maybe_transform(
@@ -238,7 +242,7 @@ def edit(
def get(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -264,6 +268,8 @@ def get(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return self._get(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
options=make_request_options(
@@ -290,7 +296,7 @@ async def create(
self,
*,
account_id: str,
- id: object,
+ id: str,
options: variant_create_params.Options,
never_require_signed_urls: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -382,7 +388,7 @@ async def list(
async def delete(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -408,6 +414,8 @@ async def delete(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return cast(
VariantDeleteResponse,
await self._delete(
@@ -427,7 +435,7 @@ async def delete(
async def edit(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
options: variant_edit_params.Options,
@@ -460,6 +468,8 @@ async def edit(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return await self._patch(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
body=await async_maybe_transform(
@@ -481,7 +491,7 @@ async def edit(
async def get(
self,
- variant_id: object,
+ variant_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -507,6 +517,8 @@ async def get(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not variant_id:
+ raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return await self._get(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/intel/domain_history.py b/src/cloudflare/resources/intel/domain_history.py
index b2addab43ef..25de53aa218 100644
--- a/src/cloudflare/resources/intel/domain_history.py
+++ b/src/cloudflare/resources/intel/domain_history.py
@@ -41,7 +41,7 @@ def get(
self,
*,
account_id: str,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -92,7 +92,7 @@ async def get(
self,
*,
account_id: str,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
diff --git a/src/cloudflare/resources/intel/miscategorizations.py b/src/cloudflare/resources/intel/miscategorizations.py
index 8b4878d9443..34b12eb83da 100644
--- a/src/cloudflare/resources/intel/miscategorizations.py
+++ b/src/cloudflare/resources/intel/miscategorizations.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, cast
+from typing import Any, Iterable, cast
from typing_extensions import Literal
import httpx
@@ -42,12 +42,12 @@ def create(
self,
*,
account_id: str,
- content_adds: object | NotGiven = NOT_GIVEN,
- content_removes: object | NotGiven = NOT_GIVEN,
+ content_adds: Iterable[float] | NotGiven = NOT_GIVEN,
+ content_removes: Iterable[float] | NotGiven = NOT_GIVEN,
indicator_type: Literal["domain", "ipv4", "ipv6", "url"] | NotGiven = NOT_GIVEN,
ip: object | NotGiven = NOT_GIVEN,
- security_adds: object | NotGiven = NOT_GIVEN,
- security_removes: object | NotGiven = NOT_GIVEN,
+ security_adds: Iterable[float] | NotGiven = NOT_GIVEN,
+ security_removes: Iterable[float] | NotGiven = NOT_GIVEN,
url: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -129,12 +129,12 @@ async def create(
self,
*,
account_id: str,
- content_adds: object | NotGiven = NOT_GIVEN,
- content_removes: object | NotGiven = NOT_GIVEN,
+ content_adds: Iterable[float] | NotGiven = NOT_GIVEN,
+ content_removes: Iterable[float] | NotGiven = NOT_GIVEN,
indicator_type: Literal["domain", "ipv4", "ipv6", "url"] | NotGiven = NOT_GIVEN,
ip: object | NotGiven = NOT_GIVEN,
- security_adds: object | NotGiven = NOT_GIVEN,
- security_removes: object | NotGiven = NOT_GIVEN,
+ security_adds: Iterable[float] | NotGiven = NOT_GIVEN,
+ security_removes: Iterable[float] | NotGiven = NOT_GIVEN,
url: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
diff --git a/src/cloudflare/resources/load_balancers/previews.py b/src/cloudflare/resources/load_balancers/previews.py
index a825827acc8..d1000157f0e 100644
--- a/src/cloudflare/resources/load_balancers/previews.py
+++ b/src/cloudflare/resources/load_balancers/previews.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> PreviewsWithStreamingResponse:
def get(
self,
- preview_id: object,
+ preview_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -61,6 +61,8 @@ def get(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not preview_id:
+ raise ValueError(f"Expected a non-empty value for `preview_id` but received {preview_id!r}")
return self._get(
f"/accounts/{account_id}/load_balancers/preview/{preview_id}",
options=make_request_options(
@@ -85,7 +87,7 @@ def with_streaming_response(self) -> AsyncPreviewsWithStreamingResponse:
async def get(
self,
- preview_id: object,
+ preview_id: str,
*,
account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -111,6 +113,8 @@ async def get(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not preview_id:
+ raise ValueError(f"Expected a non-empty value for `preview_id` but received {preview_id!r}")
return await self._get(
f"/accounts/{account_id}/load_balancers/preview/{preview_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
index b6d2993b6fc..a48cd2b441c 100644
--- a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
+++ b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
@@ -48,7 +48,7 @@ def with_streaming_response(self) -> ConfigsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -68,6 +68,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -83,7 +85,7 @@ def create(
def update(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -104,6 +106,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -119,7 +123,7 @@ def update(
def delete(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -139,6 +143,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._delete(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -154,7 +160,7 @@ def delete(
def edit(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -174,6 +180,8 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -189,7 +197,7 @@ def edit(
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -209,6 +217,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -238,7 +248,7 @@ def with_streaming_response(self) -> AsyncConfigsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -258,6 +268,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -273,7 +285,7 @@ async def create(
async def update(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -294,6 +306,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -309,7 +323,7 @@ async def update(
async def delete(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -329,6 +343,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._delete(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -344,7 +360,7 @@ async def delete(
async def edit(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -364,6 +380,8 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
@@ -379,7 +397,7 @@ async def edit(
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -399,6 +417,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/mnm/config",
options=make_request_options(
diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/full.py b/src/cloudflare/resources/magic_network_monitoring/configs/full.py
index b5671ded605..987c7648410 100644
--- a/src/cloudflare/resources/magic_network_monitoring/configs/full.py
+++ b/src/cloudflare/resources/magic_network_monitoring/configs/full.py
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> FullWithStreamingResponse:
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -56,6 +56,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/mnm/config/full",
options=make_request_options(
@@ -81,7 +83,7 @@ def with_streaming_response(self) -> AsyncFullWithStreamingResponse:
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -101,6 +103,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/mnm/config/full",
options=make_request_options(
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
index c29fb40f590..885f5729edc 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
@@ -35,9 +35,9 @@ def with_streaming_response(self) -> AdvertisementsWithStreamingResponse:
def edit(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -57,6 +57,10 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}/advertisement",
options=make_request_options(
@@ -83,9 +87,9 @@ def with_streaming_response(self) -> AsyncAdvertisementsWithStreamingResponse:
async def edit(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -105,6 +109,10 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}/advertisement",
options=make_request_options(
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
index dc02ad53d9f..9b868e59894 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
@@ -48,7 +48,7 @@ def with_streaming_response(self) -> RulesWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -70,6 +70,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -85,7 +87,7 @@ def create(
def update(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -105,6 +107,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -120,7 +124,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -140,6 +144,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -154,9 +160,9 @@ def list(
def delete(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -176,6 +182,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
@@ -190,9 +200,9 @@ def delete(
def edit(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -212,6 +222,10 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
@@ -226,9 +240,9 @@ def edit(
def get(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -248,6 +262,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._get(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
@@ -277,7 +295,7 @@ def with_streaming_response(self) -> AsyncRulesWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -299,6 +317,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -314,7 +334,7 @@ async def create(
async def update(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -334,6 +354,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -349,7 +371,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -369,6 +391,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/mnm/rules",
options=make_request_options(
@@ -383,9 +407,9 @@ async def list(
async def delete(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -405,6 +429,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
@@ -419,9 +447,9 @@ async def delete(
async def edit(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -441,6 +469,10 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._patch(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
@@ -455,9 +487,9 @@ async def edit(
async def get(
self,
- rule_id: object,
+ rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -477,6 +509,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not rule_id:
+ raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._get(
f"/accounts/{account_id}/mnm/rules/{rule_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py
index 9ded4bbae73..e77f5a4ea81 100644
--- a/src/cloudflare/resources/secondary_dns/acls.py
+++ b/src/cloudflare/resources/secondary_dns/acls.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> ACLsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,6 +67,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/secondary_dns/acls",
body=maybe_transform(body, acl_create_params.ACLCreateParams),
@@ -82,9 +84,9 @@ def create(
def update(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
ip_range: str,
name: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -114,6 +116,10 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return self._put(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
body=maybe_transform(
@@ -136,7 +142,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -156,6 +162,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/acls",
options=make_request_options(
@@ -170,9 +178,9 @@ def list(
def delete(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +200,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
options=make_request_options(
@@ -206,9 +218,9 @@ def delete(
def get(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -228,6 +240,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
options=make_request_options(
@@ -253,7 +269,7 @@ def with_streaming_response(self) -> AsyncACLsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -274,6 +290,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/secondary_dns/acls",
body=await async_maybe_transform(body, acl_create_params.ACLCreateParams),
@@ -289,9 +307,9 @@ async def create(
async def update(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
ip_range: str,
name: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -321,6 +339,10 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return await self._put(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
body=await async_maybe_transform(
@@ -343,7 +365,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -363,6 +385,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/acls",
options=make_request_options(
@@ -377,9 +401,9 @@ async def list(
async def delete(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -399,6 +423,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
options=make_request_options(
@@ -413,9 +441,9 @@ async def delete(
async def get(
self,
- acl_id: object,
+ acl_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -435,6 +463,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not acl_id:
+ raise ValueError(f"Expected a non-empty value for `acl_id` but received {acl_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/acls/{acl_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/force_axfr.py b/src/cloudflare/resources/secondary_dns/force_axfr.py
index 7d0af5ed733..82bfd9d194c 100644
--- a/src/cloudflare/resources/secondary_dns/force_axfr.py
+++ b/src/cloudflare/resources/secondary_dns/force_axfr.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> ForceAXFRWithStreamingResponse:
def create(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -55,6 +55,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/force_axfr",
options=make_request_options(
@@ -80,7 +82,7 @@ def with_streaming_response(self) -> AsyncForceAXFRWithStreamingResponse:
async def create(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -100,6 +102,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/force_axfr",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/incoming.py b/src/cloudflare/resources/secondary_dns/incoming.py
index c993be7f397..e3a18e2adaf 100644
--- a/src/cloudflare/resources/secondary_dns/incoming.py
+++ b/src/cloudflare/resources/secondary_dns/incoming.py
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> IncomingWithStreamingResponse:
def create(
self,
*,
- zone_id: object,
+ zone_id: str,
auto_refresh_seconds: float,
name: str,
peers: Iterable[object],
@@ -77,6 +77,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/incoming",
body=maybe_transform(
@@ -100,7 +102,7 @@ def create(
def update(
self,
*,
- zone_id: object,
+ zone_id: str,
auto_refresh_seconds: float,
name: str,
peers: Iterable[object],
@@ -130,6 +132,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._put(
f"/zones/{zone_id}/secondary_dns/incoming",
body=maybe_transform(
@@ -153,7 +157,7 @@ def update(
def delete(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -173,6 +177,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/secondary_dns/incoming",
options=make_request_options(
@@ -188,7 +194,7 @@ def delete(
def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -208,6 +214,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get(
f"/zones/{zone_id}/secondary_dns/incoming",
options=make_request_options(
@@ -233,7 +241,7 @@ def with_streaming_response(self) -> AsyncIncomingWithStreamingResponse:
async def create(
self,
*,
- zone_id: object,
+ zone_id: str,
auto_refresh_seconds: float,
name: str,
peers: Iterable[object],
@@ -263,6 +271,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/incoming",
body=await async_maybe_transform(
@@ -286,7 +296,7 @@ async def create(
async def update(
self,
*,
- zone_id: object,
+ zone_id: str,
auto_refresh_seconds: float,
name: str,
peers: Iterable[object],
@@ -316,6 +326,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._put(
f"/zones/{zone_id}/secondary_dns/incoming",
body=await async_maybe_transform(
@@ -339,7 +351,7 @@ async def update(
async def delete(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -359,6 +371,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/secondary_dns/incoming",
options=make_request_options(
@@ -374,7 +388,7 @@ async def delete(
async def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -394,6 +408,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._get(
f"/zones/{zone_id}/secondary_dns/incoming",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
index d271e8103c1..d0915289719 100644
--- a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
+++ b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
@@ -59,7 +59,7 @@ def with_streaming_response(self) -> OutgoingWithStreamingResponse:
def create(
self,
*,
- zone_id: object,
+ zone_id: str,
name: str,
peers: Iterable[object],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -85,6 +85,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing",
body=maybe_transform(
@@ -107,7 +109,7 @@ def create(
def update(
self,
*,
- zone_id: object,
+ zone_id: str,
name: str,
peers: Iterable[object],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -133,6 +135,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._put(
f"/zones/{zone_id}/secondary_dns/outgoing",
body=maybe_transform(
@@ -155,7 +159,7 @@ def update(
def delete(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -175,6 +179,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/secondary_dns/outgoing",
options=make_request_options(
@@ -190,7 +196,7 @@ def delete(
def disable(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -211,6 +217,8 @@ def disable(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/disable",
options=make_request_options(
@@ -226,7 +234,7 @@ def disable(
def enable(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -246,6 +254,8 @@ def enable(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/enable",
options=make_request_options(
@@ -261,7 +271,7 @@ def enable(
def force_notify(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -281,6 +291,8 @@ def force_notify(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/force_notify",
options=make_request_options(
@@ -296,7 +308,7 @@ def force_notify(
def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -316,6 +328,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get(
f"/zones/{zone_id}/secondary_dns/outgoing",
options=make_request_options(
@@ -345,7 +359,7 @@ def with_streaming_response(self) -> AsyncOutgoingWithStreamingResponse:
async def create(
self,
*,
- zone_id: object,
+ zone_id: str,
name: str,
peers: Iterable[object],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -371,6 +385,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing",
body=await async_maybe_transform(
@@ -393,7 +409,7 @@ async def create(
async def update(
self,
*,
- zone_id: object,
+ zone_id: str,
name: str,
peers: Iterable[object],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -419,6 +435,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._put(
f"/zones/{zone_id}/secondary_dns/outgoing",
body=await async_maybe_transform(
@@ -441,7 +459,7 @@ async def update(
async def delete(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -461,6 +479,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/secondary_dns/outgoing",
options=make_request_options(
@@ -476,7 +496,7 @@ async def delete(
async def disable(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -497,6 +517,8 @@ async def disable(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/disable",
options=make_request_options(
@@ -512,7 +534,7 @@ async def disable(
async def enable(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -532,6 +554,8 @@ async def enable(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/enable",
options=make_request_options(
@@ -547,7 +571,7 @@ async def enable(
async def force_notify(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -567,6 +591,8 @@ async def force_notify(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._post(
f"/zones/{zone_id}/secondary_dns/outgoing/force_notify",
options=make_request_options(
@@ -582,7 +608,7 @@ async def force_notify(
async def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -602,6 +628,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._get(
f"/zones/{zone_id}/secondary_dns/outgoing",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/outgoing/status.py b/src/cloudflare/resources/secondary_dns/outgoing/status.py
index 29ef67a8750..1781141bfa3 100644
--- a/src/cloudflare/resources/secondary_dns/outgoing/status.py
+++ b/src/cloudflare/resources/secondary_dns/outgoing/status.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> StatusWithStreamingResponse:
def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -55,6 +55,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get(
f"/zones/{zone_id}/secondary_dns/outgoing/status",
options=make_request_options(
@@ -80,7 +82,7 @@ def with_streaming_response(self) -> AsyncStatusWithStreamingResponse:
async def get(
self,
*,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -100,6 +102,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._get(
f"/zones/{zone_id}/secondary_dns/outgoing/status",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py
index 28ca8852ebb..450572f1a7e 100644
--- a/src/cloudflare/resources/secondary_dns/peers.py
+++ b/src/cloudflare/resources/secondary_dns/peers.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> PeersWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,6 +67,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/secondary_dns/peers",
body=maybe_transform(body, peer_create_params.PeerCreateParams),
@@ -82,9 +84,9 @@ def create(
def update(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
ip: str | NotGiven = NOT_GIVEN,
ixfr_enable: bool | NotGiven = NOT_GIVEN,
@@ -125,6 +127,10 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return self._put(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
body=maybe_transform(
@@ -150,7 +156,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -170,6 +176,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/peers",
options=make_request_options(
@@ -184,9 +192,9 @@ def list(
def delete(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -206,6 +214,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
options=make_request_options(
@@ -220,9 +232,9 @@ def delete(
def get(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -242,6 +254,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
options=make_request_options(
@@ -267,7 +283,7 @@ def with_streaming_response(self) -> AsyncPeersWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
body: object,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -288,6 +304,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/secondary_dns/peers",
body=await async_maybe_transform(body, peer_create_params.PeerCreateParams),
@@ -303,9 +321,9 @@ async def create(
async def update(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
ip: str | NotGiven = NOT_GIVEN,
ixfr_enable: bool | NotGiven = NOT_GIVEN,
@@ -346,6 +364,10 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return await self._put(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
body=await async_maybe_transform(
@@ -371,7 +393,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -391,6 +413,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/peers",
options=make_request_options(
@@ -405,9 +429,9 @@ async def list(
async def delete(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -427,6 +451,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
options=make_request_options(
@@ -441,9 +469,9 @@ async def delete(
async def get(
self,
- peer_id: object,
+ peer_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -463,6 +491,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not peer_id:
+ raise ValueError(f"Expected a non-empty value for `peer_id` but received {peer_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/peers/{peer_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py
index b49471286ce..20ba897b9a5 100644
--- a/src/cloudflare/resources/secondary_dns/tsigs.py
+++ b/src/cloudflare/resources/secondary_dns/tsigs.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> TSIGsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
algo: str,
name: str,
secret: str,
@@ -75,6 +75,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/secondary_dns/tsigs",
body=maybe_transform(
@@ -97,9 +99,9 @@ def create(
def update(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
algo: str,
name: str,
secret: str,
@@ -128,6 +130,10 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return self._put(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
body=maybe_transform(
@@ -151,7 +157,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -171,6 +177,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/tsigs",
options=make_request_options(
@@ -185,9 +193,9 @@ def list(
def delete(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -207,6 +215,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return self._delete(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
options=make_request_options(
@@ -221,9 +233,9 @@ def delete(
def get(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -243,6 +255,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return self._get(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
options=make_request_options(
@@ -268,7 +284,7 @@ def with_streaming_response(self) -> AsyncTSIGsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
algo: str,
name: str,
secret: str,
@@ -297,6 +313,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/secondary_dns/tsigs",
body=await async_maybe_transform(
@@ -319,9 +337,9 @@ async def create(
async def update(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
algo: str,
name: str,
secret: str,
@@ -350,6 +368,10 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return await self._put(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
body=await async_maybe_transform(
@@ -373,7 +395,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -393,6 +415,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/tsigs",
options=make_request_options(
@@ -407,9 +431,9 @@ async def list(
async def delete(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -429,6 +453,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return await self._delete(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
options=make_request_options(
@@ -443,9 +471,9 @@ async def delete(
async def get(
self,
- tsig_id: object,
+ tsig_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -465,6 +493,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not tsig_id:
+ raise ValueError(f"Expected a non-empty value for `tsig_id` but received {tsig_id!r}")
return await self._get(
f"/accounts/{account_id}/secondary_dns/tsigs/{tsig_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/stream/embed.py b/src/cloudflare/resources/stream/embed.py
index 0c3e4274d76..67d3590ca5b 100644
--- a/src/cloudflare/resources/stream/embed.py
+++ b/src/cloudflare/resources/stream/embed.py
@@ -40,7 +40,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> object:
+ ) -> str:
"""
Fetches an HTML code snippet to embed a video in a web page delivered through
Cloudflare. On success, returns an HTML fragment for use on web pages to display
@@ -68,7 +68,7 @@ def get(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=object,
+ cast_to=str,
)
@@ -92,7 +92,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> object:
+ ) -> str:
"""
Fetches an HTML code snippet to embed a video in a web page delivered through
Cloudflare. On success, returns an HTML fragment for use on web pages to display
@@ -120,7 +120,7 @@ async def get(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=object,
+ cast_to=str,
)
diff --git a/src/cloudflare/resources/user/load_balancers/preview.py b/src/cloudflare/resources/user/load_balancers/preview.py
index c82081eaa9d..859f9e7c8e5 100644
--- a/src/cloudflare/resources/user/load_balancers/preview.py
+++ b/src/cloudflare/resources/user/load_balancers/preview.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> PreviewWithStreamingResponse:
def get(
self,
- preview_id: object,
+ preview_id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -56,6 +56,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not preview_id:
+ raise ValueError(f"Expected a non-empty value for `preview_id` but received {preview_id!r}")
return self._get(
f"/user/load_balancers/preview/{preview_id}",
options=make_request_options(
@@ -80,7 +82,7 @@ def with_streaming_response(self) -> AsyncPreviewWithStreamingResponse:
async def get(
self,
- preview_id: object,
+ preview_id: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -101,6 +103,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not preview_id:
+ raise ValueError(f"Expected a non-empty value for `preview_id` but received {preview_id!r}")
return await self._get(
f"/user/load_balancers/preview/{preview_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/waiting_rooms/events/details.py b/src/cloudflare/resources/waiting_rooms/events/details.py
index 106b5f7a5cc..9cfcbd76f2e 100644
--- a/src/cloudflare/resources/waiting_rooms/events/details.py
+++ b/src/cloudflare/resources/waiting_rooms/events/details.py
@@ -35,10 +35,10 @@ def with_streaming_response(self) -> DetailsWithStreamingResponse:
def get(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -64,6 +64,10 @@ def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}/details",
options=make_request_options(
@@ -88,10 +92,10 @@ def with_streaming_response(self) -> AsyncDetailsWithStreamingResponse:
async def get(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -117,6 +121,10 @@ async def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}/details",
options=make_request_options(
diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py
index c3b3c516588..705e4ab4eb0 100644
--- a/src/cloudflare/resources/waiting_rooms/events/events.py
+++ b/src/cloudflare/resources/waiting_rooms/events/events.py
@@ -58,7 +58,7 @@ def with_streaming_response(self) -> EventsWithStreamingResponse:
def create(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
event_end_time: str,
@@ -148,6 +148,8 @@ def create(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._post(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events",
body=maybe_transform(
@@ -180,10 +182,10 @@ def create(
def update(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
event_end_time: str,
event_start_time: str,
name: str,
@@ -265,6 +267,10 @@ def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
body=maybe_transform(
@@ -297,7 +303,7 @@ def update(
def list(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -323,6 +329,8 @@ def list(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events",
options=make_request_options(
@@ -337,10 +345,10 @@ def list(
def delete(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -364,6 +372,10 @@ def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._delete(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
options=make_request_options(
@@ -378,10 +390,10 @@ def delete(
def edit(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
event_end_time: str,
event_start_time: str,
name: str,
@@ -463,6 +475,10 @@ def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._patch(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
body=maybe_transform(
@@ -495,10 +511,10 @@ def edit(
def get(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -522,6 +538,10 @@ def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
options=make_request_options(
@@ -550,7 +570,7 @@ def with_streaming_response(self) -> AsyncEventsWithStreamingResponse:
async def create(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
event_end_time: str,
@@ -640,6 +660,8 @@ async def create(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._post(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events",
body=await async_maybe_transform(
@@ -672,10 +694,10 @@ async def create(
async def update(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
event_end_time: str,
event_start_time: str,
name: str,
@@ -757,6 +779,10 @@ async def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
body=await async_maybe_transform(
@@ -789,7 +815,7 @@ async def update(
async def list(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -815,6 +841,8 @@ async def list(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events",
options=make_request_options(
@@ -829,10 +857,10 @@ async def list(
async def delete(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -856,6 +884,10 @@ async def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._delete(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
options=make_request_options(
@@ -870,10 +902,10 @@ async def delete(
async def edit(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
event_end_time: str,
event_start_time: str,
name: str,
@@ -955,6 +987,10 @@ async def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._patch(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
body=await async_maybe_transform(
@@ -987,10 +1023,10 @@ async def edit(
async def get(
self,
- event_id: object,
+ event_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1014,6 +1050,10 @@ async def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
+ if not event_id:
+ raise ValueError(f"Expected a non-empty value for `event_id` but received {event_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/events/{event_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py
index a00e6799e78..cce5332dfa7 100644
--- a/src/cloudflare/resources/waiting_rooms/rules.py
+++ b/src/cloudflare/resources/waiting_rooms/rules.py
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> RulesWithStreamingResponse:
def create(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
action: Literal["bypass_waiting_room"],
@@ -89,6 +89,8 @@ def create(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._post(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
body=maybe_transform(
@@ -112,7 +114,7 @@ def create(
def update(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
body: Iterable[rule_update_params.Body],
@@ -141,6 +143,8 @@ def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
body=maybe_transform(body, rule_update_params.RuleUpdateParams),
@@ -156,7 +160,7 @@ def update(
def list(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -182,6 +186,8 @@ def list(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
options=make_request_options(
@@ -199,7 +205,7 @@ def delete(
rule_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -225,6 +231,8 @@ def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
@@ -244,7 +252,7 @@ def edit(
rule_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
action: Literal["bypass_waiting_room"],
expression: str,
description: str | NotGiven = NOT_GIVEN,
@@ -285,6 +293,8 @@ def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._patch(
@@ -321,7 +331,7 @@ def with_streaming_response(self) -> AsyncRulesWithStreamingResponse:
async def create(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
action: Literal["bypass_waiting_room"],
@@ -361,6 +371,8 @@ async def create(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._post(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
body=await async_maybe_transform(
@@ -384,7 +396,7 @@ async def create(
async def update(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
body: Iterable[rule_update_params.Body],
@@ -413,6 +425,8 @@ async def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
body=await async_maybe_transform(body, rule_update_params.RuleUpdateParams),
@@ -428,7 +442,7 @@ async def update(
async def list(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -454,6 +468,8 @@ async def list(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/rules",
options=make_request_options(
@@ -471,7 +487,7 @@ async def delete(
rule_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -497,6 +513,8 @@ async def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
@@ -516,7 +534,7 @@ async def edit(
rule_id: str,
*,
zone_identifier: str,
- waiting_room_id: object,
+ waiting_room_id: str,
action: Literal["bypass_waiting_room"],
expression: str,
description: str | NotGiven = NOT_GIVEN,
@@ -557,6 +575,8 @@ async def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._patch(
diff --git a/src/cloudflare/resources/waiting_rooms/statuses.py b/src/cloudflare/resources/waiting_rooms/statuses.py
index 3ea26aebd1c..5c5348f0345 100644
--- a/src/cloudflare/resources/waiting_rooms/statuses.py
+++ b/src/cloudflare/resources/waiting_rooms/statuses.py
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> StatusesWithStreamingResponse:
def get(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -79,6 +79,8 @@ def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/status",
options=make_request_options(
@@ -103,7 +105,7 @@ def with_streaming_response(self) -> AsyncStatusesWithStreamingResponse:
async def get(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -147,6 +149,8 @@ async def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}/status",
options=make_request_options(
diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
index 7904dadbc6b..213c648f1a2 100644
--- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
+++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
@@ -463,7 +463,7 @@ def create(
def update(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
host: str,
@@ -782,6 +782,8 @@ def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
body=maybe_transform(
@@ -858,7 +860,7 @@ def list(
def delete(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -884,6 +886,8 @@ def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._delete(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
options=make_request_options(
@@ -898,7 +902,7 @@ def delete(
def edit(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
host: str,
@@ -1217,6 +1221,8 @@ def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._patch(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
body=maybe_transform(
@@ -1254,7 +1260,7 @@ def edit(
def get(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1280,6 +1286,8 @@ def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
options=make_request_options(
@@ -1679,7 +1687,7 @@ async def create(
async def update(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
host: str,
@@ -1998,6 +2006,8 @@ async def update(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._put(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
body=await async_maybe_transform(
@@ -2074,7 +2084,7 @@ async def list(
async def delete(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2100,6 +2110,8 @@ async def delete(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._delete(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
options=make_request_options(
@@ -2114,7 +2126,7 @@ async def delete(
async def edit(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
host: str,
@@ -2433,6 +2445,8 @@ async def edit(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._patch(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
body=await async_maybe_transform(
@@ -2470,7 +2484,7 @@ async def edit(
async def get(
self,
- waiting_room_id: object,
+ waiting_room_id: str,
*,
zone_identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2496,6 +2510,8 @@ async def get(
"""
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
+ if not waiting_room_id:
+ raise ValueError(f"Expected a non-empty value for `waiting_room_id` but received {waiting_room_id!r}")
return await self._get(
f"/zones/{zone_identifier}/waiting_rooms/{waiting_room_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/workers/account_settings.py b/src/cloudflare/resources/workers/account_settings.py
index 2ec5f047c0e..562a83c49c4 100644
--- a/src/cloudflare/resources/workers/account_settings.py
+++ b/src/cloudflare/resources/workers/account_settings.py
@@ -41,7 +41,7 @@ def update(
self,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -131,7 +131,7 @@ async def update(
self,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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/workers/domains.py b/src/cloudflare/resources/workers/domains.py
index 8cb97109327..53c62b76aa7 100644
--- a/src/cloudflare/resources/workers/domains.py
+++ b/src/cloudflare/resources/workers/domains.py
@@ -40,11 +40,11 @@ def with_streaming_response(self) -> DomainsWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
environment: str,
hostname: str,
service: str,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -72,6 +72,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/workers/domains",
body=maybe_transform(
@@ -96,11 +98,11 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
environment: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
service: str | NotGiven = NOT_GIVEN,
- zone_id: object | NotGiven = NOT_GIVEN,
+ zone_id: str | NotGiven = NOT_GIVEN,
zone_name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -131,6 +133,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/workers/domains",
options=make_request_options(
@@ -155,9 +159,9 @@ def list(
def delete(
self,
- domain_id: object,
+ domain_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -179,6 +183,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not domain_id:
+ raise ValueError(f"Expected a non-empty value for `domain_id` but received {domain_id!r}")
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return self._delete(
f"/accounts/{account_id}/workers/domains/{domain_id}",
@@ -190,9 +198,9 @@ def delete(
def get(
self,
- domain_id: object,
+ domain_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -214,6 +222,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not domain_id:
+ raise ValueError(f"Expected a non-empty value for `domain_id` but received {domain_id!r}")
return self._get(
f"/accounts/{account_id}/workers/domains/{domain_id}",
options=make_request_options(
@@ -239,11 +251,11 @@ def with_streaming_response(self) -> AsyncDomainsWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
environment: str,
hostname: str,
service: str,
- zone_id: object,
+ zone_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -271,6 +283,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/workers/domains",
body=await async_maybe_transform(
@@ -295,11 +309,11 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
environment: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
service: str | NotGiven = NOT_GIVEN,
- zone_id: object | NotGiven = NOT_GIVEN,
+ zone_id: str | NotGiven = NOT_GIVEN,
zone_name: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -330,6 +344,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/workers/domains",
options=make_request_options(
@@ -354,9 +370,9 @@ async def list(
async def delete(
self,
- domain_id: object,
+ domain_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -378,6 +394,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not domain_id:
+ raise ValueError(f"Expected a non-empty value for `domain_id` but received {domain_id!r}")
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
return await self._delete(
f"/accounts/{account_id}/workers/domains/{domain_id}",
@@ -389,9 +409,9 @@ async def delete(
async def get(
self,
- domain_id: object,
+ domain_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -413,6 +433,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not domain_id:
+ raise ValueError(f"Expected a non-empty value for `domain_id` but received {domain_id!r}")
return await self._get(
f"/accounts/{account_id}/workers/domains/{domain_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/workers/scripts/schedules.py b/src/cloudflare/resources/workers/scripts/schedules.py
index 52a1a2fab29..08b74387001 100644
--- a/src/cloudflare/resources/workers/scripts/schedules.py
+++ b/src/cloudflare/resources/workers/scripts/schedules.py
@@ -42,7 +42,7 @@ def update(
script_name: str,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -142,7 +142,7 @@ async def update(
script_name: str,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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/workers/scripts/usage_model.py b/src/cloudflare/resources/workers/scripts/usage_model.py
index 6d6ea22ef43..b008bdb3cca 100644
--- a/src/cloudflare/resources/workers/scripts/usage_model.py
+++ b/src/cloudflare/resources/workers/scripts/usage_model.py
@@ -42,7 +42,7 @@ def update(
script_name: str,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -144,7 +144,7 @@ async def update(
script_name: str,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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/workers/subdomains.py b/src/cloudflare/resources/workers/subdomains.py
index 9a237f1e604..53e6c2ff836 100644
--- a/src/cloudflare/resources/workers/subdomains.py
+++ b/src/cloudflare/resources/workers/subdomains.py
@@ -41,7 +41,7 @@ def update(
self,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -131,7 +131,7 @@ async def update(
self,
*,
account_id: str,
- body: object,
+ body: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py
index 93dfa829dca..c0cbaa87422 100644
--- a/src/cloudflare/resources/zero_trust/access/applications/applications.py
+++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py
@@ -620,7 +620,7 @@ def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
@@ -664,7 +664,7 @@ def create(
def create(
self,
*,
- domain: str | object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
type: str
| Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
| NotGiven = NOT_GIVEN,
@@ -1320,7 +1320,7 @@ def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
@@ -1367,7 +1367,7 @@ def update(
self,
app_id: Union[str, str],
*,
- domain: str | object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
type: str
| Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
| NotGiven = NOT_GIVEN,
@@ -2257,7 +2257,7 @@ async def create(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
@@ -2301,7 +2301,7 @@ async def create(
async def create(
self,
*,
- domain: str | object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
type: str
| Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
| NotGiven = NOT_GIVEN,
@@ -2957,7 +2957,7 @@ async def update(
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
app_launcher_visible: object | NotGiven = NOT_GIVEN,
- domain: object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
logo_url: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tags: List[str] | NotGiven = NOT_GIVEN,
@@ -3004,7 +3004,7 @@ async def update(
self,
app_id: Union[str, str],
*,
- domain: str | object | NotGiven = NOT_GIVEN,
+ domain: str | NotGiven = NOT_GIVEN,
type: str
| Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
| NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/zero_trust/access/bookmarks.py b/src/cloudflare/resources/zero_trust/access/bookmarks.py
index 7cae5681d77..fbb03946096 100644
--- a/src/cloudflare/resources/zero_trust/access/bookmarks.py
+++ b/src/cloudflare/resources/zero_trust/access/bookmarks.py
@@ -37,7 +37,7 @@ def create(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -59,6 +59,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._post(
@@ -77,7 +79,7 @@ def update(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -99,6 +101,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._put(
@@ -115,7 +119,7 @@ def update(
def list(
self,
- identifier: object,
+ identifier: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -136,6 +140,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return self._get(
f"/accounts/{identifier}/access/bookmarks",
options=make_request_options(
@@ -152,7 +158,7 @@ def delete(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -174,6 +180,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._delete(
@@ -192,7 +200,7 @@ def get(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -214,6 +222,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return self._get(
@@ -242,7 +252,7 @@ async def create(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -264,6 +274,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._post(
@@ -282,7 +294,7 @@ async def update(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -304,6 +316,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._put(
@@ -320,7 +334,7 @@ async def update(
async def list(
self,
- identifier: object,
+ identifier: str,
*,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -341,6 +355,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return await self._get(
f"/accounts/{identifier}/access/bookmarks",
options=make_request_options(
@@ -357,7 +373,7 @@ async def delete(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -379,6 +395,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._delete(
@@ -397,7 +415,7 @@ async def get(
self,
uuid: str,
*,
- identifier: object,
+ identifier: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -419,6 +437,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not identifier:
+ raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not uuid:
raise ValueError(f"Expected a non-empty value for `uuid` but received {uuid!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/devices.py b/src/cloudflare/resources/zero_trust/devices/devices.py
index 5f82f03c173..08e70ae1bf7 100644
--- a/src/cloudflare/resources/zero_trust/devices/devices.py
+++ b/src/cloudflare/resources/zero_trust/devices/devices.py
@@ -134,7 +134,7 @@ def with_streaming_response(self) -> DevicesWithStreamingResponse:
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -154,6 +154,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices",
options=make_request_options(
@@ -170,7 +172,7 @@ def get(
self,
device_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -192,6 +194,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return cast(
@@ -256,7 +260,7 @@ def with_streaming_response(self) -> AsyncDevicesWithStreamingResponse:
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -276,6 +280,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices",
options=make_request_options(
@@ -292,7 +298,7 @@ async def get(
self,
device_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -314,6 +320,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return cast(
diff --git a/src/cloudflare/resources/zero_trust/devices/dex_tests.py b/src/cloudflare/resources/zero_trust/devices/dex_tests.py
index 54dd507635b..40d4c19999b 100644
--- a/src/cloudflare/resources/zero_trust/devices/dex_tests.py
+++ b/src/cloudflare/resources/zero_trust/devices/dex_tests.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> DEXTestsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
data: dex_test_create_params.Data,
enabled: bool,
interval: str,
@@ -82,6 +82,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/devices/dex_tests",
body=maybe_transform(
@@ -111,7 +113,7 @@ def update(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
data: dex_test_update_params.Data,
enabled: bool,
interval: str,
@@ -149,6 +151,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return self._put(
@@ -179,7 +183,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -199,6 +203,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/dex_tests",
options=make_request_options(
@@ -215,7 +221,7 @@ def delete(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -239,6 +245,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return self._delete(
@@ -257,7 +265,7 @@ def get(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -279,6 +287,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return self._get(
@@ -309,7 +319,7 @@ def with_streaming_response(self) -> AsyncDEXTestsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
data: dex_test_create_params.Data,
enabled: bool,
interval: str,
@@ -345,6 +355,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/devices/dex_tests",
body=await async_maybe_transform(
@@ -374,7 +386,7 @@ async def update(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
data: dex_test_update_params.Data,
enabled: bool,
interval: str,
@@ -412,6 +424,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return await self._put(
@@ -442,7 +456,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -462,6 +476,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/dex_tests",
options=make_request_options(
@@ -478,7 +494,7 @@ async def delete(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -502,6 +518,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return await self._delete(
@@ -520,7 +538,7 @@ async def get(
self,
dex_test_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -542,6 +560,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not dex_test_id:
raise ValueError(f"Expected a non-empty value for `dex_test_id` but received {dex_test_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/networks.py b/src/cloudflare/resources/zero_trust/devices/networks.py
index 8f0dd5a0b64..a8f2a12f426 100644
--- a/src/cloudflare/resources/zero_trust/devices/networks.py
+++ b/src/cloudflare/resources/zero_trust/devices/networks.py
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> NetworksWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
config: network_create_params.Config,
name: str,
type: Literal["tls"],
@@ -77,6 +77,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/devices/networks",
body=maybe_transform(
@@ -103,7 +105,7 @@ def update(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
config: network_update_params.Config | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
type: Literal["tls"] | NotGiven = NOT_GIVEN,
@@ -135,6 +137,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return self._put(
@@ -162,7 +166,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -182,6 +186,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/networks",
options=make_request_options(
@@ -198,7 +204,7 @@ def delete(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -221,6 +227,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return self._delete(
@@ -239,7 +247,7 @@ def get(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -261,6 +269,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return self._get(
@@ -290,7 +300,7 @@ def with_streaming_response(self) -> AsyncNetworksWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
config: network_create_params.Config,
name: str,
type: Literal["tls"],
@@ -320,6 +330,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/devices/networks",
body=await async_maybe_transform(
@@ -346,7 +358,7 @@ async def update(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
config: network_update_params.Config | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
type: Literal["tls"] | NotGiven = NOT_GIVEN,
@@ -378,6 +390,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return await self._put(
@@ -405,7 +419,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -425,6 +439,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/networks",
options=make_request_options(
@@ -441,7 +457,7 @@ async def delete(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -464,6 +480,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return await self._delete(
@@ -482,7 +500,7 @@ async def get(
self,
network_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -504,6 +522,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not network_id:
raise ValueError(f"Expected a non-empty value for `network_id` but received {network_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/override_codes.py b/src/cloudflare/resources/zero_trust/devices/override_codes.py
index f0a62f23c6d..af2ce33f15c 100644
--- a/src/cloudflare/resources/zero_trust/devices/override_codes.py
+++ b/src/cloudflare/resources/zero_trust/devices/override_codes.py
@@ -37,7 +37,7 @@ def list(
self,
device_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -61,6 +61,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return self._get(
@@ -89,7 +91,7 @@ async def list(
self,
device_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -113,6 +115,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py
index 89b04819250..e2c2488da63 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> DefaultPolicyWithStreamingResponse:
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -56,6 +56,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/policy",
options=make_request_options(
@@ -81,7 +83,7 @@ def with_streaming_response(self) -> AsyncDefaultPolicyWithStreamingResponse:
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -101,6 +103,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/policy",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py
index aefca0c59ee..7b66b83e1d3 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> ExcludesWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesSplitTunnelParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,6 +67,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/devices/policy/exclude",
body=maybe_transform(body, exclude_update_params.ExcludeUpdateParams),
@@ -83,7 +85,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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,6 +105,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/policy/exclude",
options=make_request_options(
@@ -119,7 +123,7 @@ def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -142,6 +146,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._get(
@@ -169,7 +175,7 @@ def with_streaming_response(self) -> AsyncExcludesWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesSplitTunnelParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -190,6 +196,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/devices/policy/exclude",
body=await async_maybe_transform(body, exclude_update_params.ExcludeUpdateParams),
@@ -206,7 +214,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -226,6 +234,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/policy/exclude",
options=make_request_options(
@@ -242,7 +252,7 @@ async def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -265,6 +275,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py
index 763f6de69f5..b00314179e2 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py
@@ -47,7 +47,7 @@ def update(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesFallbackDomainParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -73,6 +73,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._put(
@@ -91,7 +93,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -113,6 +115,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/policy/fallback_domains",
options=make_request_options(
@@ -129,7 +133,7 @@ def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -153,6 +157,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._get(
@@ -181,7 +187,7 @@ async def update(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesFallbackDomainParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -207,6 +213,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._put(
@@ -225,7 +233,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -247,6 +255,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/policy/fallback_domains",
options=make_request_options(
@@ -263,7 +273,7 @@ async def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -287,6 +297,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/includes.py b/src/cloudflare/resources/zero_trust/devices/policies/includes.py
index 1a9834c5451..e9d565e140b 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/includes.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/includes.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> IncludesWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesSplitTunnelIncludeParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,6 +67,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/devices/policy/include",
body=maybe_transform(body, include_update_params.IncludeUpdateParams),
@@ -83,7 +85,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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,6 +105,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/policy/include",
options=make_request_options(
@@ -119,7 +123,7 @@ def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -142,6 +146,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._get(
@@ -169,7 +175,7 @@ def with_streaming_response(self) -> AsyncIncludesWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
body: Iterable[TeamsDevicesSplitTunnelIncludeParam],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -190,6 +196,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/devices/policy/include",
body=await async_maybe_transform(body, include_update_params.IncludeUpdateParams),
@@ -206,7 +214,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -226,6 +234,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/policy/include",
options=make_request_options(
@@ -242,7 +252,7 @@ async def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -265,6 +275,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/policies/policies.py b/src/cloudflare/resources/zero_trust/devices/policies/policies.py
index e377b00dc66..e1b1e2574a4 100644
--- a/src/cloudflare/resources/zero_trust/devices/policies/policies.py
+++ b/src/cloudflare/resources/zero_trust/devices/policies/policies.py
@@ -94,7 +94,7 @@ def with_streaming_response(self) -> PoliciesWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
match: str,
name: str,
precedence: float,
@@ -172,6 +172,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/devices/policy",
body=maybe_transform(
@@ -211,7 +213,7 @@ def create(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -231,6 +233,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/policies",
options=make_request_options(
@@ -247,7 +251,7 @@ def delete(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -270,6 +274,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._delete(
@@ -288,7 +294,7 @@ def edit(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
allow_mode_switch: bool | NotGiven = NOT_GIVEN,
allow_updates: bool | NotGiven = NOT_GIVEN,
allowed_to_leave: bool | NotGiven = NOT_GIVEN,
@@ -357,6 +363,8 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._patch(
@@ -397,7 +405,7 @@ def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -419,6 +427,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return self._get(
@@ -464,7 +474,7 @@ def with_streaming_response(self) -> AsyncPoliciesWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
match: str,
name: str,
precedence: float,
@@ -542,6 +552,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/devices/policy",
body=await async_maybe_transform(
@@ -581,7 +593,7 @@ async def create(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -601,6 +613,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/policies",
options=make_request_options(
@@ -617,7 +631,7 @@ async def delete(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -640,6 +654,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._delete(
@@ -658,7 +674,7 @@ async def edit(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
allow_mode_switch: bool | NotGiven = NOT_GIVEN,
allow_updates: bool | NotGiven = NOT_GIVEN,
allowed_to_leave: bool | NotGiven = NOT_GIVEN,
@@ -727,6 +743,8 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._patch(
@@ -767,7 +785,7 @@ async def get(
self,
policy_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -789,6 +807,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
index 906b6552a45..14694ffaf70 100644
--- a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
+++ b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> IntegrationsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
config: integration_create_params.Config,
interval: str,
name: str,
@@ -80,6 +80,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/devices/posture/integration",
body=maybe_transform(
@@ -107,7 +109,7 @@ def create(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -127,6 +129,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/posture/integration",
options=make_request_options(
@@ -143,7 +147,7 @@ def delete(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -165,6 +169,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return cast(
@@ -188,7 +194,7 @@ def edit(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
config: integration_edit_params.Config | NotGiven = NOT_GIVEN,
interval: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
@@ -224,6 +230,8 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return self._patch(
@@ -254,7 +262,7 @@ def get(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -276,6 +284,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return self._get(
@@ -306,7 +316,7 @@ def with_streaming_response(self) -> AsyncIntegrationsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
config: integration_create_params.Config,
interval: str,
name: str,
@@ -339,6 +349,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/devices/posture/integration",
body=await async_maybe_transform(
@@ -366,7 +378,7 @@ async def create(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -386,6 +398,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/posture/integration",
options=make_request_options(
@@ -402,7 +416,7 @@ async def delete(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -424,6 +438,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return cast(
@@ -447,7 +463,7 @@ async def edit(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
config: integration_edit_params.Config | NotGiven = NOT_GIVEN,
interval: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
@@ -483,6 +499,8 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return await self._patch(
@@ -513,7 +531,7 @@ async def get(
self,
integration_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via 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,6 +553,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/posture/posture.py b/src/cloudflare/resources/zero_trust/devices/posture/posture.py
index 80816bf476b..bc330745789 100644
--- a/src/cloudflare/resources/zero_trust/devices/posture/posture.py
+++ b/src/cloudflare/resources/zero_trust/devices/posture/posture.py
@@ -59,7 +59,7 @@ def with_streaming_response(self) -> PostureWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal[
"file",
@@ -122,6 +122,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/devices/posture",
body=maybe_transform(
@@ -150,7 +152,7 @@ def update(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal[
"file",
@@ -215,6 +217,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._put(
@@ -244,7 +248,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -264,6 +268,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/posture",
options=make_request_options(
@@ -280,7 +286,7 @@ def delete(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -302,6 +308,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._delete(
@@ -320,7 +328,7 @@ def get(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -342,6 +350,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._get(
@@ -373,7 +383,7 @@ def with_streaming_response(self) -> AsyncPostureWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal[
"file",
@@ -436,6 +446,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/devices/posture",
body=await async_maybe_transform(
@@ -464,7 +476,7 @@ async def update(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal[
"file",
@@ -529,6 +541,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._put(
@@ -558,7 +572,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -578,6 +592,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/posture",
options=make_request_options(
@@ -594,7 +610,7 @@ async def delete(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -616,6 +632,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._delete(
@@ -634,7 +652,7 @@ async def get(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -656,6 +674,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/devices/revoke.py b/src/cloudflare/resources/zero_trust/devices/revoke.py
index 7ae23b07302..2cad8a4c6d1 100644
--- a/src/cloudflare/resources/zero_trust/devices/revoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/revoke.py
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> RevokeWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
body: List[str],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -63,6 +63,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
Optional[RevokeCreateResponse],
self._post(
@@ -94,7 +96,7 @@ def with_streaming_response(self) -> AsyncRevokeWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
body: List[str],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -117,6 +119,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
Optional[RevokeCreateResponse],
await self._post(
diff --git a/src/cloudflare/resources/zero_trust/devices/settings.py b/src/cloudflare/resources/zero_trust/devices/settings.py
index f47a379c915..1651f7a55dd 100644
--- a/src/cloudflare/resources/zero_trust/devices/settings.py
+++ b/src/cloudflare/resources/zero_trust/devices/settings.py
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> SettingsWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
gateway_proxy_enabled: bool | NotGiven = NOT_GIVEN,
gateway_udp_proxy_enabled: bool | NotGiven = NOT_GIVEN,
root_certificate_installation_enabled: bool | NotGiven = NOT_GIVEN,
@@ -72,6 +72,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/devices/settings",
body=maybe_transform(
@@ -99,7 +101,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -119,6 +121,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/devices/settings",
options=make_request_options(
@@ -147,7 +151,7 @@ def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
gateway_proxy_enabled: bool | NotGiven = NOT_GIVEN,
gateway_udp_proxy_enabled: bool | NotGiven = NOT_GIVEN,
root_certificate_installation_enabled: bool | NotGiven = NOT_GIVEN,
@@ -179,6 +183,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/devices/settings",
body=await async_maybe_transform(
@@ -206,7 +212,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -226,6 +232,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/devices/settings",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/devices/unrevoke.py b/src/cloudflare/resources/zero_trust/devices/unrevoke.py
index 9cd285453a3..af66f3e37f9 100644
--- a/src/cloudflare/resources/zero_trust/devices/unrevoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/unrevoke.py
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> UnrevokeWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
body: List[str],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -63,6 +63,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
Optional[UnrevokeCreateResponse],
self._post(
@@ -94,7 +96,7 @@ def with_streaming_response(self) -> AsyncUnrevokeWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
body: List[str],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -117,6 +119,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
Optional[UnrevokeCreateResponse],
await self._post(
diff --git a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py
index cbacdb3de4e..281c53afc38 100644
--- a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py
+++ b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> AuditSSHSettingsWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
public_key: str,
seed_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -66,6 +66,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/gateway/audit_ssh_settings",
body=maybe_transform(
@@ -88,7 +90,7 @@ def update(
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -108,6 +110,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/audit_ssh_settings",
options=make_request_options(
@@ -133,7 +137,7 @@ def with_streaming_response(self) -> AsyncAuditSSHSettingsWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
public_key: str,
seed_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -159,6 +163,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/gateway/audit_ssh_settings",
body=await async_maybe_transform(
@@ -181,7 +187,7 @@ async def update(
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -201,6 +207,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/audit_ssh_settings",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations.py b/src/cloudflare/resources/zero_trust/gateway/configurations.py
index afa28b44919..0479cfe4a78 100644
--- a/src/cloudflare/resources/zero_trust/gateway/configurations.py
+++ b/src/cloudflare/resources/zero_trust/gateway/configurations.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> ConfigurationsWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
settings: configuration_update_params.Settings | 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.
@@ -69,6 +69,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/gateway/configuration",
body=maybe_transform({"settings": settings}, configuration_update_params.ConfigurationUpdateParams),
@@ -85,7 +87,7 @@ def update(
def edit(
self,
*,
- account_id: object,
+ account_id: str,
settings: configuration_edit_params.Settings | 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.
@@ -113,6 +115,8 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._patch(
f"/accounts/{account_id}/gateway/configuration",
body=maybe_transform({"settings": settings}, configuration_edit_params.ConfigurationEditParams),
@@ -129,7 +133,7 @@ def edit(
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -149,6 +153,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/configuration",
options=make_request_options(
@@ -174,7 +180,7 @@ def with_streaming_response(self) -> AsyncConfigurationsWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
settings: configuration_update_params.Settings | 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.
@@ -197,6 +203,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/gateway/configuration",
body=await async_maybe_transform(
@@ -215,7 +223,7 @@ async def update(
async def edit(
self,
*,
- account_id: object,
+ account_id: str,
settings: configuration_edit_params.Settings | 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.
@@ -243,6 +251,8 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._patch(
f"/accounts/{account_id}/gateway/configuration",
body=await async_maybe_transform({"settings": settings}, configuration_edit_params.ConfigurationEditParams),
@@ -259,7 +269,7 @@ async def edit(
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -279,6 +289,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/configuration",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/gateway.py b/src/cloudflare/resources/zero_trust/gateway/gateway.py
index 92afee79bea..49eb8d2dbd2 100644
--- a/src/cloudflare/resources/zero_trust/gateway/gateway.py
+++ b/src/cloudflare/resources/zero_trust/gateway/gateway.py
@@ -145,7 +145,7 @@ def with_streaming_response(self) -> GatewayWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -165,6 +165,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/gateway",
options=make_request_options(
@@ -180,7 +182,7 @@ def create(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -200,6 +202,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway",
options=make_request_options(
@@ -261,7 +265,7 @@ def with_streaming_response(self) -> AsyncGatewayWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -281,6 +285,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/gateway",
options=make_request_options(
@@ -296,7 +302,7 @@ async def create(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -316,6 +322,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/items.py b/src/cloudflare/resources/zero_trust/gateway/lists/items.py
index 304db2188ba..a2b29256b0d 100644
--- a/src/cloudflare/resources/zero_trust/gateway/lists/items.py
+++ b/src/cloudflare/resources/zero_trust/gateway/lists/items.py
@@ -37,7 +37,7 @@ def list(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -59,6 +59,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return self._get(
@@ -87,7 +89,7 @@ async def list(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -109,6 +111,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
index 8e495cb5d07..a3eb02e0167 100644
--- a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
+++ b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
@@ -61,7 +61,7 @@ def with_streaming_response(self) -> ListsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"],
description: str | NotGiven = NOT_GIVEN,
@@ -93,6 +93,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/gateway/lists",
body=maybe_transform(
@@ -118,7 +120,7 @@ def update(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
description: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -146,6 +148,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return self._put(
@@ -170,7 +174,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -190,6 +194,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/lists",
options=make_request_options(
@@ -206,7 +212,7 @@ def delete(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -228,6 +234,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return cast(
@@ -251,7 +259,7 @@ def edit(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
remove: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -279,6 +287,8 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return self._patch(
@@ -304,7 +314,7 @@ def get(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -326,6 +336,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return self._get(
@@ -357,7 +369,7 @@ def with_streaming_response(self) -> AsyncListsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"],
description: str | NotGiven = NOT_GIVEN,
@@ -389,6 +401,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/gateway/lists",
body=await async_maybe_transform(
@@ -414,7 +428,7 @@ async def update(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
description: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -442,6 +456,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return await self._put(
@@ -466,7 +482,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -486,6 +502,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/lists",
options=make_request_options(
@@ -502,7 +520,7 @@ async def delete(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -524,6 +542,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return cast(
@@ -547,7 +567,7 @@ async def edit(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
remove: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -575,6 +595,8 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return await self._patch(
@@ -600,7 +622,7 @@ async def get(
self,
list_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -622,6 +644,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return await self._get(
diff --git a/src/cloudflare/resources/zero_trust/gateway/locations.py b/src/cloudflare/resources/zero_trust/gateway/locations.py
index 463ab184cb5..d39d1382e09 100644
--- a/src/cloudflare/resources/zero_trust/gateway/locations.py
+++ b/src/cloudflare/resources/zero_trust/gateway/locations.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> LocationsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
client_default: bool | NotGiven = NOT_GIVEN,
ecs_support: bool | NotGiven = NOT_GIVEN,
@@ -78,6 +78,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/gateway/locations",
body=maybe_transform(
@@ -101,9 +103,9 @@ def create(
def update(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
client_default: bool | NotGiven = NOT_GIVEN,
ecs_support: bool | NotGiven = NOT_GIVEN,
@@ -135,6 +137,10 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return self._put(
f"/accounts/{account_id}/gateway/locations/{location_id}",
body=maybe_transform(
@@ -159,7 +165,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -179,6 +185,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/locations",
options=make_request_options(
@@ -193,9 +201,9 @@ def list(
def delete(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -215,6 +223,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return cast(
LocationDeleteResponse,
self._delete(
@@ -234,9 +246,9 @@ def delete(
def get(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -256,6 +268,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/locations/{location_id}",
options=make_request_options(
@@ -281,7 +297,7 @@ def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
name: str,
client_default: bool | NotGiven = NOT_GIVEN,
ecs_support: bool | NotGiven = NOT_GIVEN,
@@ -313,6 +329,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/gateway/locations",
body=await async_maybe_transform(
@@ -336,9 +354,9 @@ async def create(
async def update(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
name: str,
client_default: bool | NotGiven = NOT_GIVEN,
ecs_support: bool | NotGiven = NOT_GIVEN,
@@ -370,6 +388,10 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return await self._put(
f"/accounts/{account_id}/gateway/locations/{location_id}",
body=await async_maybe_transform(
@@ -394,7 +416,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -414,6 +436,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/locations",
options=make_request_options(
@@ -428,9 +452,9 @@ async def list(
async def delete(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -450,6 +474,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return cast(
LocationDeleteResponse,
await self._delete(
@@ -469,9 +497,9 @@ async def delete(
async def get(
self,
- location_id: object,
+ location_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -491,6 +519,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not location_id:
+ raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/locations/{location_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/logging.py b/src/cloudflare/resources/zero_trust/gateway/logging.py
index eb42a1f4324..6dfba1dff9e 100644
--- a/src/cloudflare/resources/zero_trust/gateway/logging.py
+++ b/src/cloudflare/resources/zero_trust/gateway/logging.py
@@ -40,7 +40,7 @@ def with_streaming_response(self) -> LoggingWithStreamingResponse:
def update(
self,
*,
- account_id: object,
+ account_id: str,
redact_pii: bool | NotGiven = NOT_GIVEN,
settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -67,6 +67,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._put(
f"/accounts/{account_id}/gateway/logging",
body=maybe_transform(
@@ -92,7 +94,7 @@ def update(
def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -112,6 +114,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/logging",
options=make_request_options(
@@ -140,7 +144,7 @@ def with_streaming_response(self) -> AsyncLoggingWithStreamingResponse:
async def update(
self,
*,
- account_id: object,
+ account_id: str,
redact_pii: bool | NotGiven = NOT_GIVEN,
settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -167,6 +171,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._put(
f"/accounts/{account_id}/gateway/logging",
body=await async_maybe_transform(
@@ -192,7 +198,7 @@ async def update(
async def get(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -212,6 +218,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/logging",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
index 9ecf470c754..991533ef25e 100644
--- a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
+++ b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
@@ -46,7 +46,7 @@ def with_streaming_response(self) -> ProxyEndpointsWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
ips: List[str],
name: str,
subdomain: str | NotGiven = NOT_GIVEN,
@@ -75,6 +75,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/gateway/proxy_endpoints",
body=maybe_transform(
@@ -98,7 +100,7 @@ def create(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -118,6 +120,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/proxy_endpoints",
options=make_request_options(
@@ -132,9 +136,9 @@ def list(
def delete(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -154,6 +158,10 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return cast(
ProxyEndpointDeleteResponse,
self._delete(
@@ -173,9 +181,9 @@ def delete(
def edit(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
ips: List[str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
subdomain: str | NotGiven = NOT_GIVEN,
@@ -204,6 +212,10 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return self._patch(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
body=maybe_transform(
@@ -226,9 +238,9 @@ def edit(
def get(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -248,6 +260,10 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
options=make_request_options(
@@ -273,7 +289,7 @@ def with_streaming_response(self) -> AsyncProxyEndpointsWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
ips: List[str],
name: str,
subdomain: str | NotGiven = NOT_GIVEN,
@@ -302,6 +318,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/gateway/proxy_endpoints",
body=await async_maybe_transform(
@@ -325,7 +343,7 @@ async def create(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -345,6 +363,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/proxy_endpoints",
options=make_request_options(
@@ -359,9 +379,9 @@ async def list(
async def delete(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -381,6 +401,10 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return cast(
ProxyEndpointDeleteResponse,
await self._delete(
@@ -400,9 +424,9 @@ async def delete(
async def edit(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
ips: List[str] | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
subdomain: str | NotGiven = NOT_GIVEN,
@@ -431,6 +455,10 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return await self._patch(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
body=await async_maybe_transform(
@@ -453,9 +481,9 @@ async def edit(
async def get(
self,
- proxy_endpoint_id: object,
+ proxy_endpoint_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -475,6 +503,10 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not proxy_endpoint_id:
+ raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
options=make_request_options(
diff --git a/src/cloudflare/resources/zero_trust/gateway/rules.py b/src/cloudflare/resources/zero_trust/gateway/rules.py
index 127da4a7170..420cc8f9db5 100644
--- a/src/cloudflare/resources/zero_trust/gateway/rules.py
+++ b/src/cloudflare/resources/zero_trust/gateway/rules.py
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> RulesWithStreamingResponse:
def create(
self,
*,
- account_id: object,
+ account_id: str,
action: Literal[
"on",
"off",
@@ -120,6 +120,8 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/gateway/rules",
body=maybe_transform(
@@ -152,7 +154,7 @@ def update(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
action: Literal[
"on",
"off",
@@ -227,6 +229,8 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._put(
@@ -260,7 +264,7 @@ def update(
def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -280,6 +284,8 @@ def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get(
f"/accounts/{account_id}/gateway/rules",
options=make_request_options(
@@ -296,7 +302,7 @@ def delete(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -318,6 +324,8 @@ def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
@@ -341,7 +349,7 @@ def get(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -363,6 +371,8 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return self._get(
@@ -390,7 +400,7 @@ def with_streaming_response(self) -> AsyncRulesWithStreamingResponse:
async def create(
self,
*,
- account_id: object,
+ account_id: str,
action: Literal[
"on",
"off",
@@ -463,6 +473,8 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/gateway/rules",
body=await async_maybe_transform(
@@ -495,7 +507,7 @@ async def update(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
action: Literal[
"on",
"off",
@@ -570,6 +582,8 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._put(
@@ -603,7 +617,7 @@ async def update(
async def list(
self,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -623,6 +637,8 @@ async def list(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._get(
f"/accounts/{account_id}/gateway/rules",
options=make_request_options(
@@ -639,7 +655,7 @@ async def delete(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -661,6 +677,8 @@ async def delete(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
@@ -684,7 +702,7 @@ async def get(
self,
rule_id: str,
*,
- account_id: object,
+ account_id: str,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -706,6 +724,8 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return await self._get(
diff --git a/src/cloudflare/types/d1/d1_create_database.py b/src/cloudflare/types/d1/d1_create_database.py
index 0446aa7be3d..7d947edf15a 100644
--- a/src/cloudflare/types/d1/d1_create_database.py
+++ b/src/cloudflare/types/d1/d1_create_database.py
@@ -8,7 +8,7 @@
class D1CreateDatabase(BaseModel):
- created_at: Optional[object] = None
+ created_at: Optional[str] = None
"""Specifies the timestamp the resource was created as an ISO8601 string."""
name: Optional[str] = None
diff --git a/src/cloudflare/types/d1/d1_database_details.py b/src/cloudflare/types/d1/d1_database_details.py
index 5ee4ba2c33c..e467c17dd8a 100644
--- a/src/cloudflare/types/d1/d1_database_details.py
+++ b/src/cloudflare/types/d1/d1_database_details.py
@@ -8,7 +8,7 @@
class D1DatabaseDetails(BaseModel):
- created_at: Optional[object] = None
+ created_at: Optional[str] = None
"""Specifies the timestamp the resource was created as an ISO8601 string."""
file_size: Optional[float] = None
diff --git a/src/cloudflare/types/dns/dns_record.py b/src/cloudflare/types/dns/dns_record.py
index 8752f5cbcb3..d2717cee112 100644
--- a/src/cloudflare/types/dns/dns_record.py
+++ b/src/cloudflare/types/dns/dns_record.py
@@ -959,7 +959,7 @@ class NSMeta(BaseModel):
class NS(BaseModel):
- content: object
+ content: str
"""A valid name server host name."""
name: str
diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py
index ccb2d684b5c..d5e32477ca0 100644
--- a/src/cloudflare/types/dns/record_create_params.py
+++ b/src/cloudflare/types/dns/record_create_params.py
@@ -523,7 +523,7 @@ class DNSRecordsNSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- content: Required[object]
+ content: Required[str]
"""A valid name server host name."""
name: Required[str]
diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py
index be1da501da9..bcbb04b48df 100644
--- a/src/cloudflare/types/dns/record_edit_params.py
+++ b/src/cloudflare/types/dns/record_edit_params.py
@@ -523,7 +523,7 @@ class DNSRecordsNSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- content: Required[object]
+ content: Required[str]
"""A valid name server host name."""
name: Required[str]
diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py
index 7bbbd9d2854..e1130ce0ace 100644
--- a/src/cloudflare/types/dns/record_update_params.py
+++ b/src/cloudflare/types/dns/record_update_params.py
@@ -523,7 +523,7 @@ class DNSRecordsNSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- content: Required[object]
+ content: Required[str]
"""A valid name server host name."""
name: Required[str]
diff --git a/src/cloudflare/types/firewall/waf/legacy_jhs_override.py b/src/cloudflare/types/firewall/waf/legacy_jhs_override.py
index 4f2163d9f4c..6d5208e8f02 100644
--- a/src/cloudflare/types/firewall/waf/legacy_jhs_override.py
+++ b/src/cloudflare/types/firewall/waf/legacy_jhs_override.py
@@ -12,14 +12,14 @@ class RewriteAction(BaseModel):
block: Optional[Literal["challenge", "block", "simulate", "disable", "default"]] = None
"""The WAF rule action to apply."""
- challenge: Optional[object] = None
+ challenge: Optional[str] = None
- default: Optional[object] = None
+ default: Optional[str] = None
disable: Optional[Literal["challenge", "block", "simulate", "disable", "default"]] = None
"""The WAF rule action to apply."""
- simulate: Optional[object] = None
+ simulate: Optional[str] = None
class LegacyJhsOverride(BaseModel):
diff --git a/src/cloudflare/types/hostnames/settings/tls_certificates_and_hostnames_setting_object_delete.py b/src/cloudflare/types/hostnames/settings/tls_certificates_and_hostnames_setting_object_delete.py
index 7e6e945ab18..8008b9ef4b7 100644
--- a/src/cloudflare/types/hostnames/settings/tls_certificates_and_hostnames_setting_object_delete.py
+++ b/src/cloudflare/types/hostnames/settings/tls_certificates_and_hostnames_setting_object_delete.py
@@ -15,9 +15,9 @@ class TLSCertificatesAndHostnamesSettingObjectDelete(BaseModel):
hostname: Optional[str] = None
"""The hostname for which the tls settings are set."""
- status: Optional[object] = None
+ status: Optional[str] = None
updated_at: Optional[datetime] = None
"""This is the time the tls setting was updated."""
- value: Optional[object] = None
+ value: Optional[str] = None
diff --git a/src/cloudflare/types/images/v1/image_variant.py b/src/cloudflare/types/images/v1/image_variant.py
index 87061792f42..ae5430e6503 100644
--- a/src/cloudflare/types/images/v1/image_variant.py
+++ b/src/cloudflare/types/images/v1/image_variant.py
@@ -28,7 +28,7 @@ class VariantOptions(BaseModel):
class Variant(BaseModel):
- id: object
+ id: str
options: VariantOptions
"""Allows you to define image resizing sizes for different use cases."""
diff --git a/src/cloudflare/types/images/v1/image_variants.py b/src/cloudflare/types/images/v1/image_variants.py
index 2be335694d1..1dc6f1f8573 100644
--- a/src/cloudflare/types/images/v1/image_variants.py
+++ b/src/cloudflare/types/images/v1/image_variants.py
@@ -28,7 +28,7 @@ class VariantsHeroOptions(BaseModel):
class VariantsHero(BaseModel):
- id: object
+ id: str
options: VariantsHeroOptions
"""Allows you to define image resizing sizes for different use cases."""
diff --git a/src/cloudflare/types/images/v1/variant_create_params.py b/src/cloudflare/types/images/v1/variant_create_params.py
index fbf2cfd0359..6bb7fa9bff7 100644
--- a/src/cloudflare/types/images/v1/variant_create_params.py
+++ b/src/cloudflare/types/images/v1/variant_create_params.py
@@ -13,7 +13,7 @@ class VariantCreateParams(TypedDict, total=False):
account_id: Required[str]
"""Account identifier tag."""
- id: Required[object]
+ id: Required[str]
options: Required[Options]
"""Allows you to define image resizing sizes for different use cases."""
diff --git a/src/cloudflare/types/intel/domain_history_get_params.py b/src/cloudflare/types/intel/domain_history_get_params.py
index f4a24d0b6ed..004e88064a9 100644
--- a/src/cloudflare/types/intel/domain_history_get_params.py
+++ b/src/cloudflare/types/intel/domain_history_get_params.py
@@ -11,4 +11,4 @@ class DomainHistoryGetParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- domain: object
+ domain: str
diff --git a/src/cloudflare/types/intel/domains/bulk_get_response.py b/src/cloudflare/types/intel/domains/bulk_get_response.py
index 5f43417ec56..b3c71233e00 100644
--- a/src/cloudflare/types/intel/domains/bulk_get_response.py
+++ b/src/cloudflare/types/intel/domains/bulk_get_response.py
@@ -48,7 +48,7 @@ class BulkGetResponseItem(BaseModel):
application: Optional[BulkGetResponseItemApplication] = None
"""Application that the hostname belongs to."""
- content_categories: Optional[object] = None
+ content_categories: Optional[List[object]] = None
"""Current content categories."""
domain: Optional[str] = None
@@ -75,7 +75,7 @@ class BulkGetResponseItem(BaseModel):
risk).
"""
- risk_types: Optional[object] = None
+ risk_types: Optional[List[object]] = None
BulkGetResponse = List[BulkGetResponseItem]
diff --git a/src/cloudflare/types/intel/intel_domain.py b/src/cloudflare/types/intel/intel_domain.py
index b808cefd1eb..ab9536fd001 100644
--- a/src/cloudflare/types/intel/intel_domain.py
+++ b/src/cloudflare/types/intel/intel_domain.py
@@ -59,7 +59,7 @@ class IntelDomain(BaseModel):
application: Optional[Application] = None
"""Application that the hostname belongs to."""
- content_categories: Optional[object] = None
+ content_categories: Optional[List[object]] = None
"""Current content categories."""
domain: Optional[str] = None
@@ -92,4 +92,4 @@ class IntelDomain(BaseModel):
risk).
"""
- risk_types: Optional[object] = None
+ risk_types: Optional[List[object]] = None
diff --git a/src/cloudflare/types/intel/intel_domain_history.py b/src/cloudflare/types/intel/intel_domain_history.py
index 6fad8441095..abba234fee9 100644
--- a/src/cloudflare/types/intel/intel_domain_history.py
+++ b/src/cloudflare/types/intel/intel_domain_history.py
@@ -9,7 +9,7 @@
class Categorization(BaseModel):
- categories: Optional[object] = None
+ categories: Optional[List[object]] = None
end: Optional[date] = None
diff --git a/src/cloudflare/types/intel/intel_schemas_ip.py b/src/cloudflare/types/intel/intel_schemas_ip.py
index 2ca655df73f..188cb5e7d4a 100644
--- a/src/cloudflare/types/intel/intel_schemas_ip.py
+++ b/src/cloudflare/types/intel/intel_schemas_ip.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
+from typing import List, Union, Optional
from typing_extensions import Literal
from ..._models import BaseModel
@@ -9,7 +9,7 @@
class BelongsToRef(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
country: Optional[str] = None
@@ -30,4 +30,4 @@ class IntelSchemasIP(BaseModel):
ip: Union[str, str, None] = None
- risk_types: Optional[object] = None
+ risk_types: Optional[List[object]] = None
diff --git a/src/cloudflare/types/intel/miscategorization_create_params.py b/src/cloudflare/types/intel/miscategorization_create_params.py
index 6852071f3fd..ca19cf201b5 100644
--- a/src/cloudflare/types/intel/miscategorization_create_params.py
+++ b/src/cloudflare/types/intel/miscategorization_create_params.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+from typing import Iterable
from typing_extensions import Literal, Required, TypedDict
__all__ = ["MiscategorizationCreateParams"]
@@ -11,10 +12,10 @@ class MiscategorizationCreateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- content_adds: object
+ content_adds: Iterable[float]
"""Content category IDs to add."""
- content_removes: object
+ content_removes: Iterable[float]
"""Content category IDs to remove."""
indicator_type: Literal["domain", "ipv4", "ipv6", "url"]
@@ -22,10 +23,10 @@ class MiscategorizationCreateParams(TypedDict, total=False):
ip: object
"""Provide only if indicator_type is `ipv4` or `ipv6`."""
- security_adds: object
+ security_adds: Iterable[float]
"""Security category IDs to add."""
- security_removes: object
+ security_removes: Iterable[float]
"""Security category IDs to remove."""
url: str
diff --git a/src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py b/src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py
index 311b5209a0e..16ec2c47ae0 100644
--- a/src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py
+++ b/src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py
@@ -34,7 +34,7 @@ class MagicVisibilityMNMRule(BaseModel):
prefixes: List[str]
- id: Optional[object] = None
+ id: Optional[str] = None
bandwidth_threshold: Optional[float] = None
"""The number of bits per second for the rule.
diff --git a/src/cloudflare/types/page_shield/page_shield_connection.py b/src/cloudflare/types/page_shield/page_shield_connection.py
index b5638ca5544..537e4ffbeeb 100644
--- a/src/cloudflare/types/page_shield/page_shield_connection.py
+++ b/src/cloudflare/types/page_shield/page_shield_connection.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from ..._models import BaseModel
@@ -8,22 +8,22 @@
class PageShieldConnection(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
- added_at: Optional[object] = None
+ added_at: Optional[str] = None
- domain_reported_malicious: Optional[object] = None
+ domain_reported_malicious: Optional[bool] = None
- first_page_url: Optional[object] = None
+ first_page_url: Optional[str] = None
- first_seen_at: Optional[object] = None
+ first_seen_at: Optional[str] = None
- host: Optional[object] = None
+ host: Optional[str] = None
- last_seen_at: Optional[object] = None
+ last_seen_at: Optional[str] = None
- page_urls: Optional[object] = None
+ page_urls: Optional[List[str]] = None
- url: Optional[object] = None
+ url: Optional[str] = None
- url_contains_cdn_cgi_path: Optional[object] = None
+ url_contains_cdn_cgi_path: Optional[bool] = None
diff --git a/src/cloudflare/types/page_shield/page_shield_script.py b/src/cloudflare/types/page_shield/page_shield_script.py
index 5601c0ee918..57848e2af1d 100644
--- a/src/cloudflare/types/page_shield/page_shield_script.py
+++ b/src/cloudflare/types/page_shield/page_shield_script.py
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from ..._models import BaseModel
@@ -8,32 +8,32 @@
class PageShieldScript(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
- added_at: Optional[object] = None
+ added_at: Optional[str] = None
- dataflow_score: Optional[object] = None
+ dataflow_score: Optional[float] = None
- domain_reported_malicious: Optional[object] = None
+ domain_reported_malicious: Optional[bool] = None
- fetched_at: Optional[object] = None
+ fetched_at: Optional[str] = None
- first_page_url: Optional[object] = None
+ first_page_url: Optional[str] = None
- first_seen_at: Optional[object] = None
+ first_seen_at: Optional[str] = None
- hash: Optional[object] = None
+ hash: Optional[str] = None
- host: Optional[object] = None
+ host: Optional[str] = None
- js_integrity_score: Optional[object] = None
+ js_integrity_score: Optional[float] = None
- last_seen_at: Optional[object] = None
+ last_seen_at: Optional[str] = None
- obfuscation_score: Optional[object] = None
+ obfuscation_score: Optional[float] = None
- page_urls: Optional[object] = None
+ page_urls: Optional[List[str]] = None
- url: Optional[object] = None
+ url: Optional[str] = None
- url_contains_cdn_cgi_path: Optional[object] = None
+ url_contains_cdn_cgi_path: Optional[bool] = None
diff --git a/src/cloudflare/types/page_shield/script_get_response.py b/src/cloudflare/types/page_shield/script_get_response.py
index dda07aa6694..171d5e24c6b 100644
--- a/src/cloudflare/types/page_shield/script_get_response.py
+++ b/src/cloudflare/types/page_shield/script_get_response.py
@@ -25,34 +25,34 @@ class Version(BaseModel):
class ScriptGetResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
- added_at: Optional[object] = None
+ added_at: Optional[str] = None
- dataflow_score: Optional[object] = None
+ dataflow_score: Optional[float] = None
- domain_reported_malicious: Optional[object] = None
+ domain_reported_malicious: Optional[bool] = None
- fetched_at: Optional[object] = None
+ fetched_at: Optional[str] = None
- first_page_url: Optional[object] = None
+ first_page_url: Optional[str] = None
- first_seen_at: Optional[object] = None
+ first_seen_at: Optional[str] = None
- hash: Optional[object] = None
+ hash: Optional[str] = None
- host: Optional[object] = None
+ host: Optional[str] = None
- js_integrity_score: Optional[object] = None
+ js_integrity_score: Optional[float] = None
- last_seen_at: Optional[object] = None
+ last_seen_at: Optional[str] = None
- obfuscation_score: Optional[object] = None
+ obfuscation_score: Optional[float] = None
- page_urls: Optional[object] = None
+ page_urls: Optional[List[str]] = None
- url: Optional[object] = None
+ url: Optional[str] = None
- url_contains_cdn_cgi_path: Optional[object] = None
+ url_contains_cdn_cgi_path: Optional[bool] = None
versions: Optional[List[Version]] = None
diff --git a/src/cloudflare/types/queues/workers_consumer_updated.py b/src/cloudflare/types/queues/workers_consumer_updated.py
index 6a0b323bfe0..826273761fc 100644
--- a/src/cloudflare/types/queues/workers_consumer_updated.py
+++ b/src/cloudflare/types/queues/workers_consumer_updated.py
@@ -18,7 +18,7 @@ class Settings(BaseModel):
class WorkersConsumerUpdated(BaseModel):
created_on: Optional[object] = None
- dead_letter_queue: Optional[object] = None
+ dead_letter_queue: Optional[str] = None
environment: Optional[object] = None
diff --git a/src/cloudflare/types/registrar/domain_list_response.py b/src/cloudflare/types/registrar/domain_list_response.py
index f184d9e9d88..bb2c9ac02f0 100644
--- a/src/cloudflare/types/registrar/domain_list_response.py
+++ b/src/cloudflare/types/registrar/domain_list_response.py
@@ -55,10 +55,10 @@ class DomainListResponseItemRegistrantContact(BaseModel):
class DomainListResponseItemTransferIn(BaseModel):
- accept_foa: Optional[object] = None
+ accept_foa: Optional[str] = None
"""Form of authorization has been accepted by the registrant."""
- approve_transfer: Optional[object] = None
+ approve_transfer: Optional[str] = None
"""Shows transfer status with the registry."""
can_cancel_transfer: Optional[bool] = None
@@ -67,7 +67,7 @@ class DomainListResponseItemTransferIn(BaseModel):
disable_privacy: Optional[object] = None
"""Privacy guards are disabled at the foreign registrar."""
- enter_auth_code: Optional[object] = None
+ enter_auth_code: Optional[str] = None
"""Auth code has been entered and verified."""
unlock_domain: Optional[object] = None
diff --git a/src/cloudflare/types/secondary_dns/acl_create_params.py b/src/cloudflare/types/secondary_dns/acl_create_params.py
index 17f861d5bd3..9fdd713a6ac 100644
--- a/src/cloudflare/types/secondary_dns/acl_create_params.py
+++ b/src/cloudflare/types/secondary_dns/acl_create_params.py
@@ -8,6 +8,6 @@
class ACLCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/acl_delete_response.py b/src/cloudflare/types/secondary_dns/acl_delete_response.py
index e622fc4caf6..cc996c38654 100644
--- a/src/cloudflare/types/secondary_dns/acl_delete_response.py
+++ b/src/cloudflare/types/secondary_dns/acl_delete_response.py
@@ -8,4 +8,4 @@
class ACLDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/acl_update_params.py b/src/cloudflare/types/secondary_dns/acl_update_params.py
index 3cae866949d..205f1f8daed 100644
--- a/src/cloudflare/types/secondary_dns/acl_update_params.py
+++ b/src/cloudflare/types/secondary_dns/acl_update_params.py
@@ -8,7 +8,7 @@
class ACLUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
ip_range: Required[str]
"""Allowed IPv4/IPv6 address range of primary or secondary nameservers.
diff --git a/src/cloudflare/types/secondary_dns/incoming_create_params.py b/src/cloudflare/types/secondary_dns/incoming_create_params.py
index 277997b1d98..14f5dc9437a 100644
--- a/src/cloudflare/types/secondary_dns/incoming_create_params.py
+++ b/src/cloudflare/types/secondary_dns/incoming_create_params.py
@@ -9,7 +9,7 @@
class IncomingCreateParams(TypedDict, total=False):
- zone_id: Required[object]
+ zone_id: Required[str]
auto_refresh_seconds: Required[float]
"""
diff --git a/src/cloudflare/types/secondary_dns/incoming_create_response.py b/src/cloudflare/types/secondary_dns/incoming_create_response.py
index 6bf8d6c859e..05c13258d1c 100644
--- a/src/cloudflare/types/secondary_dns/incoming_create_response.py
+++ b/src/cloudflare/types/secondary_dns/incoming_create_response.py
@@ -8,7 +8,7 @@
class IncomingCreateResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
auto_refresh_seconds: Optional[float] = None
"""
diff --git a/src/cloudflare/types/secondary_dns/incoming_delete_response.py b/src/cloudflare/types/secondary_dns/incoming_delete_response.py
index 290274934b6..367531fefd8 100644
--- a/src/cloudflare/types/secondary_dns/incoming_delete_response.py
+++ b/src/cloudflare/types/secondary_dns/incoming_delete_response.py
@@ -8,4 +8,4 @@
class IncomingDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/incoming_get_response.py b/src/cloudflare/types/secondary_dns/incoming_get_response.py
index bcaccd64fe4..16b22caaaa7 100644
--- a/src/cloudflare/types/secondary_dns/incoming_get_response.py
+++ b/src/cloudflare/types/secondary_dns/incoming_get_response.py
@@ -8,7 +8,7 @@
class IncomingGetResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
auto_refresh_seconds: Optional[float] = None
"""
diff --git a/src/cloudflare/types/secondary_dns/incoming_update_params.py b/src/cloudflare/types/secondary_dns/incoming_update_params.py
index f1866e1f606..05ffc8e0b7c 100644
--- a/src/cloudflare/types/secondary_dns/incoming_update_params.py
+++ b/src/cloudflare/types/secondary_dns/incoming_update_params.py
@@ -9,7 +9,7 @@
class IncomingUpdateParams(TypedDict, total=False):
- zone_id: Required[object]
+ zone_id: Required[str]
auto_refresh_seconds: Required[float]
"""
diff --git a/src/cloudflare/types/secondary_dns/incoming_update_response.py b/src/cloudflare/types/secondary_dns/incoming_update_response.py
index f5b5c4d48c1..aa89d805cbc 100644
--- a/src/cloudflare/types/secondary_dns/incoming_update_response.py
+++ b/src/cloudflare/types/secondary_dns/incoming_update_response.py
@@ -8,7 +8,7 @@
class IncomingUpdateResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
auto_refresh_seconds: Optional[float] = None
"""
diff --git a/src/cloudflare/types/secondary_dns/outgoing_create_params.py b/src/cloudflare/types/secondary_dns/outgoing_create_params.py
index 360bf3fdad0..665868cb203 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_create_params.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_create_params.py
@@ -9,7 +9,7 @@
class OutgoingCreateParams(TypedDict, total=False):
- zone_id: Required[object]
+ zone_id: Required[str]
name: Required[str]
"""Zone name."""
diff --git a/src/cloudflare/types/secondary_dns/outgoing_create_response.py b/src/cloudflare/types/secondary_dns/outgoing_create_response.py
index e24d4211d57..60c85d6157b 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_create_response.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_create_response.py
@@ -8,7 +8,7 @@
class OutgoingCreateResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
checked_time: Optional[str] = None
"""The time for a specific event."""
diff --git a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py
index 30b20e91bb8..4c2ace4164f 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_delete_response.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_delete_response.py
@@ -8,4 +8,4 @@
class OutgoingDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/outgoing_get_response.py b/src/cloudflare/types/secondary_dns/outgoing_get_response.py
index f7fc910deb7..359cd452c4e 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_get_response.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_get_response.py
@@ -8,7 +8,7 @@
class OutgoingGetResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
checked_time: Optional[str] = None
"""The time for a specific event."""
diff --git a/src/cloudflare/types/secondary_dns/outgoing_update_params.py b/src/cloudflare/types/secondary_dns/outgoing_update_params.py
index 473f7f33e10..dbeee72f143 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_update_params.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_update_params.py
@@ -9,7 +9,7 @@
class OutgoingUpdateParams(TypedDict, total=False):
- zone_id: Required[object]
+ zone_id: Required[str]
name: Required[str]
"""Zone name."""
diff --git a/src/cloudflare/types/secondary_dns/outgoing_update_response.py b/src/cloudflare/types/secondary_dns/outgoing_update_response.py
index aa84d81b1d2..b68ac372b63 100644
--- a/src/cloudflare/types/secondary_dns/outgoing_update_response.py
+++ b/src/cloudflare/types/secondary_dns/outgoing_update_response.py
@@ -8,7 +8,7 @@
class OutgoingUpdateResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
checked_time: Optional[str] = None
"""The time for a specific event."""
diff --git a/src/cloudflare/types/secondary_dns/peer_create_params.py b/src/cloudflare/types/secondary_dns/peer_create_params.py
index 753caa58a44..b6e7691aa4b 100644
--- a/src/cloudflare/types/secondary_dns/peer_create_params.py
+++ b/src/cloudflare/types/secondary_dns/peer_create_params.py
@@ -8,6 +8,6 @@
class PeerCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[object]
diff --git a/src/cloudflare/types/secondary_dns/peer_delete_response.py b/src/cloudflare/types/secondary_dns/peer_delete_response.py
index 014e5af3b7d..f15beb9db63 100644
--- a/src/cloudflare/types/secondary_dns/peer_delete_response.py
+++ b/src/cloudflare/types/secondary_dns/peer_delete_response.py
@@ -8,4 +8,4 @@
class PeerDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/peer_update_params.py b/src/cloudflare/types/secondary_dns/peer_update_params.py
index 9aca4e88715..a8b0f30a4bf 100644
--- a/src/cloudflare/types/secondary_dns/peer_update_params.py
+++ b/src/cloudflare/types/secondary_dns/peer_update_params.py
@@ -8,7 +8,7 @@
class PeerUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the peer."""
diff --git a/src/cloudflare/types/secondary_dns/secondary_dns_acl.py b/src/cloudflare/types/secondary_dns/secondary_dns_acl.py
index 7678d75d133..712ec9defc2 100644
--- a/src/cloudflare/types/secondary_dns/secondary_dns_acl.py
+++ b/src/cloudflare/types/secondary_dns/secondary_dns_acl.py
@@ -6,7 +6,7 @@
class SecondaryDNSACL(BaseModel):
- id: object
+ id: str
ip_range: str
"""Allowed IPv4/IPv6 address range of primary or secondary nameservers.
diff --git a/src/cloudflare/types/secondary_dns/secondary_dns_peer.py b/src/cloudflare/types/secondary_dns/secondary_dns_peer.py
index 37da0515c46..3e52227627f 100644
--- a/src/cloudflare/types/secondary_dns/secondary_dns_peer.py
+++ b/src/cloudflare/types/secondary_dns/secondary_dns_peer.py
@@ -8,7 +8,7 @@
class SecondaryDNSPeer(BaseModel):
- id: object
+ id: str
name: str
"""The name of the peer."""
diff --git a/src/cloudflare/types/secondary_dns/secondary_dns_tsig.py b/src/cloudflare/types/secondary_dns/secondary_dns_tsig.py
index 675f173b347..857423481f0 100644
--- a/src/cloudflare/types/secondary_dns/secondary_dns_tsig.py
+++ b/src/cloudflare/types/secondary_dns/secondary_dns_tsig.py
@@ -6,7 +6,7 @@
class SecondaryDNSTSIG(BaseModel):
- id: object
+ id: str
algo: str
"""TSIG algorithm."""
diff --git a/src/cloudflare/types/secondary_dns/tsig_create_params.py b/src/cloudflare/types/secondary_dns/tsig_create_params.py
index 9cfaa31326c..81d9ae16367 100644
--- a/src/cloudflare/types/secondary_dns/tsig_create_params.py
+++ b/src/cloudflare/types/secondary_dns/tsig_create_params.py
@@ -8,7 +8,7 @@
class TSIGCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
algo: Required[str]
"""TSIG algorithm."""
diff --git a/src/cloudflare/types/secondary_dns/tsig_delete_response.py b/src/cloudflare/types/secondary_dns/tsig_delete_response.py
index 0cc2e9c75d1..f81e354e528 100644
--- a/src/cloudflare/types/secondary_dns/tsig_delete_response.py
+++ b/src/cloudflare/types/secondary_dns/tsig_delete_response.py
@@ -8,4 +8,4 @@
class TSIGDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/tsig_update_params.py b/src/cloudflare/types/secondary_dns/tsig_update_params.py
index 6eeba6f25b0..459c53962d4 100644
--- a/src/cloudflare/types/secondary_dns/tsig_update_params.py
+++ b/src/cloudflare/types/secondary_dns/tsig_update_params.py
@@ -8,7 +8,7 @@
class TSIGUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
algo: Required[str]
"""TSIG algorithm."""
diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py
index d9a4cd3fc6f..6ad163c5b72 100644
--- a/src/cloudflare/types/stream/__init__.py
+++ b/src/cloudflare/types/stream/__init__.py
@@ -10,6 +10,7 @@
from .stream_watermarks import StreamWatermarks as StreamWatermarks
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
diff --git a/src/cloudflare/types/stream/embed_get_response.py b/src/cloudflare/types/stream/embed_get_response.py
new file mode 100644
index 00000000000..36c1c958379
--- /dev/null
+++ b/src/cloudflare/types/stream/embed_get_response.py
@@ -0,0 +1,6 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+__all__ = ["EmbedGetResponse"]
+
+EmbedGetResponse = str
diff --git a/src/cloudflare/types/subscription_create_params.py b/src/cloudflare/types/subscription_create_params.py
index 72a79cda20d..b345c7a8b90 100644
--- a/src/cloudflare/types/subscription_create_params.py
+++ b/src/cloudflare/types/subscription_create_params.py
@@ -44,7 +44,7 @@ class ComponentValue(TypedDict, total=False):
class RatePlan(TypedDict, total=False):
- id: object
+ id: str
"""The ID of the rate plan."""
currency: str
diff --git a/src/cloudflare/types/subscription_list_response.py b/src/cloudflare/types/subscription_list_response.py
index 4e3445ef4a1..82a91bcdabf 100644
--- a/src/cloudflare/types/subscription_list_response.py
+++ b/src/cloudflare/types/subscription_list_response.py
@@ -36,7 +36,7 @@ class SubscriptionListResponseItemComponentValue(BaseModel):
class SubscriptionListResponseItemRatePlan(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
"""The ID of the rate plan."""
currency: Optional[str] = None
diff --git a/src/cloudflare/types/subscription_update_params.py b/src/cloudflare/types/subscription_update_params.py
index 9ff651ce71b..dfc3e37e92d 100644
--- a/src/cloudflare/types/subscription_update_params.py
+++ b/src/cloudflare/types/subscription_update_params.py
@@ -47,7 +47,7 @@ class ComponentValue(TypedDict, total=False):
class RatePlan(TypedDict, total=False):
- id: object
+ id: str
"""The ID of the rate plan."""
currency: str
diff --git a/src/cloudflare/types/user/subscription_edit_params.py b/src/cloudflare/types/user/subscription_edit_params.py
index 597f1a1aff1..6a56403b8b8 100644
--- a/src/cloudflare/types/user/subscription_edit_params.py
+++ b/src/cloudflare/types/user/subscription_edit_params.py
@@ -44,7 +44,7 @@ class ComponentValue(TypedDict, total=False):
class RatePlan(TypedDict, total=False):
- id: object
+ id: str
"""The ID of the rate plan."""
currency: str
diff --git a/src/cloudflare/types/user/subscription_get_response.py b/src/cloudflare/types/user/subscription_get_response.py
index 64107e0c54e..47a3a862044 100644
--- a/src/cloudflare/types/user/subscription_get_response.py
+++ b/src/cloudflare/types/user/subscription_get_response.py
@@ -36,7 +36,7 @@ class SubscriptionGetResponseItemComponentValue(BaseModel):
class SubscriptionGetResponseItemRatePlan(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
"""The ID of the rate plan."""
currency: Optional[str] = None
diff --git a/src/cloudflare/types/user/subscription_update_params.py b/src/cloudflare/types/user/subscription_update_params.py
index 8802fae7dc1..b131772a989 100644
--- a/src/cloudflare/types/user/subscription_update_params.py
+++ b/src/cloudflare/types/user/subscription_update_params.py
@@ -44,7 +44,7 @@ class ComponentValue(TypedDict, total=False):
class RatePlan(TypedDict, total=False):
- id: object
+ id: str
"""The ID of the rate plan."""
currency: str
diff --git a/src/cloudflare/types/vectorize/vectorize_create_index.py b/src/cloudflare/types/vectorize/vectorize_create_index.py
index 853ca6a5c34..62d78f0b633 100644
--- a/src/cloudflare/types/vectorize/vectorize_create_index.py
+++ b/src/cloudflare/types/vectorize/vectorize_create_index.py
@@ -19,13 +19,13 @@ class Config(BaseModel):
class VectorizeCreateIndex(BaseModel):
config: Optional[Config] = None
- created_on: Optional[object] = None
+ created_on: Optional[str] = None
"""Specifies the timestamp the resource was created as an ISO8601 string."""
description: Optional[str] = None
"""Specifies the description of the index."""
- modified_on: Optional[object] = None
+ modified_on: Optional[str] = None
"""Specifies the timestamp the resource was modified as an ISO8601 string."""
name: Optional[str] = None
diff --git a/src/cloudflare/types/waiting_room_delete_response.py b/src/cloudflare/types/waiting_room_delete_response.py
index 2b1a49a30d7..75446852d17 100644
--- a/src/cloudflare/types/waiting_room_delete_response.py
+++ b/src/cloudflare/types/waiting_room_delete_response.py
@@ -8,4 +8,4 @@
class WaitingRoomDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/waiting_rooms/event_delete_response.py b/src/cloudflare/types/waiting_rooms/event_delete_response.py
index 6e16e3e5987..f9e72e340ef 100644
--- a/src/cloudflare/types/waiting_rooms/event_delete_response.py
+++ b/src/cloudflare/types/waiting_rooms/event_delete_response.py
@@ -8,4 +8,4 @@
class EventDeleteResponse(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/waiting_rooms/event_edit_params.py b/src/cloudflare/types/waiting_rooms/event_edit_params.py
index 34261068d05..681f80ae773 100644
--- a/src/cloudflare/types/waiting_rooms/event_edit_params.py
+++ b/src/cloudflare/types/waiting_rooms/event_edit_params.py
@@ -12,7 +12,7 @@ class EventEditParams(TypedDict, total=False):
zone_identifier: Required[str]
"""Identifier"""
- waiting_room_id: Required[object]
+ waiting_room_id: Required[str]
event_end_time: Required[str]
"""An ISO 8601 timestamp that marks the end of the event."""
diff --git a/src/cloudflare/types/waiting_rooms/event_update_params.py b/src/cloudflare/types/waiting_rooms/event_update_params.py
index 4b4cb854734..eb2da5bd225 100644
--- a/src/cloudflare/types/waiting_rooms/event_update_params.py
+++ b/src/cloudflare/types/waiting_rooms/event_update_params.py
@@ -12,7 +12,7 @@ class EventUpdateParams(TypedDict, total=False):
zone_identifier: Required[str]
"""Identifier"""
- waiting_room_id: Required[object]
+ waiting_room_id: Required[str]
event_end_time: Required[str]
"""An ISO 8601 timestamp that marks the end of the event."""
diff --git a/src/cloudflare/types/waiting_rooms/events/waitingroom_event_details_result.py b/src/cloudflare/types/waiting_rooms/events/waitingroom_event_details_result.py
index 28fdd859718..4ddc57b358b 100644
--- a/src/cloudflare/types/waiting_rooms/events/waitingroom_event_details_result.py
+++ b/src/cloudflare/types/waiting_rooms/events/waitingroom_event_details_result.py
@@ -9,7 +9,7 @@
class WaitingroomEventDetailsResult(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
created_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/waiting_rooms/rule_edit_params.py b/src/cloudflare/types/waiting_rooms/rule_edit_params.py
index 12ce6ab23ce..5c4e42e1be6 100644
--- a/src/cloudflare/types/waiting_rooms/rule_edit_params.py
+++ b/src/cloudflare/types/waiting_rooms/rule_edit_params.py
@@ -12,7 +12,7 @@ class RuleEditParams(TypedDict, total=False):
zone_identifier: Required[str]
"""Identifier"""
- waiting_room_id: Required[object]
+ waiting_room_id: Required[str]
action: Required[Literal["bypass_waiting_room"]]
"""The action to take when the expression matches."""
diff --git a/src/cloudflare/types/waiting_rooms/waitingroom_event_result.py b/src/cloudflare/types/waiting_rooms/waitingroom_event_result.py
index 6c7802c7aa9..bcd88b2ccbd 100644
--- a/src/cloudflare/types/waiting_rooms/waitingroom_event_result.py
+++ b/src/cloudflare/types/waiting_rooms/waitingroom_event_result.py
@@ -9,7 +9,7 @@
class WaitingroomEventResult(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
created_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/waitingroom_waitingroom.py b/src/cloudflare/types/waitingroom_waitingroom.py
index 919a8370bcb..536b83b7bd6 100644
--- a/src/cloudflare/types/waitingroom_waitingroom.py
+++ b/src/cloudflare/types/waitingroom_waitingroom.py
@@ -46,7 +46,7 @@ class CookieAttributes(BaseModel):
class WaitingroomWaitingroom(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
additional_routes: Optional[List[AdditionalRoute]] = None
"""Only available for the Waiting Room Advanced subscription.
diff --git a/src/cloudflare/types/workers/account_setting_update_params.py b/src/cloudflare/types/workers/account_setting_update_params.py
index 4d6dbdc9b26..70dce27872b 100644
--- a/src/cloudflare/types/workers/account_setting_update_params.py
+++ b/src/cloudflare/types/workers/account_setting_update_params.py
@@ -11,4 +11,4 @@ class AccountSettingUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- body: Required[object]
+ body: Required[str]
diff --git a/src/cloudflare/types/workers/domain_list_params.py b/src/cloudflare/types/workers/domain_list_params.py
index f8f63b6fd45..19231707825 100644
--- a/src/cloudflare/types/workers/domain_list_params.py
+++ b/src/cloudflare/types/workers/domain_list_params.py
@@ -8,7 +8,7 @@
class DomainListParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
environment: str
"""Worker environment associated with the zone and hostname."""
@@ -19,7 +19,7 @@ class DomainListParams(TypedDict, total=False):
service: str
"""Worker service associated with the zone and hostname."""
- zone_id: object
+ zone_id: str
"""Identifier of the zone."""
zone_name: str
diff --git a/src/cloudflare/types/workers/domain_update_params.py b/src/cloudflare/types/workers/domain_update_params.py
index b42738b81be..697c2d8db1e 100644
--- a/src/cloudflare/types/workers/domain_update_params.py
+++ b/src/cloudflare/types/workers/domain_update_params.py
@@ -8,7 +8,7 @@
class DomainUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
environment: Required[str]
"""Worker environment associated with the zone and hostname."""
@@ -19,5 +19,5 @@ class DomainUpdateParams(TypedDict, total=False):
service: Required[str]
"""Worker service associated with the zone and hostname."""
- zone_id: Required[object]
+ zone_id: Required[str]
"""Identifier of the zone."""
diff --git a/src/cloudflare/types/workers/scripts/schedule_update_params.py b/src/cloudflare/types/workers/scripts/schedule_update_params.py
index d55fd0a02f9..369978b29eb 100644
--- a/src/cloudflare/types/workers/scripts/schedule_update_params.py
+++ b/src/cloudflare/types/workers/scripts/schedule_update_params.py
@@ -11,4 +11,4 @@ class ScheduleUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- body: Required[object]
+ body: Required[str]
diff --git a/src/cloudflare/types/workers/scripts/usage_model_update_params.py b/src/cloudflare/types/workers/scripts/usage_model_update_params.py
index fbc2ee10658..2958d1944ce 100644
--- a/src/cloudflare/types/workers/scripts/usage_model_update_params.py
+++ b/src/cloudflare/types/workers/scripts/usage_model_update_params.py
@@ -11,4 +11,4 @@ class UsageModelUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- body: Required[object]
+ body: Required[str]
diff --git a/src/cloudflare/types/workers/subdomain_update_params.py b/src/cloudflare/types/workers/subdomain_update_params.py
index e89bc54ea04..21b41390a10 100644
--- a/src/cloudflare/types/workers/subdomain_update_params.py
+++ b/src/cloudflare/types/workers/subdomain_update_params.py
@@ -11,4 +11,4 @@ class SubdomainUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- body: Required[object]
+ body: Required[str]
diff --git a/src/cloudflare/types/workers/workers_domain.py b/src/cloudflare/types/workers/workers_domain.py
index bc3d3b668fe..aded9cc334d 100644
--- a/src/cloudflare/types/workers/workers_domain.py
+++ b/src/cloudflare/types/workers/workers_domain.py
@@ -8,7 +8,7 @@
class WorkersDomain(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
"""Identifer of the Worker Domain."""
environment: Optional[str] = None
@@ -20,7 +20,7 @@ class WorkersDomain(BaseModel):
service: Optional[str] = None
"""Worker service associated with the zone and hostname."""
- zone_id: Optional[object] = None
+ zone_id: Optional[str] = None
"""Identifier of the zone."""
zone_name: Optional[str] = None
diff --git a/src/cloudflare/types/zero_trust/access/access_apps.py b/src/cloudflare/types/zero_trust/access/access_apps.py
index 24dffb93b53..80c738b59a7 100644
--- a/src/cloudflare/types/zero_trust/access/access_apps.py
+++ b/src/cloudflare/types/zero_trust/access/access_apps.py
@@ -806,7 +806,7 @@ class BookmarkApplication(BaseModel):
created_at: Optional[datetime] = None
- domain: Optional[object] = None
+ domain: Optional[str] = None
"""The URL or domain of the bookmark."""
logo_url: Optional[str] = None
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 c20de09cd43..c0fdd9fd956 100644
--- a/src/cloudflare/types/zero_trust/access/application_create_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_create_params.py
@@ -729,7 +729,7 @@ class BookmarkApplication(TypedDict, total=False):
app_launcher_visible: object
- domain: object
+ domain: str
"""The URL or domain of the bookmark."""
logo_url: str
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 6bf61790ffe..d9dcb4ca480 100644
--- a/src/cloudflare/types/zero_trust/access/application_update_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_update_params.py
@@ -729,7 +729,7 @@ class BookmarkApplication(TypedDict, total=False):
app_launcher_visible: object
- domain: object
+ domain: str
"""The URL or domain of the bookmark."""
logo_url: str
diff --git a/src/cloudflare/types/zero_trust/access/logs/access_access_requests.py b/src/cloudflare/types/zero_trust/access/logs/access_access_requests.py
index abecf6ac3ca..2bd62237d42 100644
--- a/src/cloudflare/types/zero_trust/access/logs/access_access_requests.py
+++ b/src/cloudflare/types/zero_trust/access/logs/access_access_requests.py
@@ -20,7 +20,7 @@ class AccessAccessRequests(BaseModel):
app_domain: Optional[str] = None
"""The URL of the Access application."""
- app_uid: Optional[object] = None
+ app_uid: Optional[str] = None
"""The unique identifier for the Access application."""
connection: Optional[str] = None
diff --git a/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py b/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py
index afe91a60579..f784a1888e1 100644
--- a/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/dex_test_create_params.py
@@ -8,7 +8,7 @@
class DEXTestCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
data: Required[Data]
"""
diff --git a/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py b/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py
index 70bc4e0c7ae..f7d63e62c30 100644
--- a/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/dex_test_update_params.py
@@ -8,7 +8,7 @@
class DEXTestUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
data: Required[Data]
"""
diff --git a/src/cloudflare/types/zero_trust/devices/network_create_params.py b/src/cloudflare/types/zero_trust/devices/network_create_params.py
index 40de08c2a9b..66c61f32f1b 100644
--- a/src/cloudflare/types/zero_trust/devices/network_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/network_create_params.py
@@ -8,7 +8,7 @@
class NetworkCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
config: Required[Config]
"""
diff --git a/src/cloudflare/types/zero_trust/devices/network_update_params.py b/src/cloudflare/types/zero_trust/devices/network_update_params.py
index eab39e625f5..ff00a95df86 100644
--- a/src/cloudflare/types/zero_trust/devices/network_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/network_update_params.py
@@ -8,7 +8,7 @@
class NetworkUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
config: Config
"""
diff --git a/src/cloudflare/types/zero_trust/devices/override_code_list_response.py b/src/cloudflare/types/zero_trust/devices/override_code_list_response.py
index 05739bf1173..fe8d8e21575 100644
--- a/src/cloudflare/types/zero_trust/devices/override_code_list_response.py
+++ b/src/cloudflare/types/zero_trust/devices/override_code_list_response.py
@@ -10,19 +10,19 @@
class DisableForTime(BaseModel):
- one: Optional[object] = FieldInfo(alias="1", default=None)
+ one: Optional[str] = FieldInfo(alias="1", default=None)
"""Override code that is valid for 1 hour."""
- twelve: Optional[object] = FieldInfo(alias="12", default=None)
+ twelve: Optional[str] = FieldInfo(alias="12", default=None)
"""Override code that is valid for 12 hour2."""
- twenty_four: Optional[object] = FieldInfo(alias="24", default=None)
+ twenty_four: Optional[str] = FieldInfo(alias="24", default=None)
"""Override code that is valid for 24 hour.2."""
- three: Optional[object] = FieldInfo(alias="3", default=None)
+ three: Optional[str] = FieldInfo(alias="3", default=None)
"""Override code that is valid for 3 hours."""
- six: Optional[object] = FieldInfo(alias="6", default=None)
+ six: Optional[str] = FieldInfo(alias="6", default=None)
"""Override code that is valid for 6 hours."""
diff --git a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py
index 913a57b3a71..2c703b1137e 100644
--- a/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/policies/exclude_update_params.py
@@ -11,6 +11,6 @@
class ExcludeUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[Iterable[TeamsDevicesSplitTunnelParam]]
diff --git a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py
index 5d01bc2a389..19aa5690387 100644
--- a/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/policies/fallback_domain_update_params.py
@@ -11,6 +11,6 @@
class FallbackDomainUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[Iterable[TeamsDevicesFallbackDomainParam]]
diff --git a/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py b/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py
index fad3a4fd0ef..e8f92c7a40b 100644
--- a/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/policies/include_update_params.py
@@ -11,6 +11,6 @@
class IncludeUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[Iterable[TeamsDevicesSplitTunnelIncludeParam]]
diff --git a/src/cloudflare/types/zero_trust/devices/policy_create_params.py b/src/cloudflare/types/zero_trust/devices/policy_create_params.py
index 21d409c097e..1cf7536ddc5 100644
--- a/src/cloudflare/types/zero_trust/devices/policy_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/policy_create_params.py
@@ -8,7 +8,7 @@
class PolicyCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
match: Required[str]
"""The wirefilter expression to match devices."""
diff --git a/src/cloudflare/types/zero_trust/devices/policy_edit_params.py b/src/cloudflare/types/zero_trust/devices/policy_edit_params.py
index 85431785d0f..7874833032e 100644
--- a/src/cloudflare/types/zero_trust/devices/policy_edit_params.py
+++ b/src/cloudflare/types/zero_trust/devices/policy_edit_params.py
@@ -8,7 +8,7 @@
class PolicyEditParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
allow_mode_switch: bool
"""Whether to allow the user to switch WARP between modes."""
diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py b/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py
index d5d8f5a46a4..541809528f6 100644
--- a/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture/integration_create_params.py
@@ -19,7 +19,7 @@
class IntegrationCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
config: Required[Config]
"""The configuration object containing third-party integration information."""
diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py b/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py
index 65a3bd90ea2..134b563b9c6 100644
--- a/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture/integration_edit_params.py
@@ -19,7 +19,7 @@
class IntegrationEditParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
config: Config
"""The configuration object containing third-party integration information."""
diff --git a/src/cloudflare/types/zero_trust/devices/posture_create_params.py b/src/cloudflare/types/zero_trust/devices/posture_create_params.py
index dfdbf5f8906..1372b6ab886 100644
--- a/src/cloudflare/types/zero_trust/devices/posture_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture_create_params.py
@@ -31,7 +31,7 @@
class PostureCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the device posture rule."""
diff --git a/src/cloudflare/types/zero_trust/devices/posture_update_params.py b/src/cloudflare/types/zero_trust/devices/posture_update_params.py
index 9d7363dd151..4d672e25d9a 100644
--- a/src/cloudflare/types/zero_trust/devices/posture_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture_update_params.py
@@ -31,7 +31,7 @@
class PostureUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the device posture rule."""
diff --git a/src/cloudflare/types/zero_trust/devices/revoke_create_params.py b/src/cloudflare/types/zero_trust/devices/revoke_create_params.py
index 71574fc5975..ec49fd97998 100644
--- a/src/cloudflare/types/zero_trust/devices/revoke_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/revoke_create_params.py
@@ -9,7 +9,7 @@
class RevokeCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[List[str]]
"""A list of device ids to revoke."""
diff --git a/src/cloudflare/types/zero_trust/devices/setting_update_params.py b/src/cloudflare/types/zero_trust/devices/setting_update_params.py
index a6d3e7bbb65..e3d210e964b 100644
--- a/src/cloudflare/types/zero_trust/devices/setting_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/setting_update_params.py
@@ -8,7 +8,7 @@
class SettingUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
gateway_proxy_enabled: bool
"""Enable gateway proxy filtering on TCP."""
diff --git a/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py b/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py
index d9df1477470..7a076ab0e56 100644
--- a/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/unrevoke_create_params.py
@@ -9,7 +9,7 @@
class UnrevokeCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
body: Required[List[str]]
"""A list of device ids to unrevoke."""
diff --git a/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py b/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py
index a7206fb8993..fc6ef9b9a5a 100644
--- a/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/audit_ssh_setting_update_params.py
@@ -8,7 +8,7 @@
class AuditSSHSettingUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
public_key: Required[str]
"""SSH encryption public key"""
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
index b67cbf1faa9..1b8b4486943 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
@@ -22,7 +22,7 @@
class ConfigurationEditParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
settings: Settings
"""account settings."""
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
index 55095c30fe2..e2c78e50f50 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
@@ -22,7 +22,7 @@
class ConfigurationUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
settings: Settings
"""account settings."""
diff --git a/src/cloudflare/types/zero_trust/gateway/list_create_params.py b/src/cloudflare/types/zero_trust/gateway/list_create_params.py
index abb26ec5020..073d8e8b866 100644
--- a/src/cloudflare/types/zero_trust/gateway/list_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/list_create_params.py
@@ -9,7 +9,7 @@
class ListCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the list."""
diff --git a/src/cloudflare/types/zero_trust/gateway/list_edit_params.py b/src/cloudflare/types/zero_trust/gateway/list_edit_params.py
index 5567b31bd0d..c5fbd71771a 100644
--- a/src/cloudflare/types/zero_trust/gateway/list_edit_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/list_edit_params.py
@@ -9,7 +9,7 @@
class ListEditParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
append: Iterable[Append]
"""The items in the list."""
diff --git a/src/cloudflare/types/zero_trust/gateway/list_update_params.py b/src/cloudflare/types/zero_trust/gateway/list_update_params.py
index e2aeafe0079..0177452d00e 100644
--- a/src/cloudflare/types/zero_trust/gateway/list_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/list_update_params.py
@@ -8,7 +8,7 @@
class ListUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the list."""
diff --git a/src/cloudflare/types/zero_trust/gateway/location_create_params.py b/src/cloudflare/types/zero_trust/gateway/location_create_params.py
index 5dd18ff0af1..fec8c1c68cb 100644
--- a/src/cloudflare/types/zero_trust/gateway/location_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/location_create_params.py
@@ -9,7 +9,7 @@
class LocationCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the location."""
diff --git a/src/cloudflare/types/zero_trust/gateway/location_update_params.py b/src/cloudflare/types/zero_trust/gateway/location_update_params.py
index 8fcf388e986..69f383f51f7 100644
--- a/src/cloudflare/types/zero_trust/gateway/location_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/location_update_params.py
@@ -9,7 +9,7 @@
class LocationUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
name: Required[str]
"""The name of the location."""
diff --git a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
index 5ab259b92fb..de1cb4dfeb6 100644
--- a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
@@ -8,7 +8,7 @@
class LoggingUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
redact_pii: bool
"""
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
index 6133ea10e16..13b00e30d42 100644
--- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_create_params.py
@@ -9,7 +9,7 @@
class ProxyEndpointCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
ips: Required[List[str]]
"""A list of CIDRs to restrict ingress connections."""
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
index 4420956d813..d5fa2e5b3af 100644
--- a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_edit_params.py
@@ -9,7 +9,7 @@
class ProxyEndpointEditParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
ips: List[str]
"""A list of CIDRs to restrict ingress connections."""
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
index 30af03fc2b8..fab6e56cb0d 100644
--- a/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/rule_create_params.py
@@ -24,7 +24,7 @@
class RuleCreateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
action: Required[
Literal[
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
index 25182bc48a0..f15db14ba88 100644
--- a/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/rule_update_params.py
@@ -24,7 +24,7 @@
class RuleUpdateParams(TypedDict, total=False):
- account_id: Required[object]
+ account_id: Required[str]
action: Required[
Literal[
diff --git a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_locations.py b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_locations.py
index f2f7aaed6e6..bee1b9fa203 100644
--- a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_locations.py
+++ b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_locations.py
@@ -14,7 +14,7 @@ class Network(BaseModel):
class ZeroTrustGatewayLocations(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
client_default: Optional[bool] = None
"""True if the location is the default location."""
diff --git a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_proxy_endpoints.py b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_proxy_endpoints.py
index e18a0340192..4524e201ceb 100644
--- a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_proxy_endpoints.py
+++ b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_proxy_endpoints.py
@@ -9,7 +9,7 @@
class ZeroTrustGatewayProxyEndpoints(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
created_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zones/subscription_create_params.py b/src/cloudflare/types/zones/subscription_create_params.py
index 72a79cda20d..b345c7a8b90 100644
--- a/src/cloudflare/types/zones/subscription_create_params.py
+++ b/src/cloudflare/types/zones/subscription_create_params.py
@@ -44,7 +44,7 @@ class ComponentValue(TypedDict, total=False):
class RatePlan(TypedDict, total=False):
- id: object
+ id: str
"""The ID of the rate plan."""
currency: str
diff --git a/src/cloudflare/types/zones/subscription_list_response.py b/src/cloudflare/types/zones/subscription_list_response.py
index 8c6c0c94aee..347713570d5 100644
--- a/src/cloudflare/types/zones/subscription_list_response.py
+++ b/src/cloudflare/types/zones/subscription_list_response.py
@@ -36,7 +36,7 @@ class SubscriptionListResponseItemComponentValue(BaseModel):
class SubscriptionListResponseItemRatePlan(BaseModel):
- id: Optional[object] = None
+ id: Optional[str] = None
"""The ID of the rate plan."""
currency: Optional[str] = None
diff --git a/tests/api_resources/images/v1/test_keys.py b/tests/api_resources/images/v1/test_keys.py
index 74b0a339cad..699e3a2ccba 100644
--- a/tests/api_resources/images/v1/test_keys.py
+++ b/tests/api_resources/images/v1/test_keys.py
@@ -21,7 +21,7 @@ class TestKeys:
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
key = client.images.v1.keys.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -30,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.images.v1.keys.with_raw_response.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -43,7 +43,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.images.v1.keys.with_streaming_response.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -59,10 +59,16 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.keys.with_raw_response.update(
- "someKey",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `signing_key_name` but received ''"):
+ client.images.v1.keys.with_raw_response.update(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -109,7 +115,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
key = client.images.v1.keys.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -118,7 +124,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.images.v1.keys.with_raw_response.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -131,7 +137,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.images.v1.keys.with_streaming_response.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -147,10 +153,16 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.keys.with_raw_response.delete(
- "someKey",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `signing_key_name` but received ''"):
+ client.images.v1.keys.with_raw_response.delete(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
class TestAsyncKeys:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -159,7 +171,7 @@ class TestAsyncKeys:
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
key = await async_client.images.v1.keys.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -168,7 +180,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.keys.with_raw_response.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -181,7 +193,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.keys.with_streaming_response.update(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -197,10 +209,16 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.keys.with_raw_response.update(
- "someKey",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `signing_key_name` but received ''"):
+ await async_client.images.v1.keys.with_raw_response.update(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -247,7 +265,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
key = await async_client.images.v1.keys.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImagesImageKeys, key, path=["response"])
@@ -256,7 +274,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.keys.with_raw_response.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -269,7 +287,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.keys.with_streaming_response.delete(
- "someKey",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -285,6 +303,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.keys.with_raw_response.delete(
- "someKey",
+ "string",
account_id="",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `signing_key_name` but received ''"):
+ await async_client.images.v1.keys.with_raw_response.delete(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py
index 33a23dcf9f7..c326575dea3 100644
--- a/tests/api_resources/images/v1/test_variants.py
+++ b/tests/api_resources/images/v1/test_variants.py
@@ -26,7 +26,7 @@ class TestVariants:
def test_method_create(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -41,7 +41,7 @@ def test_method_create(self, client: Cloudflare) -> None:
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -57,7 +57,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.images.v1.variants.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -76,7 +76,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.images.v1.variants.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -98,7 +98,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.variants.with_raw_response.create(
account_id="",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -153,7 +153,7 @@ def test_path_params_list(self, client: Cloudflare) -> None:
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@@ -162,7 +162,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.images.v1.variants.with_raw_response.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -175,7 +175,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.images.v1.variants.with_streaming_response.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -191,15 +191,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
def test_path_params_delete(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.variants.with_raw_response.delete(
- "hero",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ client.images.v1.variants.with_raw_response.delete(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -214,7 +220,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
@parametrize
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -230,7 +236,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.images.v1.variants.with_raw_response.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -249,7 +255,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.images.v1.variants.with_streaming_response.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -271,7 +277,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
def test_path_params_edit(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.variants.with_raw_response.edit(
- "hero",
+ "string",
account_id="",
options={
"fit": "scale-down",
@@ -281,11 +287,23 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
},
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ client.images.v1.variants.with_raw_response.edit(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ options={
+ "fit": "scale-down",
+ "height": 768,
+ "metadata": "none",
+ "width": 1366,
+ },
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImageVariant, variant, path=["response"])
@@ -294,7 +312,7 @@ def test_method_get(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.images.v1.variants.with_raw_response.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -307,7 +325,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.images.v1.variants.with_streaming_response.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -323,10 +341,16 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
def test_path_params_get(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.images.v1.variants.with_raw_response.get(
- "hero",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ client.images.v1.variants.with_raw_response.get(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
class TestAsyncVariants:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -336,7 +360,7 @@ class TestAsyncVariants:
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -351,7 +375,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -367,7 +391,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.variants.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -386,7 +410,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.variants.with_streaming_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -408,7 +432,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.variants.with_raw_response.create(
account_id="",
- id="hero",
+ id="string",
options={
"fit": "scale-down",
"height": 768,
@@ -463,7 +487,7 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@@ -472,7 +496,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.variants.with_raw_response.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -485,7 +509,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.variants.with_streaming_response.delete(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -501,15 +525,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.variants.with_raw_response.delete(
- "hero",
+ "string",
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ await async_client.images.v1.variants.with_raw_response.delete(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -524,7 +554,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -540,7 +570,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
@parametrize
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.variants.with_raw_response.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -559,7 +589,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.variants.with_streaming_response.edit(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
options={
"fit": "scale-down",
@@ -581,7 +611,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.variants.with_raw_response.edit(
- "hero",
+ "string",
account_id="",
options={
"fit": "scale-down",
@@ -591,11 +621,23 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
},
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ await async_client.images.v1.variants.with_raw_response.edit(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ options={
+ "fit": "scale-down",
+ "height": 768,
+ "metadata": "none",
+ "width": 1366,
+ },
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ImageVariant, variant, path=["response"])
@@ -604,7 +646,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.images.v1.variants.with_raw_response.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -617,7 +659,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.images.v1.variants.with_streaming_response.get(
- "hero",
+ "string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
@@ -633,6 +675,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.images.v1.variants.with_raw_response.get(
- "hero",
+ "string",
account_id="",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `variant_id` but received ''"):
+ await async_client.images.v1.variants.with_raw_response.get(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
diff --git a/tests/api_resources/load_balancers/test_previews.py b/tests/api_resources/load_balancers/test_previews.py
index 6745959c5fa..e8910746a8e 100644
--- a/tests/api_resources/load_balancers/test_previews.py
+++ b/tests/api_resources/load_balancers/test_previews.py
@@ -63,6 +63,12 @@ def test_path_params_get(self, client: Cloudflare) -> None:
account_id="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `preview_id` but received ''"):
+ client.load_balancers.previews.with_raw_response.get(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
class TestAsyncPreviews:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -112,3 +118,9 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"p1aba936b94213e5b8dca0c0dbf1f9cc",
account_id="",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `preview_id` but received ''"):
+ await async_client.load_balancers.previews.with_raw_response.get(
+ "",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ )
diff --git a/tests/api_resources/magic_network_monitoring/configs/test_full.py b/tests/api_resources/magic_network_monitoring/configs/test_full.py
index 4659eff0b47..17677bd6624 100644
--- a/tests/api_resources/magic_network_monitoring/configs/test_full.py
+++ b/tests/api_resources/magic_network_monitoring/configs/test_full.py
@@ -51,6 +51,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.full.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncFull:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -88,3 +96,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(MagicVisibilityMNMConfig, full, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.full.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py
index 5189fdad750..4a065273aae 100644
--- a/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py
+++ b/tests/api_resources/magic_network_monitoring/rules/test_advertisements.py
@@ -54,6 +54,21 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
class TestAsyncAdvertisements:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -94,3 +109,18 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert_matches_type(Optional[MagicVisibilityMNMRuleAdvertisable], advertisement, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.advertisements.with_raw_response.edit(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
diff --git a/tests/api_resources/magic_network_monitoring/test_configs.py b/tests/api_resources/magic_network_monitoring/test_configs.py
index 55db17f9a44..684b9811710 100644
--- a/tests/api_resources/magic_network_monitoring/test_configs.py
+++ b/tests/api_resources/magic_network_monitoring/test_configs.py
@@ -51,6 +51,14 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -85,6 +93,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -119,6 +135,14 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.with_raw_response.delete(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -153,6 +177,14 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.with_raw_response.edit(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -187,6 +219,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.configs.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncConfigs:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -225,6 +265,14 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -259,6 +307,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -293,6 +349,14 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.with_raw_response.delete(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -327,6 +391,14 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.with_raw_response.edit(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -360,3 +432,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(MagicVisibilityMNMConfig, config, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.configs.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/magic_network_monitoring/test_rules.py b/tests/api_resources/magic_network_monitoring/test_rules.py
index 978dcecd754..0e4b85296b0 100644
--- a/tests/api_resources/magic_network_monitoring/test_rules.py
+++ b/tests/api_resources/magic_network_monitoring/test_rules.py
@@ -51,6 +51,14 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -85,6 +93,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -119,6 +135,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -156,6 +180,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.delete(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.delete(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -193,6 +232,21 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.edit(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.edit(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -230,6 +284,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.get(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ client.magic_network_monitoring.rules.with_raw_response.get(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
class TestAsyncRules:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -268,6 +337,14 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -302,6 +379,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -336,6 +421,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -373,6 +466,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.delete(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.delete(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -410,6 +518,21 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.edit(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.edit(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -446,3 +569,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(Optional[MagicVisibilityMNMRule], rule, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.get(
+ "2890e6fa406311ed9b5a23f70f6fb8cf",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
+ await async_client.magic_network_monitoring.rules.with_raw_response.get(
+ "",
+ account_id="6f91088a406011ed95aed352566e8d4c",
+ )
diff --git a/tests/api_resources/secondary_dns/outgoing/test_status.py b/tests/api_resources/secondary_dns/outgoing/test_status.py
index 81ab9021211..a669d9b1d58 100644
--- a/tests/api_resources/secondary_dns/outgoing/test_status.py
+++ b/tests/api_resources/secondary_dns/outgoing/test_status.py
@@ -50,6 +50,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.status.with_raw_response.get(
+ zone_id="",
+ )
+
class TestAsyncStatus:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -87,3 +95,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(str, status, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.status.with_raw_response.get(
+ zone_id="",
+ )
diff --git a/tests/api_resources/secondary_dns/test_acls.py b/tests/api_resources/secondary_dns/test_acls.py
index 3783d0e849f..50e534495c7 100644
--- a/tests/api_resources/secondary_dns/test_acls.py
+++ b/tests/api_resources/secondary_dns/test_acls.py
@@ -58,6 +58,15 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.create(
+ account_id="",
+ body={},
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -101,6 +110,25 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.update(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ ip_range="192.0.2.53/28",
+ name="my-acl-1",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ ip_range="192.0.2.53/28",
+ name="my-acl-1",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -135,6 +163,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -172,6 +208,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.delete(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -209,6 +260,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.get(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ client.secondary_dns.acls.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
class TestAsyncACLs:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -250,6 +316,15 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.create(
+ account_id="",
+ body={},
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -293,6 +368,25 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.update(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ ip_range="192.0.2.53/28",
+ name="my-acl-1",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ ip_range="192.0.2.53/28",
+ name="my-acl-1",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -327,6 +421,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -364,6 +466,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.delete(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -400,3 +517,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(SecondaryDNSACL, acl, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.get(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `acl_id` but received ''"):
+ await async_client.secondary_dns.acls.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
diff --git a/tests/api_resources/secondary_dns/test_force_axfr.py b/tests/api_resources/secondary_dns/test_force_axfr.py
index 0048c8a9773..11d35c2f830 100644
--- a/tests/api_resources/secondary_dns/test_force_axfr.py
+++ b/tests/api_resources/secondary_dns/test_force_axfr.py
@@ -50,6 +50,14 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.force_axfr.with_raw_response.create(
+ zone_id="",
+ )
+
class TestAsyncForceAXFR:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -87,3 +95,11 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert_matches_type(str, force_axfr, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.force_axfr.with_raw_response.create(
+ zone_id="",
+ )
diff --git a/tests/api_resources/secondary_dns/test_incoming.py b/tests/api_resources/secondary_dns/test_incoming.py
index 02a69a5c3ce..565a200a7ba 100644
--- a/tests/api_resources/secondary_dns/test_incoming.py
+++ b/tests/api_resources/secondary_dns/test_incoming.py
@@ -65,6 +65,17 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.incoming.with_raw_response.create(
+ zone_id="",
+ auto_refresh_seconds=86400,
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -108,6 +119,17 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.incoming.with_raw_response.update(
+ zone_id="",
+ auto_refresh_seconds=86400,
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -142,6 +164,14 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.incoming.with_raw_response.delete(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -176,6 +206,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.incoming.with_raw_response.get(
+ zone_id="",
+ )
+
class TestAsyncIncoming:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -223,6 +261,17 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.incoming.with_raw_response.create(
+ zone_id="",
+ auto_refresh_seconds=86400,
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -266,6 +315,17 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.incoming.with_raw_response.update(
+ zone_id="",
+ auto_refresh_seconds=86400,
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -300,6 +360,14 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.incoming.with_raw_response.delete(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -333,3 +401,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(IncomingGetResponse, incoming, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.incoming.with_raw_response.get(
+ zone_id="",
+ )
diff --git a/tests/api_resources/secondary_dns/test_outgoing.py b/tests/api_resources/secondary_dns/test_outgoing.py
index 0745e81617a..48fd0ac4c31 100644
--- a/tests/api_resources/secondary_dns/test_outgoing.py
+++ b/tests/api_resources/secondary_dns/test_outgoing.py
@@ -62,6 +62,16 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.create(
+ zone_id="",
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -102,6 +112,16 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.update(
+ zone_id="",
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -136,6 +156,14 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.delete(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_disable(self, client: Cloudflare) -> None:
@@ -170,6 +198,14 @@ def test_streaming_response_disable(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_disable(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.disable(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_enable(self, client: Cloudflare) -> None:
@@ -204,6 +240,14 @@ def test_streaming_response_enable(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_enable(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.enable(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_force_notify(self, client: Cloudflare) -> None:
@@ -238,6 +282,14 @@ def test_streaming_response_force_notify(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_force_notify(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.force_notify(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -272,6 +324,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.secondary_dns.outgoing.with_raw_response.get(
+ zone_id="",
+ )
+
class TestAsyncOutgoing:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -316,6 +376,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.create(
+ zone_id="",
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -356,6 +426,16 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.update(
+ zone_id="",
+ name="www.example.com.",
+ peers=["23ff594956f20c2a721606e94745a8aa", "00920f38ce07c2e2f4df50b1f61d4194"],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -390,6 +470,14 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.delete(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_disable(self, async_client: AsyncCloudflare) -> None:
@@ -424,6 +512,14 @@ async def test_streaming_response_disable(self, async_client: AsyncCloudflare) -
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_disable(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.disable(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_enable(self, async_client: AsyncCloudflare) -> None:
@@ -458,6 +554,14 @@ async def test_streaming_response_enable(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_enable(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.enable(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_force_notify(self, async_client: AsyncCloudflare) -> None:
@@ -492,6 +596,14 @@ async def test_streaming_response_force_notify(self, async_client: AsyncCloudfla
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_force_notify(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.force_notify(
+ zone_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -525,3 +637,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(OutgoingGetResponse, outgoing, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.secondary_dns.outgoing.with_raw_response.get(
+ zone_id="",
+ )
diff --git a/tests/api_resources/secondary_dns/test_peers.py b/tests/api_resources/secondary_dns/test_peers.py
index b84450dd275..efbb8aeb073 100644
--- a/tests/api_resources/secondary_dns/test_peers.py
+++ b/tests/api_resources/secondary_dns/test_peers.py
@@ -58,6 +58,15 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.create(
+ account_id="",
+ body={},
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -112,6 +121,23 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.update(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ name="my-peer-1",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ name="my-peer-1",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -146,6 +172,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -183,6 +217,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.delete(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -220,6 +269,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.get(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ client.secondary_dns.peers.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
class TestAsyncPeers:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -261,6 +325,15 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.create(
+ account_id="",
+ body={},
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -315,6 +388,23 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.update(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ name="my-peer-1",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ name="my-peer-1",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -349,6 +439,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -386,6 +484,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.delete(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -422,3 +535,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(SecondaryDNSPeer, peer, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.get(
+ "23ff594956f20c2a721606e94745a8aa",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `peer_id` but received ''"):
+ await async_client.secondary_dns.peers.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
diff --git a/tests/api_resources/secondary_dns/test_tsigs.py b/tests/api_resources/secondary_dns/test_tsigs.py
index 4e99969e0d3..51f0c9ba49c 100644
--- a/tests/api_resources/secondary_dns/test_tsigs.py
+++ b/tests/api_resources/secondary_dns/test_tsigs.py
@@ -64,6 +64,17 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.create(
+ account_id="",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -110,6 +121,27 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.update(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -144,6 +176,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -181,6 +221,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.delete(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -218,6 +273,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.get(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ client.secondary_dns.tsigs.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
class TestAsyncTSIGs:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -265,6 +335,17 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.create(
+ account_id="",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -311,6 +392,27 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.update(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.update(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ algo="hmac-sha512.",
+ name="tsig.customer.cf.",
+ secret="caf79a7804b04337c9c66ccd7bef9190a1e1679b5dd03d8aa10f7ad45e1a9dab92b417896c15d4d007c7c14194538d2a5d0feffdecc5a7f0e1c570cfa700837c",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -345,6 +447,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -382,6 +492,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.delete(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.delete(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -418,3 +543,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(SecondaryDNSTSIG, tsig, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.get(
+ "69cd1e104af3e6ed3cb344f263fd0d5a",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `tsig_id` but received ''"):
+ await async_client.secondary_dns.tsigs.with_raw_response.get(
+ "",
+ account_id="01a7362d577a6c3019a474fd6f485823",
+ )
diff --git a/tests/api_resources/stream/test_embed.py b/tests/api_resources/stream/test_embed.py
index 0f208b94e9e..f96c02841a9 100644
--- a/tests/api_resources/stream/test_embed.py
+++ b/tests/api_resources/stream/test_embed.py
@@ -23,7 +23,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -36,7 +36,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"
embed = response.parse()
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -49,7 +49,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
embed = response.parse()
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -79,7 +79,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -92,7 +92,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"
embed = await response.parse()
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -105,7 +105,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
embed = await response.parse()
- assert_matches_type(object, embed, path=["response"])
+ assert_matches_type(str, embed, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_waiting_rooms.py b/tests/api_resources/test_waiting_rooms.py
index 05d786b160d..2630e4cca3f 100644
--- a/tests/api_resources/test_waiting_rooms.py
+++ b/tests/api_resources/test_waiting_rooms.py
@@ -226,6 +226,16 @@ def test_path_params_update(self, client: Cloudflare) -> None:
total_active_users=200,
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ host="shop.example.com",
+ name="production_webinar",
+ new_users_per_minute=200,
+ total_active_users=200,
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -314,6 +324,12 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.with_raw_response.delete(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -419,6 +435,16 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
total_active_users=200,
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.with_raw_response.edit(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ host="shop.example.com",
+ name="production_webinar",
+ new_users_per_minute=200,
+ total_active_users=200,
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -465,6 +491,12 @@ def test_path_params_get(self, client: Cloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
class TestAsyncWaitingRooms:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -674,6 +706,16 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
total_active_users=200,
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ host="shop.example.com",
+ name="production_webinar",
+ new_users_per_minute=200,
+ total_active_users=200,
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -762,6 +804,12 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.with_raw_response.delete(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -867,6 +915,16 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
total_active_users=200,
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.with_raw_response.edit(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ host="shop.example.com",
+ name="production_webinar",
+ new_users_per_minute=200,
+ total_active_users=200,
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -912,3 +970,9 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"699d98642c564d2e855e9661899b7252",
zone_identifier="",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
diff --git a/tests/api_resources/user/load_balancers/test_preview.py b/tests/api_resources/user/load_balancers/test_preview.py
index c40bab6b8aa..a91db725c8c 100644
--- a/tests/api_resources/user/load_balancers/test_preview.py
+++ b/tests/api_resources/user/load_balancers/test_preview.py
@@ -51,6 +51,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `preview_id` but received ''"):
+ client.user.load_balancers.preview.with_raw_response.get(
+ "",
+ )
+
class TestAsyncPreview:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -88,3 +96,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(LoadBalancingPreviewResult, preview, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `preview_id` but received ''"):
+ await async_client.user.load_balancers.preview.with_raw_response.get(
+ "",
+ )
diff --git a/tests/api_resources/waiting_rooms/events/test_details.py b/tests/api_resources/waiting_rooms/events/test_details.py
index 558a5147e08..53a6bc6939d 100644
--- a/tests/api_resources/waiting_rooms/events/test_details.py
+++ b/tests/api_resources/waiting_rooms/events/test_details.py
@@ -67,6 +67,20 @@ def test_path_params_get(self, client: Cloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.details.with_raw_response.get(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ client.waiting_rooms.events.details.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
+
class TestAsyncDetails:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -120,3 +134,17 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
zone_identifier="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.details.with_raw_response.get(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ await async_client.waiting_rooms.events.details.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
diff --git a/tests/api_resources/waiting_rooms/test_events.py b/tests/api_resources/waiting_rooms/test_events.py
index 1ef86b7b411..c72975b9a31 100644
--- a/tests/api_resources/waiting_rooms/test_events.py
+++ b/tests/api_resources/waiting_rooms/test_events.py
@@ -101,6 +101,15 @@ def test_path_params_create(self, client: Cloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.create(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -186,6 +195,26 @@ def test_path_params_update(self, client: Cloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.update(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -232,6 +261,12 @@ def test_path_params_list(self, client: Cloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.list(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -282,6 +317,20 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.delete(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.delete(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -367,6 +416,26 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.edit(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.edit(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -417,6 +486,20 @@ def test_path_params_get(self, client: Cloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.get(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ client.waiting_rooms.events.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
+
class TestAsyncEvents:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -501,6 +584,15 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.create(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -586,6 +678,26 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.update(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -632,6 +744,12 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.list(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -682,6 +800,20 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.delete(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.delete(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -767,6 +899,26 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
name="production_webinar_event",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.edit(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.edit(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ event_end_time="2021-09-28T17:00:00.000Z",
+ event_start_time="2021-09-28T15:30:00.000Z",
+ name="production_webinar_event",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -816,3 +968,17 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
zone_identifier="",
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.get(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `event_id` but received ''"):
+ await async_client.waiting_rooms.events.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="699d98642c564d2e855e9661899b7252",
+ )
diff --git a/tests/api_resources/waiting_rooms/test_rules.py b/tests/api_resources/waiting_rooms/test_rules.py
index 05396e85400..eb1537f9dfb 100644
--- a/tests/api_resources/waiting_rooms/test_rules.py
+++ b/tests/api_resources/waiting_rooms/test_rules.py
@@ -90,6 +90,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
expression="ip.src in {10.20.30.40}",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.rules.with_raw_response.create(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ action="bypass_waiting_room",
+ expression="ip.src in {10.20.30.40}",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -192,6 +200,26 @@ def test_path_params_update(self, client: Cloudflare) -> None:
],
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.rules.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body=[
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -238,6 +266,12 @@ def test_path_params_list(self, client: Cloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.rules.with_raw_response.list(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -288,6 +322,13 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.rules.with_raw_response.delete(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.waiting_rooms.rules.with_raw_response.delete(
"",
@@ -368,6 +409,15 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
expression="ip.src in {10.20.30.40}",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.rules.with_raw_response.edit(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ action="bypass_waiting_room",
+ expression="ip.src in {10.20.30.40}",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.waiting_rooms.rules.with_raw_response.edit(
"",
@@ -448,6 +498,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
expression="ip.src in {10.20.30.40}",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.rules.with_raw_response.create(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ action="bypass_waiting_room",
+ expression="ip.src in {10.20.30.40}",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -550,6 +608,26 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
],
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.rules.with_raw_response.update(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ body=[
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ {
+ "action": "bypass_waiting_room",
+ "expression": "ip.src in {10.20.30.40}",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -596,6 +674,12 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.rules.with_raw_response.list(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -646,6 +730,13 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
waiting_room_id="699d98642c564d2e855e9661899b7252",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.rules.with_raw_response.delete(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.waiting_rooms.rules.with_raw_response.delete(
"",
@@ -726,6 +817,15 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
expression="ip.src in {10.20.30.40}",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.rules.with_raw_response.edit(
+ "25756b2dfe6e378a06b033b670413757",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ waiting_room_id="",
+ action="bypass_waiting_room",
+ expression="ip.src in {10.20.30.40}",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.waiting_rooms.rules.with_raw_response.edit(
"",
diff --git a/tests/api_resources/waiting_rooms/test_statuses.py b/tests/api_resources/waiting_rooms/test_statuses.py
index f7cd576bb45..2e33c51c5cd 100644
--- a/tests/api_resources/waiting_rooms/test_statuses.py
+++ b/tests/api_resources/waiting_rooms/test_statuses.py
@@ -63,6 +63,12 @@ def test_path_params_get(self, client: Cloudflare) -> None:
zone_identifier="",
)
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ client.waiting_rooms.statuses.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
+
class TestAsyncStatuses:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -112,3 +118,9 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
"699d98642c564d2e855e9661899b7252",
zone_identifier="",
)
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `waiting_room_id` but received ''"):
+ await async_client.waiting_rooms.statuses.with_raw_response.get(
+ "",
+ zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
+ )
diff --git a/tests/api_resources/workers/test_domains.py b/tests/api_resources/workers/test_domains.py
index b03bd59d4fe..20907df2d87 100644
--- a/tests/api_resources/workers/test_domains.py
+++ b/tests/api_resources/workers/test_domains.py
@@ -63,6 +63,18 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.workers.domains.with_raw_response.update(
+ account_id="",
+ environment="production",
+ hostname="foo.example.com",
+ service="foo",
+ zone_id="593c9c94de529bbbfaac7c53ced0447d",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -110,6 +122,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.workers.domains.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -147,6 +167,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.workers.domains.with_raw_response.delete(
+ "dbe10b4bc17c295377eabd600e1787fd",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
+ client.workers.domains.with_raw_response.delete(
+ "",
+ account_id="9a7806061c88ada191ed06f989cc3dac",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -184,6 +219,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.workers.domains.with_raw_response.get(
+ "dbe10b4bc17c295377eabd600e1787fd",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
+ client.workers.domains.with_raw_response.get(
+ "",
+ account_id="9a7806061c88ada191ed06f989cc3dac",
+ )
+
class TestAsyncDomains:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -234,6 +284,18 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.update(
+ account_id="",
+ environment="production",
+ hostname="foo.example.com",
+ service="foo",
+ zone_id="593c9c94de529bbbfaac7c53ced0447d",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -281,6 +343,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -318,6 +388,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.delete(
+ "dbe10b4bc17c295377eabd600e1787fd",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.delete(
+ "",
+ account_id="9a7806061c88ada191ed06f989cc3dac",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -354,3 +439,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(WorkersDomain, domain, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.get(
+ "dbe10b4bc17c295377eabd600e1787fd",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `domain_id` but received ''"):
+ await async_client.workers.domains.with_raw_response.get(
+ "",
+ account_id="9a7806061c88ada191ed06f989cc3dac",
+ )
diff --git a/tests/api_resources/zero_trust/access/test_bookmarks.py b/tests/api_resources/zero_trust/access/test_bookmarks.py
index 205a14be75b..6b59f35d527 100644
--- a/tests/api_resources/zero_trust/access/test_bookmarks.py
+++ b/tests/api_resources/zero_trust/access/test_bookmarks.py
@@ -57,6 +57,12 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ client.zero_trust.access.bookmarks.with_raw_response.create(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.create(
"",
@@ -103,6 +109,12 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ client.zero_trust.access.bookmarks.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.update(
"",
@@ -143,6 +155,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ client.zero_trust.access.bookmarks.with_raw_response.list(
+ "",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -183,6 +203,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ client.zero_trust.access.bookmarks.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.delete(
"",
@@ -229,6 +255,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ client.zero_trust.access.bookmarks.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
client.zero_trust.access.bookmarks.with_raw_response.get(
"",
@@ -279,6 +311,12 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ await async_client.zero_trust.access.bookmarks.with_raw_response.create(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.create(
"",
@@ -325,6 +363,12 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ await async_client.zero_trust.access.bookmarks.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.update(
"",
@@ -365,6 +409,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ await async_client.zero_trust.access.bookmarks.with_raw_response.list(
+ "",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -405,6 +457,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ await async_client.zero_trust.access.bookmarks.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.delete(
"",
@@ -451,6 +509,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `identifier` but received ''"):
+ await async_client.zero_trust.access.bookmarks.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ identifier="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `uuid` but received ''"):
await async_client.zero_trust.access.bookmarks.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py
index f195575de1d..2257cd23f41 100644
--- a/tests/api_resources/zero_trust/devices/policies/test_default_policy.py
+++ b/tests/api_resources/zero_trust/devices/policies/test_default_policy.py
@@ -51,6 +51,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.default_policy.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncDefaultPolicy:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -88,3 +96,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(Optional[DefaultPolicyGetResponse], default_policy, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.default_policy.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/zero_trust/devices/policies/test_excludes.py b/tests/api_resources/zero_trust/devices/policies/test_excludes.py
index bf3b07f28c5..489b9c52146 100644
--- a/tests/api_resources/zero_trust/devices/policies/test_excludes.py
+++ b/tests/api_resources/zero_trust/devices/policies/test_excludes.py
@@ -97,6 +97,28 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.excludes.with_raw_response.update(
+ account_id="",
+ body=[
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -131,6 +153,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.excludes.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -171,6 +201,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.excludes.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.excludes.with_raw_response.get(
"",
@@ -257,6 +293,28 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.excludes.with_raw_response.update(
+ account_id="",
+ body=[
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Exclude testing domains from the tunnel",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -291,6 +349,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.excludes.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -331,6 +397,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.excludes.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.excludes.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py
index b8a52e86854..539a25224c1 100644
--- a/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py
+++ b/tests/api_resources/zero_trust/devices/policies/test_fallback_domains.py
@@ -64,6 +64,13 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.fallback_domains.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ body=[{"suffix": "example.com"}, {"suffix": "example.com"}, {"suffix": "example.com"}],
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.fallback_domains.with_raw_response.update(
"",
@@ -105,6 +112,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.fallback_domains.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -145,6 +160,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.fallback_domains.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.fallback_domains.with_raw_response.get(
"",
@@ -198,6 +219,13 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.fallback_domains.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ body=[{"suffix": "example.com"}, {"suffix": "example.com"}, {"suffix": "example.com"}],
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.fallback_domains.with_raw_response.update(
"",
@@ -239,6 +267,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.fallback_domains.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -279,6 +315,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.fallback_domains.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.fallback_domains.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/policies/test_includes.py b/tests/api_resources/zero_trust/devices/policies/test_includes.py
index d4b07ed90fa..1a6e8a7f0a3 100644
--- a/tests/api_resources/zero_trust/devices/policies/test_includes.py
+++ b/tests/api_resources/zero_trust/devices/policies/test_includes.py
@@ -97,6 +97,28 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.includes.with_raw_response.update(
+ account_id="",
+ body=[
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -131,6 +153,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.includes.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -171,6 +201,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.includes.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.includes.with_raw_response.get(
"",
@@ -257,6 +293,28 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.includes.with_raw_response.update(
+ account_id="",
+ body=[
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ {
+ "address": "192.0.2.0/24",
+ "description": "Include testing domains from the tunnel",
+ },
+ ],
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -291,6 +349,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.includes.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -331,6 +397,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.includes.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.includes.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/posture/test_integrations.py b/tests/api_resources/zero_trust/devices/posture/test_integrations.py
index 42aa3ab2c29..9dda68a16d0 100644
--- a/tests/api_resources/zero_trust/devices/posture/test_integrations.py
+++ b/tests/api_resources/zero_trust/devices/posture/test_integrations.py
@@ -99,6 +99,23 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.integrations.with_raw_response.create(
+ account_id="",
+ config={
+ "api_url": "https://as123.awmdm.com/API",
+ "auth_url": "https://na.uemauth.vmwservices.com/connect/token",
+ "client_id": "example client id",
+ "client_secret": "example client secret",
+ },
+ interval="10m",
+ name="My Workspace One Integration",
+ type="workspace_one",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -133,6 +150,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.integrations.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -173,6 +198,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.integrations.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"",
@@ -237,6 +268,12 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.integrations.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
client.zero_trust.devices.posture.integrations.with_raw_response.edit(
"",
@@ -283,6 +320,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.integrations.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
client.zero_trust.devices.posture.integrations.with_raw_response.get(
"",
@@ -371,6 +414,23 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.integrations.with_raw_response.create(
+ account_id="",
+ config={
+ "api_url": "https://as123.awmdm.com/API",
+ "auth_url": "https://na.uemauth.vmwservices.com/connect/token",
+ "client_id": "example client id",
+ "client_secret": "example client secret",
+ },
+ interval="10m",
+ name="My Workspace One Integration",
+ type="workspace_one",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -405,6 +465,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.integrations.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -445,6 +513,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.integrations.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
await async_client.zero_trust.devices.posture.integrations.with_raw_response.delete(
"",
@@ -509,6 +583,12 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
@pytest.mark.skip()
@parametrize
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.integrations.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
await async_client.zero_trust.devices.posture.integrations.with_raw_response.edit(
"",
@@ -555,6 +635,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.integrations.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `integration_id` but received ''"):
await async_client.zero_trust.devices.posture.integrations.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_dex_tests.py b/tests/api_resources/zero_trust/devices/test_dex_tests.py
index 16fafad8430..f7f43db5432 100644
--- a/tests/api_resources/zero_trust/devices/test_dex_tests.py
+++ b/tests/api_resources/zero_trust/devices/test_dex_tests.py
@@ -84,6 +84,18 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.dex_tests.with_raw_response.create(
+ account_id="",
+ data={},
+ enabled=True,
+ interval="30m",
+ name="HTTP dash health check",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -154,6 +166,16 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.dex_tests.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ data={},
+ enabled=True,
+ interval="30m",
+ name="HTTP dash health check",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
client.zero_trust.devices.dex_tests.with_raw_response.update(
"",
@@ -198,6 +220,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.dex_tests.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -238,6 +268,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.dex_tests.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
client.zero_trust.devices.dex_tests.with_raw_response.delete(
"",
@@ -284,6 +320,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.dex_tests.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
client.zero_trust.devices.dex_tests.with_raw_response.get(
"",
@@ -357,6 +399,18 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.dex_tests.with_raw_response.create(
+ account_id="",
+ data={},
+ enabled=True,
+ interval="30m",
+ name="HTTP dash health check",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -427,6 +481,16 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.dex_tests.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ data={},
+ enabled=True,
+ interval="30m",
+ name="HTTP dash health check",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
await async_client.zero_trust.devices.dex_tests.with_raw_response.update(
"",
@@ -471,6 +535,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.dex_tests.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -511,6 +583,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.dex_tests.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
await async_client.zero_trust.devices.dex_tests.with_raw_response.delete(
"",
@@ -557,6 +635,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.dex_tests.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dex_test_id` but received ''"):
await async_client.zero_trust.devices.dex_tests.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_networks.py b/tests/api_resources/zero_trust/devices/test_networks.py
index f1e2b0e068e..4536cb5f799 100644
--- a/tests/api_resources/zero_trust/devices/test_networks.py
+++ b/tests/api_resources/zero_trust/devices/test_networks.py
@@ -78,6 +78,17 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.networks.with_raw_response.create(
+ account_id="",
+ config={"tls_sockaddr": "foo.bar:1234"},
+ name="managed-network-1",
+ type="tls",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -133,6 +144,12 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.networks.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
client.zero_trust.devices.networks.with_raw_response.update(
"",
@@ -173,6 +190,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.networks.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -213,6 +238,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.networks.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
client.zero_trust.devices.networks.with_raw_response.delete(
"",
@@ -259,6 +290,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.networks.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
client.zero_trust.devices.networks.with_raw_response.get(
"",
@@ -326,6 +363,17 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.networks.with_raw_response.create(
+ account_id="",
+ config={"tls_sockaddr": "foo.bar:1234"},
+ name="managed-network-1",
+ type="tls",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -381,6 +429,12 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.networks.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
await async_client.zero_trust.devices.networks.with_raw_response.update(
"",
@@ -421,6 +475,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.networks.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -461,6 +523,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.networks.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
await async_client.zero_trust.devices.networks.with_raw_response.delete(
"",
@@ -507,6 +575,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.networks.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `network_id` but received ''"):
await async_client.zero_trust.devices.networks.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_override_codes.py b/tests/api_resources/zero_trust/devices/test_override_codes.py
index 01e6a8cf977..dd12c6a6af2 100644
--- a/tests/api_resources/zero_trust/devices/test_override_codes.py
+++ b/tests/api_resources/zero_trust/devices/test_override_codes.py
@@ -57,6 +57,12 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.override_codes.with_raw_response.list(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `device_id` but received ''"):
client.zero_trust.devices.override_codes.with_raw_response.list(
"",
@@ -107,6 +113,12 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
@pytest.mark.skip()
@parametrize
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.override_codes.with_raw_response.list(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `device_id` but received ''"):
await async_client.zero_trust.devices.override_codes.with_raw_response.list(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_policies.py b/tests/api_resources/zero_trust/devices/test_policies.py
index 4b8cb91f28b..1d16b75f2c8 100644
--- a/tests/api_resources/zero_trust/devices/test_policies.py
+++ b/tests/api_resources/zero_trust/devices/test_policies.py
@@ -92,6 +92,17 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.with_raw_response.create(
+ account_id="",
+ match='user.identity == "test@cloudflare.com"',
+ name="Allow Developers",
+ precedence=100,
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -126,6 +137,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -166,6 +185,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.with_raw_response.delete(
"",
@@ -239,6 +264,12 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.with_raw_response.edit(
"",
@@ -285,6 +316,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.policies.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
client.zero_trust.devices.policies.with_raw_response.get(
"",
@@ -366,6 +403,17 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.with_raw_response.create(
+ account_id="",
+ match='user.identity == "test@cloudflare.com"',
+ name="Allow Developers",
+ precedence=100,
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -400,6 +448,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -440,6 +496,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.with_raw_response.delete(
"",
@@ -513,6 +575,12 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
@pytest.mark.skip()
@parametrize
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.with_raw_response.edit(
"",
@@ -559,6 +627,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.policies.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `policy_id` but received ''"):
await async_client.zero_trust.devices.policies.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_posture.py b/tests/api_resources/zero_trust/devices/test_posture.py
index ea96ccb3ee6..104cafc6bd3 100644
--- a/tests/api_resources/zero_trust/devices/test_posture.py
+++ b/tests/api_resources/zero_trust/devices/test_posture.py
@@ -82,6 +82,16 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.with_raw_response.create(
+ account_id="",
+ name="Admin Serial Numbers",
+ type="file",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -150,6 +160,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ name="Admin Serial Numbers",
+ type="file",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.devices.posture.with_raw_response.update(
"",
@@ -192,6 +210,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -232,6 +258,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.devices.posture.with_raw_response.delete(
"",
@@ -278,6 +310,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.posture.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.devices.posture.with_raw_response.get(
"",
@@ -349,6 +387,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.with_raw_response.create(
+ account_id="",
+ name="Admin Serial Numbers",
+ type="file",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -417,6 +465,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ name="Admin Serial Numbers",
+ type="file",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.devices.posture.with_raw_response.update(
"",
@@ -459,6 +515,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -499,6 +563,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.devices.posture.with_raw_response.delete(
"",
@@ -545,6 +615,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.posture.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.devices.posture.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/devices/test_revoke.py b/tests/api_resources/zero_trust/devices/test_revoke.py
index 0e651f48842..c31247f4e4b 100644
--- a/tests/api_resources/zero_trust/devices/test_revoke.py
+++ b/tests/api_resources/zero_trust/devices/test_revoke.py
@@ -66,6 +66,19 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.revoke.with_raw_response.create(
+ account_id="",
+ body=[
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ ],
+ )
+
class TestAsyncRevoke:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -118,3 +131,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.revoke.with_raw_response.create(
+ account_id="",
+ body=[
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ ],
+ )
diff --git a/tests/api_resources/zero_trust/devices/test_settings.py b/tests/api_resources/zero_trust/devices/test_settings.py
index a050d515ec1..34506294770 100644
--- a/tests/api_resources/zero_trust/devices/test_settings.py
+++ b/tests/api_resources/zero_trust/devices/test_settings.py
@@ -63,6 +63,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.settings.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -97,6 +105,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.settings.with_raw_response.list(
+ account_id="",
+ )
+
class TestAsyncSettings:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -147,6 +163,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.settings.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -180,3 +204,11 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert_matches_type(Optional[TeamsDevicesZeroTrustAccountDeviceSettings], setting, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.settings.with_raw_response.list(
+ account_id="",
+ )
diff --git a/tests/api_resources/zero_trust/devices/test_unrevoke.py b/tests/api_resources/zero_trust/devices/test_unrevoke.py
index 0fe68ea6d2b..17c702c7536 100644
--- a/tests/api_resources/zero_trust/devices/test_unrevoke.py
+++ b/tests/api_resources/zero_trust/devices/test_unrevoke.py
@@ -66,6 +66,19 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.unrevoke.with_raw_response.create(
+ account_id="",
+ body=[
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ ],
+ )
+
class TestAsyncUnrevoke:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -118,3 +131,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.unrevoke.with_raw_response.create(
+ account_id="",
+ body=[
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ ],
+ )
diff --git a/tests/api_resources/zero_trust/gateway/lists/test_items.py b/tests/api_resources/zero_trust/gateway/lists/test_items.py
index 6c5ac6d1f3e..897c1cd5eba 100644
--- a/tests/api_resources/zero_trust/gateway/lists/test_items.py
+++ b/tests/api_resources/zero_trust/gateway/lists/test_items.py
@@ -57,6 +57,12 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.items.with_raw_response.list(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.items.with_raw_response.list(
"",
@@ -107,6 +113,12 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
@pytest.mark.skip()
@parametrize
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.items.with_raw_response.list(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.items.with_raw_response.list(
"",
diff --git a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py
index 615e26c13b2..41131b5b655 100644
--- a/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py
+++ b/tests/api_resources/zero_trust/gateway/test_audit_ssh_settings.py
@@ -64,6 +64,15 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.audit_ssh_settings.with_raw_response.update(
+ account_id="",
+ public_key="1pyl6I1tL7xfJuFYVzXlUW8uXXlpxegHXBzGCBKaSFA=",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -98,6 +107,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.audit_ssh_settings.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncAuditSSHSettings:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -149,6 +166,15 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.audit_ssh_settings.with_raw_response.update(
+ account_id="",
+ public_key="1pyl6I1tL7xfJuFYVzXlUW8uXXlpxegHXBzGCBKaSFA=",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -182,3 +208,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(ZeroTrustGatewaySettings, audit_ssh_setting, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.audit_ssh_settings.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/zero_trust/gateway/test_configurations.py b/tests/api_resources/zero_trust/gateway/test_configurations.py
index 719f7ef9c59..1f722987759 100644
--- a/tests/api_resources/zero_trust/gateway/test_configurations.py
+++ b/tests/api_resources/zero_trust/gateway/test_configurations.py
@@ -100,6 +100,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.configurations.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -179,6 +187,14 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.configurations.with_raw_response.edit(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -213,6 +229,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.configurations.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncConfigurations:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -296,6 +320,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.configurations.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -375,6 +407,14 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.configurations.with_raw_response.edit(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -408,3 +448,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(ConfigurationGetResponse, configuration, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.configurations.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py
index 3debb7eda90..93252fb2077 100644
--- a/tests/api_resources/zero_trust/gateway/test_lists.py
+++ b/tests/api_resources/zero_trust/gateway/test_lists.py
@@ -74,6 +74,16 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.create(
+ account_id="",
+ name="Admin Serial Numbers",
+ type="SERIAL",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -128,6 +138,13 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ name="Admin Serial Numbers",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.with_raw_response.update(
"",
@@ -169,6 +186,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -209,6 +234,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.with_raw_response.delete(
"",
@@ -266,6 +297,12 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.with_raw_response.edit(
"",
@@ -312,6 +349,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.lists.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
client.zero_trust.gateway.lists.with_raw_response.get(
"",
@@ -374,6 +417,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.create(
+ account_id="",
+ name="Admin Serial Numbers",
+ type="SERIAL",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -428,6 +481,13 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ name="Admin Serial Numbers",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.with_raw_response.update(
"",
@@ -469,6 +529,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -509,6 +577,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.with_raw_response.delete(
"",
@@ -566,6 +640,12 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
@pytest.mark.skip()
@parametrize
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.edit(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.with_raw_response.edit(
"",
@@ -612,6 +692,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.lists.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"):
await async_client.zero_trust.gateway.lists.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/gateway/test_locations.py b/tests/api_resources/zero_trust/gateway/test_locations.py
index 79bd36dcc14..eac3bc084ca 100644
--- a/tests/api_resources/zero_trust/gateway/test_locations.py
+++ b/tests/api_resources/zero_trust/gateway/test_locations.py
@@ -70,6 +70,15 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.create(
+ account_id="",
+ name="Austin Office Location",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -123,6 +132,23 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.update(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ name="Austin Office Location",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.update(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ name="Austin Office Location",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -157,6 +183,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -194,6 +228,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.delete(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.delete(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -231,6 +280,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.get(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ client.zero_trust.gateway.locations.with_raw_response.get(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
class TestAsyncLocations:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -284,6 +348,15 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.create(
+ account_id="",
+ name="Austin Office Location",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -337,6 +410,23 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.update(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ name="Austin Office Location",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.update(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ name="Austin Office Location",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -371,6 +461,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -408,6 +506,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.delete(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.delete(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -444,3 +557,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(ZeroTrustGatewayLocations, location, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.get(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `location_id` but received ''"):
+ await async_client.zero_trust.gateway.locations.with_raw_response.get(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
diff --git a/tests/api_resources/zero_trust/gateway/test_logging.py b/tests/api_resources/zero_trust/gateway/test_logging.py
index ca04bcfd8ca..605aea4d2f0 100644
--- a/tests/api_resources/zero_trust/gateway/test_logging.py
+++ b/tests/api_resources/zero_trust/gateway/test_logging.py
@@ -65,6 +65,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.logging.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -99,6 +107,14 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.logging.with_raw_response.get(
+ account_id="",
+ )
+
class TestAsyncLogging:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -151,6 +167,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.logging.with_raw_response.update(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -184,3 +208,11 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(ZeroTrustGatewayGatewayAccountLoggingSettings, logging, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.logging.with_raw_response.get(
+ account_id="",
+ )
diff --git a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
index 6bc3032ec20..4165f99f68e 100644
--- a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
+++ b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
@@ -72,6 +72,16 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.create(
+ account_id="",
+ ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
+ name="Devops team",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -106,6 +116,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -143,6 +161,21 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
@@ -192,6 +225,21 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.edit(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.edit(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -229,6 +277,21 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.get(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ client.zero_trust.gateway.proxy_endpoints.with_raw_response.get(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
class TestAsyncProxyEndpoints:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -284,6 +347,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.create(
+ account_id="",
+ ips=["192.0.2.1/32", "192.0.2.1/32", "192.0.2.1/32"],
+ name="Devops team",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -318,6 +391,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -355,6 +436,21 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.delete(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@@ -404,6 +500,21 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.edit(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.edit(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -440,3 +551,18 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert_matches_type(ZeroTrustGatewayProxyEndpoints, proxy_endpoint, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.get(
+ "ed35569b41ce4d1facfe683550f54086",
+ account_id="",
+ )
+
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `proxy_endpoint_id` but received ''"):
+ await async_client.zero_trust.gateway.proxy_endpoints.with_raw_response.get(
+ "",
+ account_id="699d98642c564d2e855e9661899b7252",
+ )
diff --git a/tests/api_resources/zero_trust/gateway/test_rules.py b/tests/api_resources/zero_trust/gateway/test_rules.py
index 22386143f97..0855ed25352 100644
--- a/tests/api_resources/zero_trust/gateway/test_rules.py
+++ b/tests/api_resources/zero_trust/gateway/test_rules.py
@@ -174,6 +174,16 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.rules.with_raw_response.create(
+ account_id="",
+ action="allow",
+ name="block bad websites",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
@@ -334,6 +344,14 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_update(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.rules.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ action="allow",
+ name="block bad websites",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.gateway.rules.with_raw_response.update(
"",
@@ -376,6 +394,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.rules.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
@@ -416,6 +442,12 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_delete(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.rules.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.gateway.rules.with_raw_response.delete(
"",
@@ -462,6 +494,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.rules.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
client.zero_trust.gateway.rules.with_raw_response.get(
"",
@@ -625,6 +663,16 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.rules.with_raw_response.create(
+ account_id="",
+ action="allow",
+ name="block bad websites",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
@@ -785,6 +833,14 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.rules.with_raw_response.update(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ action="allow",
+ name="block bad websites",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.gateway.rules.with_raw_response.update(
"",
@@ -827,6 +883,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.rules.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
@@ -867,6 +931,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
@pytest.mark.skip()
@parametrize
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.rules.with_raw_response.delete(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.gateway.rules.with_raw_response.delete(
"",
@@ -913,6 +983,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.rules.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"):
await async_client.zero_trust.gateway.rules.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/test_devices.py b/tests/api_resources/zero_trust/test_devices.py
index 881cd2080f8..4906f8a07c7 100644
--- a/tests/api_resources/zero_trust/test_devices.py
+++ b/tests/api_resources/zero_trust/test_devices.py
@@ -51,6 +51,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -91,6 +99,12 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
@pytest.mark.skip()
@parametrize
def test_path_params_get(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.devices.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `device_id` but received ''"):
client.zero_trust.devices.with_raw_response.get(
"",
@@ -135,6 +149,14 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.with_raw_response.list(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
@@ -175,6 +197,12 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.devices.with_raw_response.get(
+ "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
+ account_id="",
+ )
+
with pytest.raises(ValueError, match=r"Expected a non-empty value for `device_id` but received ''"):
await async_client.zero_trust.devices.with_raw_response.get(
"",
diff --git a/tests/api_resources/zero_trust/test_gateway.py b/tests/api_resources/zero_trust/test_gateway.py
index a46ba0ba63f..30d75733653 100644
--- a/tests/api_resources/zero_trust/test_gateway.py
+++ b/tests/api_resources/zero_trust/test_gateway.py
@@ -51,6 +51,14 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_create(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
@@ -85,6 +93,14 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ def test_path_params_list(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ client.zero_trust.gateway.with_raw_response.list(
+ account_id="",
+ )
+
class TestAsyncGateway:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -123,6 +139,14 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.with_raw_response.create(
+ account_id="",
+ )
+
@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
@@ -156,3 +180,11 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert_matches_type(GatewayListResponse, gateway, path=["response"])
assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip()
+ @parametrize
+ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
+ await async_client.zero_trust.gateway.with_raw_response.list(
+ account_id="",
+ )