From 1826b3f964acc0db8442b8455516f44c32de4fe5 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 18 Jun 2024 13:33:05 +0000
Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#1018)
---
.stats.yml | 2 +-
api.md | 6 +-
src/cloudflare/resources/dns/records.py | 1302 ++++++++---
.../types/dns/record_create_params.py | 163 +-
.../types/dns/record_edit_params.py | 163 +-
.../types/dns/record_update_params.py | 163 +-
tests/api_resources/dns/test_records.py | 1960 ++++++++++-------
7 files changed, 2610 insertions(+), 1149 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index f05782e4a75..334f00871ce 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1348
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b6aad108d9bd74ab205190cdefd1d4e7db82406d40095750346b1871e8b1619b.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dcc737ab91fdd1e0edc18214494d806b12d41df4d4641e26e718c8b9dced1dc.yml
diff --git a/api.md b/api.md
index 98cdf91e9c3..9fc32242fc8 100644
--- a/api.md
+++ b/api.md
@@ -1634,11 +1634,11 @@ from cloudflare.types.dns import (
Methods:
-- client.dns.records.create(\*, zone_id, \*\*params) -> Optional
-- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> Optional
+- client.dns.records.create(\*, path_zone_id, \*\*params) -> Optional
+- client.dns.records.update(dns_record_id, \*, path_zone_id, \*\*params) -> Optional
- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[Record]
- client.dns.records.delete(dns_record_id, \*, zone_id) -> Optional
-- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> Optional
+- client.dns.records.edit(dns_record_id, \*, path_zone_id, \*\*params) -> Optional
- client.dns.records.export(\*, zone_id) -> str
- client.dns.records.get(dns_record_id, \*, zone_id) -> Optional
- client.dns.records.import\_(\*, zone_id, \*\*params) -> Optional
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index b5142133fe4..2eed4e82629 100644
--- a/src/cloudflare/resources/dns/records.py
+++ b/src/cloudflare/resources/dns/records.py
@@ -59,14 +59,16 @@ def with_streaming_response(self) -> RecordsResourceWithStreamingResponse:
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -85,7 +87,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid IPv4 address.
@@ -93,6 +95,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -105,6 +109,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -119,14 +125,16 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -145,7 +153,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid IPv6 address.
@@ -153,6 +161,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -165,6 +175,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -179,13 +191,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -204,7 +218,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a CAA record.
@@ -212,6 +226,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -221,6 +237,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -235,13 +253,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -260,7 +280,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a CERT record.
@@ -268,6 +288,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -277,6 +299,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -291,14 +315,16 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -317,7 +343,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid hostname. Must not match the record's name.
@@ -325,6 +351,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -337,6 +365,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -351,13 +381,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -376,7 +408,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a DNSKEY record.
@@ -384,6 +416,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -393,6 +427,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -407,13 +443,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -432,7 +470,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a DS record.
@@ -440,6 +478,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -449,6 +489,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -463,13 +505,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -488,7 +532,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a HTTPS record.
@@ -496,6 +540,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -505,6 +551,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -519,13 +567,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -544,7 +594,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a LOC record.
@@ -552,6 +602,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -561,6 +613,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -575,14 +629,16 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -601,7 +657,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid mail server hostname.
@@ -612,6 +668,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -621,6 +679,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -635,13 +695,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -660,7 +722,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a NAPTR record.
@@ -668,6 +730,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -677,6 +741,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -691,13 +757,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -716,7 +784,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid name server host name.
@@ -724,6 +792,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -733,6 +803,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -747,13 +819,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -772,7 +846,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: Domain name pointing to the address.
@@ -780,6 +854,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -789,6 +865,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -803,13 +881,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -828,7 +908,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SMIMEA record.
@@ -836,6 +916,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -845,6 +927,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -859,13 +943,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -884,7 +970,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SRV record.
@@ -894,6 +980,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -903,6 +991,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -917,13 +1007,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -942,7 +1034,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SSHFP record.
@@ -950,6 +1042,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -959,6 +1053,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -973,13 +1069,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -998,7 +1096,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SVCB record.
@@ -1006,6 +1104,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1015,6 +1115,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1029,13 +1131,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1054,7 +1158,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a TLSA record.
@@ -1062,6 +1166,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1071,6 +1177,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1085,13 +1193,15 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1110,7 +1220,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: Text content for the record.
@@ -1118,6 +1228,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1127,6 +1239,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1141,14 +1255,16 @@ def create(
def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1167,7 +1283,7 @@ def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a URI record.
@@ -1178,6 +1294,8 @@ def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1187,6 +1305,8 @@ def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1198,10 +1318,10 @@ def create(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
def create(
self,
@@ -1229,6 +1349,7 @@ def create(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -1253,21 +1374,23 @@ def create(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_zone_id!r}")
return cast(
Optional[Record],
self._post(
- f"/zones/{zone_id}/dns_records",
+ f"/zones/{path_zone_id}/dns_records",
body=maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
@@ -1291,14 +1414,16 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1316,7 +1441,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1326,6 +1451,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1338,6 +1465,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1353,14 +1482,16 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1378,7 +1509,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1388,6 +1519,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1400,6 +1533,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1415,13 +1550,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1439,7 +1576,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1449,6 +1586,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1458,6 +1597,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1473,13 +1614,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1497,7 +1640,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1507,6 +1650,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1516,6 +1661,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1531,14 +1678,16 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1556,7 +1705,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1566,6 +1715,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1578,6 +1729,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1593,13 +1746,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1617,7 +1772,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1627,6 +1782,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1636,6 +1793,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1651,13 +1810,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1675,7 +1836,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1685,6 +1846,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1694,6 +1857,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1709,13 +1874,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1733,7 +1900,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1743,6 +1910,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1752,6 +1921,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1767,13 +1938,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1791,7 +1964,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1801,6 +1974,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1810,6 +1985,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1825,14 +2002,16 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1850,7 +2029,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1863,6 +2042,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1872,6 +2053,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1887,13 +2070,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1911,7 +2096,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1921,6 +2106,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1930,6 +2117,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1945,13 +2134,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1969,7 +2160,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -1979,6 +2170,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -1988,6 +2181,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2003,13 +2198,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2027,7 +2224,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2037,6 +2234,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2046,6 +2245,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2061,13 +2262,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2085,7 +2288,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2095,6 +2298,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2104,6 +2309,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2119,13 +2326,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2143,7 +2352,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2155,6 +2364,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2164,6 +2375,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2179,13 +2392,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2203,7 +2418,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2213,6 +2428,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2222,6 +2439,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2237,13 +2456,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2261,7 +2482,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2271,6 +2492,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2280,6 +2503,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2295,13 +2520,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2319,7 +2546,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2329,6 +2556,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2338,6 +2567,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2353,13 +2584,15 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2377,7 +2610,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2387,6 +2620,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2396,6 +2631,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2411,14 +2648,16 @@ def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2436,7 +2675,7 @@ def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2449,6 +2688,8 @@ def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2458,6 +2699,8 @@ def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2469,10 +2712,10 @@ def update(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
def update(
self,
@@ -2501,6 +2744,7 @@ def update(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -2525,23 +2769,25 @@ def update(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_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[Record],
self._put(
- f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ f"/zones/{path_zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
@@ -2734,14 +2980,16 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2759,7 +3007,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2769,6 +3017,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2781,6 +3031,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2796,14 +3048,16 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2821,7 +3075,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2831,6 +3085,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2843,6 +3099,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2858,13 +3116,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2882,7 +3142,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2892,6 +3152,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2901,6 +3163,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2916,13 +3180,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2940,7 +3206,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -2950,6 +3216,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -2959,6 +3227,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -2974,14 +3244,16 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -2999,7 +3271,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3009,6 +3281,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3021,6 +3295,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3036,13 +3312,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3060,7 +3338,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3070,6 +3348,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3079,6 +3359,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3094,13 +3376,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3118,7 +3402,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3128,6 +3412,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3137,6 +3423,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3152,13 +3440,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3176,7 +3466,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3186,6 +3476,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3195,6 +3487,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3210,13 +3504,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3234,7 +3530,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3244,6 +3540,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3253,6 +3551,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3268,14 +3568,16 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3293,7 +3595,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3306,6 +3608,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3315,6 +3619,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3330,13 +3636,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3354,7 +3662,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3364,6 +3672,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3373,6 +3683,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3388,13 +3700,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3412,7 +3726,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3422,6 +3736,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3431,6 +3747,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3446,13 +3764,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3470,7 +3790,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3480,6 +3800,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3489,6 +3811,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3504,13 +3828,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3528,7 +3854,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3538,6 +3864,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3547,6 +3875,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3562,13 +3892,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3586,7 +3918,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3598,6 +3930,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3607,6 +3941,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3622,13 +3958,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3646,7 +3984,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3656,6 +3994,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3665,6 +4005,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3680,13 +4022,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3704,7 +4048,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3714,6 +4058,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3723,6 +4069,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3738,13 +4086,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3762,7 +4112,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3772,6 +4122,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3781,6 +4133,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3796,13 +4150,15 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3820,7 +4176,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3830,6 +4186,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3839,6 +4197,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3854,14 +4214,16 @@ def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -3879,7 +4241,7 @@ def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -3892,6 +4254,8 @@ def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -3901,6 +4265,8 @@ def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -3912,10 +4278,10 @@ def edit(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
def edit(
self,
@@ -3944,6 +4310,7 @@ def edit(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -3968,23 +4335,25 @@ def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_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[Record],
self._patch(
- f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ f"/zones/{path_zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
@@ -4215,14 +4584,16 @@ def with_streaming_response(self) -> AsyncRecordsResourceWithStreamingResponse:
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4241,7 +4612,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid IPv4 address.
@@ -4249,6 +4620,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4261,6 +4634,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4275,14 +4650,16 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4301,7 +4678,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid IPv6 address.
@@ -4309,6 +4686,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4321,6 +4700,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4335,13 +4716,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4360,7 +4743,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a CAA record.
@@ -4368,6 +4751,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4377,6 +4762,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4391,13 +4778,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4416,7 +4805,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a CERT record.
@@ -4424,6 +4813,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4433,6 +4824,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4447,14 +4840,16 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4473,7 +4868,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid hostname. Must not match the record's name.
@@ -4481,6 +4876,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4493,6 +4890,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4507,13 +4906,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4532,7 +4933,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a DNSKEY record.
@@ -4540,6 +4941,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4549,6 +4952,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4563,13 +4968,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4588,7 +4995,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a DS record.
@@ -4596,6 +5003,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4605,6 +5014,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4619,13 +5030,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4644,7 +5057,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a HTTPS record.
@@ -4652,6 +5065,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4661,6 +5076,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4675,13 +5092,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4700,7 +5119,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a LOC record.
@@ -4708,6 +5127,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4717,6 +5138,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4731,14 +5154,16 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4757,7 +5182,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid mail server hostname.
@@ -4768,6 +5193,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4777,6 +5204,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4791,13 +5220,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4816,7 +5247,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a NAPTR record.
@@ -4824,6 +5255,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4833,6 +5266,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4847,13 +5282,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4872,7 +5309,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: A valid name server host name.
@@ -4880,6 +5317,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4889,6 +5328,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4903,13 +5344,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4928,7 +5371,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: Domain name pointing to the address.
@@ -4936,6 +5379,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -4945,6 +5390,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -4959,13 +5406,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -4984,7 +5433,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SMIMEA record.
@@ -4992,6 +5441,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5001,6 +5452,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5015,13 +5468,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5040,7 +5495,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SRV record.
@@ -5050,6 +5505,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5059,6 +5516,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5073,13 +5532,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5098,7 +5559,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SSHFP record.
@@ -5106,6 +5567,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5115,6 +5578,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5129,13 +5594,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5154,7 +5621,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a SVCB record.
@@ -5162,6 +5629,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5171,6 +5640,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5185,13 +5656,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5210,7 +5683,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a TLSA record.
@@ -5218,6 +5691,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5227,6 +5702,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5241,13 +5718,15 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5266,7 +5745,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
content: Text content for the record.
@@ -5274,6 +5753,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5283,6 +5764,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5297,14 +5780,16 @@ async def create(
async def create(
self,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_create_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5323,7 +5808,7 @@ async def create(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
data: Components of a URI record.
@@ -5334,6 +5819,8 @@ async def create(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5343,6 +5830,8 @@ async def create(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5354,10 +5843,10 @@ async def create(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
async def create(
self,
@@ -5385,6 +5874,7 @@ async def create(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -5409,21 +5899,23 @@ async def create(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_zone_id!r}")
return cast(
Optional[Record],
await self._post(
- f"/zones/{zone_id}/dns_records",
+ f"/zones/{path_zone_id}/dns_records",
body=await async_maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
@@ -5447,14 +5939,16 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5472,7 +5966,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5482,6 +5976,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5494,6 +5990,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5509,14 +6007,16 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5534,7 +6034,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5544,6 +6044,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5556,6 +6058,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5571,13 +6075,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5595,7 +6101,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5605,6 +6111,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5614,6 +6122,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5629,13 +6139,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5653,7 +6165,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5663,6 +6175,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5672,6 +6186,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5687,14 +6203,16 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5712,7 +6230,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5722,6 +6240,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5734,6 +6254,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5749,13 +6271,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5773,7 +6297,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5783,6 +6307,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5792,6 +6318,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5807,13 +6335,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5831,7 +6361,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5841,6 +6371,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5850,6 +6382,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5865,13 +6399,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5889,7 +6425,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5899,6 +6435,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5908,6 +6446,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5923,13 +6463,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -5947,7 +6489,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -5957,6 +6499,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -5966,6 +6510,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -5981,14 +6527,16 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6006,7 +6554,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6019,6 +6567,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6028,6 +6578,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6043,13 +6595,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6067,7 +6621,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6077,6 +6631,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6086,6 +6642,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6101,13 +6659,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6125,7 +6685,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6135,6 +6695,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6144,6 +6706,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6159,13 +6723,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6183,7 +6749,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6193,6 +6759,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6202,6 +6770,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6217,13 +6787,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6241,7 +6813,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6251,6 +6823,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6260,6 +6834,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6275,13 +6851,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6299,7 +6877,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6311,6 +6889,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6320,6 +6900,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6335,13 +6917,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6359,7 +6943,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6369,6 +6953,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6378,6 +6964,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6393,13 +6981,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6417,7 +7007,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6427,6 +7017,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6436,6 +7028,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6451,13 +7045,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6475,7 +7071,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6485,6 +7081,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6494,6 +7092,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6509,13 +7109,15 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6533,7 +7135,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6543,6 +7145,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6552,6 +7156,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6567,14 +7173,16 @@ async def update(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_update_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6592,7 +7200,7 @@ async def update(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6605,6 +7213,8 @@ async def update(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6614,6 +7224,8 @@ async def update(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6625,10 +7237,10 @@ async def update(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
async def update(
self,
@@ -6657,6 +7269,7 @@ async def update(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -6681,23 +7294,25 @@ async def update(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_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[Record],
await self._put(
- f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ f"/zones/{path_zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
@@ -6890,14 +7505,16 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["A"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6915,7 +7532,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6925,6 +7542,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6937,6 +7556,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -6952,14 +7573,16 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["AAAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -6977,7 +7600,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -6987,6 +7610,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -6999,6 +7624,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7014,13 +7641,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.CAARecordData,
name: str,
type: Literal["CAA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7038,7 +7667,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7048,6 +7677,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7057,6 +7688,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7072,13 +7705,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.CERTRecordData,
name: str,
type: Literal["CERT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7096,7 +7731,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7106,6 +7741,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7115,6 +7752,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7130,14 +7769,16 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: object,
name: str,
type: Literal["CNAME"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7155,7 +7796,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7165,6 +7806,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7177,6 +7820,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7192,13 +7837,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.DNSKEYRecordData,
name: str,
type: Literal["DNSKEY"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7216,7 +7863,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7226,6 +7873,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7235,6 +7884,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7250,13 +7901,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.DSRecordData,
name: str,
type: Literal["DS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7274,7 +7927,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7284,6 +7937,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7293,6 +7948,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7308,13 +7965,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.HTTPSRecordData,
name: str,
type: Literal["HTTPS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7332,7 +7991,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7342,6 +8001,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7351,6 +8012,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7366,13 +8029,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.LOCRecordData,
name: str,
type: Literal["LOC"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7390,7 +8055,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7400,6 +8065,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7409,6 +8076,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7424,14 +8093,16 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
priority: float,
type: Literal["MX"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7449,7 +8120,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7462,6 +8133,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7471,6 +8144,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7486,13 +8161,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.NAPTRRecordData,
name: str,
type: Literal["NAPTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7510,7 +8187,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7520,6 +8197,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7529,6 +8208,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7544,13 +8225,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["NS"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7568,7 +8251,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7578,6 +8261,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7587,6 +8272,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7602,13 +8289,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["PTR"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7626,7 +8315,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7636,6 +8325,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7645,6 +8336,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7660,13 +8353,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SMIMEARecordData,
name: str,
type: Literal["SMIMEA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7684,7 +8379,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7694,6 +8389,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7703,6 +8400,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7718,13 +8417,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SRVRecordData,
name: str,
type: Literal["SRV"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7742,7 +8443,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7754,6 +8455,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7763,6 +8466,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7778,13 +8483,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SSHFPRecordData,
name: str,
type: Literal["SSHFP"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7802,7 +8509,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7812,6 +8519,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7821,6 +8530,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7836,13 +8547,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.SVCBRecordData,
name: str,
type: Literal["SVCB"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7860,7 +8573,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7870,6 +8583,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7879,6 +8594,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7894,13 +8611,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.TLSARecordData,
name: str,
type: Literal["TLSA"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7918,7 +8637,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7928,6 +8647,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7937,6 +8658,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -7952,13 +8675,15 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
content: str,
name: str,
type: Literal["TXT"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -7976,7 +8701,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -7986,6 +8711,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -7995,6 +8722,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -8010,14 +8739,16 @@ async def edit(
self,
dns_record_id: str,
*,
- zone_id: str,
+ path_zone_id: str,
data: record_edit_params.URIRecordData,
name: str,
priority: float,
type: Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
ttl: TTLParam | NotGiven = NOT_GIVEN,
+ body_zone_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -8035,7 +8766,7 @@ async def edit(
were used when creating the record.
Args:
- zone_id: Identifier
+ path_zone_id: Identifier
dns_record_id: Identifier
@@ -8048,6 +8779,8 @@ async def edit(
type: Record type.
+ id: Identifier
+
comment: Comments or notes about the DNS record. This field has no effect on DNS
responses.
@@ -8057,6 +8790,8 @@ async def edit(
Value must be between 60 and 86400, with the minimum reduced to 30 for
Enterprise zones.
+ body_zone_id: Identifier
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -8068,10 +8803,10 @@ async def edit(
...
@required_args(
- ["zone_id", "content", "name", "type"],
- ["zone_id", "data", "name", "type"],
- ["zone_id", "content", "name", "priority", "type"],
- ["zone_id", "data", "name", "priority", "type"],
+ ["path_zone_id", "content", "name", "type"],
+ ["path_zone_id", "data", "name", "type"],
+ ["path_zone_id", "content", "name", "priority", "type"],
+ ["path_zone_id", "data", "name", "priority", "type"],
)
async def edit(
self,
@@ -8100,6 +8835,7 @@ async def edit(
| Literal["TLSA"]
| Literal["TXT"]
| Literal["URI"],
+ id: str | NotGiven = NOT_GIVEN,
comment: str | NotGiven = NOT_GIVEN,
proxied: bool | NotGiven = NOT_GIVEN,
tags: List[RecordTags] | NotGiven = NOT_GIVEN,
@@ -8124,23 +8860,25 @@ async def edit(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[Record]:
- if not zone_id:
- raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ if not path_zone_id:
+ raise ValueError(f"Expected a non-empty value for `path_zone_id` but received {path_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[Record],
await self._patch(
- f"/zones/{zone_id}/dns_records/{dns_record_id}",
+ f"/zones/{path_zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
{
"content": content,
"name": name,
"type": type,
+ "id": id,
"comment": comment,
"proxied": proxied,
"tags": tags,
"ttl": ttl,
+ "zone_id": body_zone_id,
"data": data,
"priority": priority,
},
diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py
index 50b85946681..4692fe22e71 100644
--- a/src/cloudflare/types/dns/record_create_params.py
+++ b/src/cloudflare/types/dns/record_create_params.py
@@ -3,8 +3,9 @@
from __future__ import annotations
from typing import List, Union
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Literal, Required, Annotated, TypedDict
+from ..._utils import PropertyInfo
from .ttl_param import TTLParam
from .record_tags import RecordTags
@@ -47,7 +48,7 @@
class ARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -59,6 +60,9 @@ class ARecord(TypedDict, total=False):
type: Required[Literal["A"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -81,9 +85,12 @@ class ARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class AAAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -95,6 +102,9 @@ class AAAARecord(TypedDict, total=False):
type: Required[Literal["AAAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -117,9 +127,12 @@ class AAAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CAARecordData]
@@ -131,6 +144,9 @@ class CAARecord(TypedDict, total=False):
type: Required[Literal["CAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -147,6 +163,9 @@ class CAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecordData(TypedDict, total=False):
flags: float
@@ -160,7 +179,7 @@ class CAARecordData(TypedDict, total=False):
class CERTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CERTRecordData]
@@ -172,6 +191,9 @@ class CERTRecord(TypedDict, total=False):
type: Required[Literal["CERT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -188,6 +210,9 @@ class CERTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CERTRecordData(TypedDict, total=False):
algorithm: float
@@ -204,7 +229,7 @@ class CERTRecordData(TypedDict, total=False):
class CNAMERecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[object]
@@ -216,6 +241,9 @@ class CNAMERecord(TypedDict, total=False):
type: Required[Literal["CNAME"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -238,9 +266,12 @@ class CNAMERecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DNSKEYRecordData]
@@ -252,6 +283,9 @@ class DNSKEYRecord(TypedDict, total=False):
type: Required[Literal["DNSKEY"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -268,6 +302,9 @@ class DNSKEYRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecordData(TypedDict, total=False):
algorithm: float
@@ -284,7 +321,7 @@ class DNSKEYRecordData(TypedDict, total=False):
class DSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DSRecordData]
@@ -296,6 +333,9 @@ class DSRecord(TypedDict, total=False):
type: Required[Literal["DS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -312,6 +352,9 @@ class DSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DSRecordData(TypedDict, total=False):
algorithm: float
@@ -328,7 +371,7 @@ class DSRecordData(TypedDict, total=False):
class HTTPSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[HTTPSRecordData]
@@ -340,6 +383,9 @@ class HTTPSRecord(TypedDict, total=False):
type: Required[Literal["HTTPS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -356,6 +402,9 @@ class HTTPSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class HTTPSRecordData(TypedDict, total=False):
priority: float
@@ -369,7 +418,7 @@ class HTTPSRecordData(TypedDict, total=False):
class LOCRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[LOCRecordData]
@@ -381,6 +430,9 @@ class LOCRecord(TypedDict, total=False):
type: Required[Literal["LOC"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -397,6 +449,9 @@ class LOCRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class LOCRecordData(TypedDict, total=False):
altitude: float
@@ -437,7 +492,7 @@ class LOCRecordData(TypedDict, total=False):
class MXRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -455,6 +510,9 @@ class MXRecord(TypedDict, total=False):
type: Required[Literal["MX"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -471,9 +529,12 @@ class MXRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[NAPTRRecordData]
@@ -485,6 +546,9 @@ class NAPTRRecord(TypedDict, total=False):
type: Required[Literal["NAPTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -501,6 +565,9 @@ class NAPTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecordData(TypedDict, total=False):
flags: str
@@ -523,7 +590,7 @@ class NAPTRRecordData(TypedDict, total=False):
class NSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -535,6 +602,9 @@ class NSRecord(TypedDict, total=False):
type: Required[Literal["NS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -551,9 +621,12 @@ class NSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class PTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -565,6 +638,9 @@ class PTRRecord(TypedDict, total=False):
type: Required[Literal["PTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -581,9 +657,12 @@ class PTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SMIMEARecordData]
@@ -595,6 +674,9 @@ class SMIMEARecord(TypedDict, total=False):
type: Required[Literal["SMIMEA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -611,6 +693,9 @@ class SMIMEARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecordData(TypedDict, total=False):
certificate: str
@@ -627,7 +712,7 @@ class SMIMEARecordData(TypedDict, total=False):
class SRVRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SRVRecordData]
@@ -643,6 +728,9 @@ class SRVRecord(TypedDict, total=False):
type: Required[Literal["SRV"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -659,6 +747,9 @@ class SRVRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SRVRecordData(TypedDict, total=False):
name: str
@@ -700,7 +791,7 @@ class SRVRecordData(TypedDict, total=False):
class SSHFPRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SSHFPRecordData]
@@ -712,6 +803,9 @@ class SSHFPRecord(TypedDict, total=False):
type: Required[Literal["SSHFP"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -728,6 +822,9 @@ class SSHFPRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SSHFPRecordData(TypedDict, total=False):
algorithm: float
@@ -741,7 +838,7 @@ class SSHFPRecordData(TypedDict, total=False):
class SVCBRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SVCBRecordData]
@@ -753,6 +850,9 @@ class SVCBRecord(TypedDict, total=False):
type: Required[Literal["SVCB"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -769,6 +869,9 @@ class SVCBRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SVCBRecordData(TypedDict, total=False):
priority: float
@@ -782,7 +885,7 @@ class SVCBRecordData(TypedDict, total=False):
class TLSARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[TLSARecordData]
@@ -794,6 +897,9 @@ class TLSARecord(TypedDict, total=False):
type: Required[Literal["TLSA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -810,6 +916,9 @@ class TLSARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class TLSARecordData(TypedDict, total=False):
certificate: str
@@ -826,7 +935,7 @@ class TLSARecordData(TypedDict, total=False):
class TXTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -838,6 +947,9 @@ class TXTRecord(TypedDict, total=False):
type: Required[Literal["TXT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -854,9 +966,12 @@ class TXTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[URIRecordData]
@@ -874,6 +989,9 @@ class URIRecord(TypedDict, total=False):
type: Required[Literal["URI"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -890,6 +1008,9 @@ class URIRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecordData(TypedDict, total=False):
target: str
diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py
index e5604e9762c..a0354033775 100644
--- a/src/cloudflare/types/dns/record_edit_params.py
+++ b/src/cloudflare/types/dns/record_edit_params.py
@@ -3,8 +3,9 @@
from __future__ import annotations
from typing import List, Union
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Literal, Required, Annotated, TypedDict
+from ..._utils import PropertyInfo
from .ttl_param import TTLParam
from .record_tags import RecordTags
@@ -47,7 +48,7 @@
class ARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -59,6 +60,9 @@ class ARecord(TypedDict, total=False):
type: Required[Literal["A"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -81,9 +85,12 @@ class ARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class AAAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -95,6 +102,9 @@ class AAAARecord(TypedDict, total=False):
type: Required[Literal["AAAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -117,9 +127,12 @@ class AAAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CAARecordData]
@@ -131,6 +144,9 @@ class CAARecord(TypedDict, total=False):
type: Required[Literal["CAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -147,6 +163,9 @@ class CAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecordData(TypedDict, total=False):
flags: float
@@ -160,7 +179,7 @@ class CAARecordData(TypedDict, total=False):
class CERTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CERTRecordData]
@@ -172,6 +191,9 @@ class CERTRecord(TypedDict, total=False):
type: Required[Literal["CERT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -188,6 +210,9 @@ class CERTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CERTRecordData(TypedDict, total=False):
algorithm: float
@@ -204,7 +229,7 @@ class CERTRecordData(TypedDict, total=False):
class CNAMERecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[object]
@@ -216,6 +241,9 @@ class CNAMERecord(TypedDict, total=False):
type: Required[Literal["CNAME"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -238,9 +266,12 @@ class CNAMERecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DNSKEYRecordData]
@@ -252,6 +283,9 @@ class DNSKEYRecord(TypedDict, total=False):
type: Required[Literal["DNSKEY"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -268,6 +302,9 @@ class DNSKEYRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecordData(TypedDict, total=False):
algorithm: float
@@ -284,7 +321,7 @@ class DNSKEYRecordData(TypedDict, total=False):
class DSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DSRecordData]
@@ -296,6 +333,9 @@ class DSRecord(TypedDict, total=False):
type: Required[Literal["DS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -312,6 +352,9 @@ class DSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DSRecordData(TypedDict, total=False):
algorithm: float
@@ -328,7 +371,7 @@ class DSRecordData(TypedDict, total=False):
class HTTPSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[HTTPSRecordData]
@@ -340,6 +383,9 @@ class HTTPSRecord(TypedDict, total=False):
type: Required[Literal["HTTPS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -356,6 +402,9 @@ class HTTPSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class HTTPSRecordData(TypedDict, total=False):
priority: float
@@ -369,7 +418,7 @@ class HTTPSRecordData(TypedDict, total=False):
class LOCRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[LOCRecordData]
@@ -381,6 +430,9 @@ class LOCRecord(TypedDict, total=False):
type: Required[Literal["LOC"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -397,6 +449,9 @@ class LOCRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class LOCRecordData(TypedDict, total=False):
altitude: float
@@ -437,7 +492,7 @@ class LOCRecordData(TypedDict, total=False):
class MXRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -455,6 +510,9 @@ class MXRecord(TypedDict, total=False):
type: Required[Literal["MX"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -471,9 +529,12 @@ class MXRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[NAPTRRecordData]
@@ -485,6 +546,9 @@ class NAPTRRecord(TypedDict, total=False):
type: Required[Literal["NAPTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -501,6 +565,9 @@ class NAPTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecordData(TypedDict, total=False):
flags: str
@@ -523,7 +590,7 @@ class NAPTRRecordData(TypedDict, total=False):
class NSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -535,6 +602,9 @@ class NSRecord(TypedDict, total=False):
type: Required[Literal["NS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -551,9 +621,12 @@ class NSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class PTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -565,6 +638,9 @@ class PTRRecord(TypedDict, total=False):
type: Required[Literal["PTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -581,9 +657,12 @@ class PTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SMIMEARecordData]
@@ -595,6 +674,9 @@ class SMIMEARecord(TypedDict, total=False):
type: Required[Literal["SMIMEA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -611,6 +693,9 @@ class SMIMEARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecordData(TypedDict, total=False):
certificate: str
@@ -627,7 +712,7 @@ class SMIMEARecordData(TypedDict, total=False):
class SRVRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SRVRecordData]
@@ -643,6 +728,9 @@ class SRVRecord(TypedDict, total=False):
type: Required[Literal["SRV"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -659,6 +747,9 @@ class SRVRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SRVRecordData(TypedDict, total=False):
name: str
@@ -700,7 +791,7 @@ class SRVRecordData(TypedDict, total=False):
class SSHFPRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SSHFPRecordData]
@@ -712,6 +803,9 @@ class SSHFPRecord(TypedDict, total=False):
type: Required[Literal["SSHFP"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -728,6 +822,9 @@ class SSHFPRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SSHFPRecordData(TypedDict, total=False):
algorithm: float
@@ -741,7 +838,7 @@ class SSHFPRecordData(TypedDict, total=False):
class SVCBRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SVCBRecordData]
@@ -753,6 +850,9 @@ class SVCBRecord(TypedDict, total=False):
type: Required[Literal["SVCB"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -769,6 +869,9 @@ class SVCBRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SVCBRecordData(TypedDict, total=False):
priority: float
@@ -782,7 +885,7 @@ class SVCBRecordData(TypedDict, total=False):
class TLSARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[TLSARecordData]
@@ -794,6 +897,9 @@ class TLSARecord(TypedDict, total=False):
type: Required[Literal["TLSA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -810,6 +916,9 @@ class TLSARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class TLSARecordData(TypedDict, total=False):
certificate: str
@@ -826,7 +935,7 @@ class TLSARecordData(TypedDict, total=False):
class TXTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -838,6 +947,9 @@ class TXTRecord(TypedDict, total=False):
type: Required[Literal["TXT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -854,9 +966,12 @@ class TXTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[URIRecordData]
@@ -874,6 +989,9 @@ class URIRecord(TypedDict, total=False):
type: Required[Literal["URI"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -890,6 +1008,9 @@ class URIRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecordData(TypedDict, total=False):
target: str
diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py
index 881f62f1c71..d9af2e9c204 100644
--- a/src/cloudflare/types/dns/record_update_params.py
+++ b/src/cloudflare/types/dns/record_update_params.py
@@ -3,8 +3,9 @@
from __future__ import annotations
from typing import List, Union
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Literal, Required, Annotated, TypedDict
+from ..._utils import PropertyInfo
from .ttl_param import TTLParam
from .record_tags import RecordTags
@@ -47,7 +48,7 @@
class ARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -59,6 +60,9 @@ class ARecord(TypedDict, total=False):
type: Required[Literal["A"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -81,9 +85,12 @@ class ARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class AAAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -95,6 +102,9 @@ class AAAARecord(TypedDict, total=False):
type: Required[Literal["AAAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -117,9 +127,12 @@ class AAAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CAARecordData]
@@ -131,6 +144,9 @@ class CAARecord(TypedDict, total=False):
type: Required[Literal["CAA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -147,6 +163,9 @@ class CAARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CAARecordData(TypedDict, total=False):
flags: float
@@ -160,7 +179,7 @@ class CAARecordData(TypedDict, total=False):
class CERTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[CERTRecordData]
@@ -172,6 +191,9 @@ class CERTRecord(TypedDict, total=False):
type: Required[Literal["CERT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -188,6 +210,9 @@ class CERTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class CERTRecordData(TypedDict, total=False):
algorithm: float
@@ -204,7 +229,7 @@ class CERTRecordData(TypedDict, total=False):
class CNAMERecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[object]
@@ -216,6 +241,9 @@ class CNAMERecord(TypedDict, total=False):
type: Required[Literal["CNAME"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -238,9 +266,12 @@ class CNAMERecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DNSKEYRecordData]
@@ -252,6 +283,9 @@ class DNSKEYRecord(TypedDict, total=False):
type: Required[Literal["DNSKEY"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -268,6 +302,9 @@ class DNSKEYRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DNSKEYRecordData(TypedDict, total=False):
algorithm: float
@@ -284,7 +321,7 @@ class DNSKEYRecordData(TypedDict, total=False):
class DSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[DSRecordData]
@@ -296,6 +333,9 @@ class DSRecord(TypedDict, total=False):
type: Required[Literal["DS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -312,6 +352,9 @@ class DSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class DSRecordData(TypedDict, total=False):
algorithm: float
@@ -328,7 +371,7 @@ class DSRecordData(TypedDict, total=False):
class HTTPSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[HTTPSRecordData]
@@ -340,6 +383,9 @@ class HTTPSRecord(TypedDict, total=False):
type: Required[Literal["HTTPS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -356,6 +402,9 @@ class HTTPSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class HTTPSRecordData(TypedDict, total=False):
priority: float
@@ -369,7 +418,7 @@ class HTTPSRecordData(TypedDict, total=False):
class LOCRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[LOCRecordData]
@@ -381,6 +430,9 @@ class LOCRecord(TypedDict, total=False):
type: Required[Literal["LOC"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -397,6 +449,9 @@ class LOCRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class LOCRecordData(TypedDict, total=False):
altitude: float
@@ -437,7 +492,7 @@ class LOCRecordData(TypedDict, total=False):
class MXRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -455,6 +510,9 @@ class MXRecord(TypedDict, total=False):
type: Required[Literal["MX"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -471,9 +529,12 @@ class MXRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[NAPTRRecordData]
@@ -485,6 +546,9 @@ class NAPTRRecord(TypedDict, total=False):
type: Required[Literal["NAPTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -501,6 +565,9 @@ class NAPTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class NAPTRRecordData(TypedDict, total=False):
flags: str
@@ -523,7 +590,7 @@ class NAPTRRecordData(TypedDict, total=False):
class NSRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -535,6 +602,9 @@ class NSRecord(TypedDict, total=False):
type: Required[Literal["NS"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -551,9 +621,12 @@ class NSRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class PTRRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -565,6 +638,9 @@ class PTRRecord(TypedDict, total=False):
type: Required[Literal["PTR"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -581,9 +657,12 @@ class PTRRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SMIMEARecordData]
@@ -595,6 +674,9 @@ class SMIMEARecord(TypedDict, total=False):
type: Required[Literal["SMIMEA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -611,6 +693,9 @@ class SMIMEARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SMIMEARecordData(TypedDict, total=False):
certificate: str
@@ -627,7 +712,7 @@ class SMIMEARecordData(TypedDict, total=False):
class SRVRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SRVRecordData]
@@ -643,6 +728,9 @@ class SRVRecord(TypedDict, total=False):
type: Required[Literal["SRV"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -659,6 +747,9 @@ class SRVRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SRVRecordData(TypedDict, total=False):
name: str
@@ -700,7 +791,7 @@ class SRVRecordData(TypedDict, total=False):
class SSHFPRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SSHFPRecordData]
@@ -712,6 +803,9 @@ class SSHFPRecord(TypedDict, total=False):
type: Required[Literal["SSHFP"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -728,6 +822,9 @@ class SSHFPRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SSHFPRecordData(TypedDict, total=False):
algorithm: float
@@ -741,7 +838,7 @@ class SSHFPRecordData(TypedDict, total=False):
class SVCBRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[SVCBRecordData]
@@ -753,6 +850,9 @@ class SVCBRecord(TypedDict, total=False):
type: Required[Literal["SVCB"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -769,6 +869,9 @@ class SVCBRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class SVCBRecordData(TypedDict, total=False):
priority: float
@@ -782,7 +885,7 @@ class SVCBRecordData(TypedDict, total=False):
class TLSARecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[TLSARecordData]
@@ -794,6 +897,9 @@ class TLSARecord(TypedDict, total=False):
type: Required[Literal["TLSA"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -810,6 +916,9 @@ class TLSARecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class TLSARecordData(TypedDict, total=False):
certificate: str
@@ -826,7 +935,7 @@ class TLSARecordData(TypedDict, total=False):
class TXTRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
content: Required[str]
@@ -838,6 +947,9 @@ class TXTRecord(TypedDict, total=False):
type: Required[Literal["TXT"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -854,9 +966,12 @@ class TXTRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecord(TypedDict, total=False):
- zone_id: Required[str]
+ path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]]
"""Identifier"""
data: Required[URIRecordData]
@@ -874,6 +989,9 @@ class URIRecord(TypedDict, total=False):
type: Required[Literal["URI"]]
"""Record type."""
+ id: str
+ """Identifier"""
+
comment: str
"""Comments or notes about the DNS record.
@@ -890,6 +1008,9 @@ class URIRecord(TypedDict, total=False):
minimum reduced to 30 for Enterprise zones.
"""
+ body_zone_id: Annotated[str, PropertyInfo(alias="zone_id")]
+ """Identifier"""
+
class URIRecordData(TypedDict, total=False):
target: str
diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py
index afb7b9304be..3920e119479 100644
--- a/tests/api_resources/dns/test_records.py
+++ b/tests/api_resources/dns/test_records.py
@@ -27,7 +27,7 @@ class TestRecords:
@parametrize
def test_method_create_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -38,14 +38,16 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -53,7 +55,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -68,7 +70,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -84,19 +86,20 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -107,14 +110,16 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -122,7 +127,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -137,7 +142,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -153,19 +158,20 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -176,7 +182,7 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -184,9 +190,11 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -194,7 +202,7 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_3(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -209,7 +217,7 @@ def test_raw_response_create_overload_3(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_3(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -225,19 +233,20 @@ def test_streaming_response_create_overload_3(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_3(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -248,7 +257,7 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -257,9 +266,11 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -267,7 +278,7 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_4(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -282,7 +293,7 @@ def test_raw_response_create_overload_4(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_4(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -298,19 +309,20 @@ def test_streaming_response_create_overload_4(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_4(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -321,14 +333,16 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -336,7 +350,7 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_5(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -351,7 +365,7 @@ def test_raw_response_create_overload_5(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_5(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -367,19 +381,20 @@ def test_streaming_response_create_overload_5(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_5(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -390,7 +405,7 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -399,9 +414,11 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -409,7 +426,7 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_6(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -424,7 +441,7 @@ def test_raw_response_create_overload_6(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_6(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -440,19 +457,20 @@ def test_streaming_response_create_overload_6(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_6(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -463,7 +481,7 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -472,9 +490,11 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -482,7 +502,7 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_7(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -497,7 +517,7 @@ def test_raw_response_create_overload_7(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_7(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -513,19 +533,20 @@ def test_streaming_response_create_overload_7(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_7(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -536,7 +557,7 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -544,9 +565,11 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -554,7 +577,7 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_8(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -569,7 +592,7 @@ def test_raw_response_create_overload_8(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_8(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -585,19 +608,20 @@ def test_streaming_response_create_overload_8(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_8(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -608,7 +632,7 @@ def test_method_create_overload_9(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -625,9 +649,11 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -635,7 +661,7 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N
@parametrize
def test_raw_response_create_overload_9(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -650,7 +676,7 @@ def test_raw_response_create_overload_9(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_9(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -666,19 +692,20 @@ def test_streaming_response_create_overload_9(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_9(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -690,14 +717,16 @@ def test_method_create_overload_10(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -705,7 +734,7 @@ def test_method_create_with_all_params_overload_10(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_10(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -721,7 +750,7 @@ def test_raw_response_create_overload_10(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_10(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -738,20 +767,21 @@ def test_streaming_response_create_overload_10(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_10(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -762,7 +792,7 @@ def test_method_create_overload_11(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -773,9 +803,11 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) ->
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -783,7 +815,7 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_11(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -798,7 +830,7 @@ def test_raw_response_create_overload_11(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_11(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -814,19 +846,20 @@ def test_streaming_response_create_overload_11(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_11(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -837,13 +870,15 @@ def test_method_create_overload_12(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -851,7 +886,7 @@ def test_method_create_with_all_params_overload_12(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_12(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -866,7 +901,7 @@ def test_raw_response_create_overload_12(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_12(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -882,19 +917,20 @@ def test_streaming_response_create_overload_12(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_12(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -905,13 +941,15 @@ def test_method_create_overload_13(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -919,7 +957,7 @@ def test_method_create_with_all_params_overload_13(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_13(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -934,7 +972,7 @@ def test_raw_response_create_overload_13(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_13(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -950,19 +988,20 @@ def test_streaming_response_create_overload_13(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_13(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -973,7 +1012,7 @@ def test_method_create_overload_14(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -982,9 +1021,11 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) ->
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -992,7 +1033,7 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_14(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -1007,7 +1048,7 @@ def test_raw_response_create_overload_14(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_14(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -1023,19 +1064,20 @@ def test_streaming_response_create_overload_14(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_14(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -1046,7 +1088,7 @@ def test_method_create_overload_15(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -1058,9 +1100,11 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) ->
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1068,7 +1112,7 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_15(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -1083,7 +1127,7 @@ def test_raw_response_create_overload_15(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_15(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -1099,19 +1143,20 @@ def test_streaming_response_create_overload_15(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_15(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -1122,7 +1167,7 @@ def test_method_create_overload_16(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -1130,9 +1175,11 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) ->
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1140,7 +1187,7 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_16(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -1155,7 +1202,7 @@ def test_raw_response_create_overload_16(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_16(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -1171,19 +1218,20 @@ def test_streaming_response_create_overload_16(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_16(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -1194,7 +1242,7 @@ def test_method_create_overload_17(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -1202,9 +1250,11 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) ->
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1212,7 +1262,7 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_17(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -1227,7 +1277,7 @@ def test_raw_response_create_overload_17(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_17(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -1243,19 +1293,20 @@ def test_streaming_response_create_overload_17(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_17(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -1266,7 +1317,7 @@ def test_method_create_overload_18(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -1275,9 +1326,11 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) ->
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1285,7 +1338,7 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_18(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -1300,7 +1353,7 @@ def test_raw_response_create_overload_18(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_18(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -1316,19 +1369,20 @@ def test_streaming_response_create_overload_18(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_18(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -1339,13 +1393,15 @@ def test_method_create_overload_19(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1353,7 +1409,7 @@ def test_method_create_with_all_params_overload_19(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_19(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -1368,7 +1424,7 @@ def test_raw_response_create_overload_19(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_19(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -1384,19 +1440,20 @@ def test_streaming_response_create_overload_19(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_19(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_method_create_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -1408,7 +1465,7 @@ def test_method_create_overload_20(self, client: Cloudflare) -> None:
@parametrize
def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -1416,9 +1473,11 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) ->
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1426,7 +1485,7 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) ->
@parametrize
def test_raw_response_create_overload_20(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -1442,7 +1501,7 @@ def test_raw_response_create_overload_20(self, client: Cloudflare) -> None:
@parametrize
def test_streaming_response_create_overload_20(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -1459,13 +1518,14 @@ def test_streaming_response_create_overload_20(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_create_overload_20(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@@ -1473,7 +1533,7 @@ def test_path_params_create_overload_20(self, client: Cloudflare) -> None:
def test_method_update_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -1485,14 +1545,16 @@ def test_method_update_overload_1(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1501,7 +1563,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -1517,7 +1579,7 @@ def test_raw_response_update_overload_1(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -1533,19 +1595,20 @@ def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -1556,7 +1619,7 @@ def test_path_params_update_overload_1(self, client: Cloudflare) -> None:
def test_method_update_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -1568,14 +1631,16 @@ def test_method_update_overload_2(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1584,7 +1649,7 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N
def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -1600,7 +1665,7 @@ def test_raw_response_update_overload_2(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -1616,19 +1681,20 @@ def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -1639,7 +1705,7 @@ def test_path_params_update_overload_2(self, client: Cloudflare) -> None:
def test_method_update_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -1651,7 +1717,7 @@ def test_method_update_overload_3(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -1659,9 +1725,11 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1670,7 +1738,7 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N
def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -1686,7 +1754,7 @@ def test_raw_response_update_overload_3(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -1702,19 +1770,20 @@ def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -1725,7 +1794,7 @@ def test_path_params_update_overload_3(self, client: Cloudflare) -> None:
def test_method_update_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -1737,7 +1806,7 @@ def test_method_update_overload_4(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -1746,9 +1815,11 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1757,7 +1828,7 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N
def test_raw_response_update_overload_4(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -1773,7 +1844,7 @@ def test_raw_response_update_overload_4(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -1789,19 +1860,20 @@ def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -1812,7 +1884,7 @@ def test_path_params_update_overload_4(self, client: Cloudflare) -> None:
def test_method_update_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -1824,14 +1896,16 @@ def test_method_update_overload_5(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1840,7 +1914,7 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N
def test_raw_response_update_overload_5(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -1856,7 +1930,7 @@ def test_raw_response_update_overload_5(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -1872,19 +1946,20 @@ def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -1895,7 +1970,7 @@ def test_path_params_update_overload_5(self, client: Cloudflare) -> None:
def test_method_update_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -1907,7 +1982,7 @@ def test_method_update_overload_6(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -1916,9 +1991,11 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -1927,7 +2004,7 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N
def test_raw_response_update_overload_6(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -1943,7 +2020,7 @@ def test_raw_response_update_overload_6(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -1959,19 +2036,20 @@ def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -1982,7 +2060,7 @@ def test_path_params_update_overload_6(self, client: Cloudflare) -> None:
def test_method_update_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -1994,7 +2072,7 @@ def test_method_update_overload_7(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -2003,9 +2081,11 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2014,7 +2094,7 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N
def test_raw_response_update_overload_7(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -2030,7 +2110,7 @@ def test_raw_response_update_overload_7(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_7(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -2046,19 +2126,20 @@ def test_streaming_response_update_overload_7(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_7(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -2069,7 +2150,7 @@ def test_path_params_update_overload_7(self, client: Cloudflare) -> None:
def test_method_update_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -2081,7 +2162,7 @@ def test_method_update_overload_8(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -2089,9 +2170,11 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2100,7 +2183,7 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N
def test_raw_response_update_overload_8(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -2116,7 +2199,7 @@ def test_raw_response_update_overload_8(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_8(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -2132,19 +2215,20 @@ def test_streaming_response_update_overload_8(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_8(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -2155,7 +2239,7 @@ def test_path_params_update_overload_8(self, client: Cloudflare) -> None:
def test_method_update_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -2167,7 +2251,7 @@ def test_method_update_overload_9(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -2184,9 +2268,11 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2195,7 +2281,7 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N
def test_raw_response_update_overload_9(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -2211,7 +2297,7 @@ def test_raw_response_update_overload_9(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_9(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -2227,19 +2313,20 @@ def test_streaming_response_update_overload_9(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_9(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -2250,7 +2337,7 @@ def test_path_params_update_overload_9(self, client: Cloudflare) -> None:
def test_method_update_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -2263,14 +2350,16 @@ def test_method_update_overload_10(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2279,7 +2368,7 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) ->
def test_raw_response_update_overload_10(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -2296,7 +2385,7 @@ def test_raw_response_update_overload_10(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_10(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -2313,20 +2402,21 @@ def test_streaming_response_update_overload_10(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_10(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -2338,7 +2428,7 @@ def test_path_params_update_overload_10(self, client: Cloudflare) -> None:
def test_method_update_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -2350,7 +2440,7 @@ def test_method_update_overload_11(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -2361,9 +2451,11 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) ->
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2372,7 +2464,7 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) ->
def test_raw_response_update_overload_11(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -2388,7 +2480,7 @@ def test_raw_response_update_overload_11(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_11(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -2404,19 +2496,20 @@ def test_streaming_response_update_overload_11(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_11(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -2427,7 +2520,7 @@ def test_path_params_update_overload_11(self, client: Cloudflare) -> None:
def test_method_update_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -2439,13 +2532,15 @@ def test_method_update_overload_12(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2454,7 +2549,7 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) ->
def test_raw_response_update_overload_12(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -2470,7 +2565,7 @@ def test_raw_response_update_overload_12(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_12(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -2486,19 +2581,20 @@ def test_streaming_response_update_overload_12(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_12(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -2509,7 +2605,7 @@ def test_path_params_update_overload_12(self, client: Cloudflare) -> None:
def test_method_update_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -2521,13 +2617,15 @@ def test_method_update_overload_13(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2536,7 +2634,7 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) ->
def test_raw_response_update_overload_13(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -2552,7 +2650,7 @@ def test_raw_response_update_overload_13(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_13(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -2568,19 +2666,20 @@ def test_streaming_response_update_overload_13(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_13(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -2591,7 +2690,7 @@ def test_path_params_update_overload_13(self, client: Cloudflare) -> None:
def test_method_update_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -2603,7 +2702,7 @@ def test_method_update_overload_14(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -2612,9 +2711,11 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) ->
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2623,7 +2724,7 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) ->
def test_raw_response_update_overload_14(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -2639,7 +2740,7 @@ def test_raw_response_update_overload_14(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_14(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -2655,19 +2756,20 @@ def test_streaming_response_update_overload_14(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_14(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -2678,7 +2780,7 @@ def test_path_params_update_overload_14(self, client: Cloudflare) -> None:
def test_method_update_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -2690,7 +2792,7 @@ def test_method_update_overload_15(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -2702,9 +2804,11 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) ->
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2713,7 +2817,7 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) ->
def test_raw_response_update_overload_15(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -2729,7 +2833,7 @@ def test_raw_response_update_overload_15(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_15(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -2745,19 +2849,20 @@ def test_streaming_response_update_overload_15(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_15(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -2768,7 +2873,7 @@ def test_path_params_update_overload_15(self, client: Cloudflare) -> None:
def test_method_update_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -2780,7 +2885,7 @@ def test_method_update_overload_16(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -2788,9 +2893,11 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) ->
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2799,7 +2906,7 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) ->
def test_raw_response_update_overload_16(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -2815,7 +2922,7 @@ def test_raw_response_update_overload_16(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_16(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -2831,19 +2938,20 @@ def test_streaming_response_update_overload_16(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_16(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -2854,7 +2962,7 @@ def test_path_params_update_overload_16(self, client: Cloudflare) -> None:
def test_method_update_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -2866,7 +2974,7 @@ def test_method_update_overload_17(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -2874,9 +2982,11 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) ->
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2885,7 +2995,7 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) ->
def test_raw_response_update_overload_17(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -2901,7 +3011,7 @@ def test_raw_response_update_overload_17(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_17(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -2917,19 +3027,20 @@ def test_streaming_response_update_overload_17(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_17(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -2940,7 +3051,7 @@ def test_path_params_update_overload_17(self, client: Cloudflare) -> None:
def test_method_update_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -2952,7 +3063,7 @@ def test_method_update_overload_18(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -2961,9 +3072,11 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) ->
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -2972,7 +3085,7 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) ->
def test_raw_response_update_overload_18(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -2988,7 +3101,7 @@ def test_raw_response_update_overload_18(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_18(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -3004,19 +3117,20 @@ def test_streaming_response_update_overload_18(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_18(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -3027,7 +3141,7 @@ def test_path_params_update_overload_18(self, client: Cloudflare) -> None:
def test_method_update_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -3039,13 +3153,15 @@ def test_method_update_overload_19(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3054,7 +3170,7 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) ->
def test_raw_response_update_overload_19(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -3070,7 +3186,7 @@ def test_raw_response_update_overload_19(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_19(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -3086,19 +3202,20 @@ def test_streaming_response_update_overload_19(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_19(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -3109,7 +3226,7 @@ def test_path_params_update_overload_19(self, client: Cloudflare) -> None:
def test_method_update_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -3122,7 +3239,7 @@ def test_method_update_overload_20(self, client: Cloudflare) -> None:
def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -3130,9 +3247,11 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) ->
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3141,7 +3260,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) ->
def test_raw_response_update_overload_20(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -3158,7 +3277,7 @@ def test_raw_response_update_overload_20(self, client: Cloudflare) -> None:
def test_streaming_response_update_overload_20(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -3175,20 +3294,21 @@ def test_streaming_response_update_overload_20(self, client: Cloudflare) -> None
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_update_overload_20(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -3320,7 +3440,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
def test_method_edit_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -3332,14 +3452,16 @@ def test_method_edit_overload_1(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3348,7 +3470,7 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_1(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -3364,7 +3486,7 @@ def test_raw_response_edit_overload_1(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_1(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -3380,19 +3502,20 @@ def test_streaming_response_edit_overload_1(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_1(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -3403,7 +3526,7 @@ def test_path_params_edit_overload_1(self, client: Cloudflare) -> None:
def test_method_edit_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -3415,14 +3538,16 @@ def test_method_edit_overload_2(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3431,7 +3556,7 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_2(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -3447,7 +3572,7 @@ def test_raw_response_edit_overload_2(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_2(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -3463,19 +3588,20 @@ def test_streaming_response_edit_overload_2(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_2(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -3486,7 +3612,7 @@ def test_path_params_edit_overload_2(self, client: Cloudflare) -> None:
def test_method_edit_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -3498,7 +3624,7 @@ def test_method_edit_overload_3(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -3506,9 +3632,11 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3517,7 +3645,7 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_3(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -3533,7 +3661,7 @@ def test_raw_response_edit_overload_3(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_3(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -3549,19 +3677,20 @@ def test_streaming_response_edit_overload_3(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_3(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -3572,7 +3701,7 @@ def test_path_params_edit_overload_3(self, client: Cloudflare) -> None:
def test_method_edit_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -3584,7 +3713,7 @@ def test_method_edit_overload_4(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -3593,9 +3722,11 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3604,7 +3735,7 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_4(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -3620,7 +3751,7 @@ def test_raw_response_edit_overload_4(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_4(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -3636,19 +3767,20 @@ def test_streaming_response_edit_overload_4(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_4(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -3659,7 +3791,7 @@ def test_path_params_edit_overload_4(self, client: Cloudflare) -> None:
def test_method_edit_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -3671,14 +3803,16 @@ def test_method_edit_overload_5(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3687,7 +3821,7 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_5(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -3703,7 +3837,7 @@ def test_raw_response_edit_overload_5(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_5(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -3719,19 +3853,20 @@ def test_streaming_response_edit_overload_5(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_5(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -3742,7 +3877,7 @@ def test_path_params_edit_overload_5(self, client: Cloudflare) -> None:
def test_method_edit_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -3754,7 +3889,7 @@ def test_method_edit_overload_6(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -3763,9 +3898,11 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3774,7 +3911,7 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_6(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -3790,7 +3927,7 @@ def test_raw_response_edit_overload_6(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_6(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -3806,19 +3943,20 @@ def test_streaming_response_edit_overload_6(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_6(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -3829,7 +3967,7 @@ def test_path_params_edit_overload_6(self, client: Cloudflare) -> None:
def test_method_edit_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -3841,7 +3979,7 @@ def test_method_edit_overload_7(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -3850,9 +3988,11 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3861,7 +4001,7 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_7(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -3877,7 +4017,7 @@ def test_raw_response_edit_overload_7(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_7(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -3893,19 +4033,20 @@ def test_streaming_response_edit_overload_7(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_7(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -3916,7 +4057,7 @@ def test_path_params_edit_overload_7(self, client: Cloudflare) -> None:
def test_method_edit_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -3928,7 +4069,7 @@ def test_method_edit_overload_8(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -3936,9 +4077,11 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -3947,7 +4090,7 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_8(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -3963,7 +4106,7 @@ def test_raw_response_edit_overload_8(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_8(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -3979,19 +4122,20 @@ def test_streaming_response_edit_overload_8(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_8(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -4002,7 +4146,7 @@ def test_path_params_edit_overload_8(self, client: Cloudflare) -> None:
def test_method_edit_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -4014,7 +4158,7 @@ def test_method_edit_overload_9(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -4031,9 +4175,11 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4042,7 +4188,7 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non
def test_raw_response_edit_overload_9(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -4058,7 +4204,7 @@ def test_raw_response_edit_overload_9(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_9(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -4074,19 +4220,20 @@ def test_streaming_response_edit_overload_9(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_9(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -4097,7 +4244,7 @@ def test_path_params_edit_overload_9(self, client: Cloudflare) -> None:
def test_method_edit_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -4110,14 +4257,16 @@ def test_method_edit_overload_10(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4126,7 +4275,7 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_10(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -4143,7 +4292,7 @@ def test_raw_response_edit_overload_10(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_10(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -4160,20 +4309,21 @@ def test_streaming_response_edit_overload_10(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_10(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -4185,7 +4335,7 @@ def test_path_params_edit_overload_10(self, client: Cloudflare) -> None:
def test_method_edit_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -4197,7 +4347,7 @@ def test_method_edit_overload_11(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -4208,9 +4358,11 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4219,7 +4371,7 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_11(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -4235,7 +4387,7 @@ def test_raw_response_edit_overload_11(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_11(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -4251,19 +4403,20 @@ def test_streaming_response_edit_overload_11(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_11(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -4274,7 +4427,7 @@ def test_path_params_edit_overload_11(self, client: Cloudflare) -> None:
def test_method_edit_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -4286,13 +4439,15 @@ def test_method_edit_overload_12(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4301,7 +4456,7 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_12(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -4317,7 +4472,7 @@ def test_raw_response_edit_overload_12(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_12(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -4333,19 +4488,20 @@ def test_streaming_response_edit_overload_12(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_12(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -4356,7 +4512,7 @@ def test_path_params_edit_overload_12(self, client: Cloudflare) -> None:
def test_method_edit_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -4368,13 +4524,15 @@ def test_method_edit_overload_13(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4383,7 +4541,7 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_13(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -4399,7 +4557,7 @@ def test_raw_response_edit_overload_13(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_13(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -4415,19 +4573,20 @@ def test_streaming_response_edit_overload_13(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_13(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -4438,7 +4597,7 @@ def test_path_params_edit_overload_13(self, client: Cloudflare) -> None:
def test_method_edit_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -4450,7 +4609,7 @@ def test_method_edit_overload_14(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -4459,9 +4618,11 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4470,7 +4631,7 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_14(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -4486,7 +4647,7 @@ def test_raw_response_edit_overload_14(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_14(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -4502,19 +4663,20 @@ def test_streaming_response_edit_overload_14(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_14(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -4525,7 +4687,7 @@ def test_path_params_edit_overload_14(self, client: Cloudflare) -> None:
def test_method_edit_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -4537,7 +4699,7 @@ def test_method_edit_overload_15(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -4549,9 +4711,11 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4560,7 +4724,7 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_15(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -4576,7 +4740,7 @@ def test_raw_response_edit_overload_15(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_15(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -4592,19 +4756,20 @@ def test_streaming_response_edit_overload_15(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_15(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -4615,7 +4780,7 @@ def test_path_params_edit_overload_15(self, client: Cloudflare) -> None:
def test_method_edit_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -4627,7 +4792,7 @@ def test_method_edit_overload_16(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -4635,9 +4800,11 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4646,7 +4813,7 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_16(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -4662,7 +4829,7 @@ def test_raw_response_edit_overload_16(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_16(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -4678,19 +4845,20 @@ def test_streaming_response_edit_overload_16(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_16(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -4701,7 +4869,7 @@ def test_path_params_edit_overload_16(self, client: Cloudflare) -> None:
def test_method_edit_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -4713,7 +4881,7 @@ def test_method_edit_overload_17(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -4721,9 +4889,11 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4732,7 +4902,7 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_17(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -4748,7 +4918,7 @@ def test_raw_response_edit_overload_17(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_17(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -4764,19 +4934,20 @@ def test_streaming_response_edit_overload_17(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_17(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -4787,7 +4958,7 @@ def test_path_params_edit_overload_17(self, client: Cloudflare) -> None:
def test_method_edit_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -4799,7 +4970,7 @@ def test_method_edit_overload_18(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -4808,9 +4979,11 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4819,7 +4992,7 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_18(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -4835,7 +5008,7 @@ def test_raw_response_edit_overload_18(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_18(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -4851,19 +5024,20 @@ def test_streaming_response_edit_overload_18(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_18(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -4874,7 +5048,7 @@ def test_path_params_edit_overload_18(self, client: Cloudflare) -> None:
def test_method_edit_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -4886,13 +5060,15 @@ def test_method_edit_overload_19(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4901,7 +5077,7 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_19(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -4917,7 +5093,7 @@ def test_raw_response_edit_overload_19(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_19(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -4933,19 +5109,20 @@ def test_streaming_response_edit_overload_19(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_19(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -4956,7 +5133,7 @@ def test_path_params_edit_overload_19(self, client: Cloudflare) -> None:
def test_method_edit_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -4969,7 +5146,7 @@ def test_method_edit_overload_20(self, client: Cloudflare) -> None:
def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -4977,9 +5154,11 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -4988,7 +5167,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No
def test_raw_response_edit_overload_20(self, client: Cloudflare) -> None:
response = client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -5005,7 +5184,7 @@ def test_raw_response_edit_overload_20(self, client: Cloudflare) -> None:
def test_streaming_response_edit_overload_20(self, client: Cloudflare) -> None:
with client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -5022,20 +5201,21 @@ def test_streaming_response_edit_overload_20(self, client: Cloudflare) -> None:
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
def test_path_params_edit_overload_20(self, client: Cloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -5234,7 +5414,7 @@ class TestAsyncRecords:
@parametrize
async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -5245,14 +5425,16 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5260,7 +5442,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -5275,7 +5457,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -5291,19 +5473,20 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -5314,14 +5497,16 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5329,7 +5514,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -5344,7 +5529,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -5360,19 +5545,20 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -5383,7 +5569,7 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -5391,9 +5577,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5401,7 +5589,7 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_3(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -5416,7 +5604,7 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_3(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -5432,19 +5620,20 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_3(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -5455,7 +5644,7 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -5464,9 +5653,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5474,7 +5665,7 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_4(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -5489,7 +5680,7 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_4(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -5505,19 +5696,20 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_4(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -5528,14 +5720,16 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5543,7 +5737,7 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_5(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -5558,7 +5752,7 @@ async def test_raw_response_create_overload_5(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_5(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -5574,19 +5768,20 @@ async def test_streaming_response_create_overload_5(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_5(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -5597,7 +5792,7 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -5606,9 +5801,11 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5616,7 +5813,7 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_6(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -5631,7 +5828,7 @@ async def test_raw_response_create_overload_6(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_6(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -5647,19 +5844,20 @@ async def test_streaming_response_create_overload_6(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_6(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -5670,7 +5868,7 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -5679,9 +5877,11 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5689,7 +5889,7 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_7(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -5704,7 +5904,7 @@ async def test_raw_response_create_overload_7(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_7(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -5720,19 +5920,20 @@ async def test_streaming_response_create_overload_7(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_7(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -5743,7 +5944,7 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -5751,9 +5952,11 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5761,7 +5964,7 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_8(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -5776,7 +5979,7 @@ async def test_raw_response_create_overload_8(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_8(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -5792,19 +5995,20 @@ async def test_streaming_response_create_overload_8(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_8(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -5815,7 +6019,7 @@ async def test_method_create_overload_9(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -5832,9 +6036,11 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5842,7 +6048,7 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn
@parametrize
async def test_raw_response_create_overload_9(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -5857,7 +6063,7 @@ async def test_raw_response_create_overload_9(self, async_client: AsyncCloudflar
@parametrize
async def test_streaming_response_create_overload_9(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -5873,19 +6079,20 @@ async def test_streaming_response_create_overload_9(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_9(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -5897,14 +6104,16 @@ async def test_method_create_overload_10(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5912,7 +6121,7 @@ async def test_method_create_with_all_params_overload_10(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_10(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -5928,7 +6137,7 @@ async def test_raw_response_create_overload_10(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_10(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -5945,20 +6154,21 @@ async def test_streaming_response_create_overload_10(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_10(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -5969,7 +6179,7 @@ async def test_method_create_overload_11(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -5980,9 +6190,11 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -5990,7 +6202,7 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_11(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -6005,7 +6217,7 @@ async def test_raw_response_create_overload_11(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_11(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -6021,19 +6233,20 @@ async def test_streaming_response_create_overload_11(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_11(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -6044,13 +6257,15 @@ async def test_method_create_overload_12(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6058,7 +6273,7 @@ async def test_method_create_with_all_params_overload_12(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_12(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -6073,7 +6288,7 @@ async def test_raw_response_create_overload_12(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_12(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -6089,19 +6304,20 @@ async def test_streaming_response_create_overload_12(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_12(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -6112,13 +6328,15 @@ async def test_method_create_overload_13(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6126,7 +6344,7 @@ async def test_method_create_with_all_params_overload_13(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_13(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -6141,7 +6359,7 @@ async def test_raw_response_create_overload_13(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_13(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -6157,19 +6375,20 @@ async def test_streaming_response_create_overload_13(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_13(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -6180,7 +6399,7 @@ async def test_method_create_overload_14(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -6189,9 +6408,11 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6199,7 +6420,7 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_14(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -6214,7 +6435,7 @@ async def test_raw_response_create_overload_14(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_14(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -6230,19 +6451,20 @@ async def test_streaming_response_create_overload_14(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_14(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -6253,7 +6475,7 @@ async def test_method_create_overload_15(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -6265,9 +6487,11 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6275,7 +6499,7 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_15(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -6290,7 +6514,7 @@ async def test_raw_response_create_overload_15(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_15(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -6306,19 +6530,20 @@ async def test_streaming_response_create_overload_15(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_15(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -6329,7 +6554,7 @@ async def test_method_create_overload_16(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -6337,9 +6562,11 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6347,7 +6574,7 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_16(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -6362,7 +6589,7 @@ async def test_raw_response_create_overload_16(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_16(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -6378,19 +6605,20 @@ async def test_streaming_response_create_overload_16(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_16(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -6401,7 +6629,7 @@ async def test_method_create_overload_17(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -6409,9 +6637,11 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6419,7 +6649,7 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_17(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -6434,7 +6664,7 @@ async def test_raw_response_create_overload_17(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_17(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -6450,19 +6680,20 @@ async def test_streaming_response_create_overload_17(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_17(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -6473,7 +6704,7 @@ async def test_method_create_overload_18(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -6482,9 +6713,11 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6492,7 +6725,7 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_18(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -6507,7 +6740,7 @@ async def test_raw_response_create_overload_18(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_18(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -6523,19 +6756,20 @@ async def test_streaming_response_create_overload_18(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_18(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -6546,13 +6780,15 @@ async def test_method_create_overload_19(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6560,7 +6796,7 @@ async def test_method_create_with_all_params_overload_19(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_19(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -6575,7 +6811,7 @@ async def test_raw_response_create_overload_19(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_19(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -6591,19 +6827,20 @@ async def test_streaming_response_create_overload_19(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_19(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_method_create_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -6615,7 +6852,7 @@ async def test_method_create_overload_20(self, async_client: AsyncCloudflare) ->
@parametrize
async def test_method_create_with_all_params_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -6623,9 +6860,11 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6633,7 +6872,7 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy
@parametrize
async def test_raw_response_create_overload_20(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -6649,7 +6888,7 @@ async def test_raw_response_create_overload_20(self, async_client: AsyncCloudfla
@parametrize
async def test_streaming_response_create_overload_20(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.create(
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -6666,13 +6905,14 @@ async def test_streaming_response_create_overload_20(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_create_overload_20(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.create(
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
@pytest.mark.skip(reason="TODO: investigate broken test")
@@ -6680,7 +6920,7 @@ async def test_path_params_create_overload_20(self, async_client: AsyncCloudflar
async def test_method_update_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -6692,14 +6932,16 @@ async def test_method_update_overload_1(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6708,7 +6950,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -6724,7 +6966,7 @@ async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_1(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -6740,19 +6982,20 @@ async def test_streaming_response_update_overload_1(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -6763,7 +7006,7 @@ async def test_path_params_update_overload_1(self, async_client: AsyncCloudflare
async def test_method_update_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -6775,14 +7018,16 @@ async def test_method_update_overload_2(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6791,7 +7036,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn
async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -6807,7 +7052,7 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_2(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -6823,19 +7068,20 @@ async def test_streaming_response_update_overload_2(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -6846,7 +7092,7 @@ async def test_path_params_update_overload_2(self, async_client: AsyncCloudflare
async def test_method_update_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -6858,7 +7104,7 @@ async def test_method_update_overload_3(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -6866,9 +7112,11 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6877,7 +7125,7 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn
async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -6893,7 +7141,7 @@ async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_3(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -6909,19 +7157,20 @@ async def test_streaming_response_update_overload_3(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -6932,7 +7181,7 @@ async def test_path_params_update_overload_3(self, async_client: AsyncCloudflare
async def test_method_update_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -6944,7 +7193,7 @@ async def test_method_update_overload_4(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -6953,9 +7202,11 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -6964,7 +7215,7 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn
async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -6980,7 +7231,7 @@ async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_4(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -6996,19 +7247,20 @@ async def test_streaming_response_update_overload_4(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -7019,7 +7271,7 @@ async def test_path_params_update_overload_4(self, async_client: AsyncCloudflare
async def test_method_update_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -7031,14 +7283,16 @@ async def test_method_update_overload_5(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7047,7 +7301,7 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn
async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -7063,7 +7317,7 @@ async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_5(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -7079,19 +7333,20 @@ async def test_streaming_response_update_overload_5(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -7102,7 +7357,7 @@ async def test_path_params_update_overload_5(self, async_client: AsyncCloudflare
async def test_method_update_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -7114,7 +7369,7 @@ async def test_method_update_overload_6(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -7123,9 +7378,11 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7134,7 +7391,7 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn
async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -7150,7 +7407,7 @@ async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_6(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -7166,19 +7423,20 @@ async def test_streaming_response_update_overload_6(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -7189,7 +7447,7 @@ async def test_path_params_update_overload_6(self, async_client: AsyncCloudflare
async def test_method_update_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -7201,7 +7459,7 @@ async def test_method_update_overload_7(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -7210,9 +7468,11 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7221,7 +7481,7 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn
async def test_raw_response_update_overload_7(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -7237,7 +7497,7 @@ async def test_raw_response_update_overload_7(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_7(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -7253,19 +7513,20 @@ async def test_streaming_response_update_overload_7(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_7(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -7276,7 +7537,7 @@ async def test_path_params_update_overload_7(self, async_client: AsyncCloudflare
async def test_method_update_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -7288,7 +7549,7 @@ async def test_method_update_overload_8(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -7296,9 +7557,11 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7307,7 +7570,7 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn
async def test_raw_response_update_overload_8(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -7323,7 +7586,7 @@ async def test_raw_response_update_overload_8(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_8(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -7339,19 +7602,20 @@ async def test_streaming_response_update_overload_8(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_8(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -7362,7 +7626,7 @@ async def test_path_params_update_overload_8(self, async_client: AsyncCloudflare
async def test_method_update_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -7374,7 +7638,7 @@ async def test_method_update_overload_9(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -7391,9 +7655,11 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7402,7 +7668,7 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn
async def test_raw_response_update_overload_9(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -7418,7 +7684,7 @@ async def test_raw_response_update_overload_9(self, async_client: AsyncCloudflar
async def test_streaming_response_update_overload_9(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -7434,19 +7700,20 @@ async def test_streaming_response_update_overload_9(self, async_client: AsyncClo
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_9(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -7457,7 +7724,7 @@ async def test_path_params_update_overload_9(self, async_client: AsyncCloudflare
async def test_method_update_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -7470,14 +7737,16 @@ async def test_method_update_overload_10(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7486,7 +7755,7 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy
async def test_raw_response_update_overload_10(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -7503,7 +7772,7 @@ async def test_raw_response_update_overload_10(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_10(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -7520,20 +7789,21 @@ async def test_streaming_response_update_overload_10(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_10(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -7545,7 +7815,7 @@ async def test_path_params_update_overload_10(self, async_client: AsyncCloudflar
async def test_method_update_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -7557,7 +7827,7 @@ async def test_method_update_overload_11(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -7568,9 +7838,11 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7579,7 +7851,7 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy
async def test_raw_response_update_overload_11(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -7595,7 +7867,7 @@ async def test_raw_response_update_overload_11(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_11(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -7611,19 +7883,20 @@ async def test_streaming_response_update_overload_11(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_11(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -7634,7 +7907,7 @@ async def test_path_params_update_overload_11(self, async_client: AsyncCloudflar
async def test_method_update_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -7646,13 +7919,15 @@ async def test_method_update_overload_12(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7661,7 +7936,7 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy
async def test_raw_response_update_overload_12(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -7677,7 +7952,7 @@ async def test_raw_response_update_overload_12(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_12(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -7693,19 +7968,20 @@ async def test_streaming_response_update_overload_12(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_12(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -7716,7 +7992,7 @@ async def test_path_params_update_overload_12(self, async_client: AsyncCloudflar
async def test_method_update_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -7728,13 +8004,15 @@ async def test_method_update_overload_13(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7743,7 +8021,7 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy
async def test_raw_response_update_overload_13(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -7759,7 +8037,7 @@ async def test_raw_response_update_overload_13(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_13(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -7775,19 +8053,20 @@ async def test_streaming_response_update_overload_13(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_13(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -7798,7 +8077,7 @@ async def test_path_params_update_overload_13(self, async_client: AsyncCloudflar
async def test_method_update_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -7810,7 +8089,7 @@ async def test_method_update_overload_14(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -7819,9 +8098,11 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7830,7 +8111,7 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy
async def test_raw_response_update_overload_14(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -7846,7 +8127,7 @@ async def test_raw_response_update_overload_14(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_14(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -7862,19 +8143,20 @@ async def test_streaming_response_update_overload_14(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_14(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -7885,7 +8167,7 @@ async def test_path_params_update_overload_14(self, async_client: AsyncCloudflar
async def test_method_update_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -7897,7 +8179,7 @@ async def test_method_update_overload_15(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -7909,9 +8191,11 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -7920,7 +8204,7 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy
async def test_raw_response_update_overload_15(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -7936,7 +8220,7 @@ async def test_raw_response_update_overload_15(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_15(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -7952,19 +8236,20 @@ async def test_streaming_response_update_overload_15(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_15(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -7975,7 +8260,7 @@ async def test_path_params_update_overload_15(self, async_client: AsyncCloudflar
async def test_method_update_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -7987,7 +8272,7 @@ async def test_method_update_overload_16(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -7995,9 +8280,11 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8006,7 +8293,7 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy
async def test_raw_response_update_overload_16(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -8022,7 +8309,7 @@ async def test_raw_response_update_overload_16(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_16(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -8038,19 +8325,20 @@ async def test_streaming_response_update_overload_16(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_16(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -8061,7 +8349,7 @@ async def test_path_params_update_overload_16(self, async_client: AsyncCloudflar
async def test_method_update_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -8073,7 +8361,7 @@ async def test_method_update_overload_17(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -8081,9 +8369,11 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8092,7 +8382,7 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy
async def test_raw_response_update_overload_17(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -8108,7 +8398,7 @@ async def test_raw_response_update_overload_17(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_17(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -8124,19 +8414,20 @@ async def test_streaming_response_update_overload_17(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_17(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -8147,7 +8438,7 @@ async def test_path_params_update_overload_17(self, async_client: AsyncCloudflar
async def test_method_update_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -8159,7 +8450,7 @@ async def test_method_update_overload_18(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -8168,9 +8459,11 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8179,7 +8472,7 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy
async def test_raw_response_update_overload_18(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -8195,7 +8488,7 @@ async def test_raw_response_update_overload_18(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_18(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -8211,19 +8504,20 @@ async def test_streaming_response_update_overload_18(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_18(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -8234,7 +8528,7 @@ async def test_path_params_update_overload_18(self, async_client: AsyncCloudflar
async def test_method_update_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -8246,13 +8540,15 @@ async def test_method_update_overload_19(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8261,7 +8557,7 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy
async def test_raw_response_update_overload_19(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -8277,7 +8573,7 @@ async def test_raw_response_update_overload_19(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_19(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -8293,19 +8589,20 @@ async def test_streaming_response_update_overload_19(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_19(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -8316,7 +8613,7 @@ async def test_path_params_update_overload_19(self, async_client: AsyncCloudflar
async def test_method_update_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -8329,7 +8626,7 @@ async def test_method_update_overload_20(self, async_client: AsyncCloudflare) ->
async def test_method_update_with_all_params_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -8337,9 +8634,11 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8348,7 +8647,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy
async def test_raw_response_update_overload_20(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -8365,7 +8664,7 @@ async def test_raw_response_update_overload_20(self, async_client: AsyncCloudfla
async def test_streaming_response_update_overload_20(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -8382,20 +8681,21 @@ async def test_streaming_response_update_overload_20(self, async_client: AsyncCl
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_update_overload_20(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.update(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -8527,7 +8827,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
async def test_method_edit_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -8539,14 +8839,16 @@ async def test_method_edit_overload_1(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8555,7 +8857,7 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC
async def test_raw_response_edit_overload_1(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -8571,7 +8873,7 @@ async def test_raw_response_edit_overload_1(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_1(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -8587,19 +8889,20 @@ async def test_streaming_response_edit_overload_1(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_1(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="198.51.100.4",
name="example.com",
type="A",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="198.51.100.4",
name="example.com",
type="A",
@@ -8610,7 +8913,7 @@ async def test_path_params_edit_overload_1(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -8622,14 +8925,16 @@ async def test_method_edit_overload_2(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8638,7 +8943,7 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC
async def test_raw_response_edit_overload_2(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -8654,7 +8959,7 @@ async def test_raw_response_edit_overload_2(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_2(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -8670,19 +8975,20 @@ async def test_streaming_response_edit_overload_2(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_2(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="2400:cb00:2049::1",
name="example.com",
type="AAAA",
@@ -8693,7 +8999,7 @@ async def test_path_params_edit_overload_2(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -8705,7 +9011,7 @@ async def test_method_edit_overload_3(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": 1,
"tag": "issue",
@@ -8713,9 +9019,11 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC
},
name="example.com",
type="CAA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8724,7 +9032,7 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC
async def test_raw_response_edit_overload_3(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -8740,7 +9048,7 @@ async def test_raw_response_edit_overload_3(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_3(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -8756,19 +9064,20 @@ async def test_streaming_response_edit_overload_3(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_3(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CAA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CAA",
@@ -8779,7 +9088,7 @@ async def test_path_params_edit_overload_3(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -8791,7 +9100,7 @@ async def test_method_edit_overload_4(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 8,
"certificate": "string",
@@ -8800,9 +9109,11 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC
},
name="example.com",
type="CERT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8811,7 +9122,7 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC
async def test_raw_response_edit_overload_4(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -8827,7 +9138,7 @@ async def test_raw_response_edit_overload_4(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_4(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -8843,19 +9154,20 @@ async def test_streaming_response_edit_overload_4(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_4(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="CERT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="CERT",
@@ -8866,7 +9178,7 @@ async def test_path_params_edit_overload_4(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -8878,14 +9190,16 @@ async def test_method_edit_overload_5(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
proxied=False,
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8894,7 +9208,7 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC
async def test_raw_response_edit_overload_5(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -8910,7 +9224,7 @@ async def test_raw_response_edit_overload_5(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_5(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -8926,19 +9240,20 @@ async def test_streaming_response_edit_overload_5(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_5(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content={},
name="example.com",
type="CNAME",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content={},
name="example.com",
type="CNAME",
@@ -8949,7 +9264,7 @@ async def test_path_params_edit_overload_5(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -8961,7 +9276,7 @@ async def test_method_edit_overload_6(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 5,
"flags": 1,
@@ -8970,9 +9285,11 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC
},
name="example.com",
type="DNSKEY",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -8981,7 +9298,7 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC
async def test_raw_response_edit_overload_6(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -8997,7 +9314,7 @@ async def test_raw_response_edit_overload_6(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_6(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -9013,19 +9330,20 @@ async def test_streaming_response_edit_overload_6(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_6(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DNSKEY",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DNSKEY",
@@ -9036,7 +9354,7 @@ async def test_path_params_edit_overload_6(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -9048,7 +9366,7 @@ async def test_method_edit_overload_7(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 3,
"digest": "string",
@@ -9057,9 +9375,11 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC
},
name="example.com",
type="DS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9068,7 +9388,7 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC
async def test_raw_response_edit_overload_7(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -9084,7 +9404,7 @@ async def test_raw_response_edit_overload_7(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_7(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -9100,19 +9420,20 @@ async def test_streaming_response_edit_overload_7(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_7(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="DS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="DS",
@@ -9123,7 +9444,7 @@ async def test_path_params_edit_overload_7(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -9135,7 +9456,7 @@ async def test_method_edit_overload_8(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -9143,9 +9464,11 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC
},
name="example.com",
type="HTTPS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9154,7 +9477,7 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC
async def test_raw_response_edit_overload_8(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -9170,7 +9493,7 @@ async def test_raw_response_edit_overload_8(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_8(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -9186,19 +9509,20 @@ async def test_streaming_response_edit_overload_8(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_8(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="HTTPS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="HTTPS",
@@ -9209,7 +9533,7 @@ async def test_path_params_edit_overload_8(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -9221,7 +9545,7 @@ async def test_method_edit_overload_9(self, async_client: AsyncCloudflare) -> No
async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -9238,9 +9562,11 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC
},
name="example.com",
type="LOC",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9249,7 +9575,7 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC
async def test_raw_response_edit_overload_9(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -9265,7 +9591,7 @@ async def test_raw_response_edit_overload_9(self, async_client: AsyncCloudflare)
async def test_streaming_response_edit_overload_9(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -9281,19 +9607,20 @@ async def test_streaming_response_edit_overload_9(self, async_client: AsyncCloud
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_9(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="LOC",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="LOC",
@@ -9304,7 +9631,7 @@ async def test_path_params_edit_overload_9(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -9317,14 +9644,16 @@ async def test_method_edit_overload_10(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9333,7 +9662,7 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async
async def test_raw_response_edit_overload_10(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -9350,7 +9679,7 @@ async def test_raw_response_edit_overload_10(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_10(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -9367,20 +9696,21 @@ async def test_streaming_response_edit_overload_10(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_10(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="mx.example.com",
name="example.com",
priority=10,
type="MX",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="mx.example.com",
name="example.com",
priority=10,
@@ -9392,7 +9722,7 @@ async def test_path_params_edit_overload_10(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -9404,7 +9734,7 @@ async def test_method_edit_overload_11(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"flags": "string",
"order": 100,
@@ -9415,9 +9745,11 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async
},
name="example.com",
type="NAPTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9426,7 +9758,7 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async
async def test_raw_response_edit_overload_11(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -9442,7 +9774,7 @@ async def test_raw_response_edit_overload_11(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_11(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -9458,19 +9790,20 @@ async def test_streaming_response_edit_overload_11(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_11(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="NAPTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="NAPTR",
@@ -9481,7 +9814,7 @@ async def test_path_params_edit_overload_11(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -9493,13 +9826,15 @@ async def test_method_edit_overload_12(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9508,7 +9843,7 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async
async def test_raw_response_edit_overload_12(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -9524,7 +9859,7 @@ async def test_raw_response_edit_overload_12(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_12(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -9540,19 +9875,20 @@ async def test_streaming_response_edit_overload_12(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_12(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="ns1.example.com",
name="example.com",
type="NS",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="ns1.example.com",
name="example.com",
type="NS",
@@ -9563,7 +9899,7 @@ async def test_path_params_edit_overload_12(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -9575,13 +9911,15 @@ async def test_method_edit_overload_13(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9590,7 +9928,7 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async
async def test_raw_response_edit_overload_13(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -9606,7 +9944,7 @@ async def test_raw_response_edit_overload_13(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_13(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -9622,19 +9960,20 @@ async def test_streaming_response_edit_overload_13(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_13(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example.com",
name="example.com",
type="PTR",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example.com",
name="example.com",
type="PTR",
@@ -9645,7 +9984,7 @@ async def test_path_params_edit_overload_13(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -9657,7 +9996,7 @@ async def test_method_edit_overload_14(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 0,
@@ -9666,9 +10005,11 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async
},
name="example.com",
type="SMIMEA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9677,7 +10018,7 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async
async def test_raw_response_edit_overload_14(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -9693,7 +10034,7 @@ async def test_raw_response_edit_overload_14(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_14(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -9709,19 +10050,20 @@ async def test_streaming_response_edit_overload_14(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_14(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SMIMEA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SMIMEA",
@@ -9732,7 +10074,7 @@ async def test_path_params_edit_overload_14(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -9744,7 +10086,7 @@ async def test_method_edit_overload_15(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"name": "example.com",
"port": 8806,
@@ -9756,9 +10098,11 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async
},
name="_sip._tcp.example.com",
type="SRV",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9767,7 +10111,7 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async
async def test_raw_response_edit_overload_15(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -9783,7 +10127,7 @@ async def test_raw_response_edit_overload_15(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_15(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -9799,19 +10143,20 @@ async def test_streaming_response_edit_overload_15(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_15(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="_sip._tcp.example.com",
type="SRV",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="_sip._tcp.example.com",
type="SRV",
@@ -9822,7 +10167,7 @@ async def test_path_params_edit_overload_15(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -9834,7 +10179,7 @@ async def test_method_edit_overload_16(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"algorithm": 2,
"fingerprint": "string",
@@ -9842,9 +10187,11 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async
},
name="example.com",
type="SSHFP",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9853,7 +10200,7 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async
async def test_raw_response_edit_overload_16(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -9869,7 +10216,7 @@ async def test_raw_response_edit_overload_16(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_16(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -9885,19 +10232,20 @@ async def test_streaming_response_edit_overload_16(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_16(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SSHFP",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SSHFP",
@@ -9908,7 +10256,7 @@ async def test_path_params_edit_overload_16(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -9920,7 +10268,7 @@ async def test_method_edit_overload_17(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"priority": 1,
"target": ".",
@@ -9928,9 +10276,11 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async
},
name="example.com",
type="SVCB",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -9939,7 +10289,7 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async
async def test_raw_response_edit_overload_17(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -9955,7 +10305,7 @@ async def test_raw_response_edit_overload_17(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_17(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -9971,19 +10321,20 @@ async def test_streaming_response_edit_overload_17(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_17(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="SVCB",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="SVCB",
@@ -9994,7 +10345,7 @@ async def test_path_params_edit_overload_17(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -10006,7 +10357,7 @@ async def test_method_edit_overload_18(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"certificate": "string",
"matching_type": 1,
@@ -10015,9 +10366,11 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async
},
name="example.com",
type="TLSA",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -10026,7 +10379,7 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async
async def test_raw_response_edit_overload_18(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -10042,7 +10395,7 @@ async def test_raw_response_edit_overload_18(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_18(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -10058,19 +10411,20 @@ async def test_streaming_response_edit_overload_18(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_18(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
type="TLSA",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
type="TLSA",
@@ -10081,7 +10435,7 @@ async def test_path_params_edit_overload_18(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -10093,13 +10447,15 @@ async def test_method_edit_overload_19(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -10108,7 +10464,7 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async
async def test_raw_response_edit_overload_19(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -10124,7 +10480,7 @@ async def test_raw_response_edit_overload_19(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_19(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -10140,19 +10496,20 @@ async def test_streaming_response_edit_overload_19(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_19(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
content="example text content",
name="example.com",
type="TXT",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
content="example text content",
name="example.com",
type="TXT",
@@ -10163,7 +10520,7 @@ async def test_path_params_edit_overload_19(self, async_client: AsyncCloudflare)
async def test_method_edit_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -10176,7 +10533,7 @@ async def test_method_edit_overload_20(self, async_client: AsyncCloudflare) -> N
async def test_method_edit_with_all_params_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={
"target": "http://example.com/example.html",
"weight": 20,
@@ -10184,9 +10541,11 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async
name="example.com",
priority=10,
type="URI",
+ id="023e105f4ecef8ad9ca31a8372d0c353",
comment="Domain verification record",
tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"],
ttl=3600,
+ body_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
assert_matches_type(Optional[Record], record, path=["response"])
@@ -10195,7 +10554,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async
async def test_raw_response_edit_overload_20(self, async_client: AsyncCloudflare) -> None:
response = await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -10212,7 +10571,7 @@ async def test_raw_response_edit_overload_20(self, async_client: AsyncCloudflare
async def test_streaming_response_edit_overload_20(self, async_client: AsyncCloudflare) -> None:
async with async_client.dns.records.with_streaming_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,
@@ -10229,20 +10588,21 @@ async def test_streaming_response_edit_overload_20(self, async_client: AsyncClou
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
async def test_path_params_edit_overload_20(self, async_client: AsyncCloudflare) -> None:
- with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
+ with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_zone_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"023e105f4ecef8ad9ca31a8372d0c353",
- zone_id="",
+ path_zone_id="",
data={},
name="example.com",
priority=10,
type="URI",
+ body_zone_id="",
)
with pytest.raises(ValueError, match=r"Expected a non-empty value for `dns_record_id` but received ''"):
await async_client.dns.records.with_raw_response.edit(
"",
- zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ path_zone_id="023e105f4ecef8ad9ca31a8372d0c353",
data={},
name="example.com",
priority=10,