From c6df2121c8e8b20a2905db83dff35b1cb6f335f4 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 8 Jan 2025 22:01:44 +0000
Subject: [PATCH] feat(dns): add models for batch operations and response
---
api.md | 18 +-
src/cloudflare/resources/dns/records.py | 344 +++---
src/cloudflare/types/dns/__init__.py | 8 +-
src/cloudflare/types/dns/batch_patch_param.py | 110 ++
src/cloudflare/types/dns/batch_put_param.py | 110 ++
.../types/dns/record_batch_params.py | 6 +-
.../types/dns/record_batch_response.py | 366 +-----
.../types/dns/record_create_response.py | 109 --
.../types/dns/record_edit_response.py | 109 --
.../types/dns/record_list_response.py | 109 --
...ord_get_response.py => record_response.py} | 4 +-
.../types/dns/record_update_response.py | 109 --
tests/api_resources/dns/test_records.py | 1042 ++++++++---------
13 files changed, 934 insertions(+), 1510 deletions(-)
create mode 100644 src/cloudflare/types/dns/batch_patch_param.py
create mode 100644 src/cloudflare/types/dns/batch_put_param.py
delete mode 100644 src/cloudflare/types/dns/record_create_response.py
delete mode 100644 src/cloudflare/types/dns/record_edit_response.py
delete mode 100644 src/cloudflare/types/dns/record_list_response.py
rename src/cloudflare/types/dns/{record_get_response.py => record_response.py} (95%)
delete mode 100644 src/cloudflare/types/dns/record_update_response.py
diff --git a/api.md b/api.md
index 4a0ad6cea9d..373dd369c6d 100644
--- a/api.md
+++ b/api.md
@@ -1074,6 +1074,8 @@ Types:
from cloudflare.types.dns import (
ARecord,
AAAARecord,
+ BatchPatch,
+ BatchPut,
CAARecord,
CERTRecord,
CNAMERecord,
@@ -1086,6 +1088,7 @@ from cloudflare.types.dns import (
NSRecord,
PTRRecord,
Record,
+ RecordResponse,
RecordTags,
SMIMEARecord,
SRVRecord,
@@ -1095,14 +1098,9 @@ from cloudflare.types.dns import (
TTL,
TXTRecord,
URIRecord,
- RecordCreateResponse,
- RecordUpdateResponse,
- RecordListResponse,
RecordDeleteResponse,
RecordBatchResponse,
- RecordEditResponse,
RecordExportResponse,
- RecordGetResponse,
RecordImportResponse,
RecordScanResponse,
)
@@ -1110,14 +1108,14 @@ from cloudflare.types.dns import (
Methods:
-- client.dns.records.create(\*, zone_id, \*\*params) -> Optional[RecordCreateResponse]
-- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> Optional[RecordUpdateResponse]
-- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[RecordListResponse]
+- client.dns.records.create(\*, zone_id, \*\*params) -> Optional[RecordResponse]
+- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> Optional[RecordResponse]
+- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[RecordResponse]
- client.dns.records.delete(dns_record_id, \*, zone_id) -> Optional[RecordDeleteResponse]
- client.dns.records.batch(\*, zone_id, \*\*params) -> Optional[RecordBatchResponse]
-- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> Optional[RecordEditResponse]
+- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> Optional[RecordResponse]
- client.dns.records.export(\*, zone_id) -> str
-- client.dns.records.get(dns_record_id, \*, zone_id) -> Optional[RecordGetResponse]
+- client.dns.records.get(dns_record_id, \*, zone_id) -> Optional[RecordResponse]
- client.dns.records.import\_(\*, zone_id, \*\*params) -> Optional[RecordImportResponse]
- client.dns.records.scan(\*, zone_id, \*\*params) -> Optional[RecordScanResponse]
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index a336225e620..61a0e3e043d 100644
--- a/src/cloudflare/resources/dns/records.py
+++ b/src/cloudflare/resources/dns/records.py
@@ -36,16 +36,14 @@
from ...types.dns.ttl_param import TTLParam
from ...types.dns.record_tags import RecordTags
from ...types.dns.record_param import RecordParam
+from ...types.dns.batch_put_param import BatchPutParam
+from ...types.dns.record_response import RecordResponse
+from ...types.dns.batch_patch_param import BatchPatchParam
from ...types.shared.sort_direction import SortDirection
-from ...types.dns.record_get_response import RecordGetResponse
-from ...types.dns.record_edit_response import RecordEditResponse
-from ...types.dns.record_list_response import RecordListResponse
from ...types.dns.record_scan_response import RecordScanResponse
from ...types.dns.record_batch_response import RecordBatchResponse
-from ...types.dns.record_create_response import RecordCreateResponse
from ...types.dns.record_delete_response import RecordDeleteResponse
from ...types.dns.record_import_response import RecordImportResponse
-from ...types.dns.record_update_response import RecordUpdateResponse
__all__ = ["RecordsResource", "AsyncRecordsResource"]
@@ -89,7 +87,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -152,7 +150,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -215,7 +213,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -278,7 +276,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -341,7 +339,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -404,7 +402,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -467,7 +465,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -530,7 +528,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -593,7 +591,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -657,7 +655,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -723,7 +721,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -786,7 +784,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -849,7 +847,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -912,7 +910,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -975,7 +973,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1038,7 +1036,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1101,7 +1099,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1164,7 +1162,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1227,7 +1225,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1290,7 +1288,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1359,7 +1357,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -1461,11 +1459,11 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[RecordCreateResponse],
+ Optional[RecordResponse],
self._post(
f"/zones/{zone_id}/dns_records",
body=maybe_transform(
@@ -1488,10 +1486,10 @@ def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordCreateResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordCreateResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -1516,7 +1514,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1582,7 +1580,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1648,7 +1646,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1714,7 +1712,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1780,7 +1778,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1846,7 +1844,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1912,7 +1910,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -1978,7 +1976,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2044,7 +2042,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2111,7 +2109,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2180,7 +2178,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2246,7 +2244,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2312,7 +2310,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2378,7 +2376,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2444,7 +2442,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2510,7 +2508,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2576,7 +2574,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2642,7 +2640,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2708,7 +2706,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2774,7 +2772,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2846,7 +2844,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -2951,13 +2949,13 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordUpdateResponse],
+ Optional[RecordResponse],
self._put(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
@@ -2980,10 +2978,10 @@ def update(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordUpdateResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordUpdateResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -3034,7 +3032,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[RecordListResponse]:
+ ) -> SyncV4PagePaginationArray[RecordResponse]:
"""
List, search, sort, and filter a zones' DNS records.
@@ -3082,7 +3080,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/dns_records",
- page=SyncV4PagePaginationArray[RecordListResponse],
+ page=SyncV4PagePaginationArray[RecordResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -3107,7 +3105,7 @@ def list(
record_list_params.RecordListParams,
),
),
- model=cast(Any, RecordListResponse), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, RecordResponse), # Union types cannot be passed in as arguments in the type system
)
def delete(
@@ -3159,9 +3157,9 @@ def batch(
*,
zone_id: str,
deletes: Iterable[record_batch_params.Delete] | NotGiven = NOT_GIVEN,
- patches: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
+ patches: Iterable[BatchPatchParam] | NotGiven = NOT_GIVEN,
posts: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
- puts: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
+ puts: Iterable[BatchPutParam] | 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,
@@ -3242,7 +3240,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3308,7 +3306,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3374,7 +3372,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3440,7 +3438,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3506,7 +3504,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3572,7 +3570,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3638,7 +3636,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3704,7 +3702,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3770,7 +3768,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3837,7 +3835,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3906,7 +3904,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -3972,7 +3970,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4038,7 +4036,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4104,7 +4102,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4170,7 +4168,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4236,7 +4234,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4302,7 +4300,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4368,7 +4366,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4434,7 +4432,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4500,7 +4498,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4572,7 +4570,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -4675,13 +4673,13 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordEditResponse],
+ Optional[RecordResponse],
self._patch(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
@@ -4704,10 +4702,10 @@ def edit(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordEditResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordEditResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -4765,7 +4763,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordGetResponse]:
+ ) -> Optional[RecordResponse]:
"""
DNS Record Details
@@ -4787,7 +4785,7 @@ def get(
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordGetResponse],
+ Optional[RecordResponse],
self._get(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
options=make_request_options(
@@ -4795,10 +4793,10 @@ def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordGetResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordGetResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -4954,7 +4952,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5017,7 +5015,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5080,7 +5078,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5143,7 +5141,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5206,7 +5204,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5269,7 +5267,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5332,7 +5330,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5395,7 +5393,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5458,7 +5456,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5522,7 +5520,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5588,7 +5586,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5651,7 +5649,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5714,7 +5712,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5777,7 +5775,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5840,7 +5838,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5903,7 +5901,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -5966,7 +5964,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -6029,7 +6027,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -6092,7 +6090,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -6155,7 +6153,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -6224,7 +6222,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Create a new DNS record for a zone.
@@ -6326,11 +6324,11 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordCreateResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[RecordCreateResponse],
+ Optional[RecordResponse],
await self._post(
f"/zones/{zone_id}/dns_records",
body=await async_maybe_transform(
@@ -6353,10 +6351,10 @@ async def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordCreateResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordCreateResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -6381,7 +6379,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6447,7 +6445,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6513,7 +6511,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6579,7 +6577,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6645,7 +6643,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6711,7 +6709,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6777,7 +6775,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6843,7 +6841,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6909,7 +6907,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -6976,7 +6974,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7045,7 +7043,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7111,7 +7109,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7177,7 +7175,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7243,7 +7241,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7309,7 +7307,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7375,7 +7373,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7441,7 +7439,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7507,7 +7505,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7573,7 +7571,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7639,7 +7637,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7711,7 +7709,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
"""
Overwrite an existing DNS record.
@@ -7816,13 +7814,13 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordUpdateResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordUpdateResponse],
+ Optional[RecordResponse],
await self._put(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
@@ -7845,10 +7843,10 @@ async def update(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordUpdateResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordUpdateResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -7899,7 +7897,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[RecordListResponse, AsyncV4PagePaginationArray[RecordListResponse]]:
+ ) -> AsyncPaginator[RecordResponse, AsyncV4PagePaginationArray[RecordResponse]]:
"""
List, search, sort, and filter a zones' DNS records.
@@ -7947,7 +7945,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/dns_records",
- page=AsyncV4PagePaginationArray[RecordListResponse],
+ page=AsyncV4PagePaginationArray[RecordResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -7972,7 +7970,7 @@ def list(
record_list_params.RecordListParams,
),
),
- model=cast(Any, RecordListResponse), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, RecordResponse), # Union types cannot be passed in as arguments in the type system
)
async def delete(
@@ -8024,9 +8022,9 @@ async def batch(
*,
zone_id: str,
deletes: Iterable[record_batch_params.Delete] | NotGiven = NOT_GIVEN,
- patches: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
+ patches: Iterable[BatchPatchParam] | NotGiven = NOT_GIVEN,
posts: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
- puts: Iterable[RecordParam] | NotGiven = NOT_GIVEN,
+ puts: Iterable[BatchPutParam] | 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,
@@ -8107,7 +8105,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8173,7 +8171,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8239,7 +8237,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8305,7 +8303,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8371,7 +8369,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8437,7 +8435,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8503,7 +8501,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8569,7 +8567,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8635,7 +8633,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8702,7 +8700,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8771,7 +8769,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8837,7 +8835,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8903,7 +8901,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -8969,7 +8967,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9035,7 +9033,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9101,7 +9099,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9167,7 +9165,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9233,7 +9231,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9299,7 +9297,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9365,7 +9363,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9437,7 +9435,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
"""
Update an existing DNS record.
@@ -9540,13 +9538,13 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordEditResponse]:
+ ) -> Optional[RecordResponse]:
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordEditResponse],
+ Optional[RecordResponse],
await self._patch(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
@@ -9569,10 +9567,10 @@ async def edit(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordEditResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordEditResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -9630,7 +9628,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RecordGetResponse]:
+ ) -> Optional[RecordResponse]:
"""
DNS Record Details
@@ -9652,7 +9650,7 @@ async def get(
if not dns_record_id:
raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}")
return cast(
- Optional[RecordGetResponse],
+ Optional[RecordResponse],
await self._get(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
options=make_request_options(
@@ -9660,10 +9658,10 @@ async def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[RecordGetResponse]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RecordResponse]]._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RecordGetResponse]
+ Any, ResultWrapper[RecordResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py
index cc36e94c2c0..13c7472b8f1 100644
--- a/src/cloudflare/types/dns/__init__.py
+++ b/src/cloudflare/types/dns/__init__.py
@@ -28,9 +28,11 @@
from .dnskey_record import DNSKEYRecord as DNSKEYRecord
from .smimea_record import SMIMEARecord as SMIMEARecord
from .a_record_param import ARecordParam as ARecordParam
+from .batch_put_param import BatchPutParam as BatchPutParam
from .ds_record_param import DSRecordParam as DSRecordParam
from .mx_record_param import MXRecordParam as MXRecordParam
from .ns_record_param import NSRecordParam as NSRecordParam
+from .record_response import RecordResponse as RecordResponse
from .caa_record_param import CAARecordParam as CAARecordParam
from .loc_record_param import LOCRecordParam as LOCRecordParam
from .ptr_record_param import PTRRecordParam as PTRRecordParam
@@ -38,6 +40,7 @@
from .txt_record_param import TXTRecordParam as TXTRecordParam
from .uri_record_param import URIRecordParam as URIRecordParam
from .aaaa_record_param import AAAARecordParam as AAAARecordParam
+from .batch_patch_param import BatchPatchParam as BatchPatchParam
from .cert_record_param import CERTRecordParam as CERTRecordParam
from .svcb_record_param import SVCBRecordParam as SVCBRecordParam
from .tlsa_record_param import TLSARecordParam as TLSARecordParam
@@ -52,22 +55,17 @@
from .dns_analytics_query import DNSAnalyticsQuery as DNSAnalyticsQuery
from .dnskey_record_param import DNSKEYRecordParam as DNSKEYRecordParam
from .record_batch_params import RecordBatchParams as RecordBatchParams
-from .record_get_response import RecordGetResponse as RecordGetResponse
from .setting_edit_params import SettingEditParams as SettingEditParams
from .smimea_record_param import SMIMEARecordParam as SMIMEARecordParam
from .record_create_params import RecordCreateParams as RecordCreateParams
-from .record_edit_response import RecordEditResponse as RecordEditResponse
from .record_import_params import RecordImportParams as RecordImportParams
-from .record_list_response import RecordListResponse as RecordListResponse
from .record_scan_response import RecordScanResponse as RecordScanResponse
from .record_update_params import RecordUpdateParams as RecordUpdateParams
from .setting_get_response import SettingGetResponse as SettingGetResponse
from .record_batch_response import RecordBatchResponse as RecordBatchResponse
from .setting_edit_response import SettingEditResponse as SettingEditResponse
from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse
-from .record_create_response import RecordCreateResponse as RecordCreateResponse
from .record_delete_response import RecordDeleteResponse as RecordDeleteResponse
from .record_export_response import RecordExportResponse as RecordExportResponse
from .record_import_response import RecordImportResponse as RecordImportResponse
-from .record_update_response import RecordUpdateResponse as RecordUpdateResponse
from .dns_analytics_nominal_metric import DNSAnalyticsNominalMetric as DNSAnalyticsNominalMetric
diff --git a/src/cloudflare/types/dns/batch_patch_param.py b/src/cloudflare/types/dns/batch_patch_param.py
new file mode 100644
index 00000000000..5b00d937038
--- /dev/null
+++ b/src/cloudflare/types/dns/batch_patch_param.py
@@ -0,0 +1,110 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing import List, Union
+from typing_extensions import Literal, TypeAlias, TypedDict
+
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+from .a_record_param import ARecordParam
+from .ds_record_param import DSRecordParam
+from .mx_record_param import MXRecordParam
+from .ns_record_param import NSRecordParam
+from .caa_record_param import CAARecordParam
+from .loc_record_param import LOCRecordParam
+from .ptr_record_param import PTRRecordParam
+from .srv_record_param import SRVRecordParam
+from .txt_record_param import TXTRecordParam
+from .uri_record_param import URIRecordParam
+from .aaaa_record_param import AAAARecordParam
+from .cert_record_param import CERTRecordParam
+from .svcb_record_param import SVCBRecordParam
+from .tlsa_record_param import TLSARecordParam
+from .cname_record_param import CNAMERecordParam
+from .https_record_param import HTTPSRecordParam
+from .naptr_record_param import NAPTRRecordParam
+from .sshfp_record_param import SSHFPRecordParam
+from .dnskey_record_param import DNSKEYRecordParam
+from .smimea_record_param import SMIMEARecordParam
+
+__all__ = ["BatchPatchParam", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
+
+
+class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False):
+ ipv4_only: bool
+ """
+ When enabled, only A records will be generated, and AAAA records will not be
+ created. This setting is intended for exceptional cases. Note that this option
+ only applies to proxied records and it has no effect on whether Cloudflare
+ communicates with the origin using IPv4 or IPv6.
+ """
+
+ ipv6_only: bool
+ """
+ When enabled, only AAAA records will be generated, and A records will not be
+ created. This setting is intended for exceptional cases. Note that this option
+ only applies to proxied records and it has no effect on whether Cloudflare
+ communicates with the origin using IPv4 or IPv6.
+ """
+
+
+class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
+ content: str
+ """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ settings: DNSRecordsOpenpgpkeyRecordSettings
+ """Settings for the DNS record."""
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
+ type: Literal["OPENPGPKEY"]
+ """Record type."""
+
+
+BatchPatchParam: TypeAlias = Union[
+ ARecordParam,
+ AAAARecordParam,
+ CAARecordParam,
+ CERTRecordParam,
+ CNAMERecordParam,
+ DNSKEYRecordParam,
+ DSRecordParam,
+ HTTPSRecordParam,
+ LOCRecordParam,
+ MXRecordParam,
+ NAPTRRecordParam,
+ NSRecordParam,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecordParam,
+ SMIMEARecordParam,
+ SRVRecordParam,
+ SSHFPRecordParam,
+ SVCBRecordParam,
+ TLSARecordParam,
+ TXTRecordParam,
+ URIRecordParam,
+]
diff --git a/src/cloudflare/types/dns/batch_put_param.py b/src/cloudflare/types/dns/batch_put_param.py
new file mode 100644
index 00000000000..4d62eb80e9b
--- /dev/null
+++ b/src/cloudflare/types/dns/batch_put_param.py
@@ -0,0 +1,110 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing import List, Union
+from typing_extensions import Literal, TypeAlias, TypedDict
+
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+from .a_record_param import ARecordParam
+from .ds_record_param import DSRecordParam
+from .mx_record_param import MXRecordParam
+from .ns_record_param import NSRecordParam
+from .caa_record_param import CAARecordParam
+from .loc_record_param import LOCRecordParam
+from .ptr_record_param import PTRRecordParam
+from .srv_record_param import SRVRecordParam
+from .txt_record_param import TXTRecordParam
+from .uri_record_param import URIRecordParam
+from .aaaa_record_param import AAAARecordParam
+from .cert_record_param import CERTRecordParam
+from .svcb_record_param import SVCBRecordParam
+from .tlsa_record_param import TLSARecordParam
+from .cname_record_param import CNAMERecordParam
+from .https_record_param import HTTPSRecordParam
+from .naptr_record_param import NAPTRRecordParam
+from .sshfp_record_param import SSHFPRecordParam
+from .dnskey_record_param import DNSKEYRecordParam
+from .smimea_record_param import SMIMEARecordParam
+
+__all__ = ["BatchPutParam", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
+
+
+class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False):
+ ipv4_only: bool
+ """
+ When enabled, only A records will be generated, and AAAA records will not be
+ created. This setting is intended for exceptional cases. Note that this option
+ only applies to proxied records and it has no effect on whether Cloudflare
+ communicates with the origin using IPv4 or IPv6.
+ """
+
+ ipv6_only: bool
+ """
+ When enabled, only AAAA records will be generated, and A records will not be
+ created. This setting is intended for exceptional cases. Note that this option
+ only applies to proxied records and it has no effect on whether Cloudflare
+ communicates with the origin using IPv4 or IPv6.
+ """
+
+
+class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
+ content: str
+ """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ settings: DNSRecordsOpenpgpkeyRecordSettings
+ """Settings for the DNS record."""
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
+ type: Literal["OPENPGPKEY"]
+ """Record type."""
+
+
+BatchPutParam: TypeAlias = Union[
+ ARecordParam,
+ AAAARecordParam,
+ CAARecordParam,
+ CERTRecordParam,
+ CNAMERecordParam,
+ DNSKEYRecordParam,
+ DSRecordParam,
+ HTTPSRecordParam,
+ LOCRecordParam,
+ MXRecordParam,
+ NAPTRRecordParam,
+ NSRecordParam,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecordParam,
+ SMIMEARecordParam,
+ SRVRecordParam,
+ SSHFPRecordParam,
+ SVCBRecordParam,
+ TLSARecordParam,
+ TXTRecordParam,
+ URIRecordParam,
+]
diff --git a/src/cloudflare/types/dns/record_batch_params.py b/src/cloudflare/types/dns/record_batch_params.py
index 8885a753a1e..cb31cfdef94 100644
--- a/src/cloudflare/types/dns/record_batch_params.py
+++ b/src/cloudflare/types/dns/record_batch_params.py
@@ -6,6 +6,8 @@
from typing_extensions import Required, TypedDict
from .record_param import RecordParam
+from .batch_put_param import BatchPutParam
+from .batch_patch_param import BatchPatchParam
__all__ = ["RecordBatchParams", "Delete"]
@@ -16,11 +18,11 @@ class RecordBatchParams(TypedDict, total=False):
deletes: Iterable[Delete]
- patches: Iterable[RecordParam]
+ patches: Iterable[BatchPatchParam]
posts: Iterable[RecordParam]
- puts: Iterable[RecordParam]
+ puts: Iterable[BatchPutParam]
class Delete(TypedDict, total=False):
diff --git a/src/cloudflare/types/dns/record_batch_response.py b/src/cloudflare/types/dns/record_batch_response.py
index 1c6ac28c90b..4bdc03c4b1c 100644
--- a/src/cloudflare/types/dns/record_batch_response.py
+++ b/src/cloudflare/types/dns/record_batch_response.py
@@ -1,370 +1,18 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union, Optional
-from typing_extensions import Literal, TypeAlias
+from typing import List, Optional
-from .ttl import TTL
-from .a_record import ARecord
from ..._models import BaseModel
-from .ds_record import DSRecord
-from .mx_record import MXRecord
-from .ns_record import NSRecord
-from .caa_record import CAARecord
-from .loc_record import LOCRecord
-from .ptr_record import PTRRecord
-from .srv_record import SRVRecord
-from .txt_record import TXTRecord
-from .uri_record import URIRecord
-from .aaaa_record import AAAARecord
-from .cert_record import CERTRecord
-from .record_tags import RecordTags
-from .svcb_record import SVCBRecord
-from .tlsa_record import TLSARecord
-from .cname_record import CNAMERecord
-from .https_record import HTTPSRecord
-from .naptr_record import NAPTRRecord
-from .sshfp_record import SSHFPRecord
-from .dnskey_record import DNSKEYRecord
-from .smimea_record import SMIMEARecord
+from .record_response import RecordResponse
-__all__ = [
- "RecordBatchResponse",
- "Delete",
- "DeleteDNSRecordsOpenpgpkeyRecord",
- "DeleteDNSRecordsOpenpgpkeyRecordSettings",
- "Patch",
- "PatchDNSRecordsOpenpgpkeyRecord",
- "PatchDNSRecordsOpenpgpkeyRecordSettings",
- "Post",
- "PostDNSRecordsOpenpgpkeyRecord",
- "PostDNSRecordsOpenpgpkeyRecordSettings",
- "Put",
- "PutDNSRecordsOpenpgpkeyRecord",
- "PutDNSRecordsOpenpgpkeyRecordSettings",
-]
-
-
-class DeleteDNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[DeleteDNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-Delete: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DeleteDNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
-
-
-class PatchDNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class PatchDNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[PatchDNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-Patch: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PatchDNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
-
-
-class PostDNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class PostDNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[PostDNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-Post: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PostDNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
-
-
-class PutDNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class PutDNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[PutDNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-Put: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PutDNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
+__all__ = ["RecordBatchResponse"]
class RecordBatchResponse(BaseModel):
- deletes: Optional[List[Delete]] = None
+ deletes: Optional[List[RecordResponse]] = None
- patches: Optional[List[Patch]] = None
+ patches: Optional[List[RecordResponse]] = None
- posts: Optional[List[Post]] = None
+ posts: Optional[List[RecordResponse]] = None
- puts: Optional[List[Put]] = None
+ puts: Optional[List[RecordResponse]] = None
diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py
deleted file mode 100644
index 516bf5ac45b..00000000000
--- a/src/cloudflare/types/dns/record_create_response.py
+++ /dev/null
@@ -1,109 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from typing_extensions import Literal, TypeAlias
-
-from .ttl import TTL
-from .a_record import ARecord
-from ..._models import BaseModel
-from .ds_record import DSRecord
-from .mx_record import MXRecord
-from .ns_record import NSRecord
-from .caa_record import CAARecord
-from .loc_record import LOCRecord
-from .ptr_record import PTRRecord
-from .srv_record import SRVRecord
-from .txt_record import TXTRecord
-from .uri_record import URIRecord
-from .aaaa_record import AAAARecord
-from .cert_record import CERTRecord
-from .record_tags import RecordTags
-from .svcb_record import SVCBRecord
-from .tlsa_record import TLSARecord
-from .cname_record import CNAMERecord
-from .https_record import HTTPSRecord
-from .naptr_record import NAPTRRecord
-from .sshfp_record import SSHFPRecord
-from .dnskey_record import DNSKEYRecord
-from .smimea_record import SMIMEARecord
-
-__all__ = ["RecordCreateResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
-
-
-class DNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class DNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-RecordCreateResponse: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py
deleted file mode 100644
index 5bc8c4ec0e0..00000000000
--- a/src/cloudflare/types/dns/record_edit_response.py
+++ /dev/null
@@ -1,109 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from typing_extensions import Literal, TypeAlias
-
-from .ttl import TTL
-from .a_record import ARecord
-from ..._models import BaseModel
-from .ds_record import DSRecord
-from .mx_record import MXRecord
-from .ns_record import NSRecord
-from .caa_record import CAARecord
-from .loc_record import LOCRecord
-from .ptr_record import PTRRecord
-from .srv_record import SRVRecord
-from .txt_record import TXTRecord
-from .uri_record import URIRecord
-from .aaaa_record import AAAARecord
-from .cert_record import CERTRecord
-from .record_tags import RecordTags
-from .svcb_record import SVCBRecord
-from .tlsa_record import TLSARecord
-from .cname_record import CNAMERecord
-from .https_record import HTTPSRecord
-from .naptr_record import NAPTRRecord
-from .sshfp_record import SSHFPRecord
-from .dnskey_record import DNSKEYRecord
-from .smimea_record import SMIMEARecord
-
-__all__ = ["RecordEditResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
-
-
-class DNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class DNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-RecordEditResponse: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py
deleted file mode 100644
index 9a8641ebd58..00000000000
--- a/src/cloudflare/types/dns/record_list_response.py
+++ /dev/null
@@ -1,109 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from typing_extensions import Literal, TypeAlias
-
-from .ttl import TTL
-from .a_record import ARecord
-from ..._models import BaseModel
-from .ds_record import DSRecord
-from .mx_record import MXRecord
-from .ns_record import NSRecord
-from .caa_record import CAARecord
-from .loc_record import LOCRecord
-from .ptr_record import PTRRecord
-from .srv_record import SRVRecord
-from .txt_record import TXTRecord
-from .uri_record import URIRecord
-from .aaaa_record import AAAARecord
-from .cert_record import CERTRecord
-from .record_tags import RecordTags
-from .svcb_record import SVCBRecord
-from .tlsa_record import TLSARecord
-from .cname_record import CNAMERecord
-from .https_record import HTTPSRecord
-from .naptr_record import NAPTRRecord
-from .sshfp_record import SSHFPRecord
-from .dnskey_record import DNSKEYRecord
-from .smimea_record import SMIMEARecord
-
-__all__ = ["RecordListResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
-
-
-class DNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class DNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-RecordListResponse: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_response.py
similarity index 95%
rename from src/cloudflare/types/dns/record_get_response.py
rename to src/cloudflare/types/dns/record_response.py
index 453fb83aa61..ab0741e7334 100644
--- a/src/cloudflare/types/dns/record_get_response.py
+++ b/src/cloudflare/types/dns/record_response.py
@@ -27,7 +27,7 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordGetResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
+__all__ = ["RecordResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
class DNSRecordsOpenpgpkeyRecordSettings(BaseModel):
@@ -84,7 +84,7 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel):
"""Record type."""
-RecordGetResponse: TypeAlias = Union[
+RecordResponse: TypeAlias = Union[
ARecord,
AAAARecord,
CAARecord,
diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py
deleted file mode 100644
index 55e94a1dd9c..00000000000
--- a/src/cloudflare/types/dns/record_update_response.py
+++ /dev/null
@@ -1,109 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from typing_extensions import Literal, TypeAlias
-
-from .ttl import TTL
-from .a_record import ARecord
-from ..._models import BaseModel
-from .ds_record import DSRecord
-from .mx_record import MXRecord
-from .ns_record import NSRecord
-from .caa_record import CAARecord
-from .loc_record import LOCRecord
-from .ptr_record import PTRRecord
-from .srv_record import SRVRecord
-from .txt_record import TXTRecord
-from .uri_record import URIRecord
-from .aaaa_record import AAAARecord
-from .cert_record import CERTRecord
-from .record_tags import RecordTags
-from .svcb_record import SVCBRecord
-from .tlsa_record import TLSARecord
-from .cname_record import CNAMERecord
-from .https_record import HTTPSRecord
-from .naptr_record import NAPTRRecord
-from .sshfp_record import SSHFPRecord
-from .dnskey_record import DNSKEYRecord
-from .smimea_record import SMIMEARecord
-
-__all__ = ["RecordUpdateResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
-
-
-class DNSRecordsOpenpgpkeyRecordSettings(BaseModel):
- ipv4_only: Optional[bool] = None
- """
- When enabled, only A records will be generated, and AAAA records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
- ipv6_only: Optional[bool] = None
- """
- When enabled, only AAAA records will be generated, and A records will not be
- created. This setting is intended for exceptional cases. Note that this option
- only applies to proxied records and it has no effect on whether Cloudflare
- communicates with the origin using IPv4 or IPv6.
- """
-
-
-class DNSRecordsOpenpgpkeyRecord(BaseModel):
- comment: Optional[str] = None
- """Comments or notes about the DNS record.
-
- This field has no effect on DNS responses.
- """
-
- content: Optional[str] = None
- """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
-
- name: Optional[str] = None
- """DNS record name (or @ for the zone apex) in Punycode."""
-
- proxied: Optional[bool] = None
- """
- Whether the record is receiving the performance and security benefits of
- Cloudflare.
- """
-
- settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None
- """Settings for the DNS record."""
-
- tags: Optional[List[RecordTags]] = None
- """Custom tags for the DNS record. This field has no effect on DNS responses."""
-
- ttl: Optional[TTL] = None
- """Time To Live (TTL) of the DNS record in seconds.
-
- Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
- minimum reduced to 30 for Enterprise zones.
- """
-
- type: Optional[Literal["OPENPGPKEY"]] = None
- """Record type."""
-
-
-RecordUpdateResponse: TypeAlias = Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DNSRecordsOpenpgpkeyRecord,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
-]
diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py
index 7857be9faaa..48df60e80c7 100644
--- a/tests/api_resources/dns/test_records.py
+++ b/tests/api_resources/dns/test_records.py
@@ -10,15 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.dns import (
- RecordGetResponse,
- RecordEditResponse,
- RecordListResponse,
+ RecordResponse,
RecordScanResponse,
RecordBatchResponse,
- RecordCreateResponse,
RecordDeleteResponse,
RecordImportResponse,
- RecordUpdateResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
@@ -34,7 +30,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -53,7 +49,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -65,7 +61,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -77,7 +73,7 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -95,7 +91,7 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -114,7 +110,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -126,7 +122,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -138,7 +134,7 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -156,7 +152,7 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -179,7 +175,7 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -191,7 +187,7 @@ def test_raw_response_create_overload_3(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -203,7 +199,7 @@ def test_streaming_response_create_overload_3(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -221,7 +217,7 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -245,7 +241,7 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -257,7 +253,7 @@ def test_raw_response_create_overload_4(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -269,7 +265,7 @@ def test_streaming_response_create_overload_4(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -287,7 +283,7 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -307,7 +303,7 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -319,7 +315,7 @@ def test_raw_response_create_overload_5(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -331,7 +327,7 @@ def test_streaming_response_create_overload_5(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -349,7 +345,7 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -373,7 +369,7 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -385,7 +381,7 @@ def test_raw_response_create_overload_6(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -397,7 +393,7 @@ def test_streaming_response_create_overload_6(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -415,7 +411,7 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -439,7 +435,7 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -451,7 +447,7 @@ def test_raw_response_create_overload_7(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -463,7 +459,7 @@ def test_streaming_response_create_overload_7(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -481,7 +477,7 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -504,7 +500,7 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -516,7 +512,7 @@ def test_raw_response_create_overload_8(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -528,7 +524,7 @@ def test_streaming_response_create_overload_8(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -546,7 +542,7 @@ def test_method_create_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -578,7 +574,7 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -590,7 +586,7 @@ def test_raw_response_create_overload_9(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -602,7 +598,7 @@ def test_streaming_response_create_overload_9(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -620,7 +616,7 @@ def test_method_create_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -640,7 +636,7 @@ def test_method_create_with_all_params_overload_10(self, client: Cloudflare) ->
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -652,7 +648,7 @@ def test_raw_response_create_overload_10(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -664,7 +660,7 @@ def test_streaming_response_create_overload_10(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -682,7 +678,7 @@ def test_method_create_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -708,7 +704,7 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) ->
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -720,7 +716,7 @@ def test_raw_response_create_overload_11(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -732,7 +728,7 @@ def test_streaming_response_create_overload_11(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -750,7 +746,7 @@ def test_method_create_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -769,7 +765,7 @@ def test_method_create_with_all_params_overload_12(self, client: Cloudflare) ->
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -781,7 +777,7 @@ def test_raw_response_create_overload_12(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -793,7 +789,7 @@ def test_streaming_response_create_overload_12(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -811,7 +807,7 @@ def test_method_create_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -830,7 +826,7 @@ def test_method_create_with_all_params_overload_13(self, client: Cloudflare) ->
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -842,7 +838,7 @@ def test_raw_response_create_overload_13(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -854,7 +850,7 @@ def test_streaming_response_create_overload_13(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -872,7 +868,7 @@ def test_method_create_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -891,7 +887,7 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) ->
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -903,7 +899,7 @@ def test_raw_response_create_overload_14(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -915,7 +911,7 @@ def test_streaming_response_create_overload_14(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -933,7 +929,7 @@ def test_method_create_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -957,7 +953,7 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) ->
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -969,7 +965,7 @@ def test_raw_response_create_overload_15(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -981,7 +977,7 @@ def test_streaming_response_create_overload_15(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -999,7 +995,7 @@ def test_method_create_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1023,7 +1019,7 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) ->
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1035,7 +1031,7 @@ def test_raw_response_create_overload_16(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1047,7 +1043,7 @@ def test_streaming_response_create_overload_16(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1065,7 +1061,7 @@ def test_method_create_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1088,7 +1084,7 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) ->
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1100,7 +1096,7 @@ def test_raw_response_create_overload_17(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1112,7 +1108,7 @@ def test_streaming_response_create_overload_17(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1130,7 +1126,7 @@ def test_method_create_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1153,7 +1149,7 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) ->
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1165,7 +1161,7 @@ def test_raw_response_create_overload_18(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1177,7 +1173,7 @@ def test_streaming_response_create_overload_18(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1195,7 +1191,7 @@ def test_method_create_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1219,7 +1215,7 @@ def test_method_create_with_all_params_overload_19(self, client: Cloudflare) ->
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1231,7 +1227,7 @@ def test_raw_response_create_overload_19(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1243,7 +1239,7 @@ def test_streaming_response_create_overload_19(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1261,7 +1257,7 @@ def test_method_create_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1280,7 +1276,7 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) ->
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1292,7 +1288,7 @@ def test_raw_response_create_overload_20(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1304,7 +1300,7 @@ def test_streaming_response_create_overload_20(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1322,7 +1318,7 @@ def test_method_create_overload_21(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1345,7 +1341,7 @@ def test_method_create_with_all_params_overload_21(self, client: Cloudflare) ->
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1357,7 +1353,7 @@ def test_raw_response_create_overload_21(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1369,7 +1365,7 @@ def test_streaming_response_create_overload_21(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1388,7 +1384,7 @@ def test_method_update_overload_1(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1408,7 +1404,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1421,7 +1417,7 @@ def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1434,7 +1430,7 @@ def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1460,7 +1456,7 @@ def test_method_update_overload_2(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1480,7 +1476,7 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1493,7 +1489,7 @@ def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1506,7 +1502,7 @@ def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1532,7 +1528,7 @@ def test_method_update_overload_3(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1556,7 +1552,7 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1569,7 +1565,7 @@ def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1582,7 +1578,7 @@ def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1608,7 +1604,7 @@ def test_method_update_overload_4(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1633,7 +1629,7 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1646,7 +1642,7 @@ def test_raw_response_update_overload_4(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1659,7 +1655,7 @@ def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1685,7 +1681,7 @@ def test_method_update_overload_5(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1706,7 +1702,7 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1719,7 +1715,7 @@ def test_raw_response_update_overload_5(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1732,7 +1728,7 @@ def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1758,7 +1754,7 @@ def test_method_update_overload_6(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1783,7 +1779,7 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1796,7 +1792,7 @@ def test_raw_response_update_overload_6(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1809,7 +1805,7 @@ def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1835,7 +1831,7 @@ def test_method_update_overload_7(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1860,7 +1856,7 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1873,7 +1869,7 @@ def test_raw_response_update_overload_7(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1886,7 +1882,7 @@ def test_streaming_response_update_overload_7(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1912,7 +1908,7 @@ def test_method_update_overload_8(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1936,7 +1932,7 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1949,7 +1945,7 @@ def test_raw_response_update_overload_8(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -1962,7 +1958,7 @@ def test_streaming_response_update_overload_8(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -1988,7 +1984,7 @@ def test_method_update_overload_9(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2021,7 +2017,7 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2034,7 +2030,7 @@ def test_raw_response_update_overload_9(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2047,7 +2043,7 @@ def test_streaming_response_update_overload_9(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2073,7 +2069,7 @@ def test_method_update_overload_10(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2094,7 +2090,7 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) ->
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2107,7 +2103,7 @@ def test_raw_response_update_overload_10(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2120,7 +2116,7 @@ def test_streaming_response_update_overload_10(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2146,7 +2142,7 @@ def test_method_update_overload_11(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2173,7 +2169,7 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) ->
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2186,7 +2182,7 @@ def test_raw_response_update_overload_11(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2199,7 +2195,7 @@ def test_streaming_response_update_overload_11(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2225,7 +2221,7 @@ def test_method_update_overload_12(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2245,7 +2241,7 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) ->
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2258,7 +2254,7 @@ def test_raw_response_update_overload_12(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2271,7 +2267,7 @@ def test_streaming_response_update_overload_12(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2297,7 +2293,7 @@ def test_method_update_overload_13(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2317,7 +2313,7 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) ->
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2330,7 +2326,7 @@ def test_raw_response_update_overload_13(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2343,7 +2339,7 @@ def test_streaming_response_update_overload_13(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2369,7 +2365,7 @@ def test_method_update_overload_14(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2389,7 +2385,7 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) ->
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2402,7 +2398,7 @@ def test_raw_response_update_overload_14(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2415,7 +2411,7 @@ def test_streaming_response_update_overload_14(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2441,7 +2437,7 @@ def test_method_update_overload_15(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2466,7 +2462,7 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) ->
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2479,7 +2475,7 @@ def test_raw_response_update_overload_15(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2492,7 +2488,7 @@ def test_streaming_response_update_overload_15(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2518,7 +2514,7 @@ def test_method_update_overload_16(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2543,7 +2539,7 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) ->
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2556,7 +2552,7 @@ def test_raw_response_update_overload_16(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2569,7 +2565,7 @@ def test_streaming_response_update_overload_16(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2595,7 +2591,7 @@ def test_method_update_overload_17(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2619,7 +2615,7 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) ->
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2632,7 +2628,7 @@ def test_raw_response_update_overload_17(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2645,7 +2641,7 @@ def test_streaming_response_update_overload_17(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2671,7 +2667,7 @@ def test_method_update_overload_18(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2695,7 +2691,7 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) ->
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2708,7 +2704,7 @@ def test_raw_response_update_overload_18(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2721,7 +2717,7 @@ def test_streaming_response_update_overload_18(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2747,7 +2743,7 @@ def test_method_update_overload_19(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2772,7 +2768,7 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) ->
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2785,7 +2781,7 @@ def test_raw_response_update_overload_19(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2798,7 +2794,7 @@ def test_streaming_response_update_overload_19(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2824,7 +2820,7 @@ def test_method_update_overload_20(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2844,7 +2840,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) ->
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2857,7 +2853,7 @@ def test_raw_response_update_overload_20(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2870,7 +2866,7 @@ def test_streaming_response_update_overload_20(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2896,7 +2892,7 @@ def test_method_update_overload_21(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2920,7 +2916,7 @@ def test_method_update_with_all_params_overload_21(self, client: Cloudflare) ->
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2933,7 +2929,7 @@ def test_raw_response_update_overload_21(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -2946,7 +2942,7 @@ def test_streaming_response_update_overload_21(self, client: Cloudflare) -> None
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -2970,7 +2966,7 @@ def test_method_list(self, client: Cloudflare) -> None:
record = client.dns.records.list(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(SyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
@@ -3014,7 +3010,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
tag_match="any",
type="A",
)
- assert_matches_type(SyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
@@ -3025,7 +3021,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
@@ -3036,7 +3032,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3198,7 +3194,7 @@ def test_method_edit_overload_1(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3218,7 +3214,7 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3231,7 +3227,7 @@ def test_raw_response_edit_overload_1(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3244,7 +3240,7 @@ def test_streaming_response_edit_overload_1(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3270,7 +3266,7 @@ def test_method_edit_overload_2(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3290,7 +3286,7 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3303,7 +3299,7 @@ def test_raw_response_edit_overload_2(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3316,7 +3312,7 @@ def test_streaming_response_edit_overload_2(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3342,7 +3338,7 @@ def test_method_edit_overload_3(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3366,7 +3362,7 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3379,7 +3375,7 @@ def test_raw_response_edit_overload_3(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3392,7 +3388,7 @@ def test_streaming_response_edit_overload_3(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3418,7 +3414,7 @@ def test_method_edit_overload_4(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3443,7 +3439,7 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3456,7 +3452,7 @@ def test_raw_response_edit_overload_4(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3469,7 +3465,7 @@ def test_streaming_response_edit_overload_4(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3495,7 +3491,7 @@ def test_method_edit_overload_5(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3516,7 +3512,7 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3529,7 +3525,7 @@ def test_raw_response_edit_overload_5(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3542,7 +3538,7 @@ def test_streaming_response_edit_overload_5(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3568,7 +3564,7 @@ def test_method_edit_overload_6(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3593,7 +3589,7 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3606,7 +3602,7 @@ def test_raw_response_edit_overload_6(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3619,7 +3615,7 @@ def test_streaming_response_edit_overload_6(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3645,7 +3641,7 @@ def test_method_edit_overload_7(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3670,7 +3666,7 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3683,7 +3679,7 @@ def test_raw_response_edit_overload_7(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3696,7 +3692,7 @@ def test_streaming_response_edit_overload_7(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3722,7 +3718,7 @@ def test_method_edit_overload_8(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3746,7 +3742,7 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3759,7 +3755,7 @@ def test_raw_response_edit_overload_8(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3772,7 +3768,7 @@ def test_streaming_response_edit_overload_8(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3798,7 +3794,7 @@ def test_method_edit_overload_9(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3831,7 +3827,7 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3844,7 +3840,7 @@ def test_raw_response_edit_overload_9(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3857,7 +3853,7 @@ def test_streaming_response_edit_overload_9(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3883,7 +3879,7 @@ def test_method_edit_overload_10(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3904,7 +3900,7 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3917,7 +3913,7 @@ def test_raw_response_edit_overload_10(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3930,7 +3926,7 @@ def test_streaming_response_edit_overload_10(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -3956,7 +3952,7 @@ def test_method_edit_overload_11(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3983,7 +3979,7 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -3996,7 +3992,7 @@ def test_raw_response_edit_overload_11(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4009,7 +4005,7 @@ def test_streaming_response_edit_overload_11(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4035,7 +4031,7 @@ def test_method_edit_overload_12(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4055,7 +4051,7 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4068,7 +4064,7 @@ def test_raw_response_edit_overload_12(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4081,7 +4077,7 @@ def test_streaming_response_edit_overload_12(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4107,7 +4103,7 @@ def test_method_edit_overload_13(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4127,7 +4123,7 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4140,7 +4136,7 @@ def test_raw_response_edit_overload_13(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4153,7 +4149,7 @@ def test_streaming_response_edit_overload_13(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4179,7 +4175,7 @@ def test_method_edit_overload_14(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4199,7 +4195,7 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4212,7 +4208,7 @@ def test_raw_response_edit_overload_14(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4225,7 +4221,7 @@ def test_streaming_response_edit_overload_14(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4251,7 +4247,7 @@ def test_method_edit_overload_15(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4276,7 +4272,7 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4289,7 +4285,7 @@ def test_raw_response_edit_overload_15(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4302,7 +4298,7 @@ def test_streaming_response_edit_overload_15(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4328,7 +4324,7 @@ def test_method_edit_overload_16(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4353,7 +4349,7 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4366,7 +4362,7 @@ def test_raw_response_edit_overload_16(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4379,7 +4375,7 @@ def test_streaming_response_edit_overload_16(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4405,7 +4401,7 @@ def test_method_edit_overload_17(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4429,7 +4425,7 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4442,7 +4438,7 @@ def test_raw_response_edit_overload_17(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4455,7 +4451,7 @@ def test_streaming_response_edit_overload_17(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4481,7 +4477,7 @@ def test_method_edit_overload_18(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4505,7 +4501,7 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4518,7 +4514,7 @@ def test_raw_response_edit_overload_18(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4531,7 +4527,7 @@ def test_streaming_response_edit_overload_18(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4557,7 +4553,7 @@ def test_method_edit_overload_19(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4582,7 +4578,7 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4595,7 +4591,7 @@ def test_raw_response_edit_overload_19(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4608,7 +4604,7 @@ def test_streaming_response_edit_overload_19(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4634,7 +4630,7 @@ def test_method_edit_overload_20(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4654,7 +4650,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4667,7 +4663,7 @@ def test_raw_response_edit_overload_20(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4680,7 +4676,7 @@ def test_streaming_response_edit_overload_20(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4706,7 +4702,7 @@ def test_method_edit_overload_21(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4730,7 +4726,7 @@ def test_method_edit_with_all_params_overload_21(self, client: Cloudflare) -> No
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4743,7 +4739,7 @@ def test_raw_response_edit_overload_21(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4756,7 +4752,7 @@ def test_streaming_response_edit_overload_21(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4819,7 +4815,7 @@ def test_method_get(self, client: Cloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
@@ -4831,7 +4827,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
@@ -4843,7 +4839,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = response.parse()
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -4969,7 +4965,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -4988,7 +4984,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5000,7 +4996,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5012,7 +5008,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5030,7 +5026,7 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5049,7 +5045,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5061,7 +5057,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5073,7 +5069,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5091,7 +5087,7 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5114,7 +5110,7 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5126,7 +5122,7 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5138,7 +5134,7 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5156,7 +5152,7 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5180,7 +5176,7 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5192,7 +5188,7 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5204,7 +5200,7 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5222,7 +5218,7 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5242,7 +5238,7 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5254,7 +5250,7 @@ async def test_raw_response_create_overload_5(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5266,7 +5262,7 @@ async def test_streaming_response_create_overload_5(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5284,7 +5280,7 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5308,7 +5304,7 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5320,7 +5316,7 @@ async def test_raw_response_create_overload_6(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5332,7 +5328,7 @@ async def test_streaming_response_create_overload_6(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5350,7 +5346,7 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5374,7 +5370,7 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5386,7 +5382,7 @@ async def test_raw_response_create_overload_7(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5398,7 +5394,7 @@ async def test_streaming_response_create_overload_7(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5416,7 +5412,7 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5439,7 +5435,7 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5451,7 +5447,7 @@ async def test_raw_response_create_overload_8(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5463,7 +5459,7 @@ async def test_streaming_response_create_overload_8(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5481,7 +5477,7 @@ async def test_method_create_overload_9(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5513,7 +5509,7 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5525,7 +5521,7 @@ async def test_raw_response_create_overload_9(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5537,7 +5533,7 @@ async def test_streaming_response_create_overload_9(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5555,7 +5551,7 @@ async def test_method_create_overload_10(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5575,7 +5571,7 @@ async def test_method_create_with_all_params_overload_10(self, async_client: Asy
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5587,7 +5583,7 @@ async def test_raw_response_create_overload_10(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5599,7 +5595,7 @@ async def test_streaming_response_create_overload_10(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5617,7 +5613,7 @@ async def test_method_create_overload_11(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5643,7 +5639,7 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5655,7 +5651,7 @@ async def test_raw_response_create_overload_11(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5667,7 +5663,7 @@ async def test_streaming_response_create_overload_11(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5685,7 +5681,7 @@ async def test_method_create_overload_12(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5704,7 +5700,7 @@ async def test_method_create_with_all_params_overload_12(self, async_client: Asy
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5716,7 +5712,7 @@ async def test_raw_response_create_overload_12(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5728,7 +5724,7 @@ async def test_streaming_response_create_overload_12(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5746,7 +5742,7 @@ async def test_method_create_overload_13(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5765,7 +5761,7 @@ async def test_method_create_with_all_params_overload_13(self, async_client: Asy
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5777,7 +5773,7 @@ async def test_raw_response_create_overload_13(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5789,7 +5785,7 @@ async def test_streaming_response_create_overload_13(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5807,7 +5803,7 @@ async def test_method_create_overload_14(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5826,7 +5822,7 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5838,7 +5834,7 @@ async def test_raw_response_create_overload_14(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5850,7 +5846,7 @@ async def test_streaming_response_create_overload_14(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5868,7 +5864,7 @@ async def test_method_create_overload_15(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5892,7 +5888,7 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5904,7 +5900,7 @@ async def test_raw_response_create_overload_15(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5916,7 +5912,7 @@ async def test_streaming_response_create_overload_15(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -5934,7 +5930,7 @@ async def test_method_create_overload_16(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5958,7 +5954,7 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5970,7 +5966,7 @@ async def test_raw_response_create_overload_16(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -5982,7 +5978,7 @@ async def test_streaming_response_create_overload_16(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6000,7 +5996,7 @@ async def test_method_create_overload_17(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6023,7 +6019,7 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6035,7 +6031,7 @@ async def test_raw_response_create_overload_17(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6047,7 +6043,7 @@ async def test_streaming_response_create_overload_17(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6065,7 +6061,7 @@ async def test_method_create_overload_18(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6088,7 +6084,7 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6100,7 +6096,7 @@ async def test_raw_response_create_overload_18(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6112,7 +6108,7 @@ async def test_streaming_response_create_overload_18(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6130,7 +6126,7 @@ async def test_method_create_overload_19(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6154,7 +6150,7 @@ async def test_method_create_with_all_params_overload_19(self, async_client: Asy
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6166,7 +6162,7 @@ async def test_raw_response_create_overload_19(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6178,7 +6174,7 @@ async def test_streaming_response_create_overload_19(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6196,7 +6192,7 @@ async def test_method_create_overload_20(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6215,7 +6211,7 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6227,7 +6223,7 @@ async def test_raw_response_create_overload_20(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6239,7 +6235,7 @@ async def test_streaming_response_create_overload_20(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6257,7 +6253,7 @@ async def test_method_create_overload_21(self, async_client: AsyncCloudflare) ->
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6280,7 +6276,7 @@ async def test_method_create_with_all_params_overload_21(self, async_client: Asy
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6292,7 +6288,7 @@ async def test_raw_response_create_overload_21(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6304,7 +6300,7 @@ async def test_streaming_response_create_overload_21(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6323,7 +6319,7 @@ async def test_method_update_overload_1(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6343,7 +6339,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6356,7 +6352,7 @@ async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6369,7 +6365,7 @@ async def test_streaming_response_update_overload_1(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6395,7 +6391,7 @@ async def test_method_update_overload_2(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6415,7 +6411,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6428,7 +6424,7 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6441,7 +6437,7 @@ async def test_streaming_response_update_overload_2(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6467,7 +6463,7 @@ async def test_method_update_overload_3(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6491,7 +6487,7 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6504,7 +6500,7 @@ async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6517,7 +6513,7 @@ async def test_streaming_response_update_overload_3(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6543,7 +6539,7 @@ async def test_method_update_overload_4(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6568,7 +6564,7 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6581,7 +6577,7 @@ async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6594,7 +6590,7 @@ async def test_streaming_response_update_overload_4(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6620,7 +6616,7 @@ async def test_method_update_overload_5(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6641,7 +6637,7 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6654,7 +6650,7 @@ async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6667,7 +6663,7 @@ async def test_streaming_response_update_overload_5(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6693,7 +6689,7 @@ async def test_method_update_overload_6(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6718,7 +6714,7 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6731,7 +6727,7 @@ async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6744,7 +6740,7 @@ async def test_streaming_response_update_overload_6(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6770,7 +6766,7 @@ async def test_method_update_overload_7(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6795,7 +6791,7 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6808,7 +6804,7 @@ async def test_raw_response_update_overload_7(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6821,7 +6817,7 @@ async def test_streaming_response_update_overload_7(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6847,7 +6843,7 @@ async def test_method_update_overload_8(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6871,7 +6867,7 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6884,7 +6880,7 @@ async def test_raw_response_update_overload_8(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6897,7 +6893,7 @@ async def test_streaming_response_update_overload_8(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -6923,7 +6919,7 @@ async def test_method_update_overload_9(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6956,7 +6952,7 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6969,7 +6965,7 @@ async def test_raw_response_update_overload_9(self, async_client: AsyncCloudflar
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -6982,7 +6978,7 @@ async def test_streaming_response_update_overload_9(self, async_client: AsyncClo
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7008,7 +7004,7 @@ async def test_method_update_overload_10(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7029,7 +7025,7 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7042,7 +7038,7 @@ async def test_raw_response_update_overload_10(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7055,7 +7051,7 @@ async def test_streaming_response_update_overload_10(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7081,7 +7077,7 @@ async def test_method_update_overload_11(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7108,7 +7104,7 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7121,7 +7117,7 @@ async def test_raw_response_update_overload_11(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7134,7 +7130,7 @@ async def test_streaming_response_update_overload_11(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7160,7 +7156,7 @@ async def test_method_update_overload_12(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7180,7 +7176,7 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7193,7 +7189,7 @@ async def test_raw_response_update_overload_12(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7206,7 +7202,7 @@ async def test_streaming_response_update_overload_12(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7232,7 +7228,7 @@ async def test_method_update_overload_13(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7252,7 +7248,7 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7265,7 +7261,7 @@ async def test_raw_response_update_overload_13(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7278,7 +7274,7 @@ async def test_streaming_response_update_overload_13(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7304,7 +7300,7 @@ async def test_method_update_overload_14(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7324,7 +7320,7 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7337,7 +7333,7 @@ async def test_raw_response_update_overload_14(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7350,7 +7346,7 @@ async def test_streaming_response_update_overload_14(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7376,7 +7372,7 @@ async def test_method_update_overload_15(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7401,7 +7397,7 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7414,7 +7410,7 @@ async def test_raw_response_update_overload_15(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7427,7 +7423,7 @@ async def test_streaming_response_update_overload_15(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7453,7 +7449,7 @@ async def test_method_update_overload_16(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7478,7 +7474,7 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7491,7 +7487,7 @@ async def test_raw_response_update_overload_16(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7504,7 +7500,7 @@ async def test_streaming_response_update_overload_16(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7530,7 +7526,7 @@ async def test_method_update_overload_17(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7554,7 +7550,7 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7567,7 +7563,7 @@ async def test_raw_response_update_overload_17(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7580,7 +7576,7 @@ async def test_streaming_response_update_overload_17(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7606,7 +7602,7 @@ async def test_method_update_overload_18(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7630,7 +7626,7 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7643,7 +7639,7 @@ async def test_raw_response_update_overload_18(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7656,7 +7652,7 @@ async def test_streaming_response_update_overload_18(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7682,7 +7678,7 @@ async def test_method_update_overload_19(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7707,7 +7703,7 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7720,7 +7716,7 @@ async def test_raw_response_update_overload_19(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7733,7 +7729,7 @@ async def test_streaming_response_update_overload_19(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7759,7 +7755,7 @@ async def test_method_update_overload_20(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7779,7 +7775,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7792,7 +7788,7 @@ async def test_raw_response_update_overload_20(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7805,7 +7801,7 @@ async def test_streaming_response_update_overload_20(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7831,7 +7827,7 @@ async def test_method_update_overload_21(self, async_client: AsyncCloudflare) ->
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7855,7 +7851,7 @@ async def test_method_update_with_all_params_overload_21(self, async_client: Asy
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7868,7 +7864,7 @@ async def test_raw_response_update_overload_21(self, async_client: AsyncCloudfla
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -7881,7 +7877,7 @@ async def test_streaming_response_update_overload_21(self, async_client: AsyncCl
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -7905,7 +7901,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.list(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(AsyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
@@ -7949,7 +7945,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
tag_match="any",
type="A",
)
- assert_matches_type(AsyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -7960,7 +7956,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -7971,7 +7967,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[RecordListResponse], record, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8133,7 +8129,7 @@ async def test_method_edit_overload_1(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8153,7 +8149,7 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC
ttl=3600,
type="A",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8166,7 +8162,7 @@ async def test_raw_response_edit_overload_1(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8179,7 +8175,7 @@ async def test_streaming_response_edit_overload_1(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8205,7 +8201,7 @@ async def test_method_edit_overload_2(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8225,7 +8221,7 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC
ttl=3600,
type="AAAA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8238,7 +8234,7 @@ async def test_raw_response_edit_overload_2(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8251,7 +8247,7 @@ async def test_streaming_response_edit_overload_2(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8277,7 +8273,7 @@ async def test_method_edit_overload_3(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8301,7 +8297,7 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC
ttl=3600,
type="CAA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8314,7 +8310,7 @@ async def test_raw_response_edit_overload_3(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8327,7 +8323,7 @@ async def test_streaming_response_edit_overload_3(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8353,7 +8349,7 @@ async def test_method_edit_overload_4(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8378,7 +8374,7 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC
ttl=3600,
type="CERT",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8391,7 +8387,7 @@ async def test_raw_response_edit_overload_4(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8404,7 +8400,7 @@ async def test_streaming_response_edit_overload_4(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8430,7 +8426,7 @@ async def test_method_edit_overload_5(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8451,7 +8447,7 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC
ttl=3600,
type="CNAME",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8464,7 +8460,7 @@ async def test_raw_response_edit_overload_5(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8477,7 +8473,7 @@ async def test_streaming_response_edit_overload_5(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8503,7 +8499,7 @@ async def test_method_edit_overload_6(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8528,7 +8524,7 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC
ttl=3600,
type="DNSKEY",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8541,7 +8537,7 @@ async def test_raw_response_edit_overload_6(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8554,7 +8550,7 @@ async def test_streaming_response_edit_overload_6(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8580,7 +8576,7 @@ async def test_method_edit_overload_7(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8605,7 +8601,7 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC
ttl=3600,
type="DS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8618,7 +8614,7 @@ async def test_raw_response_edit_overload_7(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8631,7 +8627,7 @@ async def test_streaming_response_edit_overload_7(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8657,7 +8653,7 @@ async def test_method_edit_overload_8(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8681,7 +8677,7 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC
ttl=3600,
type="HTTPS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8694,7 +8690,7 @@ async def test_raw_response_edit_overload_8(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8707,7 +8703,7 @@ async def test_streaming_response_edit_overload_8(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8733,7 +8729,7 @@ async def test_method_edit_overload_9(self, async_client: AsyncCloudflare) -> No
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8766,7 +8762,7 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC
ttl=3600,
type="LOC",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8779,7 +8775,7 @@ async def test_raw_response_edit_overload_9(self, async_client: AsyncCloudflare)
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8792,7 +8788,7 @@ async def test_streaming_response_edit_overload_9(self, async_client: AsyncCloud
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8818,7 +8814,7 @@ async def test_method_edit_overload_10(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8839,7 +8835,7 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async
ttl=3600,
type="MX",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8852,7 +8848,7 @@ async def test_raw_response_edit_overload_10(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8865,7 +8861,7 @@ async def test_streaming_response_edit_overload_10(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8891,7 +8887,7 @@ async def test_method_edit_overload_11(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8918,7 +8914,7 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async
ttl=3600,
type="NAPTR",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8931,7 +8927,7 @@ async def test_raw_response_edit_overload_11(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8944,7 +8940,7 @@ async def test_streaming_response_edit_overload_11(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -8970,7 +8966,7 @@ async def test_method_edit_overload_12(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -8990,7 +8986,7 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async
ttl=3600,
type="NS",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9003,7 +8999,7 @@ async def test_raw_response_edit_overload_12(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9016,7 +9012,7 @@ async def test_streaming_response_edit_overload_12(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9042,7 +9038,7 @@ async def test_method_edit_overload_13(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9062,7 +9058,7 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async
ttl=3600,
type="OPENPGPKEY",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9075,7 +9071,7 @@ async def test_raw_response_edit_overload_13(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9088,7 +9084,7 @@ async def test_streaming_response_edit_overload_13(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9114,7 +9110,7 @@ async def test_method_edit_overload_14(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9134,7 +9130,7 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async
ttl=3600,
type="PTR",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9147,7 +9143,7 @@ async def test_raw_response_edit_overload_14(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9160,7 +9156,7 @@ async def test_streaming_response_edit_overload_14(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9186,7 +9182,7 @@ async def test_method_edit_overload_15(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9211,7 +9207,7 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async
ttl=3600,
type="SMIMEA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9224,7 +9220,7 @@ async def test_raw_response_edit_overload_15(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9237,7 +9233,7 @@ async def test_streaming_response_edit_overload_15(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9263,7 +9259,7 @@ async def test_method_edit_overload_16(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9288,7 +9284,7 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async
ttl=3600,
type="SRV",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9301,7 +9297,7 @@ async def test_raw_response_edit_overload_16(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9314,7 +9310,7 @@ async def test_streaming_response_edit_overload_16(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9340,7 +9336,7 @@ async def test_method_edit_overload_17(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9364,7 +9360,7 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async
ttl=3600,
type="SSHFP",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9377,7 +9373,7 @@ async def test_raw_response_edit_overload_17(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9390,7 +9386,7 @@ async def test_streaming_response_edit_overload_17(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9416,7 +9412,7 @@ async def test_method_edit_overload_18(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9440,7 +9436,7 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async
ttl=3600,
type="SVCB",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9453,7 +9449,7 @@ async def test_raw_response_edit_overload_18(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9466,7 +9462,7 @@ async def test_streaming_response_edit_overload_18(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9492,7 +9488,7 @@ async def test_method_edit_overload_19(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9517,7 +9513,7 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async
ttl=3600,
type="TLSA",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9530,7 +9526,7 @@ async def test_raw_response_edit_overload_19(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9543,7 +9539,7 @@ async def test_streaming_response_edit_overload_19(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9569,7 +9565,7 @@ async def test_method_edit_overload_20(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9589,7 +9585,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async
ttl=3600,
type="TXT",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9602,7 +9598,7 @@ async def test_raw_response_edit_overload_20(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9615,7 +9611,7 @@ async def test_streaming_response_edit_overload_20(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9641,7 +9637,7 @@ async def test_method_edit_overload_21(self, async_client: AsyncCloudflare) -> N
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9665,7 +9661,7 @@ async def test_method_edit_with_all_params_overload_21(self, async_client: Async
ttl=3600,
type="URI",
)
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9678,7 +9674,7 @@ async def test_raw_response_edit_overload_21(self, async_client: AsyncCloudflare
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -9691,7 +9687,7 @@ async def test_streaming_response_edit_overload_21(self, async_client: AsyncClou
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -9754,7 +9750,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@@ -9766,7 +9762,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
@@ -9778,7 +9774,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
record = await response.parse()
- assert_matches_type(Optional[RecordGetResponse], record, path=["response"])
+ assert_matches_type(Optional[RecordResponse], record, path=["response"])
assert cast(Any, response.is_closed) is True