diff --git a/.stats.yml b/.stats.yml
index 4adf56b17c9..16a424f6b23 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 1488
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec93436d15bbd89482ee65b633607110b8dda7c4955138041022dbf71a0c0cfb.yml
+configured_endpoints: 1490
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-403275b7baabda647cf36b6e08211b6ea4aa63c6b547124bbc0eb377330f623a.yml
diff --git a/api.md b/api.md
index 321ffaf3733..e37f2fa9403 100644
--- a/api.md
+++ b/api.md
@@ -7804,11 +7804,15 @@ Methods:
Types:
```python
-from cloudflare.types.origin_post_quantum_encryption import OriginPostQuantumEncryptionGetResponse
+from cloudflare.types.origin_post_quantum_encryption import (
+ OriginPostQuantumEncryptionEditResponse,
+ OriginPostQuantumEncryptionGetResponse,
+)
```
Methods:
+- client.origin_post_quantum_encryption.edit(\*, zone_id, \*\*params) -> Optional[OriginPostQuantumEncryptionEditResponse]
- client.origin_post_quantum_encryption.get(\*, zone_id) -> Optional[OriginPostQuantumEncryptionGetResponse]
# Speed
@@ -8484,6 +8488,18 @@ Methods:
- client.content_scanning.settings.get(\*, zone_id) -> SettingGetResponse
+# AbuseReports
+
+Types:
+
+```python
+from cloudflare.types.abuse_reports import AbuseReportCreateResponse
+```
+
+Methods:
+
+- client.abuse_reports.create(report_type, \*, account_id, \*\*params) -> str
+
# AI
Types:
diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py
index 0a874fee17f..f48b5ae2359 100644
--- a/src/cloudflare/_client.py
+++ b/src/cloudflare/_client.py
@@ -92,6 +92,7 @@
dns_firewall,
healthchecks,
security_txt,
+ abuse_reports,
email_routing,
magic_transit,
waiting_rooms,
@@ -150,6 +151,7 @@
from .resources.speed.speed import SpeedResource, AsyncSpeedResource
from .resources.zones.zones import ZonesResource, AsyncZonesResource
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
+ from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
from .resources.images.images import ImagesResource, AsyncImagesResource
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
from .resources.stream.stream import StreamResource, AsyncStreamResource
@@ -818,6 +820,12 @@ def content_scanning(self) -> ContentScanningResource:
return ContentScanningResource(self)
+ @cached_property
+ def abuse_reports(self) -> AbuseReportsResource:
+ from .resources.abuse_reports import AbuseReportsResource
+
+ return AbuseReportsResource(self)
+
@cached_property
def ai(self) -> AIResource:
from .resources.ai import AIResource
@@ -1583,6 +1591,12 @@ def content_scanning(self) -> AsyncContentScanningResource:
return AsyncContentScanningResource(self)
+ @cached_property
+ def abuse_reports(self) -> AsyncAbuseReportsResource:
+ from .resources.abuse_reports import AsyncAbuseReportsResource
+
+ return AsyncAbuseReportsResource(self)
+
@cached_property
def ai(self) -> AsyncAIResource:
from .resources.ai import AsyncAIResource
@@ -2283,6 +2297,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes
return ContentScanningResourceWithRawResponse(self._client.content_scanning)
+ @cached_property
+ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
+ from .resources.abuse_reports import AbuseReportsResourceWithRawResponse
+
+ return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
+
@cached_property
def ai(self) -> ai.AIResourceWithRawResponse:
from .resources.ai import AIResourceWithRawResponse
@@ -2802,6 +2822,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR
return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)
+ @cached_property
+ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
+ from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse
+
+ return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
+
@cached_property
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
from .resources.ai import AsyncAIResourceWithRawResponse
@@ -3321,6 +3347,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream
return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)
+ @cached_property
+ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
+ from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse
+
+ return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
+
@cached_property
def ai(self) -> ai.AIResourceWithStreamingResponse:
from .resources.ai import AIResourceWithStreamingResponse
@@ -3850,6 +3882,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS
return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)
+ @cached_property
+ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
+ from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse
+
+ return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
+
@cached_property
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
from .resources.ai import AsyncAIResourceWithStreamingResponse
diff --git a/src/cloudflare/resources/abuse_reports.py b/src/cloudflare/resources/abuse_reports.py
new file mode 100644
index 00000000000..45241233b4a
--- /dev/null
+++ b/src/cloudflare/resources/abuse_reports.py
@@ -0,0 +1,492 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing import Type, cast
+from typing_extensions import Literal
+
+import httpx
+
+from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from .._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
+from .._compat import cached_property
+from .._resource import SyncAPIResource, AsyncAPIResource
+from .._response import (
+ to_raw_response_wrapper,
+ to_streamed_response_wrapper,
+ async_to_raw_response_wrapper,
+ async_to_streamed_response_wrapper,
+)
+from .._wrappers import ResultWrapper
+from .._base_client import make_request_options
+from ..types.abuse_reports import abuse_report_create_params
+from ..types.abuse_reports.abuse_report_create_response import AbuseReportCreateResponse
+
+__all__ = ["AbuseReportsResource", "AsyncAbuseReportsResource"]
+
+
+class AbuseReportsResource(SyncAPIResource):
+ @cached_property
+ def with_raw_response(self) -> AbuseReportsResourceWithRawResponse:
+ """
+ This property can be used as a prefix for any HTTP method call to return the
+ the raw response object instead of the parsed content.
+
+ For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
+ """
+ return AbuseReportsResourceWithRawResponse(self)
+
+ @cached_property
+ def with_streaming_response(self) -> AbuseReportsResourceWithStreamingResponse:
+ """
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
+
+ For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
+ """
+ return AbuseReportsResourceWithStreamingResponse(self)
+
+ def create(
+ self,
+ report_type: Literal[
+ "abuse_dmca",
+ "abuse_trademark",
+ "abuse_general",
+ "abuse_phishing",
+ "abuse_children",
+ "abuse_threat",
+ "abuse_registrar_whois",
+ "abuse_ncsei",
+ ],
+ *,
+ account_id: str,
+ act: Literal[
+ "abuse_dmca",
+ "abuse_trademark",
+ "abuse_general",
+ "abuse_phishing",
+ "abuse_children",
+ "abuse_threat",
+ "abuse_registrar_whois",
+ "abuse_ncsei",
+ ],
+ email: str,
+ email2: str,
+ host_notification: Literal["send", "send-anon", "none"],
+ ncmec_notification: Literal["send", "send-anon", "none"],
+ owner_notification: Literal["send", "send-anon", "none"],
+ urls: str,
+ address1: str | NotGiven = NOT_GIVEN,
+ agent_name: str | NotGiven = NOT_GIVEN,
+ agree: Literal[0, 1] | NotGiven = NOT_GIVEN,
+ city: str | NotGiven = NOT_GIVEN,
+ comments: str | NotGiven = NOT_GIVEN,
+ company: str | NotGiven = NOT_GIVEN,
+ country: str | NotGiven = NOT_GIVEN,
+ destination_ips: str | NotGiven = NOT_GIVEN,
+ justification: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ ncsei_subject_representation: bool | NotGiven = NOT_GIVEN,
+ original_work: str | NotGiven = NOT_GIVEN,
+ ports_protocols: str | NotGiven = NOT_GIVEN,
+ signature: str | NotGiven = NOT_GIVEN,
+ source_ips: str | NotGiven = NOT_GIVEN,
+ state: str | NotGiven = NOT_GIVEN,
+ tele: str | NotGiven = NOT_GIVEN,
+ title: str | NotGiven = NOT_GIVEN,
+ trademark_number: str | NotGiven = NOT_GIVEN,
+ trademark_office: str | NotGiven = NOT_GIVEN,
+ trademark_symbol: str | NotGiven = NOT_GIVEN,
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
+ # The extra values given here take precedence over values defined on the client or passed to this method.
+ extra_headers: Headers | None = None,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> str:
+ """
+ Submit the Abuse Report of a particular type
+
+ Args:
+ report_type: The abuse report type
+
+ act: The abuse report type
+
+ email: A valid email of the abuse reporter
+
+ email2: Should match the value provided in `email`
+
+ host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs
+ should not exceed 250 URLs. All URLs should have the same hostname. Each URL
+ should be unique
+
+ address1: Text not exceeding 100 characters
+
+ agent_name: The name of the copyright holder. Text not exceeding 60 characters.
+
+ agree: Can be 0 or 1
+
+ city: Text not exceeding 255 characters
+
+ comments: Any additional comments about the infringement not exceeding 2000 characters
+
+ company: Text not exceeding 100 characters
+
+ country: Text not exceeding 255 characters
+
+ destination_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of
+ destination IPs should not exceed 30 IP addresses. Each one of the IP addresses
+ ought to be unique
+
+ justification: A detailed description of the infringement, including any necessary access
+ details and the exact steps needed to view the content, not exceeding 5000
+ characters
+
+ name: Text not exceeding 255 characters
+
+ ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report
+
+ original_work: Text not exceeding 255 characters
+
+ ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total
+ size of the field should not exceed 2000 characters. Each individual
+ port/protocol should not exceed 100 characters. The list should not have more
+ than 30 unique ports and protocols.
+
+ signature: Required for DMCA reports, should be same as Name. An affirmation that all
+ information in the report is true and accurate while agreeing to the policies of
+ Cloudflare's abuse reports
+
+ source_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of source
+ IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be
+ unique
+
+ state: Text not exceeding 255 characters
+
+ tele: Text not exceeding 20 characters
+
+ title: Text not exceeding 255 characters
+
+ trademark_number: Text not exceeding 1000 characters
+
+ trademark_office: Text not exceeding 1000 characters
+
+ trademark_symbol: Text not exceeding 1000 characters
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
+ """
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not report_type:
+ raise ValueError(f"Expected a non-empty value for `report_type` but received {report_type!r}")
+ return self._post(
+ f"/accounts/{account_id}/v1/abuse-reports/{report_type}",
+ body=maybe_transform(
+ {
+ "act": act,
+ "email": email,
+ "email2": email2,
+ "host_notification": host_notification,
+ "ncmec_notification": ncmec_notification,
+ "owner_notification": owner_notification,
+ "urls": urls,
+ "address1": address1,
+ "agent_name": agent_name,
+ "agree": agree,
+ "city": city,
+ "comments": comments,
+ "company": company,
+ "country": country,
+ "destination_ips": destination_ips,
+ "justification": justification,
+ "name": name,
+ "ncsei_subject_representation": ncsei_subject_representation,
+ "original_work": original_work,
+ "ports_protocols": ports_protocols,
+ "signature": signature,
+ "source_ips": source_ips,
+ "state": state,
+ "tele": tele,
+ "title": title,
+ "trademark_number": trademark_number,
+ "trademark_office": trademark_office,
+ "trademark_symbol": trademark_symbol,
+ },
+ abuse_report_create_params.AbuseReportCreateParams,
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ post_parser=ResultWrapper[AbuseReportCreateResponse]._unwrapper,
+ ),
+ cast_to=cast(Type[str], ResultWrapper[str]),
+ )
+
+
+class AsyncAbuseReportsResource(AsyncAPIResource):
+ @cached_property
+ def with_raw_response(self) -> AsyncAbuseReportsResourceWithRawResponse:
+ """
+ This property can be used as a prefix for any HTTP method call to return the
+ the raw response object instead of the parsed content.
+
+ For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
+ """
+ return AsyncAbuseReportsResourceWithRawResponse(self)
+
+ @cached_property
+ def with_streaming_response(self) -> AsyncAbuseReportsResourceWithStreamingResponse:
+ """
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
+
+ For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
+ """
+ return AsyncAbuseReportsResourceWithStreamingResponse(self)
+
+ async def create(
+ self,
+ report_type: Literal[
+ "abuse_dmca",
+ "abuse_trademark",
+ "abuse_general",
+ "abuse_phishing",
+ "abuse_children",
+ "abuse_threat",
+ "abuse_registrar_whois",
+ "abuse_ncsei",
+ ],
+ *,
+ account_id: str,
+ act: Literal[
+ "abuse_dmca",
+ "abuse_trademark",
+ "abuse_general",
+ "abuse_phishing",
+ "abuse_children",
+ "abuse_threat",
+ "abuse_registrar_whois",
+ "abuse_ncsei",
+ ],
+ email: str,
+ email2: str,
+ host_notification: Literal["send", "send-anon", "none"],
+ ncmec_notification: Literal["send", "send-anon", "none"],
+ owner_notification: Literal["send", "send-anon", "none"],
+ urls: str,
+ address1: str | NotGiven = NOT_GIVEN,
+ agent_name: str | NotGiven = NOT_GIVEN,
+ agree: Literal[0, 1] | NotGiven = NOT_GIVEN,
+ city: str | NotGiven = NOT_GIVEN,
+ comments: str | NotGiven = NOT_GIVEN,
+ company: str | NotGiven = NOT_GIVEN,
+ country: str | NotGiven = NOT_GIVEN,
+ destination_ips: str | NotGiven = NOT_GIVEN,
+ justification: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ ncsei_subject_representation: bool | NotGiven = NOT_GIVEN,
+ original_work: str | NotGiven = NOT_GIVEN,
+ ports_protocols: str | NotGiven = NOT_GIVEN,
+ signature: str | NotGiven = NOT_GIVEN,
+ source_ips: str | NotGiven = NOT_GIVEN,
+ state: str | NotGiven = NOT_GIVEN,
+ tele: str | NotGiven = NOT_GIVEN,
+ title: str | NotGiven = NOT_GIVEN,
+ trademark_number: str | NotGiven = NOT_GIVEN,
+ trademark_office: str | NotGiven = NOT_GIVEN,
+ trademark_symbol: str | NotGiven = NOT_GIVEN,
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
+ # The extra values given here take precedence over values defined on the client or passed to this method.
+ extra_headers: Headers | None = None,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> str:
+ """
+ Submit the Abuse Report of a particular type
+
+ Args:
+ report_type: The abuse report type
+
+ act: The abuse report type
+
+ email: A valid email of the abuse reporter
+
+ email2: Should match the value provided in `email`
+
+ host_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ ncmec_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ owner_notification: Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark
+ reports cannot be anonymous.
+
+ urls: A list of valid URLs separated by ‘ ’ (new line character). The list of the URLs
+ should not exceed 250 URLs. All URLs should have the same hostname. Each URL
+ should be unique
+
+ address1: Text not exceeding 100 characters
+
+ agent_name: The name of the copyright holder. Text not exceeding 60 characters.
+
+ agree: Can be 0 or 1
+
+ city: Text not exceeding 255 characters
+
+ comments: Any additional comments about the infringement not exceeding 2000 characters
+
+ company: Text not exceeding 100 characters
+
+ country: Text not exceeding 255 characters
+
+ destination_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of
+ destination IPs should not exceed 30 IP addresses. Each one of the IP addresses
+ ought to be unique
+
+ justification: A detailed description of the infringement, including any necessary access
+ details and the exact steps needed to view the content, not exceeding 5000
+ characters
+
+ name: Text not exceeding 255 characters
+
+ ncsei_subject_representation: If the submitter is the target of NCSEI in the URLs of the abuse report
+
+ original_work: Text not exceeding 255 characters
+
+ ports_protocols: A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total
+ size of the field should not exceed 2000 characters. Each individual
+ port/protocol should not exceed 100 characters. The list should not have more
+ than 30 unique ports and protocols.
+
+ signature: Required for DMCA reports, should be same as Name. An affirmation that all
+ information in the report is true and accurate while agreeing to the policies of
+ Cloudflare's abuse reports
+
+ source_ips: A list of IP addresses separated by ‘ ’ (new line character). The list of source
+ IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be
+ unique
+
+ state: Text not exceeding 255 characters
+
+ tele: Text not exceeding 20 characters
+
+ title: Text not exceeding 255 characters
+
+ trademark_number: Text not exceeding 1000 characters
+
+ trademark_office: Text not exceeding 1000 characters
+
+ trademark_symbol: Text not exceeding 1000 characters
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
+ """
+ if not account_id:
+ raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ if not report_type:
+ raise ValueError(f"Expected a non-empty value for `report_type` but received {report_type!r}")
+ return await self._post(
+ f"/accounts/{account_id}/v1/abuse-reports/{report_type}",
+ body=await async_maybe_transform(
+ {
+ "act": act,
+ "email": email,
+ "email2": email2,
+ "host_notification": host_notification,
+ "ncmec_notification": ncmec_notification,
+ "owner_notification": owner_notification,
+ "urls": urls,
+ "address1": address1,
+ "agent_name": agent_name,
+ "agree": agree,
+ "city": city,
+ "comments": comments,
+ "company": company,
+ "country": country,
+ "destination_ips": destination_ips,
+ "justification": justification,
+ "name": name,
+ "ncsei_subject_representation": ncsei_subject_representation,
+ "original_work": original_work,
+ "ports_protocols": ports_protocols,
+ "signature": signature,
+ "source_ips": source_ips,
+ "state": state,
+ "tele": tele,
+ "title": title,
+ "trademark_number": trademark_number,
+ "trademark_office": trademark_office,
+ "trademark_symbol": trademark_symbol,
+ },
+ abuse_report_create_params.AbuseReportCreateParams,
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ post_parser=ResultWrapper[AbuseReportCreateResponse]._unwrapper,
+ ),
+ cast_to=cast(Type[str], ResultWrapper[str]),
+ )
+
+
+class AbuseReportsResourceWithRawResponse:
+ def __init__(self, abuse_reports: AbuseReportsResource) -> None:
+ self._abuse_reports = abuse_reports
+
+ self.create = to_raw_response_wrapper(
+ abuse_reports.create,
+ )
+
+
+class AsyncAbuseReportsResourceWithRawResponse:
+ def __init__(self, abuse_reports: AsyncAbuseReportsResource) -> None:
+ self._abuse_reports = abuse_reports
+
+ self.create = async_to_raw_response_wrapper(
+ abuse_reports.create,
+ )
+
+
+class AbuseReportsResourceWithStreamingResponse:
+ def __init__(self, abuse_reports: AbuseReportsResource) -> None:
+ self._abuse_reports = abuse_reports
+
+ self.create = to_streamed_response_wrapper(
+ abuse_reports.create,
+ )
+
+
+class AsyncAbuseReportsResourceWithStreamingResponse:
+ def __init__(self, abuse_reports: AsyncAbuseReportsResource) -> None:
+ self._abuse_reports = abuse_reports
+
+ self.create = async_to_streamed_response_wrapper(
+ abuse_reports.create,
+ )
diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py
index a5279ff240c..38533ca9ce1 100644
--- a/src/cloudflare/resources/addressing/address_maps/accounts.py
+++ b/src/cloudflare/resources/addressing/address_maps/accounts.py
@@ -62,9 +62,9 @@ def update(
Add an account as a member of a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -103,9 +103,9 @@ def delete(
Remove an account as a member of a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -165,9 +165,9 @@ async def update(
Add an account as a member of a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -206,9 +206,9 @@ async def delete(
Remove an account as a member of a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py
index b3a6fda77c9..34106c3241e 100644
--- a/src/cloudflare/resources/addressing/address_maps/address_maps.py
+++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py
@@ -106,7 +106,7 @@ def create(
Create a new address map under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
description: An optional description field which may be used to describe the types of IPs or
zones on the map.
@@ -163,7 +163,7 @@ def list(
List all address maps owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
@@ -202,9 +202,9 @@ def delete(
disabled before it can be deleted.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -245,9 +245,9 @@ def edit(
Modify properties of an address map owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
default_sni: If you have legacy TLS clients which do not send the TLS server name indicator,
then you can specify one default SNI on the map. If Cloudflare receives a TLS
@@ -309,9 +309,9 @@ def get(
Show a particular address map owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -389,7 +389,7 @@ async def create(
Create a new address map under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
description: An optional description field which may be used to describe the types of IPs or
zones on the map.
@@ -446,7 +446,7 @@ def list(
List all address maps owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
@@ -485,9 +485,9 @@ async def delete(
disabled before it can be deleted.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -528,9 +528,9 @@ async def edit(
Modify properties of an address map owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
default_sni: If you have legacy TLS clients which do not send the TLS server name indicator,
then you can specify one default SNI on the map. If Cloudflare receives a TLS
@@ -592,9 +592,9 @@ async def get(
Show a particular address map owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py
index 15c999ab654..77e0d36e133 100644
--- a/src/cloudflare/resources/addressing/address_maps/ips.py
+++ b/src/cloudflare/resources/addressing/address_maps/ips.py
@@ -63,9 +63,9 @@ def update(
Add an IP from a prefix owned by the account to a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
ip_address: An IPv4 or IPv6 address.
@@ -109,9 +109,9 @@ def delete(
Remove an IP from a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
ip_address: An IPv4 or IPv6 address.
@@ -176,9 +176,9 @@ async def update(
Add an IP from a prefix owned by the account to a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
ip_address: An IPv4 or IPv6 address.
@@ -222,9 +222,9 @@ async def delete(
Remove an IP from a particular address map.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
ip_address: An IPv4 or IPv6 address.
diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py
index d7f859f2617..f2a68645e31 100644
--- a/src/cloudflare/resources/addressing/address_maps/zones.py
+++ b/src/cloudflare/resources/addressing/address_maps/zones.py
@@ -63,11 +63,11 @@ def update(
Add a zone as a member of a particular address map.
Args:
- zone_id: Identifier of a zone.
+ zone_id: Identifier
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -109,11 +109,11 @@ def delete(
Remove a zone as a member of a particular address map.
Args:
- zone_id: Identifier of a zone.
+ zone_id: Identifier
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -176,11 +176,11 @@ async def update(
Add a zone as a member of a particular address map.
Args:
- zone_id: Identifier of a zone.
+ zone_id: Identifier
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
@@ -222,11 +222,11 @@ async def delete(
Remove a zone as a member of a particular address map.
Args:
- zone_id: Identifier of a zone.
+ zone_id: Identifier
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- address_map_id: Identifier of an Address Map.
+ address_map_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/loa_documents.py b/src/cloudflare/resources/addressing/loa_documents.py
index c4db454b8c2..10fef943718 100644
--- a/src/cloudflare/resources/addressing/loa_documents.py
+++ b/src/cloudflare/resources/addressing/loa_documents.py
@@ -71,7 +71,7 @@ def create(
Submit LOA document (pdf format) under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
loa_document: LOA document to upload.
@@ -118,7 +118,7 @@ def get(
Download specified LOA document under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
loa_document_id: Identifier for the uploaded LOA document.
@@ -180,7 +180,7 @@ async def create(
Submit LOA document (pdf format) under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
loa_document: LOA document to upload.
@@ -229,7 +229,7 @@ async def get(
Download specified LOA document under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
loa_document_id: Identifier for the uploaded LOA document.
diff --git a/src/cloudflare/resources/addressing/prefixes/advertisement_status.py b/src/cloudflare/resources/addressing/prefixes/advertisement_status.py
index 4ca0b677f15..4253a22570e 100644
--- a/src/cloudflare/resources/addressing/prefixes/advertisement_status.py
+++ b/src/cloudflare/resources/addressing/prefixes/advertisement_status.py
@@ -62,18 +62,14 @@ def edit(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[AdvertisementStatusEditResponse]:
"""
- Advertise or withdraw the BGP route for a prefix.
-
- **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for
- advertising and withdrawing subnets of an IP prefix.
+ Advertise or withdraw BGP route for a prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- advertised: Advertisement status of the prefix. If `true`, the BGP route for the prefix is
- advertised to the Internet. If `false`, the BGP route is withdrawn.
+ advertised: Enablement of prefix advertisement to the Internet.
extra_headers: Send extra headers
@@ -117,15 +113,12 @@ def get(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[AdvertisementStatusGetResponse]:
"""
- View the current advertisement state for a prefix.
-
- **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for
- advertising and withdrawing subnets of an IP prefix.
+ List the current advertisement state for a prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -186,18 +179,14 @@ async def edit(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[AdvertisementStatusEditResponse]:
"""
- Advertise or withdraw the BGP route for a prefix.
-
- **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for
- advertising and withdrawing subnets of an IP prefix.
+ Advertise or withdraw BGP route for a prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- advertised: Advertisement status of the prefix. If `true`, the BGP route for the prefix is
- advertised to the Internet. If `false`, the BGP route is withdrawn.
+ advertised: Enablement of prefix advertisement to the Internet.
extra_headers: Send extra headers
@@ -241,15 +230,12 @@ async def get(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[AdvertisementStatusGetResponse]:
"""
- View the current advertisement state for a prefix.
-
- **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for
- advertising and withdrawing subnets of an IP prefix.
+ List the current advertisement state for a prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py b/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py
index 3f65acd83ad..ecd6a70e261 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp_prefixes.py
@@ -67,9 +67,9 @@ def create(
advertised with the Update BGP Prefix API.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
@@ -118,9 +118,9 @@ def list(
Prefixes.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -162,11 +162,11 @@ def edit(
status (advertised or withdrawn).
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- bgp_prefix_id: Identifier of BGP Prefix.
+ bgp_prefix_id: Identifier
extra_headers: Send extra headers
@@ -212,11 +212,11 @@ def get(
Retrieve a single BGP Prefix according to its identifier
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- bgp_prefix_id: Identifier of BGP Prefix.
+ bgp_prefix_id: Identifier
extra_headers: Send extra headers
@@ -284,9 +284,9 @@ async def create(
advertised with the Update BGP Prefix API.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
@@ -335,9 +335,9 @@ def list(
Prefixes.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -379,11 +379,11 @@ async def edit(
status (advertised or withdrawn).
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- bgp_prefix_id: Identifier of BGP Prefix.
+ bgp_prefix_id: Identifier
extra_headers: Send extra headers
@@ -429,11 +429,11 @@ async def get(
Retrieve a single BGP Prefix according to its identifier
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- bgp_prefix_id: Identifier of BGP Prefix.
+ bgp_prefix_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/prefixes/delegations.py b/src/cloudflare/resources/addressing/prefixes/delegations.py
index 93870db9319..b35f31a2893 100644
--- a/src/cloudflare/resources/addressing/prefixes/delegations.py
+++ b/src/cloudflare/resources/addressing/prefixes/delegations.py
@@ -67,9 +67,9 @@ def create(
Create a new account delegation for a given IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
@@ -122,9 +122,9 @@ def list(
List all delegations for a given account IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -164,11 +164,11 @@ def delete(
Delete an account delegation for a given IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- delegation_id: Identifier of a Delegation.
+ delegation_id: Delegation identifier tag.
extra_headers: Send extra headers
@@ -235,9 +235,9 @@ async def create(
Create a new account delegation for a given IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
@@ -290,9 +290,9 @@ def list(
List all delegations for a given account IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -332,11 +332,11 @@ async def delete(
Delete an account delegation for a given IP prefix.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- delegation_id: Identifier of a Delegation.
+ delegation_id: Delegation identifier tag.
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py
index b9620460953..09dacaeaf11 100644
--- a/src/cloudflare/resources/addressing/prefixes/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py
@@ -115,7 +115,7 @@ def create(
Add a new prefix under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
asn: Autonomous System Number (ASN) the prefix will be advertised under.
@@ -168,7 +168,7 @@ def list(
List all prefixes owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
@@ -205,9 +205,9 @@ def delete(
Delete an unapproved prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -246,9 +246,9 @@ def edit(
Modify the description for a prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
description: Description of the prefix.
@@ -293,9 +293,9 @@ def get(
List a particular prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -376,7 +376,7 @@ async def create(
Add a new prefix under the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
asn: Autonomous System Number (ASN) the prefix will be advertised under.
@@ -429,7 +429,7 @@ def list(
List all prefixes owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
@@ -466,9 +466,9 @@ async def delete(
Delete an unapproved prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -507,9 +507,9 @@ async def edit(
Modify the description for a prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
description: Description of the prefix.
@@ -554,9 +554,9 @@ async def get(
List a particular prefix owned by the account.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/prefixes/service_bindings.py b/src/cloudflare/resources/addressing/prefixes/service_bindings.py
index c5be5b730ca..2757851a716 100644
--- a/src/cloudflare/resources/addressing/prefixes/service_bindings.py
+++ b/src/cloudflare/resources/addressing/prefixes/service_bindings.py
@@ -70,14 +70,13 @@ def create(
allows creating service bindings for the Cloudflare CDN or Cloudflare Spectrum.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
- service_id: Identifier of a Service on the Cloudflare network. Available services and their
- IDs may be found in the **List Services** endpoint.
+ service_id: Identifier
extra_headers: Send extra headers
@@ -132,9 +131,9 @@ def list(
IPs in the prefix to Cloudflare Magic Transit.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -174,11 +173,11 @@ def delete(
Delete a Service Binding
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- binding_id: Identifier of a Service Binding.
+ binding_id: Identifier
extra_headers: Send extra headers
@@ -219,11 +218,11 @@ def get(
Fetch a single Service Binding
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- binding_id: Identifier of a Service Binding.
+ binding_id: Identifier
extra_headers: Send extra headers
@@ -293,14 +292,13 @@ async def create(
allows creating service bindings for the Cloudflare CDN or Cloudflare Spectrum.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
cidr: IP Prefix in Classless Inter-Domain Routing format.
- service_id: Identifier of a Service on the Cloudflare network. Available services and their
- IDs may be found in the **List Services** endpoint.
+ service_id: Identifier
extra_headers: Send extra headers
@@ -355,9 +353,9 @@ def list(
IPs in the prefix to Cloudflare Magic Transit.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
extra_headers: Send extra headers
@@ -397,11 +395,11 @@ async def delete(
Delete a Service Binding
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- binding_id: Identifier of a Service Binding.
+ binding_id: Identifier
extra_headers: Send extra headers
@@ -442,11 +440,11 @@ async def get(
Fetch a single Service Binding
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
- prefix_id: Identifier of an IP Prefix.
+ prefix_id: Identifier
- binding_id: Identifier of a Service Binding.
+ binding_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/addressing/services.py b/src/cloudflare/resources/addressing/services.py
index e73f0c62298..56fe70d70b9 100644
--- a/src/cloudflare/resources/addressing/services.py
+++ b/src/cloudflare/resources/addressing/services.py
@@ -58,7 +58,7 @@ def list(
the Cloudflare network, and their service IDs.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
@@ -118,7 +118,7 @@ def list(
the Cloudflare network, and their service IDs.
Args:
- account_id: Identifier of a Cloudflare account.
+ account_id: Identifier
extra_headers: Send extra headers
diff --git a/src/cloudflare/resources/ai_gateway/ai_gateway.py b/src/cloudflare/resources/ai_gateway/ai_gateway.py
index ebbaa17ba8b..c10d86e5d9c 100644
--- a/src/cloudflare/resources/ai_gateway/ai_gateway.py
+++ b/src/cloudflare/resources/ai_gateway/ai_gateway.py
@@ -230,6 +230,8 @@ def list(
self,
*,
account_id: str,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
search: str | NotGiven = NOT_GIVEN,
@@ -244,6 +246,10 @@ def list(
List Gateways
Args:
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id
extra_headers: Send extra headers
@@ -266,6 +272,8 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
@@ -526,6 +534,8 @@ def list(
self,
*,
account_id: str,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
search: str | NotGiven = NOT_GIVEN,
@@ -540,6 +550,10 @@ def list(
List Gateways
Args:
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id
extra_headers: Send extra headers
@@ -562,6 +576,8 @@ def list(
timeout=timeout,
query=maybe_transform(
{
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
diff --git a/src/cloudflare/resources/ai_gateway/datasets.py b/src/cloudflare/resources/ai_gateway/datasets.py
index 3d58ec297b4..855cad685de 100644
--- a/src/cloudflare/resources/ai_gateway/datasets.py
+++ b/src/cloudflare/resources/ai_gateway/datasets.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from typing import Type, Iterable, cast
+from typing_extensions import Literal
import httpx
@@ -168,6 +169,8 @@ def list(
account_id: str,
enable: bool | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
search: str | NotGiven = NOT_GIVEN,
@@ -184,6 +187,10 @@ def list(
Args:
gateway_id: gateway id
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id, name, filters
extra_headers: Send extra headers
@@ -210,6 +217,8 @@ def list(
{
"enable": enable,
"name": name,
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
@@ -447,6 +456,8 @@ def list(
account_id: str,
enable: bool | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
search: str | NotGiven = NOT_GIVEN,
@@ -463,6 +474,10 @@ def list(
Args:
gateway_id: gateway id
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id, name, filters
extra_headers: Send extra headers
@@ -489,6 +504,8 @@ def list(
{
"enable": enable,
"name": name,
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
diff --git a/src/cloudflare/resources/ai_gateway/evaluations.py b/src/cloudflare/resources/ai_gateway/evaluations.py
index 5dbccd8f358..d0a00012074 100644
--- a/src/cloudflare/resources/ai_gateway/evaluations.py
+++ b/src/cloudflare/resources/ai_gateway/evaluations.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from typing import List, Type, cast
+from typing_extensions import Literal
import httpx
@@ -110,6 +111,8 @@ def list(
*,
account_id: str,
name: str | NotGiven = NOT_GIVEN,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
processed: bool | NotGiven = NOT_GIVEN,
@@ -127,6 +130,10 @@ def list(
Args:
gateway_id: gateway id
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id, name
extra_headers: Send extra headers
@@ -152,6 +159,8 @@ def list(
query=maybe_transform(
{
"name": name,
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"processed": processed,
@@ -333,6 +342,8 @@ def list(
*,
account_id: str,
name: str | NotGiven = NOT_GIVEN,
+ order_by: str | NotGiven = NOT_GIVEN,
+ order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
processed: bool | NotGiven = NOT_GIVEN,
@@ -350,6 +361,10 @@ def list(
Args:
gateway_id: gateway id
+ order_by: Order By Column Name
+
+ order_by_direction: Order By Direction
+
search: Search by id, name
extra_headers: Send extra headers
@@ -375,6 +390,8 @@ def list(
query=maybe_transform(
{
"name": name,
+ "order_by": order_by,
+ "order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"processed": processed,
diff --git a/src/cloudflare/resources/origin_post_quantum_encryption.py b/src/cloudflare/resources/origin_post_quantum_encryption.py
index 496eaf5495f..a59a30d9108 100644
--- a/src/cloudflare/resources/origin_post_quantum_encryption.py
+++ b/src/cloudflare/resources/origin_post_quantum_encryption.py
@@ -3,10 +3,15 @@
from __future__ import annotations
from typing import Type, Optional, cast
+from typing_extensions import Literal
import httpx
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from .._utils import (
+ maybe_transform,
+ async_maybe_transform,
+)
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
@@ -17,9 +22,13 @@
)
from .._wrappers import ResultWrapper
from .._base_client import make_request_options
+from ..types.origin_post_quantum_encryption import origin_post_quantum_encryption_edit_params
from ..types.origin_post_quantum_encryption.origin_post_quantum_encryption_get_response import (
OriginPostQuantumEncryptionGetResponse,
)
+from ..types.origin_post_quantum_encryption.origin_post_quantum_encryption_edit_response import (
+ OriginPostQuantumEncryptionEditResponse,
+)
__all__ = ["OriginPostQuantumEncryptionResource", "AsyncOriginPostQuantumEncryptionResource"]
@@ -44,6 +53,59 @@ def with_streaming_response(self) -> OriginPostQuantumEncryptionResourceWithStre
"""
return OriginPostQuantumEncryptionResourceWithStreamingResponse(self)
+ def edit(
+ self,
+ *,
+ zone_id: str,
+ value: Literal["preferred", "supported", "off"],
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
+ # The extra values given here take precedence over values defined on the client or passed to this method.
+ extra_headers: Headers | None = None,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> Optional[OriginPostQuantumEncryptionEditResponse]:
+ """
+ Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
+ connecting to your origin. Preferred instructs Cloudflare to opportunistically
+ send a Post-Quantum keyshare in the first message to the origin (for fastest
+ connections when the origin supports and prefers PQ), supported means that PQ
+ algorithms are advertised but only used when requested by the origin, and off
+ means that PQ algorithms are not advertised
+
+ Args:
+ zone_id: Identifier
+
+ value: Value of the Origin Post Quantum Encryption Setting.
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
+ """
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ return self._patch(
+ f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
+ body=maybe_transform(
+ {"value": value}, origin_post_quantum_encryption_edit_params.OriginPostQuantumEncryptionEditParams
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ post_parser=ResultWrapper[Optional[OriginPostQuantumEncryptionEditResponse]]._unwrapper,
+ ),
+ cast_to=cast(
+ Type[Optional[OriginPostQuantumEncryptionEditResponse]],
+ ResultWrapper[OriginPostQuantumEncryptionEditResponse],
+ ),
+ )
+
def get(
self,
*,
@@ -112,6 +174,59 @@ def with_streaming_response(self) -> AsyncOriginPostQuantumEncryptionResourceWit
"""
return AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse(self)
+ async def edit(
+ self,
+ *,
+ zone_id: str,
+ value: Literal["preferred", "supported", "off"],
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
+ # The extra values given here take precedence over values defined on the client or passed to this method.
+ extra_headers: Headers | None = None,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> Optional[OriginPostQuantumEncryptionEditResponse]:
+ """
+ Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
+ connecting to your origin. Preferred instructs Cloudflare to opportunistically
+ send a Post-Quantum keyshare in the first message to the origin (for fastest
+ connections when the origin supports and prefers PQ), supported means that PQ
+ algorithms are advertised but only used when requested by the origin, and off
+ means that PQ algorithms are not advertised
+
+ Args:
+ zone_id: Identifier
+
+ value: Value of the Origin Post Quantum Encryption Setting.
+
+ extra_headers: Send extra headers
+
+ extra_query: Add additional query parameters to the request
+
+ extra_body: Add additional JSON properties to the request
+
+ timeout: Override the client-level default timeout for this request, in seconds
+ """
+ if not zone_id:
+ raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ return await self._patch(
+ f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
+ body=await async_maybe_transform(
+ {"value": value}, origin_post_quantum_encryption_edit_params.OriginPostQuantumEncryptionEditParams
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ post_parser=ResultWrapper[Optional[OriginPostQuantumEncryptionEditResponse]]._unwrapper,
+ ),
+ cast_to=cast(
+ Type[Optional[OriginPostQuantumEncryptionEditResponse]],
+ ResultWrapper[OriginPostQuantumEncryptionEditResponse],
+ ),
+ )
+
async def get(
self,
*,
@@ -164,6 +279,9 @@ class OriginPostQuantumEncryptionResourceWithRawResponse:
def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryptionResource) -> None:
self._origin_post_quantum_encryption = origin_post_quantum_encryption
+ self.edit = to_raw_response_wrapper(
+ origin_post_quantum_encryption.edit,
+ )
self.get = to_raw_response_wrapper(
origin_post_quantum_encryption.get,
)
@@ -173,6 +291,9 @@ class AsyncOriginPostQuantumEncryptionResourceWithRawResponse:
def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryptionResource) -> None:
self._origin_post_quantum_encryption = origin_post_quantum_encryption
+ self.edit = async_to_raw_response_wrapper(
+ origin_post_quantum_encryption.edit,
+ )
self.get = async_to_raw_response_wrapper(
origin_post_quantum_encryption.get,
)
@@ -182,6 +303,9 @@ class OriginPostQuantumEncryptionResourceWithStreamingResponse:
def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryptionResource) -> None:
self._origin_post_quantum_encryption = origin_post_quantum_encryption
+ self.edit = to_streamed_response_wrapper(
+ origin_post_quantum_encryption.edit,
+ )
self.get = to_streamed_response_wrapper(
origin_post_quantum_encryption.get,
)
@@ -191,6 +315,9 @@ class AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse:
def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryptionResource) -> None:
self._origin_post_quantum_encryption = origin_post_quantum_encryption
+ self.edit = async_to_streamed_response_wrapper(
+ origin_post_quantum_encryption.edit,
+ )
self.get = async_to_streamed_response_wrapper(
origin_post_quantum_encryption.get,
)
diff --git a/src/cloudflare/resources/zero_trust/organizations/doh.py b/src/cloudflare/resources/zero_trust/organizations/doh.py
index 70518bc0925..d16604fe4b7 100644
--- a/src/cloudflare/resources/zero_trust/organizations/doh.py
+++ b/src/cloudflare/resources/zero_trust/organizations/doh.py
@@ -52,7 +52,7 @@ def update(
self,
*,
account_id: str,
- doh_jwt_duration: str | NotGiven = NOT_GIVEN,
+ jwt_duration: str | NotGiven = NOT_GIVEN,
service_token_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,7 +67,7 @@ def update(
Args:
account_id: Identifier
- doh_jwt_duration: The duration the DoH JWT is valid for. Must be in the format `300ms` or `2h45m`.
+ jwt_duration: The duration the DoH JWT is valid for. Must be in the format `300ms` or `2h45m`.
Valid time units are: ns, us (or µs), ms, s, m, h. Note that the maximum
duration for this setting is the same as the key rotation period on the account.
Default expiration is 24h
@@ -88,7 +88,7 @@ def update(
f"/accounts/{account_id}/access/organizations/doh",
body=maybe_transform(
{
- "doh_jwt_duration": doh_jwt_duration,
+ "jwt_duration": jwt_duration,
"service_token_id": service_token_id,
},
doh_update_params.DOHUpdateParams,
@@ -167,7 +167,7 @@ async def update(
self,
*,
account_id: str,
- doh_jwt_duration: str | NotGiven = NOT_GIVEN,
+ jwt_duration: str | NotGiven = NOT_GIVEN,
service_token_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -182,7 +182,7 @@ async def update(
Args:
account_id: Identifier
- doh_jwt_duration: The duration the DoH JWT is valid for. Must be in the format `300ms` or `2h45m`.
+ jwt_duration: The duration the DoH JWT is valid for. Must be in the format `300ms` or `2h45m`.
Valid time units are: ns, us (or µs), ms, s, m, h. Note that the maximum
duration for this setting is the same as the key rotation period on the account.
Default expiration is 24h
@@ -203,7 +203,7 @@ async def update(
f"/accounts/{account_id}/access/organizations/doh",
body=await async_maybe_transform(
{
- "doh_jwt_duration": doh_jwt_duration,
+ "jwt_duration": jwt_duration,
"service_token_id": service_token_id,
},
doh_update_params.DOHUpdateParams,
diff --git a/src/cloudflare/types/abuse_reports/__init__.py b/src/cloudflare/types/abuse_reports/__init__.py
index f8ee8b14b1c..c17465cb40c 100644
--- a/src/cloudflare/types/abuse_reports/__init__.py
+++ b/src/cloudflare/types/abuse_reports/__init__.py
@@ -1,3 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
+
+from .abuse_report_create_params import AbuseReportCreateParams as AbuseReportCreateParams
+from .abuse_report_create_response import AbuseReportCreateResponse as AbuseReportCreateResponse
diff --git a/src/cloudflare/types/abuse_reports/abuse_report_create_params.py b/src/cloudflare/types/abuse_reports/abuse_report_create_params.py
new file mode 100644
index 00000000000..ff19f93f7c5
--- /dev/null
+++ b/src/cloudflare/types/abuse_reports/abuse_report_create_params.py
@@ -0,0 +1,140 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal, Required, TypedDict
+
+__all__ = ["AbuseReportCreateParams"]
+
+
+class AbuseReportCreateParams(TypedDict, total=False):
+ account_id: Required[str]
+
+ act: Required[
+ Literal[
+ "abuse_dmca",
+ "abuse_trademark",
+ "abuse_general",
+ "abuse_phishing",
+ "abuse_children",
+ "abuse_threat",
+ "abuse_registrar_whois",
+ "abuse_ncsei",
+ ]
+ ]
+ """The abuse report type"""
+
+ email: Required[str]
+ """A valid email of the abuse reporter"""
+
+ email2: Required[str]
+ """Should match the value provided in `email`"""
+
+ host_notification: Required[Literal["send", "send-anon", "none"]]
+ """Notification type based on the abuse type.
+
+ NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
+ """
+
+ ncmec_notification: Required[Literal["send", "send-anon", "none"]]
+ """Notification type based on the abuse type.
+
+ NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
+ """
+
+ owner_notification: Required[Literal["send", "send-anon", "none"]]
+ """Notification type based on the abuse type.
+
+ NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
+ """
+
+ urls: Required[str]
+ """A list of valid URLs separated by ‘ ’ (new line character).
+
+ The list of the URLs should not exceed 250 URLs. All URLs should have the same
+ hostname. Each URL should be unique
+ """
+
+ address1: str
+ """Text not exceeding 100 characters"""
+
+ agent_name: str
+ """The name of the copyright holder. Text not exceeding 60 characters."""
+
+ agree: Literal[0, 1]
+ """Can be 0 or 1"""
+
+ city: str
+ """Text not exceeding 255 characters"""
+
+ comments: str
+ """Any additional comments about the infringement not exceeding 2000 characters"""
+
+ company: str
+ """Text not exceeding 100 characters"""
+
+ country: str
+ """Text not exceeding 255 characters"""
+
+ destination_ips: str
+ """A list of IP addresses separated by ‘ ’ (new line character).
+
+ The list of destination IPs should not exceed 30 IP addresses. Each one of the
+ IP addresses ought to be unique
+ """
+
+ justification: str
+ """
+ A detailed description of the infringement, including any necessary access
+ details and the exact steps needed to view the content, not exceeding 5000
+ characters
+ """
+
+ name: str
+ """Text not exceeding 255 characters"""
+
+ ncsei_subject_representation: bool
+ """If the submitter is the target of NCSEI in the URLs of the abuse report"""
+
+ original_work: str
+ """Text not exceeding 255 characters"""
+
+ ports_protocols: str
+ """A comma separated list of ports and protocols e.g.
+
+ 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters.
+ Each individual port/protocol should not exceed 100 characters. The list should
+ not have more than 30 unique ports and protocols.
+ """
+
+ signature: str
+ """Required for DMCA reports, should be same as Name.
+
+ An affirmation that all information in the report is true and accurate while
+ agreeing to the policies of Cloudflare's abuse reports
+ """
+
+ source_ips: str
+ """A list of IP addresses separated by ‘ ’ (new line character).
+
+ The list of source IPs should not exceed 30 IP addresses. Each one of the IP
+ addresses ought to be unique
+ """
+
+ state: str
+ """Text not exceeding 255 characters"""
+
+ tele: str
+ """Text not exceeding 20 characters"""
+
+ title: str
+ """Text not exceeding 255 characters"""
+
+ trademark_number: str
+ """Text not exceeding 1000 characters"""
+
+ trademark_office: str
+ """Text not exceeding 1000 characters"""
+
+ trademark_symbol: str
+ """Text not exceeding 1000 characters"""
diff --git a/src/cloudflare/types/abuse_reports/abuse_report_create_response.py b/src/cloudflare/types/abuse_reports/abuse_report_create_response.py
new file mode 100644
index 00000000000..03fc4011e68
--- /dev/null
+++ b/src/cloudflare/types/abuse_reports/abuse_report_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import TypeAlias
+
+__all__ = ["AbuseReportCreateResponse"]
+
+AbuseReportCreateResponse: TypeAlias = str
diff --git a/src/cloudflare/types/addressing/address_map.py b/src/cloudflare/types/addressing/address_map.py
index 1ff0f0ab4f2..dff7660e50c 100644
--- a/src/cloudflare/types/addressing/address_map.py
+++ b/src/cloudflare/types/addressing/address_map.py
@@ -10,7 +10,7 @@
class AddressMap(BaseModel):
id: Optional[str] = None
- """Identifier of an Address Map."""
+ """Identifier"""
can_delete: Optional[bool] = None
"""If set to false, then the Address Map cannot be deleted via API.
diff --git a/src/cloudflare/types/addressing/address_map_create_params.py b/src/cloudflare/types/addressing/address_map_create_params.py
index bef1dcc72a9..ac313102d61 100644
--- a/src/cloudflare/types/addressing/address_map_create_params.py
+++ b/src/cloudflare/types/addressing/address_map_create_params.py
@@ -12,7 +12,7 @@
class AddressMapCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
description: Optional[str]
"""
diff --git a/src/cloudflare/types/addressing/address_map_create_response.py b/src/cloudflare/types/addressing/address_map_create_response.py
index 08303310e4e..032e1166d18 100644
--- a/src/cloudflare/types/addressing/address_map_create_response.py
+++ b/src/cloudflare/types/addressing/address_map_create_response.py
@@ -31,7 +31,7 @@ class Membership(BaseModel):
class AddressMapCreateResponse(BaseModel):
id: Optional[str] = None
- """Identifier of an Address Map."""
+ """Identifier"""
can_delete: Optional[bool] = None
"""If set to false, then the Address Map cannot be deleted via API.
diff --git a/src/cloudflare/types/addressing/address_map_edit_params.py b/src/cloudflare/types/addressing/address_map_edit_params.py
index 78a94270693..5d91c15dab3 100644
--- a/src/cloudflare/types/addressing/address_map_edit_params.py
+++ b/src/cloudflare/types/addressing/address_map_edit_params.py
@@ -10,7 +10,7 @@
class AddressMapEditParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
default_sni: Optional[str]
"""
diff --git a/src/cloudflare/types/addressing/address_map_get_response.py b/src/cloudflare/types/addressing/address_map_get_response.py
index 2eda9977d94..0eb306ccdbd 100644
--- a/src/cloudflare/types/addressing/address_map_get_response.py
+++ b/src/cloudflare/types/addressing/address_map_get_response.py
@@ -31,7 +31,7 @@ class Membership(BaseModel):
class AddressMapGetResponse(BaseModel):
id: Optional[str] = None
- """Identifier of an Address Map."""
+ """Identifier"""
can_delete: Optional[bool] = None
"""If set to false, then the Address Map cannot be deleted via API.
diff --git a/src/cloudflare/types/addressing/address_maps/account_update_params.py b/src/cloudflare/types/addressing/address_maps/account_update_params.py
index ff618f7f917..f06483675c1 100644
--- a/src/cloudflare/types/addressing/address_maps/account_update_params.py
+++ b/src/cloudflare/types/addressing/address_maps/account_update_params.py
@@ -9,6 +9,6 @@
class AccountUpdateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_params.py b/src/cloudflare/types/addressing/address_maps/ip_update_params.py
index 7c4e1611411..41cd04d50b1 100644
--- a/src/cloudflare/types/addressing/address_maps/ip_update_params.py
+++ b/src/cloudflare/types/addressing/address_maps/ip_update_params.py
@@ -9,9 +9,9 @@
class IPUpdateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
address_map_id: Required[str]
- """Identifier of an Address Map."""
+ """Identifier"""
body: Required[object]
diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_params.py b/src/cloudflare/types/addressing/address_maps/zone_update_params.py
index 04047f85fc0..3cd7060a7ed 100644
--- a/src/cloudflare/types/addressing/address_maps/zone_update_params.py
+++ b/src/cloudflare/types/addressing/address_maps/zone_update_params.py
@@ -9,9 +9,9 @@
class ZoneUpdateParams(TypedDict, total=False):
zone_id: Required[str]
- """Identifier of a zone."""
+ """Identifier"""
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
body: Required[object]
diff --git a/src/cloudflare/types/addressing/loa_document_create_params.py b/src/cloudflare/types/addressing/loa_document_create_params.py
index 3ea6bd6de69..4f8da69a2a5 100644
--- a/src/cloudflare/types/addressing/loa_document_create_params.py
+++ b/src/cloudflare/types/addressing/loa_document_create_params.py
@@ -9,7 +9,7 @@
class LOADocumentCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
loa_document: Required[str]
"""LOA document to upload."""
diff --git a/src/cloudflare/types/addressing/loa_document_create_response.py b/src/cloudflare/types/addressing/loa_document_create_response.py
index dd84b6a3b39..915d2b130c4 100644
--- a/src/cloudflare/types/addressing/loa_document_create_response.py
+++ b/src/cloudflare/types/addressing/loa_document_create_response.py
@@ -13,7 +13,7 @@ class LOADocumentCreateResponse(BaseModel):
"""Identifier for the uploaded LOA document."""
account_id: Optional[str] = None
- """Identifier of a Cloudflare account."""
+ """Identifier"""
created: Optional[datetime] = None
diff --git a/src/cloudflare/types/addressing/prefix.py b/src/cloudflare/types/addressing/prefix.py
index 7a680d672f4..9dd12947704 100644
--- a/src/cloudflare/types/addressing/prefix.py
+++ b/src/cloudflare/types/addressing/prefix.py
@@ -10,10 +10,10 @@
class Prefix(BaseModel):
id: Optional[str] = None
- """Identifier of an IP Prefix."""
+ """Identifier"""
account_id: Optional[str] = None
- """Identifier of a Cloudflare account."""
+ """Identifier"""
advertised: Optional[bool] = None
"""Prefix advertisement status to the Internet.
diff --git a/src/cloudflare/types/addressing/prefix_create_params.py b/src/cloudflare/types/addressing/prefix_create_params.py
index b2d40ba7d01..edbe51ebcf4 100644
--- a/src/cloudflare/types/addressing/prefix_create_params.py
+++ b/src/cloudflare/types/addressing/prefix_create_params.py
@@ -10,7 +10,7 @@
class PrefixCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
asn: Required[Optional[int]]
"""Autonomous System Number (ASN) the prefix will be advertised under."""
diff --git a/src/cloudflare/types/addressing/prefix_edit_params.py b/src/cloudflare/types/addressing/prefix_edit_params.py
index b1ad60bb46f..9f4b08a8b40 100644
--- a/src/cloudflare/types/addressing/prefix_edit_params.py
+++ b/src/cloudflare/types/addressing/prefix_edit_params.py
@@ -9,7 +9,7 @@
class PrefixEditParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
description: Required[str]
"""Description of the prefix."""
diff --git a/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_params.py b/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_params.py
index 5de84a7f1d0..767d0f47af0 100644
--- a/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_params.py
+++ b/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_params.py
@@ -9,11 +9,7 @@
class AdvertisementStatusEditParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
advertised: Required[bool]
- """Advertisement status of the prefix.
-
- If `true`, the BGP route for the prefix is advertised to the Internet. If
- `false`, the BGP route is withdrawn.
- """
+ """Enablement of prefix advertisement to the Internet."""
diff --git a/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_response.py b/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_response.py
index 3c32d04dfcd..0abcad0875b 100644
--- a/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_response.py
+++ b/src/cloudflare/types/addressing/prefixes/advertisement_status_edit_response.py
@@ -10,11 +10,7 @@
class AdvertisementStatusEditResponse(BaseModel):
advertised: Optional[bool] = None
- """Advertisement status of the prefix.
-
- If `true`, the BGP route for the prefix is advertised to the Internet. If
- `false`, the BGP route is withdrawn.
- """
+ """Enablement of prefix advertisement to the Internet."""
advertised_modified_at: Optional[datetime] = None
"""Last time the advertisement status was changed.
diff --git a/src/cloudflare/types/addressing/prefixes/advertisement_status_get_response.py b/src/cloudflare/types/addressing/prefixes/advertisement_status_get_response.py
index 86260979361..f56585ab154 100644
--- a/src/cloudflare/types/addressing/prefixes/advertisement_status_get_response.py
+++ b/src/cloudflare/types/addressing/prefixes/advertisement_status_get_response.py
@@ -10,11 +10,7 @@
class AdvertisementStatusGetResponse(BaseModel):
advertised: Optional[bool] = None
- """Advertisement status of the prefix.
-
- If `true`, the BGP route for the prefix is advertised to the Internet. If
- `false`, the BGP route is withdrawn.
- """
+ """Enablement of prefix advertisement to the Internet."""
advertised_modified_at: Optional[datetime] = None
"""Last time the advertisement status was changed.
diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix.py
index e58c9ebdd33..f13f144985b 100644
--- a/src/cloudflare/types/addressing/prefixes/bgp_prefix.py
+++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix.py
@@ -50,7 +50,7 @@ class OnDemand(BaseModel):
class BGPPrefix(BaseModel):
id: Optional[str] = None
- """Identifier of BGP Prefix."""
+ """Identifier"""
asn: Optional[int] = None
"""Autonomous System Number (ASN) the prefix will be advertised under."""
diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_create_params.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_create_params.py
index 387be0b879f..09c650098ea 100644
--- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_create_params.py
+++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_create_params.py
@@ -9,7 +9,7 @@
class BGPPrefixCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
cidr: str
"""IP Prefix in Classless Inter-Domain Routing format."""
diff --git a/src/cloudflare/types/addressing/prefixes/bgp_prefix_edit_params.py b/src/cloudflare/types/addressing/prefixes/bgp_prefix_edit_params.py
index 5822fc5a307..579828d7901 100644
--- a/src/cloudflare/types/addressing/prefixes/bgp_prefix_edit_params.py
+++ b/src/cloudflare/types/addressing/prefixes/bgp_prefix_edit_params.py
@@ -9,10 +9,10 @@
class BGPPrefixEditParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
prefix_id: Required[str]
- """Identifier of an IP Prefix."""
+ """Identifier"""
on_demand: OnDemand
diff --git a/src/cloudflare/types/addressing/prefixes/delegation_create_params.py b/src/cloudflare/types/addressing/prefixes/delegation_create_params.py
index 948fe969d3e..f8f9c9719f2 100644
--- a/src/cloudflare/types/addressing/prefixes/delegation_create_params.py
+++ b/src/cloudflare/types/addressing/prefixes/delegation_create_params.py
@@ -9,7 +9,7 @@
class DelegationCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
cidr: Required[str]
"""IP Prefix in Classless Inter-Domain Routing format."""
diff --git a/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py b/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py
index 352868765b9..3581f2c3c0a 100644
--- a/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py
+++ b/src/cloudflare/types/addressing/prefixes/delegation_delete_response.py
@@ -9,4 +9,4 @@
class DelegationDeleteResponse(BaseModel):
id: Optional[str] = None
- """Identifier of a Delegation."""
+ """Delegation identifier tag."""
diff --git a/src/cloudflare/types/addressing/prefixes/delegations.py b/src/cloudflare/types/addressing/prefixes/delegations.py
index c9b97dfc3d5..8a2d2d8fea8 100644
--- a/src/cloudflare/types/addressing/prefixes/delegations.py
+++ b/src/cloudflare/types/addressing/prefixes/delegations.py
@@ -10,7 +10,7 @@
class Delegations(BaseModel):
id: Optional[str] = None
- """Identifier of a Delegation."""
+ """Delegation identifier tag."""
cidr: Optional[str] = None
"""IP Prefix in Classless Inter-Domain Routing format."""
@@ -23,4 +23,4 @@ class Delegations(BaseModel):
modified_at: Optional[datetime] = None
parent_prefix_id: Optional[str] = None
- """Identifier of an IP Prefix."""
+ """Identifier"""
diff --git a/src/cloudflare/types/addressing/prefixes/service_binding.py b/src/cloudflare/types/addressing/prefixes/service_binding.py
index 34bbeabd065..22babc8c0ff 100644
--- a/src/cloudflare/types/addressing/prefixes/service_binding.py
+++ b/src/cloudflare/types/addressing/prefixes/service_binding.py
@@ -18,7 +18,7 @@ class Provisioning(BaseModel):
class ServiceBinding(BaseModel):
id: Optional[str] = None
- """Identifier of a Service Binding."""
+ """Identifier"""
cidr: Optional[str] = None
"""IP Prefix in Classless Inter-Domain Routing format."""
@@ -27,10 +27,7 @@ class ServiceBinding(BaseModel):
"""Status of a Service Binding's deployment to the Cloudflare network"""
service_id: Optional[str] = None
- """Identifier of a Service on the Cloudflare network.
-
- Available services and their IDs may be found in the **List Services** endpoint.
- """
+ """Identifier"""
service_name: Optional[str] = None
"""Name of a service running on the Cloudflare network"""
diff --git a/src/cloudflare/types/addressing/prefixes/service_binding_create_params.py b/src/cloudflare/types/addressing/prefixes/service_binding_create_params.py
index 6e1f0420211..9df88871bb3 100644
--- a/src/cloudflare/types/addressing/prefixes/service_binding_create_params.py
+++ b/src/cloudflare/types/addressing/prefixes/service_binding_create_params.py
@@ -9,13 +9,10 @@
class ServiceBindingCreateParams(TypedDict, total=False):
account_id: Required[str]
- """Identifier of a Cloudflare account."""
+ """Identifier"""
cidr: str
"""IP Prefix in Classless Inter-Domain Routing format."""
service_id: str
- """Identifier of a Service on the Cloudflare network.
-
- Available services and their IDs may be found in the **List Services** endpoint.
- """
+ """Identifier"""
diff --git a/src/cloudflare/types/addressing/service_list_response.py b/src/cloudflare/types/addressing/service_list_response.py
index a97b11929a2..e4e66040091 100644
--- a/src/cloudflare/types/addressing/service_list_response.py
+++ b/src/cloudflare/types/addressing/service_list_response.py
@@ -9,10 +9,7 @@
class ServiceListResponse(BaseModel):
id: Optional[str] = None
- """Identifier of a Service on the Cloudflare network.
-
- Available services and their IDs may be found in the **List Services** endpoint.
- """
+ """Identifier"""
name: Optional[str] = None
"""Name of a service running on the Cloudflare network"""
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py
index 8c4df8ce75e..d13ca4fea1f 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py
@@ -13,10 +13,6 @@ class AIGatewayCreateResponse(BaseModel):
id: str
"""gateway id"""
- account_id: str
-
- account_tag: str
-
cache_invalidate_on_update: bool
cache_ttl: Optional[int] = None
@@ -25,8 +21,6 @@ class AIGatewayCreateResponse(BaseModel):
created_at: datetime
- internal_id: str
-
modified_at: datetime
rate_limiting_interval: Optional[int] = None
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py
index 56b71b99466..96e4ed45b33 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py
@@ -13,10 +13,6 @@ class AIGatewayDeleteResponse(BaseModel):
id: str
"""gateway id"""
- account_id: str
-
- account_tag: str
-
cache_invalidate_on_update: bool
cache_ttl: Optional[int] = None
@@ -25,8 +21,6 @@ class AIGatewayDeleteResponse(BaseModel):
created_at: datetime
- internal_id: str
-
modified_at: datetime
rate_limiting_interval: Optional[int] = None
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py
index eed84b4ee8d..4686eb08c4f 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py
@@ -13,10 +13,6 @@ class AIGatewayGetResponse(BaseModel):
id: str
"""gateway id"""
- account_id: str
-
- account_tag: str
-
cache_invalidate_on_update: bool
cache_ttl: Optional[int] = None
@@ -25,8 +21,6 @@ class AIGatewayGetResponse(BaseModel):
created_at: datetime
- internal_id: str
-
modified_at: datetime
rate_limiting_interval: Optional[int] = None
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py
index a2545d4af8e..a363b567a3f 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing_extensions import Required, TypedDict
+from typing_extensions import Literal, Required, TypedDict
__all__ = ["AIGatewayListParams"]
@@ -10,6 +10,12 @@
class AIGatewayListParams(TypedDict, total=False):
account_id: Required[str]
+ order_by: str
+ """Order By Column Name"""
+
+ order_by_direction: Literal["asc", "desc"]
+ """Order By Direction"""
+
page: int
per_page: int
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py
index 31dca9345f4..b7e93763d69 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py
@@ -13,10 +13,6 @@ class AIGatewayListResponse(BaseModel):
id: str
"""gateway id"""
- account_id: str
-
- account_tag: str
-
cache_invalidate_on_update: bool
cache_ttl: Optional[int] = None
@@ -25,8 +21,6 @@ class AIGatewayListResponse(BaseModel):
created_at: datetime
- internal_id: str
-
modified_at: datetime
rate_limiting_interval: Optional[int] = None
diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py
index 21e6cd223b6..9a0077bb441 100644
--- a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py
+++ b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py
@@ -13,10 +13,6 @@ class AIGatewayUpdateResponse(BaseModel):
id: str
"""gateway id"""
- account_id: str
-
- account_tag: str
-
cache_invalidate_on_update: bool
cache_ttl: Optional[int] = None
@@ -25,8 +21,6 @@ class AIGatewayUpdateResponse(BaseModel):
created_at: datetime
- internal_id: str
-
modified_at: datetime
rate_limiting_interval: Optional[int] = None
diff --git a/src/cloudflare/types/ai_gateway/dataset_create_response.py b/src/cloudflare/types/ai_gateway/dataset_create_response.py
index 5be90be4a14..806584ab12e 100644
--- a/src/cloudflare/types/ai_gateway/dataset_create_response.py
+++ b/src/cloudflare/types/ai_gateway/dataset_create_response.py
@@ -34,10 +34,6 @@ class Filter(BaseModel):
class DatasetCreateResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
diff --git a/src/cloudflare/types/ai_gateway/dataset_delete_response.py b/src/cloudflare/types/ai_gateway/dataset_delete_response.py
index 9b9ede756f2..b097128ba3c 100644
--- a/src/cloudflare/types/ai_gateway/dataset_delete_response.py
+++ b/src/cloudflare/types/ai_gateway/dataset_delete_response.py
@@ -34,10 +34,6 @@ class Filter(BaseModel):
class DatasetDeleteResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
diff --git a/src/cloudflare/types/ai_gateway/dataset_get_response.py b/src/cloudflare/types/ai_gateway/dataset_get_response.py
index 102c0cd1b49..1641c723f9e 100644
--- a/src/cloudflare/types/ai_gateway/dataset_get_response.py
+++ b/src/cloudflare/types/ai_gateway/dataset_get_response.py
@@ -34,10 +34,6 @@ class Filter(BaseModel):
class DatasetGetResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
diff --git a/src/cloudflare/types/ai_gateway/dataset_list_params.py b/src/cloudflare/types/ai_gateway/dataset_list_params.py
index 440331fa032..29c35578d00 100644
--- a/src/cloudflare/types/ai_gateway/dataset_list_params.py
+++ b/src/cloudflare/types/ai_gateway/dataset_list_params.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing_extensions import Required, TypedDict
+from typing_extensions import Literal, Required, TypedDict
__all__ = ["DatasetListParams"]
@@ -14,6 +14,12 @@ class DatasetListParams(TypedDict, total=False):
name: str
+ order_by: str
+ """Order By Column Name"""
+
+ order_by_direction: Literal["asc", "desc"]
+ """Order By Direction"""
+
page: int
per_page: int
diff --git a/src/cloudflare/types/ai_gateway/dataset_list_response.py b/src/cloudflare/types/ai_gateway/dataset_list_response.py
index cf9d6e28bd3..710a48b322d 100644
--- a/src/cloudflare/types/ai_gateway/dataset_list_response.py
+++ b/src/cloudflare/types/ai_gateway/dataset_list_response.py
@@ -34,10 +34,6 @@ class Filter(BaseModel):
class DatasetListResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
diff --git a/src/cloudflare/types/ai_gateway/dataset_update_response.py b/src/cloudflare/types/ai_gateway/dataset_update_response.py
index 2cfeca9e20c..a68021d1647 100644
--- a/src/cloudflare/types/ai_gateway/dataset_update_response.py
+++ b/src/cloudflare/types/ai_gateway/dataset_update_response.py
@@ -34,10 +34,6 @@ class Filter(BaseModel):
class DatasetUpdateResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
diff --git a/src/cloudflare/types/ai_gateway/evaluation_create_response.py b/src/cloudflare/types/ai_gateway/evaluation_create_response.py
index 40b1b09254b..41775aef604 100644
--- a/src/cloudflare/types/ai_gateway/evaluation_create_response.py
+++ b/src/cloudflare/types/ai_gateway/evaluation_create_response.py
@@ -34,10 +34,6 @@ class DatasetFilter(BaseModel):
class Dataset(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
@@ -75,10 +71,6 @@ class Result(BaseModel):
class EvaluationCreateResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
datasets: List[Dataset]
diff --git a/src/cloudflare/types/ai_gateway/evaluation_delete_response.py b/src/cloudflare/types/ai_gateway/evaluation_delete_response.py
index 163d4406dd6..97255d29893 100644
--- a/src/cloudflare/types/ai_gateway/evaluation_delete_response.py
+++ b/src/cloudflare/types/ai_gateway/evaluation_delete_response.py
@@ -34,10 +34,6 @@ class DatasetFilter(BaseModel):
class Dataset(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
@@ -75,10 +71,6 @@ class Result(BaseModel):
class EvaluationDeleteResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
datasets: List[Dataset]
diff --git a/src/cloudflare/types/ai_gateway/evaluation_get_response.py b/src/cloudflare/types/ai_gateway/evaluation_get_response.py
index 2ac71bd4a18..63b8598ce32 100644
--- a/src/cloudflare/types/ai_gateway/evaluation_get_response.py
+++ b/src/cloudflare/types/ai_gateway/evaluation_get_response.py
@@ -34,10 +34,6 @@ class DatasetFilter(BaseModel):
class Dataset(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
@@ -75,10 +71,6 @@ class Result(BaseModel):
class EvaluationGetResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
datasets: List[Dataset]
diff --git a/src/cloudflare/types/ai_gateway/evaluation_list_params.py b/src/cloudflare/types/ai_gateway/evaluation_list_params.py
index deefec45cbf..1577eb25188 100644
--- a/src/cloudflare/types/ai_gateway/evaluation_list_params.py
+++ b/src/cloudflare/types/ai_gateway/evaluation_list_params.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing_extensions import Required, TypedDict
+from typing_extensions import Literal, Required, TypedDict
__all__ = ["EvaluationListParams"]
@@ -12,6 +12,12 @@ class EvaluationListParams(TypedDict, total=False):
name: str
+ order_by: str
+ """Order By Column Name"""
+
+ order_by_direction: Literal["asc", "desc"]
+ """Order By Direction"""
+
page: int
per_page: int
diff --git a/src/cloudflare/types/ai_gateway/evaluation_list_response.py b/src/cloudflare/types/ai_gateway/evaluation_list_response.py
index e40b09a38aa..75a55183881 100644
--- a/src/cloudflare/types/ai_gateway/evaluation_list_response.py
+++ b/src/cloudflare/types/ai_gateway/evaluation_list_response.py
@@ -34,10 +34,6 @@ class DatasetFilter(BaseModel):
class Dataset(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
enable: bool
@@ -75,10 +71,6 @@ class Result(BaseModel):
class EvaluationListResponse(BaseModel):
id: str
- account_id: str
-
- account_tag: str
-
created_at: datetime
datasets: List[Dataset]
diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py
index acbb165c725..a6c9dd7fae1 100644
--- a/src/cloudflare/types/dns/cname_record.py
+++ b/src/cloudflare/types/dns/cname_record.py
@@ -15,7 +15,7 @@ class Settings(BaseModel):
"""
If enabled, causes the CNAME record to be resolved externally and the resulting
address records (e.g., A and AAAA) to be returned instead of the CNAME record
- itself. This setting is unavailable for proxied records, since they are always
+ itself. This setting has no effect on proxied records, which are always
flattened.
"""
diff --git a/src/cloudflare/types/dns/cname_record_param.py b/src/cloudflare/types/dns/cname_record_param.py
index 122daccc16c..fd5f4dc9907 100644
--- a/src/cloudflare/types/dns/cname_record_param.py
+++ b/src/cloudflare/types/dns/cname_record_param.py
@@ -16,7 +16,7 @@ class Settings(TypedDict, total=False):
"""
If enabled, causes the CNAME record to be resolved externally and the resulting
address records (e.g., A and AAAA) to be returned instead of the CNAME record
- itself. This setting is unavailable for proxied records, since they are always
+ itself. This setting has no effect on proxied records, which are always
flattened.
"""
diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py
index c04cfc7995e..cfa25b1f388 100644
--- a/src/cloudflare/types/dns/record_create_params.py
+++ b/src/cloudflare/types/dns/record_create_params.py
@@ -365,7 +365,7 @@ class CNAMERecordSettings(TypedDict, total=False):
"""
If enabled, causes the CNAME record to be resolved externally and the resulting
address records (e.g., A and AAAA) to be returned instead of the CNAME record
- itself. This setting is unavailable for proxied records, since they are always
+ itself. This setting has no effect on proxied records, which are always
flattened.
"""
diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py
index 179b94923d9..a946133b5da 100644
--- a/src/cloudflare/types/dns/record_edit_params.py
+++ b/src/cloudflare/types/dns/record_edit_params.py
@@ -365,7 +365,7 @@ class CNAMERecordSettings(TypedDict, total=False):
"""
If enabled, causes the CNAME record to be resolved externally and the resulting
address records (e.g., A and AAAA) to be returned instead of the CNAME record
- itself. This setting is unavailable for proxied records, since they are always
+ itself. This setting has no effect on proxied records, which are always
flattened.
"""
diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py
index e594247fb7e..cc4bb87851b 100644
--- a/src/cloudflare/types/dns/record_update_params.py
+++ b/src/cloudflare/types/dns/record_update_params.py
@@ -365,7 +365,7 @@ class CNAMERecordSettings(TypedDict, total=False):
"""
If enabled, causes the CNAME record to be resolved externally and the resulting
address records (e.g., A and AAAA) to be returned instead of the CNAME record
- itself. This setting is unavailable for proxied records, since they are always
+ itself. This setting has no effect on proxied records, which are always
flattened.
"""
diff --git a/src/cloudflare/types/origin_post_quantum_encryption/__init__.py b/src/cloudflare/types/origin_post_quantum_encryption/__init__.py
index 273631df76f..2b3fa07fabc 100644
--- a/src/cloudflare/types/origin_post_quantum_encryption/__init__.py
+++ b/src/cloudflare/types/origin_post_quantum_encryption/__init__.py
@@ -2,6 +2,12 @@
from __future__ import annotations
+from .origin_post_quantum_encryption_edit_params import (
+ OriginPostQuantumEncryptionEditParams as OriginPostQuantumEncryptionEditParams,
+)
from .origin_post_quantum_encryption_get_response import (
OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse,
)
+from .origin_post_quantum_encryption_edit_response import (
+ OriginPostQuantumEncryptionEditResponse as OriginPostQuantumEncryptionEditResponse,
+)
diff --git a/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_params.py b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_params.py
new file mode 100644
index 00000000000..ff276589cf3
--- /dev/null
+++ b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_params.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal, Required, TypedDict
+
+__all__ = ["OriginPostQuantumEncryptionEditParams"]
+
+
+class OriginPostQuantumEncryptionEditParams(TypedDict, total=False):
+ zone_id: Required[str]
+ """Identifier"""
+
+ value: Required[Literal["preferred", "supported", "off"]]
+ """Value of the Origin Post Quantum Encryption Setting."""
diff --git a/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_response.py b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_response.py
new file mode 100644
index 00000000000..34c81bb373e
--- /dev/null
+++ b/src/cloudflare/types/origin_post_quantum_encryption/origin_post_quantum_encryption_edit_response.py
@@ -0,0 +1,23 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["OriginPostQuantumEncryptionEditResponse"]
+
+
+class OriginPostQuantumEncryptionEditResponse(BaseModel):
+ id: Literal["origin_pqe"]
+ """Value of the zone setting."""
+
+ editable: bool
+ """Whether the setting is editable"""
+
+ value: Literal["preferred", "supported", "off"]
+ """The value of the feature"""
+
+ modified_on: Optional[datetime] = None
+ """Last time this setting was modified."""
diff --git a/src/cloudflare/types/workers/script.py b/src/cloudflare/types/workers/script.py
index 336e5797a4f..69ba006953e 100644
--- a/src/cloudflare/types/workers/script.py
+++ b/src/cloudflare/types/workers/script.py
@@ -17,7 +17,16 @@ class Placement(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
@@ -58,7 +67,16 @@ class Script(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- placement_status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ placement_status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
diff --git a/src/cloudflare/types/workers/script_update_response.py b/src/cloudflare/types/workers/script_update_response.py
index 53d735b8638..f9f0d89ef55 100644
--- a/src/cloudflare/types/workers/script_update_response.py
+++ b/src/cloudflare/types/workers/script_update_response.py
@@ -17,7 +17,16 @@ class Placement(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
@@ -58,7 +67,16 @@ class ScriptUpdateResponse(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- placement_status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ placement_status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py
index d79a5e9b267..47380eecb7e 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_response.py
@@ -17,7 +17,16 @@ class Placement(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
@@ -58,7 +67,16 @@ class ScriptUpdateResponse(BaseModel):
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
"""
- placement_status: Optional[Literal["SUCCESS", "UNSUPPORTED_APPLICATION", "INSUFFICIENT_INVOCATIONS"]] = None
+ placement_status: Optional[
+ Literal[
+ "SUCCESS",
+ "NO_VALID_HOSTS",
+ "NO_VALID_BINDINGS",
+ "UNSUPPORTED_APPLICATION",
+ "INSUFFICIENT_INVOCATIONS",
+ "INSUFFICIENT_SUBREQUESTS",
+ ]
+ ] = None
"""
Status of
[Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
diff --git a/src/cloudflare/types/zero_trust/organizations/doh_get_response.py b/src/cloudflare/types/zero_trust/organizations/doh_get_response.py
index adb3be9867c..45cb3c7a793 100644
--- a/src/cloudflare/types/zero_trust/organizations/doh_get_response.py
+++ b/src/cloudflare/types/zero_trust/organizations/doh_get_response.py
@@ -20,14 +20,6 @@ class DOHGetResponse(BaseModel):
created_at: Optional[datetime] = None
- doh_jwt_duration: Optional[str] = None
- """The duration the DoH JWT is valid for.
-
- Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
- ms, s, m, h. Note that the maximum duration for this setting is the same as the
- key rotation period on the account.
- """
-
duration: Optional[str] = None
"""The duration for how long the service token will be valid.
@@ -37,6 +29,14 @@ class DOHGetResponse(BaseModel):
expires_at: Optional[datetime] = None
+ jwt_duration: Optional[str] = None
+ """The duration the DoH JWT is valid for.
+
+ Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
+ ms, s, m, h. Note that the maximum duration for this setting is the same as the
+ key rotation period on the account.
+ """
+
name: Optional[str] = None
"""The name of the service token."""
diff --git a/src/cloudflare/types/zero_trust/organizations/doh_update_params.py b/src/cloudflare/types/zero_trust/organizations/doh_update_params.py
index 2392abf7fe0..46ff3ae5df6 100644
--- a/src/cloudflare/types/zero_trust/organizations/doh_update_params.py
+++ b/src/cloudflare/types/zero_trust/organizations/doh_update_params.py
@@ -11,7 +11,7 @@ class DOHUpdateParams(TypedDict, total=False):
account_id: Required[str]
"""Identifier"""
- doh_jwt_duration: str
+ jwt_duration: str
"""The duration the DoH JWT is valid for.
Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
diff --git a/src/cloudflare/types/zero_trust/organizations/doh_update_response.py b/src/cloudflare/types/zero_trust/organizations/doh_update_response.py
index 128469eebb3..4a9196368f9 100644
--- a/src/cloudflare/types/zero_trust/organizations/doh_update_response.py
+++ b/src/cloudflare/types/zero_trust/organizations/doh_update_response.py
@@ -20,14 +20,6 @@ class DOHUpdateResponse(BaseModel):
created_at: Optional[datetime] = None
- doh_jwt_duration: Optional[str] = None
- """The duration the DoH JWT is valid for.
-
- Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
- ms, s, m, h. Note that the maximum duration for this setting is the same as the
- key rotation period on the account. Default expiration is 24h
- """
-
duration: Optional[str] = None
"""The duration for how long the service token will be valid.
@@ -37,6 +29,14 @@ class DOHUpdateResponse(BaseModel):
expires_at: Optional[datetime] = None
+ jwt_duration: Optional[str] = None
+ """The duration the DoH JWT is valid for.
+
+ Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs),
+ ms, s, m, h. Note that the maximum duration for this setting is the same as the
+ key rotation period on the account. Default expiration is 24h
+ """
+
name: Optional[str] = None
"""The name of the service token."""
diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py
index 3bb5dc17626..b84e7ea91ed 100644
--- a/tests/api_resources/addressing/address_maps/test_accounts.py
+++ b/tests/api_resources/addressing/address_maps/test_accounts.py
@@ -20,8 +20,8 @@ class TestAccounts:
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
account = client.addressing.address_maps.accounts.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(AccountUpdateResponse, account, path=["response"])
@@ -29,8 +29,8 @@ def test_method_update(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.accounts.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -42,8 +42,8 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.addressing.address_maps.accounts.with_streaming_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -58,7 +58,7 @@ 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.addressing.address_maps.accounts.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
body={},
)
@@ -66,23 +66,23 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.accounts.with_raw_response.update(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
account = client.addressing.address_maps.accounts.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AccountDeleteResponse, account, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.accounts.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -93,8 +93,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.accounts.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -108,14 +108,14 @@ 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.addressing.address_maps.accounts.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.accounts.with_raw_response.delete(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -125,8 +125,8 @@ class TestAsyncAccounts:
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account = await async_client.addressing.address_maps.accounts.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(AccountUpdateResponse, account, path=["response"])
@@ -134,8 +134,8 @@ 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.addressing.address_maps.accounts.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -147,8 +147,8 @@ 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.addressing.address_maps.accounts.with_streaming_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -163,7 +163,7 @@ 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.addressing.address_maps.accounts.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
body={},
)
@@ -171,23 +171,23 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.accounts.with_raw_response.update(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account = await async_client.addressing.address_maps.accounts.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AccountDeleteResponse, account, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.accounts.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -198,8 +198,8 @@ 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.addressing.address_maps.accounts.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -213,12 +213,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.addressing.address_maps.accounts.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.accounts.with_raw_response.delete(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py
index 63221153f3a..8525eee077b 100644
--- a/tests/api_resources/addressing/address_maps/test_ips.py
+++ b/tests/api_resources/addressing/address_maps/test_ips.py
@@ -21,8 +21,8 @@ class TestIPs:
def test_method_update(self, client: Cloudflare) -> None:
ip = client.addressing.address_maps.ips.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(IPUpdateResponse, ip, path=["response"])
@@ -31,8 +31,8 @@ def test_method_update(self, client: Cloudflare) -> None:
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -45,8 +45,8 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.addressing.address_maps.ips.with_streaming_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -63,14 +63,14 @@ def test_path_params_update(self, client: Cloudflare) -> None:
client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
account_id="",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
body={},
)
@@ -78,8 +78,8 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
client.addressing.address_maps.ips.with_raw_response.update(
ip_address="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -87,8 +87,8 @@ def test_path_params_update(self, client: Cloudflare) -> None:
def test_method_delete(self, client: Cloudflare) -> None:
ip = client.addressing.address_maps.ips.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(IPDeleteResponse, ip, path=["response"])
@@ -96,8 +96,8 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -109,8 +109,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.ips.with_streaming_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -126,21 +126,21 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
account_id="",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -151,8 +151,8 @@ class TestAsyncIPs:
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
ip = await async_client.addressing.address_maps.ips.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(IPUpdateResponse, ip, path=["response"])
@@ -161,8 +161,8 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -175,8 +175,8 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.address_maps.ips.with_streaming_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -193,14 +193,14 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
account_id="",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.ips.with_raw_response.update(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
body={},
)
@@ -208,8 +208,8 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
await async_client.addressing.address_maps.ips.with_raw_response.update(
ip_address="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -217,8 +217,8 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
ip = await async_client.addressing.address_maps.ips.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(IPDeleteResponse, ip, path=["response"])
@@ -226,8 +226,8 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -239,8 +239,8 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.address_maps.ips.with_streaming_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -256,19 +256,19 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
account_id="",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="192.0.2.1",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
address_map_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `ip_address` but received ''"):
await async_client.addressing.address_maps.ips.with_raw_response.delete(
ip_address="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py
index f0fe5d2d2bb..12786fdfd14 100644
--- a/tests/api_resources/addressing/address_maps/test_zones.py
+++ b/tests/api_resources/addressing/address_maps/test_zones.py
@@ -20,9 +20,9 @@ class TestZones:
@parametrize
def test_method_update(self, client: Cloudflare) -> None:
zone = client.addressing.address_maps.zones.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(ZoneUpdateResponse, zone, path=["response"])
@@ -30,9 +30,9 @@ def test_method_update(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_update(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -44,9 +44,9 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_update(self, client: Cloudflare) -> None:
with client.addressing.address_maps.zones.with_streaming_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -61,16 +61,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 `zone_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
body={},
)
@@ -78,26 +78,26 @@ def test_path_params_update(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.update(
address_map_id="",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
zone = client.addressing.address_maps.zones.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ZoneDeleteResponse, zone, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -108,9 +108,9 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.zones.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -124,23 +124,23 @@ 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 `zone_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.zones.with_raw_response.delete(
address_map_id="",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -150,9 +150,9 @@ class TestAsyncZones:
@parametrize
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.addressing.address_maps.zones.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
assert_matches_type(ZoneUpdateResponse, zone, path=["response"])
@@ -160,9 +160,9 @@ 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.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@@ -174,9 +174,9 @@ 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.addressing.address_maps.zones.with_streaming_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
) as response:
assert not response.is_closed
@@ -191,16 +191,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 `zone_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.update(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
body={},
)
@@ -208,26 +208,26 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.update(
address_map_id="",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone = await async_client.addressing.address_maps.zones.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ZoneDeleteResponse, zone, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -238,9 +238,9 @@ 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.addressing.address_maps.zones.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -254,21 +254,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 `zone_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.zones.with_raw_response.delete(
address_map_id="",
- zone_id="8ac8489932db6327334c9b6d58544cfe",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/prefixes/test_advertisement_status.py b/tests/api_resources/addressing/prefixes/test_advertisement_status.py
index 49a7236d5d7..e267f3e7021 100644
--- a/tests/api_resources/addressing/prefixes/test_advertisement_status.py
+++ b/tests/api_resources/addressing/prefixes/test_advertisement_status.py
@@ -23,8 +23,8 @@ class TestAdvertisementStatus:
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
advertisement_status = client.addressing.prefixes.advertisement_status.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
assert_matches_type(Optional[AdvertisementStatusEditResponse], advertisement_status, path=["response"])
@@ -32,8 +32,8 @@ def test_method_edit(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.advertisement_status.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
@@ -45,8 +45,8 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.addressing.prefixes.advertisement_status.with_streaming_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
) as response:
assert not response.is_closed
@@ -61,7 +61,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.addressing.prefixes.advertisement_status.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
advertised=True,
)
@@ -69,23 +69,23 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.advertisement_status.with_raw_response.edit(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
advertisement_status = client.addressing.prefixes.advertisement_status.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AdvertisementStatusGetResponse], advertisement_status, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.advertisement_status.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -96,8 +96,8 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.addressing.prefixes.advertisement_status.with_streaming_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -111,14 +111,14 @@ 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.addressing.prefixes.advertisement_status.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.advertisement_status.with_raw_response.get(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -128,8 +128,8 @@ class TestAsyncAdvertisementStatus:
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
advertisement_status = await async_client.addressing.prefixes.advertisement_status.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
assert_matches_type(Optional[AdvertisementStatusEditResponse], advertisement_status, path=["response"])
@@ -137,8 +137,8 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.advertisement_status.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
@@ -150,8 +150,8 @@ 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.addressing.prefixes.advertisement_status.with_streaming_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
) as response:
assert not response.is_closed
@@ -166,7 +166,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.addressing.prefixes.advertisement_status.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
advertised=True,
)
@@ -174,23 +174,23 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.advertisement_status.with_raw_response.edit(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
advertised=True,
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
advertisement_status = await async_client.addressing.prefixes.advertisement_status.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AdvertisementStatusGetResponse], advertisement_status, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.advertisement_status.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -201,8 +201,8 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.advertisement_status.with_streaming_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -216,12 +216,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.addressing.prefixes.advertisement_status.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.advertisement_status.with_raw_response.get(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py b/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py
index 06fe971018a..d8e2aab7f72 100644
--- a/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py
+++ b/tests/api_resources/addressing/prefixes/test_bgp_prefixes.py
@@ -21,16 +21,16 @@ class TestBGPPrefixes:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@@ -38,8 +38,8 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.bgp_prefixes.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -50,8 +50,8 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.prefixes.bgp_prefixes.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -65,29 +65,29 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
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.addressing.prefixes.bgp_prefixes.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.bgp_prefixes.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -98,8 +98,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.prefixes.bgp_prefixes.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -113,31 +113,31 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
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.addressing.prefixes.bgp_prefixes.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
on_demand={"advertised": True},
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@@ -145,9 +145,9 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -158,9 +158,9 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.addressing.prefixes.bgp_prefixes.with_streaming_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -174,40 +174,40 @@ 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.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `bgp_prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
bgp_prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
bgp_prefix = client.addressing.prefixes.bgp_prefixes.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -218,9 +218,9 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.addressing.prefixes.bgp_prefixes.with_streaming_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -234,23 +234,23 @@ 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.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `bgp_prefix_id` but received ''"):
client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
bgp_prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -260,16 +260,16 @@ class TestAsyncBGPPrefixes:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@@ -277,8 +277,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -289,8 +289,8 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.bgp_prefixes.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -304,29 +304,29 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
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.addressing.prefixes.bgp_prefixes.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -337,8 +337,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.bgp_prefixes.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -352,31 +352,31 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
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.addressing.prefixes.bgp_prefixes.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
on_demand={"advertised": True},
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@@ -384,9 +384,9 @@ 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.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -397,9 +397,9 @@ 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.addressing.prefixes.bgp_prefixes.with_streaming_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -413,40 +413,40 @@ 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.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `bgp_prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.edit(
bgp_prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
bgp_prefix = await async_client.addressing.prefixes.bgp_prefixes.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[BGPPrefix], bgp_prefix, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -457,9 +457,9 @@ 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.addressing.prefixes.bgp_prefixes.with_streaming_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -473,21 +473,21 @@ 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.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
- bgp_prefix_id="7009ba364c7a5760798ceb430e603b74",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ bgp_prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `bgp_prefix_id` but received ''"):
await async_client.addressing.prefixes.bgp_prefixes.with_raw_response.get(
bgp_prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/prefixes/test_delegations.py b/tests/api_resources/addressing/prefixes/test_delegations.py
index 83ec07279cc..dd17a7ac44b 100644
--- a/tests/api_resources/addressing/prefixes/test_delegations.py
+++ b/tests/api_resources/addressing/prefixes/test_delegations.py
@@ -21,8 +21,8 @@ class TestDelegations:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
delegation = client.addressing.prefixes.delegations.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -31,8 +31,8 @@ def test_method_create(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.delegations.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -45,8 +45,8 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.prefixes.delegations.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
) as response:
@@ -62,7 +62,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
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.addressing.prefixes.delegations.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
@@ -71,7 +71,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.delegations.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -79,16 +79,16 @@ def test_path_params_create(self, client: Cloudflare) -> None:
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
delegation = client.addressing.prefixes.delegations.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[Delegations], delegation, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.delegations.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -99,8 +99,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.prefixes.delegations.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -114,22 +114,22 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
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.addressing.prefixes.delegations.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.delegations.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
delegation = client.addressing.prefixes.delegations.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[DelegationDeleteResponse], delegation, path=["response"])
@@ -137,8 +137,8 @@ def test_method_delete(self, client: Cloudflare) -> None:
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -150,8 +150,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.prefixes.delegations.with_streaming_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -167,21 +167,21 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `delegation_id` but received ''"):
client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -191,8 +191,8 @@ class TestAsyncDelegations:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
delegation = await async_client.addressing.prefixes.delegations.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -201,8 +201,8 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.delegations.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -215,8 +215,8 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.delegations.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
) as response:
@@ -232,7 +232,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
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.addressing.prefixes.delegations.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
@@ -241,7 +241,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.delegations.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
delegated_account_id="b1946ac92492d2347c6235b4d2611184",
)
@@ -249,16 +249,16 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
delegation = await async_client.addressing.prefixes.delegations.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[Delegations], delegation, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.delegations.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -269,8 +269,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.delegations.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -284,22 +284,22 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
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.addressing.prefixes.delegations.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.delegations.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
delegation = await async_client.addressing.prefixes.delegations.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[DelegationDeleteResponse], delegation, path=["response"])
@@ -307,8 +307,8 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -320,8 +320,8 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.delegations.with_streaming_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -337,19 +337,19 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
await async_client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `delegation_id` but received ''"):
await async_client.addressing.prefixes.delegations.with_raw_response.delete(
delegation_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/prefixes/test_service_bindings.py b/tests/api_resources/addressing/prefixes/test_service_bindings.py
index 98156802f9c..15fb7378606 100644
--- a/tests/api_resources/addressing/prefixes/test_service_bindings.py
+++ b/tests/api_resources/addressing/prefixes/test_service_bindings.py
@@ -24,16 +24,16 @@ class TestServiceBindings:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
service_binding = client.addressing.prefixes.service_bindings.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[ServiceBinding], service_binding, path=["response"])
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
service_binding = client.addressing.prefixes.service_bindings.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
service_id="2db684ee7ca04e159946fd05b99e1bcd",
)
@@ -42,8 +42,8 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.service_bindings.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -54,8 +54,8 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.prefixes.service_bindings.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -69,29 +69,29 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
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.addressing.prefixes.service_bindings.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
service_binding = client.addressing.prefixes.service_bindings.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[ServiceBinding], service_binding, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.service_bindings.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -102,8 +102,8 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.prefixes.service_bindings.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -117,31 +117,31 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
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.addressing.prefixes.service_bindings.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
service_binding = client.addressing.prefixes.service_bindings.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ServiceBindingDeleteResponse, service_binding, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -152,9 +152,9 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.prefixes.service_bindings.with_streaming_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -168,40 +168,40 @@ 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.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `binding_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.delete(
binding_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
service_binding = client.addressing.prefixes.service_bindings.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[ServiceBinding], service_binding, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -212,9 +212,9 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.addressing.prefixes.service_bindings.with_streaming_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -228,23 +228,23 @@ 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.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `binding_id` but received ''"):
client.addressing.prefixes.service_bindings.with_raw_response.get(
binding_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -254,16 +254,16 @@ class TestAsyncServiceBindings:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
service_binding = await async_client.addressing.prefixes.service_bindings.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[ServiceBinding], service_binding, path=["response"])
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
service_binding = await async_client.addressing.prefixes.service_bindings.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
cidr="192.0.2.0/24",
service_id="2db684ee7ca04e159946fd05b99e1bcd",
)
@@ -272,8 +272,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.service_bindings.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -284,8 +284,8 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.service_bindings.with_streaming_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -299,29 +299,29 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
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.addressing.prefixes.service_bindings.with_raw_response.create(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.create(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
service_binding = await async_client.addressing.prefixes.service_bindings.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[ServiceBinding], service_binding, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.service_bindings.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -332,8 +332,8 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.service_bindings.with_streaming_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -347,31 +347,31 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
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.addressing.prefixes.service_bindings.with_raw_response.list(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.list(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
service_binding = await async_client.addressing.prefixes.service_bindings.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(ServiceBindingDeleteResponse, service_binding, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -382,9 +382,9 @@ 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.addressing.prefixes.service_bindings.with_streaming_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -398,40 +398,40 @@ 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.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.delete(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `binding_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.delete(
binding_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
service_binding = await async_client.addressing.prefixes.service_bindings.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[ServiceBinding], service_binding, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -442,9 +442,9 @@ 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.addressing.prefixes.service_bindings.with_streaming_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -458,21 +458,21 @@ 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.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.get(
- binding_id="0429b49b6a5155297b78e75a44b09e14",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ binding_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `binding_id` but received ''"):
await async_client.addressing.prefixes.service_bindings.with_raw_response.get(
binding_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py
index ed645091db9..217bc4bbe15 100644
--- a/tests/api_resources/addressing/test_address_maps.py
+++ b/tests/api_resources/addressing/test_address_maps.py
@@ -26,14 +26,14 @@ class TestAddressMaps:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMapCreateResponse], address_map, path=["response"])
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="My Ecommerce zones",
enabled=True,
ips=["192.0.2.1"],
@@ -49,7 +49,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -60,7 +60,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -80,14 +80,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[AddressMap], address_map, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -98,7 +98,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -118,16 +118,16 @@ def test_path_params_list(self, client: Cloudflare) -> None:
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AddressMapDeleteResponse, address_map, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -138,8 +138,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -153,29 +153,29 @@ 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.addressing.address_maps.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.with_raw_response.delete(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMap], address_map, path=["response"])
@parametrize
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
default_sni="*.example.com",
description="My Ecommerce zones",
enabled=True,
@@ -185,8 +185,8 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -197,8 +197,8 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -212,29 +212,29 @@ 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.addressing.address_maps.with_raw_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.with_raw_response.edit(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
address_map = client.addressing.address_maps.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMapGetResponse], address_map, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.addressing.address_maps.with_raw_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -245,8 +245,8 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.addressing.address_maps.with_streaming_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -260,14 +260,14 @@ 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.addressing.address_maps.with_raw_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
client.addressing.address_maps.with_raw_response.get(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -277,14 +277,14 @@ class TestAsyncAddressMaps:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMapCreateResponse], address_map, path=["response"])
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="My Ecommerce zones",
enabled=True,
ips=["192.0.2.1"],
@@ -300,7 +300,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -311,7 +311,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.address_maps.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -331,14 +331,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[AddressMap], address_map, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -349,7 +349,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.address_maps.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -369,16 +369,16 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AddressMapDeleteResponse, address_map, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -389,8 +389,8 @@ 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.addressing.address_maps.with_streaming_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -404,29 +404,29 @@ 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.addressing.address_maps.with_raw_response.delete(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.with_raw_response.delete(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMap], address_map, path=["response"])
@parametrize
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
default_sni="*.example.com",
description="My Ecommerce zones",
enabled=True,
@@ -436,8 +436,8 @@ 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.addressing.address_maps.with_raw_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -448,8 +448,8 @@ 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.addressing.address_maps.with_streaming_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -463,29 +463,29 @@ 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.addressing.address_maps.with_raw_response.edit(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.with_raw_response.edit(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
address_map = await async_client.addressing.address_maps.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[AddressMapGetResponse], address_map, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.address_maps.with_raw_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -496,8 +496,8 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.address_maps.with_streaming_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -511,12 +511,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.addressing.address_maps.with_raw_response.get(
- address_map_id="055817b111884e0227e1be16a0be6ee0",
+ address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `address_map_id` but received ''"):
await async_client.addressing.address_maps.with_raw_response.get(
address_map_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/test_loa_documents.py b/tests/api_resources/addressing/test_loa_documents.py
index 6cfbe04f072..142049a4664 100644
--- a/tests/api_resources/addressing/test_loa_documents.py
+++ b/tests/api_resources/addressing/test_loa_documents.py
@@ -29,7 +29,7 @@ class TestLOADocuments:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
loa_document = client.addressing.loa_documents.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
)
assert_matches_type(Optional[LOADocumentCreateResponse], loa_document, path=["response"])
@@ -38,7 +38,7 @@ def test_method_create(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.loa_documents.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
)
@@ -51,7 +51,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.loa_documents.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
) as response:
assert not response.is_closed
@@ -78,11 +78,11 @@ def test_path_params_create(self, client: Cloudflare) -> None:
@pytest.mark.respx(base_url=base_url)
def test_method_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
loa_document = client.addressing.loa_documents.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert loa_document.is_closed
assert loa_document.json() == {"foo": "bar"}
@@ -96,12 +96,12 @@ def test_method_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
@pytest.mark.respx(base_url=base_url)
def test_raw_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
loa_document = client.addressing.loa_documents.with_raw_response.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert loa_document.is_closed is True
@@ -116,11 +116,11 @@ def test_raw_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> N
@pytest.mark.respx(base_url=base_url)
def test_streaming_response_get(self, client: Cloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
with client.addressing.loa_documents.with_streaming_response.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as loa_document:
assert not loa_document.is_closed
assert loa_document.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -146,7 +146,7 @@ def test_path_params_get(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `loa_document_id` but received ''"):
client.addressing.loa_documents.with_raw_response.get(
loa_document_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -157,7 +157,7 @@ class TestAsyncLOADocuments:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
loa_document = await async_client.addressing.loa_documents.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
)
assert_matches_type(Optional[LOADocumentCreateResponse], loa_document, path=["response"])
@@ -166,7 +166,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.loa_documents.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
)
@@ -179,7 +179,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.loa_documents.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
loa_document="@document.pdf",
) as response:
assert not response.is_closed
@@ -206,11 +206,11 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
@pytest.mark.respx(base_url=base_url)
async def test_method_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
loa_document = await async_client.addressing.loa_documents.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert loa_document.is_closed
assert await loa_document.json() == {"foo": "bar"}
@@ -224,12 +224,12 @@ async def test_method_get(self, async_client: AsyncCloudflare, respx_mock: MockR
@pytest.mark.respx(base_url=base_url)
async def test_raw_response_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
loa_document = await async_client.addressing.loa_documents.with_raw_response.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert loa_document.is_closed is True
@@ -244,11 +244,11 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare, respx_mock:
@pytest.mark.respx(base_url=base_url)
async def test_streaming_response_get(self, async_client: AsyncCloudflare, respx_mock: MockRouter) -> None:
respx_mock.get(
- "/accounts/258def64c72dae45f3e4c8516e2111f2/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
+ "/accounts/023e105f4ecef8ad9ca31a8372d0c353/addressing/loa_documents/d933b1530bc56c9953cf8ce166da8004/download"
).mock(return_value=httpx.Response(200, json={"foo": "bar"}))
async with async_client.addressing.loa_documents.with_streaming_response.get(
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as loa_document:
assert not loa_document.is_closed
assert loa_document.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -274,5 +274,5 @@ async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `loa_document_id` but received ''"):
await async_client.addressing.loa_documents.with_raw_response.get(
loa_document_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py
index 955b4eaa157..bf75c6e7bd0 100644
--- a/tests/api_resources/addressing/test_prefixes.py
+++ b/tests/api_resources/addressing/test_prefixes.py
@@ -21,7 +21,7 @@ class TestPrefixes:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -31,7 +31,7 @@ def test_method_create(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -45,7 +45,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -71,14 +71,14 @@ def test_path_params_create(self, client: Cloudflare) -> None:
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[Prefix], prefix, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -89,7 +89,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -109,16 +109,16 @@ def test_path_params_list(self, client: Cloudflare) -> None:
@parametrize
def test_method_delete(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(PrefixDeleteResponse, prefix, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -129,8 +129,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -144,21 +144,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.addressing.prefixes.with_raw_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.with_raw_response.delete(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
assert_matches_type(Optional[Prefix], prefix, path=["response"])
@@ -166,8 +166,8 @@ def test_method_edit(self, client: Cloudflare) -> None:
@parametrize
def test_raw_response_edit(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
@@ -179,8 +179,8 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_edit(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
) as response:
assert not response.is_closed
@@ -195,7 +195,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.addressing.prefixes.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
description="Internal test prefix",
)
@@ -203,23 +203,23 @@ def test_path_params_edit(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.with_raw_response.edit(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
prefix = client.addressing.prefixes.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Prefix], prefix, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.addressing.prefixes.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -230,8 +230,8 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.addressing.prefixes.with_streaming_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -245,14 +245,14 @@ 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.addressing.prefixes.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
client.addressing.prefixes.with_raw_response.get(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@@ -262,7 +262,7 @@ class TestAsyncPrefixes:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -272,7 +272,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -286,7 +286,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.with_streaming_response.create(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
asn=209242,
cidr="192.0.2.0/24",
loa_document_id="d933b1530bc56c9953cf8ce166da8004",
@@ -312,14 +312,14 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[Prefix], prefix, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -330,7 +330,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -350,16 +350,16 @@ async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(PrefixDeleteResponse, prefix, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -370,8 +370,8 @@ 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.addressing.prefixes.with_streaming_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -385,21 +385,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.addressing.prefixes.with_raw_response.delete(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.with_raw_response.delete(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
assert_matches_type(Optional[Prefix], prefix, path=["response"])
@@ -407,8 +407,8 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
@@ -420,8 +420,8 @@ 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.addressing.prefixes.with_streaming_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
) as response:
assert not response.is_closed
@@ -436,7 +436,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.addressing.prefixes.with_raw_response.edit(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
description="Internal test prefix",
)
@@ -444,23 +444,23 @@ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.with_raw_response.edit(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
description="Internal test prefix",
)
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
prefix = await async_client.addressing.prefixes.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Prefix], prefix, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.prefixes.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -471,8 +471,8 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.prefixes.with_streaming_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -486,12 +486,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.addressing.prefixes.with_raw_response.get(
- prefix_id="2af39739cc4e3b5910c918468bb89828",
+ prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
account_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `prefix_id` but received ''"):
await async_client.addressing.prefixes.with_raw_response.get(
prefix_id="",
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
diff --git a/tests/api_resources/addressing/test_services.py b/tests/api_resources/addressing/test_services.py
index 8d51e635ff9..e54cb33ece0 100644
--- a/tests/api_resources/addressing/test_services.py
+++ b/tests/api_resources/addressing/test_services.py
@@ -21,14 +21,14 @@ class TestServices:
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
service = client.addressing.services.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(SyncSinglePage[ServiceListResponse], service, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.addressing.services.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -39,7 +39,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.addressing.services.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -63,14 +63,14 @@ class TestAsyncServices:
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
service = await async_client.addressing.services.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(AsyncSinglePage[ServiceListResponse], service, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.addressing.services.with_raw_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert response.is_closed is True
@@ -81,7 +81,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.addressing.services.with_streaming_response.list(
- account_id="258def64c72dae45f3e4c8516e2111f2",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
diff --git a/tests/api_resources/ai_gateway/test_datasets.py b/tests/api_resources/ai_gateway/test_datasets.py
index dc7ab2a74c5..b89ce377825 100644
--- a/tests/api_resources/ai_gateway/test_datasets.py
+++ b/tests/api_resources/ai_gateway/test_datasets.py
@@ -246,6 +246,8 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
enable=True,
name="name",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
search="search",
@@ -638,6 +640,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
enable=True,
name="name",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
search="search",
diff --git a/tests/api_resources/ai_gateway/test_evaluations.py b/tests/api_resources/ai_gateway/test_evaluations.py
index 444549e3cef..6d6566a3b2d 100644
--- a/tests/api_resources/ai_gateway/test_evaluations.py
+++ b/tests/api_resources/ai_gateway/test_evaluations.py
@@ -100,6 +100,8 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
gateway_id="my-gateway",
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
name="name",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
processed=True,
@@ -348,6 +350,8 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
gateway_id="my-gateway",
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
name="name",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
processed=True,
diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py
index 4f4e76cc76d..d66e3f1af77 100644
--- a/tests/api_resources/dns/test_records.py
+++ b/tests/api_resources/dns/test_records.py
@@ -2961,6 +2961,7 @@ def test_path_params_update_overload_21(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_method_list(self, client: Cloudflare) -> None:
record = client.dns.records.list(
@@ -2968,6 +2969,7 @@ def test_method_list(self, client: Cloudflare) -> None:
)
assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
record = client.dns.records.list(
@@ -3012,6 +3014,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.list(
@@ -3023,6 +3026,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
record = response.parse()
assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.list(
@@ -3036,6 +3040,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_path_params_list(self, client: Cloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
@@ -4811,6 +4816,7 @@ def test_path_params_export(self, client: Cloudflare) -> None:
zone_id="",
)
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
record = client.dns.records.get(
@@ -4819,6 +4825,7 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(Optional[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.get(
@@ -4831,6 +4838,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
record = response.parse()
assert_matches_type(Optional[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.get(
@@ -4845,6 +4853,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip(reason="mock server returns invalid data")
@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 ''"):
@@ -7898,6 +7907,7 @@ async def test_path_params_update_overload_21(self, async_client: AsyncCloudflar
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.list(
@@ -7905,6 +7915,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.list(
@@ -7949,6 +7960,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
)
assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.list(
@@ -7960,6 +7972,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
record = await response.parse()
assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.list(
@@ -7973,6 +7986,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
@@ -9748,6 +9762,7 @@ async def test_path_params_export(self, async_client: AsyncCloudflare) -> None:
zone_id="",
)
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.get(
@@ -9756,6 +9771,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
)
assert_matches_type(Optional[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.get(
@@ -9768,6 +9784,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
record = await response.parse()
assert_matches_type(Optional[RecordResponse], record, path=["response"])
+ @pytest.mark.skip(reason="mock server returns invalid data")
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.get(
@@ -9782,6 +9799,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert cast(Any, response.is_closed) is True
+ @pytest.mark.skip(reason="mock server returns invalid data")
@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 ''"):
diff --git a/tests/api_resources/test_abuse_reports.py b/tests/api_resources/test_abuse_reports.py
new file mode 100644
index 00000000000..ff8d92dee38
--- /dev/null
+++ b/tests/api_resources/test_abuse_reports.py
@@ -0,0 +1,243 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+import os
+from typing import Any, cast
+
+import pytest
+
+from cloudflare import Cloudflare, AsyncCloudflare
+from tests.utils import assert_matches_type
+
+base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
+
+
+class TestAbuseReports:
+ parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ def test_method_create(self, client: Cloudflare) -> None:
+ abuse_report = client.abuse_reports.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
+ abuse_report = client.abuse_reports.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ address1="x",
+ agent_name="x",
+ agree=0,
+ city="x",
+ comments="x",
+ company="x",
+ country="x",
+ destination_ips="destination_ips",
+ justification="x",
+ name="x",
+ ncsei_subject_representation=True,
+ original_work="x",
+ ports_protocols="ports_protocols",
+ signature="signature",
+ source_ips="source_ips",
+ state="x",
+ tele="x",
+ title="x",
+ trademark_number="x",
+ trademark_office="x",
+ trademark_symbol="x",
+ )
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ def test_raw_response_create(self, client: Cloudflare) -> None:
+ response = client.abuse_reports.with_raw_response.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ abuse_report = response.parse()
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ def test_streaming_response_create(self, client: Cloudflare) -> None:
+ with client.abuse_reports.with_streaming_response.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ ) as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ abuse_report = response.parse()
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @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.abuse_reports.with_raw_response.create(
+ report_type="abuse_dmca",
+ account_id="",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
+
+
+class TestAsyncAbuseReports:
+ parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
+ abuse_report = await async_client.abuse_reports.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
+ abuse_report = await async_client.abuse_reports.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ address1="x",
+ agent_name="x",
+ agree=0,
+ city="x",
+ comments="x",
+ company="x",
+ country="x",
+ destination_ips="destination_ips",
+ justification="x",
+ name="x",
+ ncsei_subject_representation=True,
+ original_work="x",
+ ports_protocols="ports_protocols",
+ signature="signature",
+ source_ips="source_ips",
+ state="x",
+ tele="x",
+ title="x",
+ trademark_number="x",
+ trademark_office="x",
+ trademark_symbol="x",
+ )
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
+ response = await async_client.abuse_reports.with_raw_response.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ abuse_report = await response.parse()
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @parametrize
+ async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
+ async with async_client.abuse_reports.with_streaming_response.create(
+ report_type="abuse_dmca",
+ account_id="023e105f4ecef8ad9ca31a8372d0c353",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ ) as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ abuse_report = await response.parse()
+ assert_matches_type(str, abuse_report, path=["response"])
+
+ assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip(reason="TODO: investigate unauthorized HTTP response")
+ @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.abuse_reports.with_raw_response.create(
+ report_type="abuse_dmca",
+ account_id="",
+ act="abuse_dmca",
+ email="email",
+ email2="email2",
+ host_notification="send",
+ ncmec_notification="send",
+ owner_notification="send",
+ urls="urls",
+ )
diff --git a/tests/api_resources/test_ai_gateway.py b/tests/api_resources/test_ai_gateway.py
index 410c03d585f..8c33ce4e9fa 100644
--- a/tests/api_resources/test_ai_gateway.py
+++ b/tests/api_resources/test_ai_gateway.py
@@ -211,6 +211,8 @@ def test_method_list(self, client: Cloudflare) -> None:
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
ai_gateway = client.ai_gateway.list(
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
search="search",
@@ -535,6 +537,8 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
ai_gateway = await async_client.ai_gateway.list(
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
+ order_by="order_by",
+ order_by_direction="asc",
page=1,
per_page=1,
search="search",
diff --git a/tests/api_resources/test_origin_post_quantum_encryption.py b/tests/api_resources/test_origin_post_quantum_encryption.py
index 68dff01d3e0..c3be9266319 100644
--- a/tests/api_resources/test_origin_post_quantum_encryption.py
+++ b/tests/api_resources/test_origin_post_quantum_encryption.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.origin_post_quantum_encryption import OriginPostQuantumEncryptionGetResponse
+from cloudflare.types.origin_post_quantum_encryption import (
+ OriginPostQuantumEncryptionGetResponse,
+ OriginPostQuantumEncryptionEditResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -17,6 +20,58 @@
class TestOriginPostQuantumEncryption:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ def test_method_edit(self, client: Cloudflare) -> None:
+ origin_post_quantum_encryption = client.origin_post_quantum_encryption.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ )
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ def test_raw_response_edit(self, client: Cloudflare) -> None:
+ response = client.origin_post_quantum_encryption.with_raw_response.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ )
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ origin_post_quantum_encryption = response.parse()
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ def test_streaming_response_edit(self, client: Cloudflare) -> None:
+ with client.origin_post_quantum_encryption.with_streaming_response.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ ) as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ origin_post_quantum_encryption = response.parse()
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ def test_path_params_edit(self, client: Cloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ client.origin_post_quantum_encryption.with_raw_response.edit(
+ zone_id="",
+ value="preferred",
+ )
+
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
@@ -69,6 +124,58 @@ def test_path_params_get(self, client: Cloudflare) -> None:
class TestAsyncOriginPostQuantumEncryption:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
+ origin_post_quantum_encryption = await async_client.origin_post_quantum_encryption.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ )
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
+ response = await async_client.origin_post_quantum_encryption.with_raw_response.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ )
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ origin_post_quantum_encryption = await response.parse()
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
+ async with async_client.origin_post_quantum_encryption.with_streaming_response.edit(
+ zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ value="preferred",
+ ) as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ origin_post_quantum_encryption = await response.parse()
+ assert_matches_type(
+ Optional[OriginPostQuantumEncryptionEditResponse], origin_post_quantum_encryption, path=["response"]
+ )
+
+ assert cast(Any, response.is_closed) is True
+
+ @pytest.mark.skip(reason="TODO: investigate broken test")
+ @parametrize
+ async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ await async_client.origin_post_quantum_encryption.with_raw_response.edit(
+ zone_id="",
+ value="preferred",
+ )
+
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
diff --git a/tests/api_resources/zero_trust/organizations/test_doh.py b/tests/api_resources/zero_trust/organizations/test_doh.py
index 58ac94ae30a..3b0c04a90dc 100644
--- a/tests/api_resources/zero_trust/organizations/test_doh.py
+++ b/tests/api_resources/zero_trust/organizations/test_doh.py
@@ -28,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
def test_method_update_with_all_params(self, client: Cloudflare) -> None:
doh = client.zero_trust.organizations.doh.update(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- doh_jwt_duration="800h",
+ jwt_duration="800h",
service_token_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
assert_matches_type(Optional[DOHUpdateResponse], doh, path=["response"])
@@ -117,7 +117,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncCloudflare) -> None:
doh = await async_client.zero_trust.organizations.doh.update(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
- doh_jwt_duration="800h",
+ jwt_duration="800h",
service_token_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
assert_matches_type(Optional[DOHUpdateResponse], doh, path=["response"])