From 6e29ee9e10e7185725caf12fde95e7c398408774 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 01:42:53 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#1135) --- .stats.yml | 2 +- api.md | 6 +- src/cloudflare/resources/dns/records.py | 930 +++------ src/cloudflare/types/dns/a_record.py | 6 - src/cloudflare/types/dns/aaaa_record.py | 6 - src/cloudflare/types/dns/caa_record.py | 6 - src/cloudflare/types/dns/cert_record.py | 6 - src/cloudflare/types/dns/cname_record.py | 6 - src/cloudflare/types/dns/dnskey_record.py | 6 - src/cloudflare/types/dns/ds_record.py | 6 - src/cloudflare/types/dns/https_record.py | 6 - src/cloudflare/types/dns/loc_record.py | 6 - src/cloudflare/types/dns/mx_record.py | 6 - src/cloudflare/types/dns/naptr_record.py | 6 - src/cloudflare/types/dns/ns_record.py | 6 - src/cloudflare/types/dns/ptr_record.py | 6 - .../types/dns/record_create_params.py | 103 +- .../types/dns/record_edit_params.py | 103 +- .../types/dns/record_update_params.py | 103 +- src/cloudflare/types/dns/smimea_record.py | 6 - src/cloudflare/types/dns/srv_record.py | 6 - src/cloudflare/types/dns/sshfp_record.py | 6 - src/cloudflare/types/dns/svcb_record.py | 6 - src/cloudflare/types/dns/tlsa_record.py | 6 - src/cloudflare/types/dns/txt_record.py | 6 - src/cloudflare/types/dns/uri_record.py | 6 - tests/api_resources/dns/test_records.py | 1840 +++++++---------- 27 files changed, 1149 insertions(+), 2058 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7cafb43135f..65dd286b402 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1353 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d0fe5cd9929c3c4036183a0a69b6012e931b6d7b85a39d74cbf7b963b5269436.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cfad07b19358cd949055b19f0b3018c59d6d432d441c6ce1f1bfba4fe2ceb344.yml diff --git a/api.md b/api.md index 1a3f90bc81a..3f970882269 100644 --- a/api.md +++ b/api.md @@ -1634,11 +1634,11 @@ from cloudflare.types.dns import ( Methods: -- client.dns.records.create(\*, path_zone_id, \*\*params) -> Optional -- client.dns.records.update(dns_record_id, \*, path_zone_id, \*\*params) -> Optional +- client.dns.records.create(\*, zone_id, \*\*params) -> Optional +- client.dns.records.update(dns_record_id, \*, 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, \*, path_zone_id, \*\*params) -> Optional +- client.dns.records.edit(dns_record_id, \*, 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 2eed4e82629..078bf19d50e 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -59,7 +59,7 @@ def with_streaming_response(self) -> RecordsResourceWithStreamingResponse: def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -68,7 +68,6 @@ def create( 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, @@ -87,7 +86,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid IPv4 address. @@ -109,8 +108,6 @@ 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 @@ -125,7 +122,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -134,7 +131,6 @@ def create( 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, @@ -153,7 +149,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid IPv6 address. @@ -175,8 +171,6 @@ 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 @@ -191,7 +185,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.CAARecordData, name: str, type: Literal["CAA"], @@ -199,7 +193,6 @@ def create( 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, @@ -218,7 +211,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a CAA record. @@ -237,8 +230,6 @@ 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 @@ -253,7 +244,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -261,7 +252,6 @@ def create( 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, @@ -280,7 +270,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a CERT record. @@ -299,8 +289,6 @@ 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 @@ -315,7 +303,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -324,7 +312,6 @@ def create( 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, @@ -343,7 +330,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid hostname. Must not match the record's name. @@ -365,8 +352,6 @@ 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 @@ -381,7 +366,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -389,7 +374,6 @@ def create( 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, @@ -408,7 +392,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a DNSKEY record. @@ -427,8 +411,6 @@ 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 @@ -443,7 +425,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.DSRecordData, name: str, type: Literal["DS"], @@ -451,7 +433,6 @@ def create( 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, @@ -470,7 +451,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a DS record. @@ -489,8 +470,6 @@ 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 @@ -505,7 +484,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -513,7 +492,6 @@ def create( 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, @@ -532,7 +510,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a HTTPS record. @@ -551,8 +529,6 @@ 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 @@ -567,7 +543,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -575,7 +551,6 @@ def create( 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, @@ -594,7 +569,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a LOC record. @@ -613,8 +588,6 @@ 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 @@ -629,7 +602,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -638,7 +611,6 @@ def create( 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, @@ -657,7 +629,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid mail server hostname. @@ -679,8 +651,6 @@ 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 @@ -695,7 +665,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -703,7 +673,6 @@ def create( 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, @@ -722,7 +691,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a NAPTR record. @@ -741,8 +710,6 @@ 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 @@ -757,7 +724,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -765,7 +732,6 @@ def create( 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, @@ -784,7 +750,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid name server host name. @@ -803,8 +769,6 @@ 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 @@ -819,7 +783,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -827,7 +791,6 @@ def create( 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, @@ -846,7 +809,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: Domain name pointing to the address. @@ -865,8 +828,6 @@ 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 @@ -881,7 +842,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -889,7 +850,6 @@ def create( 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, @@ -908,7 +868,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SMIMEA record. @@ -927,8 +887,6 @@ 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 @@ -943,7 +901,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -951,7 +909,6 @@ def create( 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, @@ -970,7 +927,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SRV record. @@ -991,8 +948,6 @@ 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 @@ -1007,7 +962,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -1015,7 +970,6 @@ def create( 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, @@ -1034,7 +988,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SSHFP record. @@ -1053,8 +1007,6 @@ 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 @@ -1069,7 +1021,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -1077,7 +1029,6 @@ def create( 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, @@ -1096,7 +1047,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SVCB record. @@ -1115,8 +1066,6 @@ 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 @@ -1131,7 +1080,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -1139,7 +1088,6 @@ def create( 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, @@ -1158,7 +1106,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a TLSA record. @@ -1177,8 +1125,6 @@ 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 @@ -1193,7 +1139,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -1201,7 +1147,6 @@ def create( 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, @@ -1220,7 +1165,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: Text content for the record. @@ -1239,8 +1184,6 @@ 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 @@ -1255,7 +1198,7 @@ def create( def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.URIRecordData, name: str, priority: float, @@ -1264,7 +1207,6 @@ def create( 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, @@ -1283,7 +1225,7 @@ def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a URI record. @@ -1305,8 +1247,6 @@ 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 @@ -1318,10 +1258,10 @@ def create( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) def create( self, @@ -1374,12 +1314,12 @@ def create( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return cast( Optional[Record], self._post( - f"/zones/{path_zone_id}/dns_records", + f"/zones/{zone_id}/dns_records", body=maybe_transform( { "content": content, @@ -1390,7 +1330,6 @@ def create( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, @@ -1414,7 +1353,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -1423,7 +1362,6 @@ def update( 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, @@ -1441,7 +1379,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1465,8 +1403,6 @@ 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 @@ -1482,7 +1418,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -1491,7 +1427,6 @@ def update( 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, @@ -1509,7 +1444,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1533,8 +1468,6 @@ 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 @@ -1550,7 +1483,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.CAARecordData, name: str, type: Literal["CAA"], @@ -1558,7 +1491,6 @@ def update( 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, @@ -1576,7 +1508,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1597,8 +1529,6 @@ 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 @@ -1614,7 +1544,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -1622,7 +1552,6 @@ def update( 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, @@ -1640,7 +1569,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1661,8 +1590,6 @@ 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 @@ -1678,7 +1605,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -1687,7 +1614,6 @@ def update( 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, @@ -1705,7 +1631,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1729,8 +1655,6 @@ 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 @@ -1746,7 +1670,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -1754,7 +1678,6 @@ def update( 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, @@ -1772,7 +1695,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1793,8 +1716,6 @@ 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 @@ -1810,7 +1731,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.DSRecordData, name: str, type: Literal["DS"], @@ -1818,7 +1739,6 @@ def update( 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, @@ -1836,7 +1756,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1857,8 +1777,6 @@ 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 @@ -1874,7 +1792,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -1882,7 +1800,6 @@ def update( 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, @@ -1900,7 +1817,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1921,8 +1838,6 @@ 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 @@ -1938,7 +1853,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -1946,7 +1861,6 @@ def update( 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, @@ -1964,7 +1878,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -1985,8 +1899,6 @@ 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 @@ -2002,7 +1914,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -2011,7 +1923,6 @@ def update( 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, @@ -2029,7 +1940,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2053,8 +1964,6 @@ 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 @@ -2070,7 +1979,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -2078,7 +1987,6 @@ def update( 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, @@ -2096,7 +2004,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2117,8 +2025,6 @@ 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 @@ -2134,7 +2040,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -2142,7 +2048,6 @@ def update( 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, @@ -2160,7 +2065,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2181,8 +2086,6 @@ 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 @@ -2198,7 +2101,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -2206,7 +2109,6 @@ def update( 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, @@ -2224,7 +2126,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2245,8 +2147,6 @@ 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 @@ -2262,7 +2162,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -2270,7 +2170,6 @@ def update( 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, @@ -2288,7 +2187,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2309,8 +2208,6 @@ 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 @@ -2326,7 +2223,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -2334,7 +2231,6 @@ def update( 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, @@ -2352,7 +2248,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2375,8 +2271,6 @@ 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 @@ -2392,7 +2286,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -2400,7 +2294,6 @@ def update( 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, @@ -2418,7 +2311,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2439,8 +2332,6 @@ 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 @@ -2456,7 +2347,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -2464,7 +2355,6 @@ def update( 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, @@ -2482,7 +2372,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2503,8 +2393,6 @@ 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 @@ -2520,7 +2408,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -2528,7 +2416,6 @@ def update( 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, @@ -2546,7 +2433,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2567,8 +2454,6 @@ 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 @@ -2584,7 +2469,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -2592,7 +2477,6 @@ def update( 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, @@ -2610,7 +2494,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2631,8 +2515,6 @@ 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 @@ -2648,7 +2530,7 @@ def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.URIRecordData, name: str, priority: float, @@ -2657,7 +2539,6 @@ def update( 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, @@ -2675,7 +2556,7 @@ def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -2699,8 +2580,6 @@ 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 @@ -2712,10 +2591,10 @@ def update( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) def update( self, @@ -2769,14 +2648,14 @@ def update( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( Optional[Record], self._put( - f"/zones/{path_zone_id}/dns_records/{dns_record_id}", + f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( { "content": content, @@ -2787,7 +2666,6 @@ def update( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, @@ -2980,7 +2858,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -2989,7 +2867,6 @@ def edit( 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, @@ -3007,7 +2884,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3031,8 +2908,6 @@ 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 @@ -3048,7 +2923,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -3057,7 +2932,6 @@ def edit( 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, @@ -3075,7 +2949,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3099,8 +2973,6 @@ 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 @@ -3116,7 +2988,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.CAARecordData, name: str, type: Literal["CAA"], @@ -3124,7 +2996,6 @@ def edit( 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, @@ -3142,7 +3013,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3163,8 +3034,6 @@ 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 @@ -3180,7 +3049,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -3188,7 +3057,6 @@ def edit( 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, @@ -3206,7 +3074,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3227,8 +3095,6 @@ 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 @@ -3244,7 +3110,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -3253,7 +3119,6 @@ def edit( 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, @@ -3271,7 +3136,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3295,8 +3160,6 @@ 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 @@ -3312,7 +3175,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -3320,7 +3183,6 @@ def edit( 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, @@ -3338,7 +3200,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3359,8 +3221,6 @@ 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 @@ -3376,7 +3236,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.DSRecordData, name: str, type: Literal["DS"], @@ -3384,7 +3244,6 @@ def edit( 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, @@ -3402,7 +3261,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3423,8 +3282,6 @@ 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 @@ -3440,7 +3297,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -3448,7 +3305,6 @@ def edit( 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, @@ -3466,7 +3322,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3487,8 +3343,6 @@ 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,7 +3358,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -3512,7 +3366,6 @@ def edit( 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, @@ -3530,7 +3383,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3551,8 +3404,6 @@ 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 @@ -3568,7 +3419,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -3577,7 +3428,6 @@ def edit( 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, @@ -3595,7 +3445,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3619,8 +3469,6 @@ 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 @@ -3636,7 +3484,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -3644,7 +3492,6 @@ def edit( 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, @@ -3662,7 +3509,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3683,8 +3530,6 @@ 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 @@ -3700,7 +3545,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -3708,7 +3553,6 @@ def edit( 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, @@ -3726,7 +3570,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3747,8 +3591,6 @@ 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 @@ -3764,7 +3606,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -3772,7 +3614,6 @@ def edit( 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, @@ -3790,7 +3631,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3811,8 +3652,6 @@ 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 @@ -3828,7 +3667,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -3836,7 +3675,6 @@ def edit( 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, @@ -3854,7 +3692,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3875,8 +3713,6 @@ 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 @@ -3892,7 +3728,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -3900,7 +3736,6 @@ def edit( 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, @@ -3918,7 +3753,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -3941,8 +3776,6 @@ 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 @@ -3958,7 +3791,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -3966,7 +3799,6 @@ def edit( 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, @@ -3984,7 +3816,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -4005,8 +3837,6 @@ 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 @@ -4022,7 +3852,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -4030,7 +3860,6 @@ def edit( 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, @@ -4048,7 +3877,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -4069,8 +3898,6 @@ 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 @@ -4086,7 +3913,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -4094,7 +3921,6 @@ def edit( 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, @@ -4112,7 +3938,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -4133,8 +3959,6 @@ 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 @@ -4150,7 +3974,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -4158,7 +3982,6 @@ def edit( 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, @@ -4176,7 +3999,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -4197,8 +4020,6 @@ 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 @@ -4214,7 +4035,7 @@ def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.URIRecordData, name: str, priority: float, @@ -4223,7 +4044,6 @@ def edit( 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, @@ -4241,7 +4061,7 @@ def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -4265,8 +4085,6 @@ 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 @@ -4278,10 +4096,10 @@ def edit( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) def edit( self, @@ -4335,14 +4153,14 @@ def edit( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( Optional[Record], self._patch( - f"/zones/{path_zone_id}/dns_records/{dns_record_id}", + f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( { "content": content, @@ -4353,7 +4171,6 @@ def edit( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, @@ -4584,7 +4401,7 @@ def with_streaming_response(self) -> AsyncRecordsResourceWithStreamingResponse: async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -4593,7 +4410,6 @@ async def create( 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, @@ -4612,7 +4428,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid IPv4 address. @@ -4634,8 +4450,6 @@ 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 @@ -4650,7 +4464,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -4659,7 +4473,6 @@ async def create( 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, @@ -4678,7 +4491,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid IPv6 address. @@ -4700,8 +4513,6 @@ 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 @@ -4716,7 +4527,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.CAARecordData, name: str, type: Literal["CAA"], @@ -4724,7 +4535,6 @@ async def create( 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, @@ -4743,7 +4553,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a CAA record. @@ -4762,8 +4572,6 @@ 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 @@ -4778,7 +4586,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -4786,7 +4594,6 @@ async def create( 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, @@ -4805,7 +4612,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a CERT record. @@ -4824,8 +4631,6 @@ 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 @@ -4840,7 +4645,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -4849,7 +4654,6 @@ async def create( 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, @@ -4868,7 +4672,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid hostname. Must not match the record's name. @@ -4890,8 +4694,6 @@ 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 @@ -4906,7 +4708,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -4914,7 +4716,6 @@ async def create( 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, @@ -4933,7 +4734,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a DNSKEY record. @@ -4952,8 +4753,6 @@ 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 @@ -4968,7 +4767,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.DSRecordData, name: str, type: Literal["DS"], @@ -4976,7 +4775,6 @@ async def create( 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, @@ -4995,7 +4793,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a DS record. @@ -5014,8 +4812,6 @@ 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 @@ -5030,7 +4826,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -5038,7 +4834,6 @@ async def create( 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, @@ -5057,7 +4852,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a HTTPS record. @@ -5076,8 +4871,6 @@ 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 @@ -5092,7 +4885,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -5100,7 +4893,6 @@ async def create( 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, @@ -5119,7 +4911,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a LOC record. @@ -5138,8 +4930,6 @@ 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 @@ -5154,7 +4944,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -5163,7 +4953,6 @@ async def create( 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, @@ -5182,7 +4971,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid mail server hostname. @@ -5204,8 +4993,6 @@ 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 @@ -5220,7 +5007,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -5228,7 +5015,6 @@ async def create( 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, @@ -5247,7 +5033,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a NAPTR record. @@ -5266,8 +5052,6 @@ 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 @@ -5282,7 +5066,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -5290,7 +5074,6 @@ async def create( 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, @@ -5309,7 +5092,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: A valid name server host name. @@ -5328,8 +5111,6 @@ 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 @@ -5344,7 +5125,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -5352,7 +5133,6 @@ async def create( 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, @@ -5371,7 +5151,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: Domain name pointing to the address. @@ -5390,8 +5170,6 @@ 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 @@ -5406,7 +5184,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -5414,7 +5192,6 @@ async def create( 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, @@ -5433,7 +5210,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SMIMEA record. @@ -5452,8 +5229,6 @@ 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 @@ -5468,7 +5243,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -5476,7 +5251,6 @@ async def create( 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, @@ -5495,7 +5269,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SRV record. @@ -5516,8 +5290,6 @@ 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 @@ -5532,7 +5304,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -5540,7 +5312,6 @@ async def create( 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, @@ -5559,7 +5330,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SSHFP record. @@ -5578,8 +5349,6 @@ 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 @@ -5594,7 +5363,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -5602,7 +5371,6 @@ async def create( 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, @@ -5621,7 +5389,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a SVCB record. @@ -5640,8 +5408,6 @@ 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 @@ -5656,7 +5422,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -5664,7 +5430,6 @@ async def create( 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, @@ -5683,7 +5448,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a TLSA record. @@ -5702,8 +5467,6 @@ 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 @@ -5718,7 +5481,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -5726,7 +5489,6 @@ async def create( 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, @@ -5745,7 +5507,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier content: Text content for the record. @@ -5764,8 +5526,6 @@ 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 @@ -5780,7 +5540,7 @@ async def create( async def create( self, *, - path_zone_id: str, + zone_id: str, data: record_create_params.URIRecordData, name: str, priority: float, @@ -5789,7 +5549,6 @@ async def create( 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, @@ -5808,7 +5567,7 @@ async def create( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier data: Components of a URI record. @@ -5830,8 +5589,6 @@ 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 @@ -5843,10 +5600,10 @@ async def create( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) async def create( self, @@ -5899,12 +5656,12 @@ async def create( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return cast( Optional[Record], await self._post( - f"/zones/{path_zone_id}/dns_records", + f"/zones/{zone_id}/dns_records", body=await async_maybe_transform( { "content": content, @@ -5915,7 +5672,6 @@ async def create( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, @@ -5939,7 +5695,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -5948,7 +5704,6 @@ async def update( 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, @@ -5966,7 +5721,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -5990,8 +5745,6 @@ 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 @@ -6007,7 +5760,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -6016,7 +5769,6 @@ async def update( 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, @@ -6034,7 +5786,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6058,8 +5810,6 @@ 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 @@ -6075,7 +5825,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.CAARecordData, name: str, type: Literal["CAA"], @@ -6083,7 +5833,6 @@ async def update( 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, @@ -6101,7 +5850,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6122,8 +5871,6 @@ 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 @@ -6139,7 +5886,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -6147,7 +5894,6 @@ async def update( 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, @@ -6165,7 +5911,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6186,8 +5932,6 @@ 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 @@ -6203,7 +5947,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -6212,7 +5956,6 @@ async def update( 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, @@ -6230,7 +5973,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6254,8 +5997,6 @@ 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 @@ -6271,7 +6012,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -6279,7 +6020,6 @@ async def update( 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, @@ -6297,7 +6037,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6318,8 +6058,6 @@ 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,7 +6073,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.DSRecordData, name: str, type: Literal["DS"], @@ -6343,7 +6081,6 @@ async def update( 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, @@ -6361,7 +6098,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6382,8 +6119,6 @@ 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 @@ -6399,7 +6134,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -6407,7 +6142,6 @@ async def update( 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, @@ -6425,7 +6159,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6446,8 +6180,6 @@ 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 @@ -6463,7 +6195,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -6471,7 +6203,6 @@ async def update( 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, @@ -6489,7 +6220,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6510,8 +6241,6 @@ 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 @@ -6527,7 +6256,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -6536,7 +6265,6 @@ async def update( 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, @@ -6554,7 +6282,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6578,8 +6306,6 @@ 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 @@ -6595,7 +6321,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -6603,7 +6329,6 @@ async def update( 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, @@ -6621,7 +6346,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6642,8 +6367,6 @@ 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 @@ -6659,7 +6382,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -6667,7 +6390,6 @@ async def update( 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, @@ -6685,7 +6407,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6706,8 +6428,6 @@ 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 @@ -6723,7 +6443,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -6731,7 +6451,6 @@ async def update( 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, @@ -6749,7 +6468,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6770,8 +6489,6 @@ 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 @@ -6787,7 +6504,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -6795,7 +6512,6 @@ async def update( 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, @@ -6813,7 +6529,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6834,8 +6550,6 @@ 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 @@ -6851,7 +6565,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -6859,7 +6573,6 @@ async def update( 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, @@ -6877,7 +6590,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6900,8 +6613,6 @@ 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 @@ -6917,7 +6628,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -6925,7 +6636,6 @@ async def update( 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, @@ -6943,7 +6653,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -6964,8 +6674,6 @@ 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 @@ -6981,7 +6689,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -6989,7 +6697,6 @@ async def update( 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, @@ -7007,7 +6714,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7028,8 +6735,6 @@ 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 @@ -7045,7 +6750,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -7053,7 +6758,6 @@ async def update( 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, @@ -7071,7 +6775,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7092,8 +6796,6 @@ 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 @@ -7109,7 +6811,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -7117,7 +6819,6 @@ async def update( 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, @@ -7135,7 +6836,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7156,8 +6857,6 @@ 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 @@ -7173,7 +6872,7 @@ async def update( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_update_params.URIRecordData, name: str, priority: float, @@ -7182,7 +6881,6 @@ async def update( 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, @@ -7200,7 +6898,7 @@ async def update( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7224,8 +6922,6 @@ 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 @@ -7237,10 +6933,10 @@ async def update( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) async def update( self, @@ -7294,14 +6990,14 @@ async def update( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( Optional[Record], await self._put( - f"/zones/{path_zone_id}/dns_records/{dns_record_id}", + f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( { "content": content, @@ -7312,7 +7008,6 @@ async def update( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, @@ -7505,7 +7200,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["A"], @@ -7514,7 +7209,6 @@ async def edit( 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, @@ -7532,7 +7226,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7556,8 +7250,6 @@ 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 @@ -7573,7 +7265,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["AAAA"], @@ -7582,7 +7274,6 @@ async def edit( 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, @@ -7600,7 +7291,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7624,8 +7315,6 @@ 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 @@ -7641,7 +7330,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.CAARecordData, name: str, type: Literal["CAA"], @@ -7649,7 +7338,6 @@ async def edit( 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, @@ -7667,7 +7355,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7688,8 +7376,6 @@ 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 @@ -7705,7 +7391,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.CERTRecordData, name: str, type: Literal["CERT"], @@ -7713,7 +7399,6 @@ async def edit( 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, @@ -7731,7 +7416,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7752,8 +7437,6 @@ 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 @@ -7769,7 +7452,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: object, name: str, type: Literal["CNAME"], @@ -7778,7 +7461,6 @@ async def edit( 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, @@ -7796,7 +7478,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7820,8 +7502,6 @@ 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 @@ -7837,7 +7517,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], @@ -7845,7 +7525,6 @@ async def edit( 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, @@ -7863,7 +7542,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7884,8 +7563,6 @@ 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 @@ -7901,7 +7578,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.DSRecordData, name: str, type: Literal["DS"], @@ -7909,7 +7586,6 @@ async def edit( 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, @@ -7927,7 +7603,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -7948,8 +7624,6 @@ 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 @@ -7965,7 +7639,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], @@ -7973,7 +7647,6 @@ async def edit( 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, @@ -7991,7 +7664,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8012,8 +7685,6 @@ 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 @@ -8029,7 +7700,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.LOCRecordData, name: str, type: Literal["LOC"], @@ -8037,7 +7708,6 @@ async def edit( 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, @@ -8055,7 +7725,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8076,8 +7746,6 @@ 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 @@ -8093,7 +7761,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, priority: float, @@ -8102,7 +7770,6 @@ async def edit( 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, @@ -8120,7 +7787,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8144,8 +7811,6 @@ 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 @@ -8161,7 +7826,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], @@ -8169,7 +7834,6 @@ async def edit( 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, @@ -8187,7 +7851,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8208,8 +7872,6 @@ 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 @@ -8225,7 +7887,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["NS"], @@ -8233,7 +7895,6 @@ async def edit( 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, @@ -8251,7 +7912,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8272,8 +7933,6 @@ 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 @@ -8289,7 +7948,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["PTR"], @@ -8297,7 +7956,6 @@ async def edit( 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, @@ -8315,7 +7973,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8336,8 +7994,6 @@ 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 @@ -8353,7 +8009,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], @@ -8361,7 +8017,6 @@ async def edit( 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, @@ -8379,7 +8034,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8400,8 +8055,6 @@ 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 @@ -8417,7 +8070,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SRVRecordData, name: str, type: Literal["SRV"], @@ -8425,7 +8078,6 @@ async def edit( 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, @@ -8443,7 +8095,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8466,8 +8118,6 @@ 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 @@ -8483,7 +8133,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], @@ -8491,7 +8141,6 @@ async def edit( 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, @@ -8509,7 +8158,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8530,8 +8179,6 @@ 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 @@ -8547,7 +8194,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.SVCBRecordData, name: str, type: Literal["SVCB"], @@ -8555,7 +8202,6 @@ async def edit( 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, @@ -8573,7 +8219,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8594,8 +8240,6 @@ 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 @@ -8611,7 +8255,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.TLSARecordData, name: str, type: Literal["TLSA"], @@ -8619,7 +8263,6 @@ async def edit( 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, @@ -8637,7 +8280,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8658,8 +8301,6 @@ 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 @@ -8675,7 +8316,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, content: str, name: str, type: Literal["TXT"], @@ -8683,7 +8324,6 @@ async def edit( 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, @@ -8701,7 +8341,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8722,8 +8362,6 @@ 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 @@ -8739,7 +8377,7 @@ async def edit( self, dns_record_id: str, *, - path_zone_id: str, + zone_id: str, data: record_edit_params.URIRecordData, name: str, priority: float, @@ -8748,7 +8386,6 @@ async def edit( 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, @@ -8766,7 +8403,7 @@ async def edit( were used when creating the record. Args: - path_zone_id: Identifier + zone_id: Identifier dns_record_id: Identifier @@ -8790,8 +8427,6 @@ 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 @@ -8803,10 +8438,10 @@ async def edit( ... @required_args( - ["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"], + ["zone_id", "content", "name", "type"], + ["zone_id", "data", "name", "type"], + ["zone_id", "content", "name", "priority", "type"], + ["zone_id", "data", "name", "priority", "type"], ) async def edit( self, @@ -8860,14 +8495,14 @@ async def edit( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> Optional[Record]: - 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 zone_id: + raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( Optional[Record], await self._patch( - f"/zones/{path_zone_id}/dns_records/{dns_record_id}", + f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( { "content": content, @@ -8878,7 +8513,6 @@ async def edit( "proxied": proxied, "tags": tags, "ttl": ttl, - "zone_id": body_zone_id, "data": data, "priority": priority, }, diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py index dc064cf7d8a..c42be657c7c 100644 --- a/src/cloudflare/types/dns/a_record.py +++ b/src/cloudflare/types/dns/a_record.py @@ -64,9 +64,3 @@ class ARecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/aaaa_record.py b/src/cloudflare/types/dns/aaaa_record.py index 75f77f1ab61..4e4bd1218e6 100644 --- a/src/cloudflare/types/dns/aaaa_record.py +++ b/src/cloudflare/types/dns/aaaa_record.py @@ -64,9 +64,3 @@ class AAAARecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/caa_record.py b/src/cloudflare/types/dns/caa_record.py index 298495fc040..e81689a332e 100644 --- a/src/cloudflare/types/dns/caa_record.py +++ b/src/cloudflare/types/dns/caa_record.py @@ -72,9 +72,3 @@ class CAARecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/cert_record.py b/src/cloudflare/types/dns/cert_record.py index d9a7a6ba9b3..58c471f4c7f 100644 --- a/src/cloudflare/types/dns/cert_record.py +++ b/src/cloudflare/types/dns/cert_record.py @@ -75,9 +75,3 @@ class CERTRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py index 39e42f0f7d4..9c034629645 100644 --- a/src/cloudflare/types/dns/cname_record.py +++ b/src/cloudflare/types/dns/cname_record.py @@ -64,9 +64,3 @@ class CNAMERecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py index e2f6284d7ca..72c2ae66d67 100644 --- a/src/cloudflare/types/dns/dnskey_record.py +++ b/src/cloudflare/types/dns/dnskey_record.py @@ -75,9 +75,3 @@ class DNSKEYRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/ds_record.py b/src/cloudflare/types/dns/ds_record.py index cc6e93c8ab7..d6210dce096 100644 --- a/src/cloudflare/types/dns/ds_record.py +++ b/src/cloudflare/types/dns/ds_record.py @@ -75,9 +75,3 @@ class DSRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/https_record.py b/src/cloudflare/types/dns/https_record.py index f3a412966f5..6900410e735 100644 --- a/src/cloudflare/types/dns/https_record.py +++ b/src/cloudflare/types/dns/https_record.py @@ -72,9 +72,3 @@ class HTTPSRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/loc_record.py b/src/cloudflare/types/dns/loc_record.py index 66b3e2d9eaf..5d4f84c06b7 100644 --- a/src/cloudflare/types/dns/loc_record.py +++ b/src/cloudflare/types/dns/loc_record.py @@ -99,9 +99,3 @@ class LOCRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/mx_record.py b/src/cloudflare/types/dns/mx_record.py index dd2aa333e2a..3722755f904 100644 --- a/src/cloudflare/types/dns/mx_record.py +++ b/src/cloudflare/types/dns/mx_record.py @@ -64,9 +64,3 @@ class MXRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/naptr_record.py b/src/cloudflare/types/dns/naptr_record.py index 77dc8f3539a..0dc8a697aca 100644 --- a/src/cloudflare/types/dns/naptr_record.py +++ b/src/cloudflare/types/dns/naptr_record.py @@ -81,9 +81,3 @@ class NAPTRRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/ns_record.py b/src/cloudflare/types/dns/ns_record.py index d71fd5437fa..0b60f0a307f 100644 --- a/src/cloudflare/types/dns/ns_record.py +++ b/src/cloudflare/types/dns/ns_record.py @@ -58,9 +58,3 @@ class NSRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/ptr_record.py b/src/cloudflare/types/dns/ptr_record.py index 46d91d3a4eb..d5835b62faf 100644 --- a/src/cloudflare/types/dns/ptr_record.py +++ b/src/cloudflare/types/dns/ptr_record.py @@ -58,9 +58,3 @@ class PTRRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index 4692fe22e71..c7fbb84ff10 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -3,9 +3,8 @@ from __future__ import annotations from typing import List, Union -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import Literal, Required, TypedDict -from ..._utils import PropertyInfo from .ttl_param import TTLParam from .record_tags import RecordTags @@ -48,7 +47,7 @@ class ARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -85,12 +84,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -127,12 +123,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CAARecordData] @@ -163,9 +156,6 @@ 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 @@ -179,7 +169,7 @@ class CAARecordData(TypedDict, total=False): class CERTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CERTRecordData] @@ -210,9 +200,6 @@ 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 @@ -229,7 +216,7 @@ class CERTRecordData(TypedDict, total=False): class CNAMERecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[object] @@ -266,12 +253,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DNSKEYRecordData] @@ -302,9 +286,6 @@ 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 @@ -321,7 +302,7 @@ class DNSKEYRecordData(TypedDict, total=False): class DSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DSRecordData] @@ -352,9 +333,6 @@ 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 @@ -371,7 +349,7 @@ class DSRecordData(TypedDict, total=False): class HTTPSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[HTTPSRecordData] @@ -402,9 +380,6 @@ 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 @@ -418,7 +393,7 @@ class HTTPSRecordData(TypedDict, total=False): class LOCRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[LOCRecordData] @@ -449,9 +424,6 @@ 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 @@ -492,7 +464,7 @@ class LOCRecordData(TypedDict, total=False): class MXRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -529,12 +501,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[NAPTRRecordData] @@ -565,9 +534,6 @@ 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 @@ -590,7 +556,7 @@ class NAPTRRecordData(TypedDict, total=False): class NSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -621,12 +587,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -657,12 +620,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SMIMEARecordData] @@ -693,9 +653,6 @@ 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 @@ -712,7 +669,7 @@ class SMIMEARecordData(TypedDict, total=False): class SRVRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SRVRecordData] @@ -747,9 +704,6 @@ 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 @@ -791,7 +745,7 @@ class SRVRecordData(TypedDict, total=False): class SSHFPRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SSHFPRecordData] @@ -822,9 +776,6 @@ 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 @@ -838,7 +789,7 @@ class SSHFPRecordData(TypedDict, total=False): class SVCBRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SVCBRecordData] @@ -869,9 +820,6 @@ 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 @@ -885,7 +833,7 @@ class SVCBRecordData(TypedDict, total=False): class TLSARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[TLSARecordData] @@ -916,9 +864,6 @@ 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 @@ -935,7 +880,7 @@ class TLSARecordData(TypedDict, total=False): class TXTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -966,12 +911,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[URIRecordData] @@ -1008,9 +950,6 @@ 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 a0354033775..4162570edcc 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -3,9 +3,8 @@ from __future__ import annotations from typing import List, Union -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import Literal, Required, TypedDict -from ..._utils import PropertyInfo from .ttl_param import TTLParam from .record_tags import RecordTags @@ -48,7 +47,7 @@ class ARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -85,12 +84,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -127,12 +123,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CAARecordData] @@ -163,9 +156,6 @@ 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 @@ -179,7 +169,7 @@ class CAARecordData(TypedDict, total=False): class CERTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CERTRecordData] @@ -210,9 +200,6 @@ 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 @@ -229,7 +216,7 @@ class CERTRecordData(TypedDict, total=False): class CNAMERecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[object] @@ -266,12 +253,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DNSKEYRecordData] @@ -302,9 +286,6 @@ 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 @@ -321,7 +302,7 @@ class DNSKEYRecordData(TypedDict, total=False): class DSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DSRecordData] @@ -352,9 +333,6 @@ 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 @@ -371,7 +349,7 @@ class DSRecordData(TypedDict, total=False): class HTTPSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[HTTPSRecordData] @@ -402,9 +380,6 @@ 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 @@ -418,7 +393,7 @@ class HTTPSRecordData(TypedDict, total=False): class LOCRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[LOCRecordData] @@ -449,9 +424,6 @@ 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 @@ -492,7 +464,7 @@ class LOCRecordData(TypedDict, total=False): class MXRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -529,12 +501,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[NAPTRRecordData] @@ -565,9 +534,6 @@ 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 @@ -590,7 +556,7 @@ class NAPTRRecordData(TypedDict, total=False): class NSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -621,12 +587,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -657,12 +620,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SMIMEARecordData] @@ -693,9 +653,6 @@ 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 @@ -712,7 +669,7 @@ class SMIMEARecordData(TypedDict, total=False): class SRVRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SRVRecordData] @@ -747,9 +704,6 @@ 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 @@ -791,7 +745,7 @@ class SRVRecordData(TypedDict, total=False): class SSHFPRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SSHFPRecordData] @@ -822,9 +776,6 @@ 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 @@ -838,7 +789,7 @@ class SSHFPRecordData(TypedDict, total=False): class SVCBRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SVCBRecordData] @@ -869,9 +820,6 @@ 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 @@ -885,7 +833,7 @@ class SVCBRecordData(TypedDict, total=False): class TLSARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[TLSARecordData] @@ -916,9 +864,6 @@ 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 @@ -935,7 +880,7 @@ class TLSARecordData(TypedDict, total=False): class TXTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -966,12 +911,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[URIRecordData] @@ -1008,9 +950,6 @@ 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 d9af2e9c204..743522c6331 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -3,9 +3,8 @@ from __future__ import annotations from typing import List, Union -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import Literal, Required, TypedDict -from ..._utils import PropertyInfo from .ttl_param import TTLParam from .record_tags import RecordTags @@ -48,7 +47,7 @@ class ARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -85,12 +84,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -127,12 +123,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CAARecordData] @@ -163,9 +156,6 @@ 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 @@ -179,7 +169,7 @@ class CAARecordData(TypedDict, total=False): class CERTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[CERTRecordData] @@ -210,9 +200,6 @@ 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 @@ -229,7 +216,7 @@ class CERTRecordData(TypedDict, total=False): class CNAMERecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[object] @@ -266,12 +253,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DNSKEYRecordData] @@ -302,9 +286,6 @@ 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 @@ -321,7 +302,7 @@ class DNSKEYRecordData(TypedDict, total=False): class DSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[DSRecordData] @@ -352,9 +333,6 @@ 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 @@ -371,7 +349,7 @@ class DSRecordData(TypedDict, total=False): class HTTPSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[HTTPSRecordData] @@ -402,9 +380,6 @@ 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 @@ -418,7 +393,7 @@ class HTTPSRecordData(TypedDict, total=False): class LOCRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[LOCRecordData] @@ -449,9 +424,6 @@ 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 @@ -492,7 +464,7 @@ class LOCRecordData(TypedDict, total=False): class MXRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -529,12 +501,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[NAPTRRecordData] @@ -565,9 +534,6 @@ 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 @@ -590,7 +556,7 @@ class NAPTRRecordData(TypedDict, total=False): class NSRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -621,12 +587,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -657,12 +620,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SMIMEARecordData] @@ -693,9 +653,6 @@ 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 @@ -712,7 +669,7 @@ class SMIMEARecordData(TypedDict, total=False): class SRVRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SRVRecordData] @@ -747,9 +704,6 @@ 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 @@ -791,7 +745,7 @@ class SRVRecordData(TypedDict, total=False): class SSHFPRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SSHFPRecordData] @@ -822,9 +776,6 @@ 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 @@ -838,7 +789,7 @@ class SSHFPRecordData(TypedDict, total=False): class SVCBRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[SVCBRecordData] @@ -869,9 +820,6 @@ 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 @@ -885,7 +833,7 @@ class SVCBRecordData(TypedDict, total=False): class TLSARecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[TLSARecordData] @@ -916,9 +864,6 @@ 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 @@ -935,7 +880,7 @@ class TLSARecordData(TypedDict, total=False): class TXTRecord(TypedDict, total=False): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" content: Required[str] @@ -966,12 +911,9 @@ 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): - path_zone_id: Required[Annotated[str, PropertyInfo(alias="zone_id")]] + zone_id: Required[str] """Identifier""" data: Required[URIRecordData] @@ -1008,9 +950,6 @@ 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/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py index 34ce2908956..a8393cee684 100644 --- a/src/cloudflare/types/dns/smimea_record.py +++ b/src/cloudflare/types/dns/smimea_record.py @@ -75,9 +75,3 @@ class SMIMEARecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/srv_record.py b/src/cloudflare/types/dns/srv_record.py index 5bb285beee5..43c8df32709 100644 --- a/src/cloudflare/types/dns/srv_record.py +++ b/src/cloudflare/types/dns/srv_record.py @@ -107,9 +107,3 @@ class SRVRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/sshfp_record.py b/src/cloudflare/types/dns/sshfp_record.py index 7be08b2031e..3541eefc8c6 100644 --- a/src/cloudflare/types/dns/sshfp_record.py +++ b/src/cloudflare/types/dns/sshfp_record.py @@ -72,9 +72,3 @@ class SSHFPRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/svcb_record.py b/src/cloudflare/types/dns/svcb_record.py index 5b5fcad2b98..db981322f9d 100644 --- a/src/cloudflare/types/dns/svcb_record.py +++ b/src/cloudflare/types/dns/svcb_record.py @@ -72,9 +72,3 @@ class SVCBRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/tlsa_record.py b/src/cloudflare/types/dns/tlsa_record.py index a398ee626ec..1d2c1600bad 100644 --- a/src/cloudflare/types/dns/tlsa_record.py +++ b/src/cloudflare/types/dns/tlsa_record.py @@ -75,9 +75,3 @@ class TLSARecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py index f2e0404df9a..3eb3f3402f2 100644 --- a/src/cloudflare/types/dns/txt_record.py +++ b/src/cloudflare/types/dns/txt_record.py @@ -58,9 +58,3 @@ class TXTRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py index 15534dd560a..ce953c709d0 100644 --- a/src/cloudflare/types/dns/uri_record.py +++ b/src/cloudflare/types/dns/uri_record.py @@ -75,9 +75,3 @@ class URIRecord(BaseModel): Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index 3920e119479..55ae9e690a8 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -38,7 +38,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -47,7 +47,6 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N 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"]) @@ -55,7 +54,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -70,7 +69,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -86,20 +85,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -110,7 +108,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -119,7 +117,6 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N 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"]) @@ -127,7 +124,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -142,7 +139,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -158,20 +155,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -182,7 +178,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -194,7 +190,6 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N 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"]) @@ -202,7 +197,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -217,7 +212,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -233,20 +228,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -257,7 +251,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -270,7 +264,6 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N 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"]) @@ -278,7 +271,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -293,7 +286,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -309,20 +302,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -333,7 +325,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -342,7 +334,6 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N 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"]) @@ -350,7 +341,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -365,7 +356,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -381,20 +372,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -405,7 +395,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -418,7 +408,6 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N 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"]) @@ -426,7 +415,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -441,7 +430,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -457,20 +446,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -481,7 +469,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -494,7 +482,6 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N 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"]) @@ -502,7 +489,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -517,7 +504,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -533,20 +520,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -557,7 +543,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -569,7 +555,6 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N 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"]) @@ -577,7 +562,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -592,7 +577,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -608,20 +593,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -632,7 +616,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -653,7 +637,6 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N 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"]) @@ -661,7 +644,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -676,7 +659,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -692,20 +675,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -717,7 +699,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -726,7 +708,6 @@ def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> 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"]) @@ -734,7 +715,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -750,7 +731,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -767,21 +748,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -792,7 +772,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -807,7 +787,6 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> 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"]) @@ -815,7 +794,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -830,7 +809,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -846,20 +825,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -870,7 +848,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -878,7 +856,6 @@ def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> 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"]) @@ -886,7 +863,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -901,7 +878,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -917,20 +894,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -941,7 +917,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -949,7 +925,6 @@ def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> 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"]) @@ -957,7 +932,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -972,7 +947,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -988,20 +963,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -1012,7 +986,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -1025,7 +999,6 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> 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"]) @@ -1033,7 +1006,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -1048,7 +1021,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -1064,20 +1037,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -1088,7 +1060,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -1104,7 +1076,6 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> 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"]) @@ -1112,7 +1083,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -1127,7 +1098,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -1143,20 +1114,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -1167,7 +1137,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -1179,7 +1149,6 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> 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"]) @@ -1187,7 +1156,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -1202,7 +1171,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -1218,20 +1187,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -1242,7 +1210,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -1254,7 +1222,6 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> 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"]) @@ -1262,7 +1229,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -1277,7 +1244,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -1293,20 +1260,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -1317,7 +1283,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -1330,7 +1296,6 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> 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"]) @@ -1338,7 +1303,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -1353,7 +1318,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -1369,20 +1334,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -1393,7 +1357,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -1401,7 +1365,6 @@ def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> 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"]) @@ -1409,7 +1372,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -1424,7 +1387,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -1440,20 +1403,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -1465,7 +1427,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -1477,7 +1439,6 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> 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"]) @@ -1485,7 +1446,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -1501,7 +1462,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -1518,14 +1479,13 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.create( - path_zone_id="", + zone_id="", data={}, name="example.com", priority=10, type="URI", - body_zone_id="", ) @pytest.mark.skip(reason="TODO: investigate broken test") @@ -1533,7 +1493,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -1545,7 +1505,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -1554,7 +1514,6 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N 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"]) @@ -1563,7 +1522,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -1579,7 +1538,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -1595,20 +1554,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -1619,7 +1577,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -1631,7 +1589,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -1640,7 +1598,6 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N 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"]) @@ -1649,7 +1606,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -1665,7 +1622,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -1681,20 +1638,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -1705,7 +1661,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -1717,7 +1673,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -1729,7 +1685,6 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N 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"]) @@ -1738,7 +1693,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -1754,7 +1709,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -1770,20 +1725,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -1794,7 +1748,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -1806,7 +1760,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -1819,7 +1773,6 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N 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"]) @@ -1828,7 +1781,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -1844,7 +1797,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -1860,20 +1813,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -1884,7 +1836,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -1896,7 +1848,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -1905,7 +1857,6 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N 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"]) @@ -1914,7 +1865,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -1930,7 +1881,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -1946,20 +1897,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -1970,7 +1920,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -1982,7 +1932,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -1995,7 +1945,6 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N 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"]) @@ -2004,7 +1953,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -2020,7 +1969,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -2036,20 +1985,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -2060,7 +2008,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -2072,7 +2020,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -2085,7 +2033,6 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N 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"]) @@ -2094,7 +2041,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -2110,7 +2057,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -2126,20 +2073,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -2150,7 +2096,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -2162,7 +2108,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -2174,7 +2120,6 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N 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"]) @@ -2183,7 +2128,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -2199,7 +2144,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -2215,20 +2160,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -2239,7 +2183,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -2251,7 +2195,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -2272,7 +2216,6 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N 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"]) @@ -2281,7 +2224,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -2297,7 +2240,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -2313,20 +2256,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -2337,7 +2279,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -2350,7 +2292,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -2359,7 +2301,6 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) -> 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"]) @@ -2368,7 +2309,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -2385,7 +2326,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -2402,21 +2343,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -2428,7 +2368,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -2440,7 +2380,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -2455,7 +2395,6 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> 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"]) @@ -2464,7 +2403,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -2480,7 +2419,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -2496,20 +2435,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -2520,7 +2458,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -2532,7 +2470,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -2540,7 +2478,6 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) -> 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"]) @@ -2549,7 +2486,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -2565,7 +2502,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -2581,20 +2518,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -2605,7 +2541,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -2617,7 +2553,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -2625,7 +2561,6 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) -> 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"]) @@ -2634,7 +2569,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -2650,7 +2585,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -2666,20 +2601,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -2690,7 +2624,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -2702,7 +2636,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -2715,7 +2649,6 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) -> 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"]) @@ -2724,7 +2657,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -2740,7 +2673,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -2756,20 +2689,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -2780,7 +2712,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -2792,7 +2724,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -2808,7 +2740,6 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) -> 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"]) @@ -2817,7 +2748,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -2833,7 +2764,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -2849,20 +2780,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -2873,7 +2803,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -2885,7 +2815,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -2897,7 +2827,6 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) -> 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"]) @@ -2906,7 +2835,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -2922,7 +2851,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -2938,20 +2867,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -2962,7 +2890,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -2974,7 +2902,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -2986,7 +2914,6 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) -> 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"]) @@ -2995,7 +2922,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -3011,7 +2938,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -3027,20 +2954,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -3051,7 +2977,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -3063,7 +2989,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -3076,7 +3002,6 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) -> 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"]) @@ -3085,7 +3010,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -3101,7 +3026,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -3117,20 +3042,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -3141,7 +3065,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -3153,7 +3077,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -3161,7 +3085,6 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) -> 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"]) @@ -3170,7 +3093,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -3186,7 +3109,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -3202,20 +3125,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -3226,7 +3148,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -3239,7 +3161,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -3251,7 +3173,6 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> 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"]) @@ -3260,7 +3181,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -3277,7 +3198,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -3294,21 +3215,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -3440,7 +3360,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -3452,7 +3372,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -3461,7 +3381,6 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non 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"]) @@ -3470,7 +3389,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -3486,7 +3405,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -3502,20 +3421,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -3526,7 +3444,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -3538,7 +3456,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -3547,7 +3465,6 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non 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"]) @@ -3556,7 +3473,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -3572,7 +3489,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -3588,20 +3505,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -3612,7 +3528,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -3624,7 +3540,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -3636,7 +3552,6 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non 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"]) @@ -3645,7 +3560,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -3661,7 +3576,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -3677,20 +3592,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -3701,7 +3615,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -3713,7 +3627,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -3726,7 +3640,6 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non 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"]) @@ -3735,7 +3648,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -3751,7 +3664,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -3767,20 +3680,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -3791,7 +3703,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -3803,7 +3715,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -3812,7 +3724,6 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non 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"]) @@ -3821,7 +3732,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -3837,7 +3748,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -3853,20 +3764,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -3877,7 +3787,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -3889,7 +3799,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -3902,7 +3812,6 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non 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"]) @@ -3911,7 +3820,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -3927,7 +3836,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -3943,20 +3852,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -3967,7 +3875,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -3979,7 +3887,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -3992,7 +3900,6 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non 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"]) @@ -4001,7 +3908,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -4017,7 +3924,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -4033,20 +3940,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -4057,7 +3963,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -4069,7 +3975,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -4081,7 +3987,6 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non 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"]) @@ -4090,7 +3995,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -4106,7 +4011,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -4122,20 +4027,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -4146,7 +4050,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -4158,7 +4062,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -4179,7 +4083,6 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non 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"]) @@ -4188,7 +4091,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -4204,7 +4107,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -4220,20 +4123,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -4244,7 +4146,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -4257,7 +4159,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -4266,7 +4168,6 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No 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"]) @@ -4275,7 +4176,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -4292,7 +4193,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -4309,21 +4210,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -4335,7 +4235,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -4347,7 +4247,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -4362,7 +4262,6 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No 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"]) @@ -4371,7 +4270,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -4387,7 +4286,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -4403,20 +4302,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -4427,7 +4325,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -4439,7 +4337,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -4447,7 +4345,6 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No 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"]) @@ -4456,7 +4353,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -4472,7 +4369,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -4488,20 +4385,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -4512,7 +4408,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -4524,7 +4420,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -4532,7 +4428,6 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No 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"]) @@ -4541,7 +4436,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -4557,7 +4452,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -4573,20 +4468,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -4597,7 +4491,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -4609,7 +4503,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -4622,7 +4516,6 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No 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"]) @@ -4631,7 +4524,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -4647,7 +4540,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -4663,20 +4556,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -4687,7 +4579,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -4699,7 +4591,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -4715,7 +4607,6 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No 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"]) @@ -4724,7 +4615,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -4740,7 +4631,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -4756,20 +4647,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -4780,7 +4670,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -4792,7 +4682,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -4804,7 +4694,6 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No 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"]) @@ -4813,7 +4702,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -4829,7 +4718,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -4845,20 +4734,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -4869,7 +4757,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -4881,7 +4769,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -4893,7 +4781,6 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No 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"]) @@ -4902,7 +4789,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -4918,7 +4805,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -4934,20 +4821,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -4958,7 +4844,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -4970,7 +4856,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -4983,7 +4869,6 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No 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"]) @@ -4992,7 +4877,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -5008,7 +4893,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -5024,20 +4909,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -5048,7 +4932,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -5060,7 +4944,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -5068,7 +4952,6 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No 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"]) @@ -5077,7 +4960,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -5093,7 +4976,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -5109,20 +4992,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -5133,7 +5015,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -5146,7 +5028,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -5158,7 +5040,6 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No 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"]) @@ -5167,7 +5048,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -5184,7 +5065,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -5201,21 +5082,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -5414,7 +5294,7 @@ class TestAsyncRecords: @parametrize async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -5425,7 +5305,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -5434,7 +5314,6 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn 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"]) @@ -5442,7 +5321,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -5457,7 +5336,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -5473,20 +5352,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -5497,7 +5375,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -5506,7 +5384,6 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn 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"]) @@ -5514,7 +5391,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -5529,7 +5406,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -5545,20 +5422,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -5569,7 +5445,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -5581,7 +5457,6 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn 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"]) @@ -5589,7 +5464,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -5604,7 +5479,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -5620,20 +5495,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -5644,7 +5518,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -5657,7 +5531,6 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn 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"]) @@ -5665,7 +5538,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -5680,7 +5553,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -5696,20 +5569,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -5720,7 +5592,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -5729,7 +5601,6 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn 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"]) @@ -5737,7 +5608,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -5752,7 +5623,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -5768,20 +5639,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -5792,7 +5662,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -5805,7 +5675,6 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn 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"]) @@ -5813,7 +5682,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -5828,7 +5697,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -5844,20 +5713,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -5868,7 +5736,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -5881,7 +5749,6 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn 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"]) @@ -5889,7 +5756,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -5904,7 +5771,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -5920,20 +5787,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -5944,7 +5810,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -5956,7 +5822,6 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn 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"]) @@ -5964,7 +5829,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -5979,7 +5844,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -5995,20 +5860,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -6019,7 +5883,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -6040,7 +5904,6 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn 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"]) @@ -6048,7 +5911,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -6063,7 +5926,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -6079,20 +5942,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -6104,7 +5966,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -6113,7 +5975,6 @@ async def test_method_create_with_all_params_overload_10(self, async_client: Asy 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"]) @@ -6121,7 +5982,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -6137,7 +5998,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -6154,21 +6015,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -6179,7 +6039,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -6194,7 +6054,6 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy 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"]) @@ -6202,7 +6061,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -6217,7 +6076,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -6233,20 +6092,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -6257,7 +6115,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -6265,7 +6123,6 @@ async def test_method_create_with_all_params_overload_12(self, async_client: Asy 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"]) @@ -6273,7 +6130,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -6288,7 +6145,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -6304,20 +6161,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -6328,7 +6184,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -6336,7 +6192,6 @@ async def test_method_create_with_all_params_overload_13(self, async_client: Asy 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"]) @@ -6344,7 +6199,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -6359,7 +6214,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -6375,20 +6230,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -6399,7 +6253,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -6412,7 +6266,6 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy 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"]) @@ -6420,7 +6273,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -6435,7 +6288,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -6451,20 +6304,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -6475,7 +6327,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -6491,7 +6343,6 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy 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"]) @@ -6499,7 +6350,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -6514,7 +6365,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -6530,20 +6381,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -6554,7 +6404,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -6566,7 +6416,6 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy 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"]) @@ -6574,7 +6423,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -6589,7 +6438,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -6605,20 +6454,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -6629,7 +6477,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -6641,7 +6489,6 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy 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"]) @@ -6649,7 +6496,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -6664,7 +6511,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -6680,20 +6527,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -6704,7 +6550,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -6717,7 +6563,6 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy 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"]) @@ -6725,7 +6570,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -6740,7 +6585,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -6756,20 +6601,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -6780,7 +6624,7 @@ 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -6788,7 +6632,6 @@ async def test_method_create_with_all_params_overload_19(self, async_client: Asy 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"]) @@ -6796,7 +6639,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -6811,7 +6654,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -6827,20 +6670,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + 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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -6852,7 +6694,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -6864,7 +6706,6 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy 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"]) @@ -6872,7 +6713,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -6888,7 +6729,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( - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -6905,14 +6746,13 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.create( - path_zone_id="", + zone_id="", data={}, name="example.com", priority=10, type="URI", - body_zone_id="", ) @pytest.mark.skip(reason="TODO: investigate broken test") @@ -6920,7 +6760,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -6932,7 +6772,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -6941,7 +6781,6 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn 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"]) @@ -6950,7 +6789,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -6966,7 +6805,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -6982,20 +6821,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -7006,7 +6844,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -7018,7 +6856,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -7027,7 +6865,6 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn 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"]) @@ -7036,7 +6873,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -7052,7 +6889,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -7068,20 +6905,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -7092,7 +6928,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -7104,7 +6940,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -7116,7 +6952,6 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn 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"]) @@ -7125,7 +6960,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -7141,7 +6976,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -7157,20 +6992,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -7181,7 +7015,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -7193,7 +7027,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -7206,7 +7040,6 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn 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"]) @@ -7215,7 +7048,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -7231,7 +7064,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -7247,20 +7080,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -7271,7 +7103,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -7283,7 +7115,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -7292,7 +7124,6 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn 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"]) @@ -7301,7 +7132,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -7317,7 +7148,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -7333,20 +7164,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -7357,7 +7187,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -7369,7 +7199,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -7382,7 +7212,6 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn 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"]) @@ -7391,7 +7220,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -7407,7 +7236,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -7423,20 +7252,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -7447,7 +7275,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -7459,7 +7287,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -7472,7 +7300,6 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn 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"]) @@ -7481,7 +7308,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -7497,7 +7324,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -7513,20 +7340,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -7537,7 +7363,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -7549,7 +7375,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -7561,7 +7387,6 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn 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"]) @@ -7570,7 +7395,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -7586,7 +7411,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -7602,20 +7427,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -7626,7 +7450,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -7638,7 +7462,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -7659,7 +7483,6 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn 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"]) @@ -7668,7 +7491,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -7684,7 +7507,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -7700,20 +7523,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -7724,7 +7546,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -7737,7 +7559,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -7746,7 +7568,6 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy 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"]) @@ -7755,7 +7576,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -7772,7 +7593,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -7789,21 +7610,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -7815,7 +7635,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -7827,7 +7647,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -7842,7 +7662,6 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy 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"]) @@ -7851,7 +7670,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -7867,7 +7686,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -7883,20 +7702,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -7907,7 +7725,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -7919,7 +7737,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -7927,7 +7745,6 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy 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"]) @@ -7936,7 +7753,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -7952,7 +7769,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -7968,20 +7785,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -7992,7 +7808,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -8004,7 +7820,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -8012,7 +7828,6 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy 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"]) @@ -8021,7 +7836,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -8037,7 +7852,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -8053,20 +7868,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -8077,7 +7891,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -8089,7 +7903,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -8102,7 +7916,6 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy 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"]) @@ -8111,7 +7924,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -8127,7 +7940,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -8143,20 +7956,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -8167,7 +7979,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -8179,7 +7991,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -8195,7 +8007,6 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy 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"]) @@ -8204,7 +8015,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -8220,7 +8031,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -8236,20 +8047,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -8260,7 +8070,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -8272,7 +8082,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -8284,7 +8094,6 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy 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"]) @@ -8293,7 +8102,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -8309,7 +8118,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -8325,20 +8134,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -8349,7 +8157,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -8361,7 +8169,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -8373,7 +8181,6 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy 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"]) @@ -8382,7 +8189,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -8398,7 +8205,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -8414,20 +8221,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -8438,7 +8244,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -8450,7 +8256,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -8463,7 +8269,6 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy 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"]) @@ -8472,7 +8277,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -8488,7 +8293,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -8504,20 +8309,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -8528,7 +8332,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -8540,7 +8344,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -8548,7 +8352,6 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy 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"]) @@ -8557,7 +8360,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -8573,7 +8376,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -8589,20 +8392,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -8613,7 +8415,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -8626,7 +8428,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -8638,7 +8440,6 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy 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"]) @@ -8647,7 +8448,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -8664,7 +8465,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -8681,21 +8482,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.update( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -8827,7 +8627,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -8839,7 +8639,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -8848,7 +8648,6 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC 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"]) @@ -8857,7 +8656,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -8873,7 +8672,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -8889,20 +8688,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="198.51.100.4", name="example.com", type="A", @@ -8913,7 +8711,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -8925,7 +8723,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -8934,7 +8732,6 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC 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"]) @@ -8943,7 +8740,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -8959,7 +8756,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -8975,20 +8772,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="2400:cb00:2049::1", name="example.com", type="AAAA", @@ -8999,7 +8795,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -9011,7 +8807,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": 1, "tag": "issue", @@ -9023,7 +8819,6 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC 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"]) @@ -9032,7 +8827,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -9048,7 +8843,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -9064,20 +8859,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CAA", @@ -9088,7 +8882,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -9100,7 +8894,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 8, "certificate": "string", @@ -9113,7 +8907,6 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC 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"]) @@ -9122,7 +8915,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -9138,7 +8931,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -9154,20 +8947,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="CERT", @@ -9178,7 +8970,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -9190,7 +8982,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -9199,7 +8991,6 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC 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"]) @@ -9208,7 +8999,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -9224,7 +9015,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -9240,20 +9031,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content={}, name="example.com", type="CNAME", @@ -9264,7 +9054,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -9276,7 +9066,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 5, "flags": 1, @@ -9289,7 +9079,6 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC 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"]) @@ -9298,7 +9087,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -9314,7 +9103,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -9330,20 +9119,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DNSKEY", @@ -9354,7 +9142,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -9366,7 +9154,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 3, "digest": "string", @@ -9379,7 +9167,6 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC 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"]) @@ -9388,7 +9175,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -9404,7 +9191,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -9420,20 +9207,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="DS", @@ -9444,7 +9230,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -9456,7 +9242,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -9468,7 +9254,6 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC 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"]) @@ -9477,7 +9262,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -9493,7 +9278,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -9509,20 +9294,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="HTTPS", @@ -9533,7 +9317,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -9545,7 +9329,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "altitude": 0, "lat_degrees": 37, @@ -9566,7 +9350,6 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC 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"]) @@ -9575,7 +9358,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -9591,7 +9374,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -9607,20 +9390,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="LOC", @@ -9631,7 +9413,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -9644,7 +9426,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -9653,7 +9435,6 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async 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"]) @@ -9662,7 +9443,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -9679,7 +9460,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -9696,21 +9477,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="mx.example.com", name="example.com", priority=10, @@ -9722,7 +9502,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -9734,7 +9514,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "flags": "string", "order": 100, @@ -9749,7 +9529,6 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async 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"]) @@ -9758,7 +9537,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -9774,7 +9553,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -9790,20 +9569,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="NAPTR", @@ -9814,7 +9592,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -9826,7 +9604,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -9834,7 +9612,6 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async 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"]) @@ -9843,7 +9620,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -9859,7 +9636,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -9875,20 +9652,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="ns1.example.com", name="example.com", type="NS", @@ -9899,7 +9675,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -9911,7 +9687,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -9919,7 +9695,6 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async 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"]) @@ -9928,7 +9703,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -9944,7 +9719,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -9960,20 +9735,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example.com", name="example.com", type="PTR", @@ -9984,7 +9758,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -9996,7 +9770,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 0, @@ -10009,7 +9783,6 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async 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"]) @@ -10018,7 +9791,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -10034,7 +9807,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -10050,20 +9823,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SMIMEA", @@ -10074,7 +9846,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -10086,7 +9858,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "name": "example.com", "port": 8806, @@ -10102,7 +9874,6 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async 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"]) @@ -10111,7 +9882,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -10127,7 +9898,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -10143,20 +9914,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="_sip._tcp.example.com", type="SRV", @@ -10167,7 +9937,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -10179,7 +9949,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "algorithm": 2, "fingerprint": "string", @@ -10191,7 +9961,6 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async 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"]) @@ -10200,7 +9969,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -10216,7 +9985,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -10232,20 +10001,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SSHFP", @@ -10256,7 +10024,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -10268,7 +10036,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "priority": 1, "target": ".", @@ -10280,7 +10048,6 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async 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"]) @@ -10289,7 +10056,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -10305,7 +10072,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -10321,20 +10088,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="SVCB", @@ -10345,7 +10111,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -10357,7 +10123,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "certificate": "string", "matching_type": 1, @@ -10370,7 +10136,6 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async 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"]) @@ -10379,7 +10144,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -10395,7 +10160,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -10411,20 +10176,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", type="TLSA", @@ -10435,7 +10199,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -10447,7 +10211,7 @@ 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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -10455,7 +10219,6 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async 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"]) @@ -10464,7 +10227,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -10480,7 +10243,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -10496,20 +10259,19 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", content="example text content", name="example.com", type="TXT", @@ -10520,7 +10282,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -10533,7 +10295,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={ "target": "http://example.com/example.html", "weight": 20, @@ -10545,7 +10307,6 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async 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"]) @@ -10554,7 +10315,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -10571,7 +10332,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", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10, @@ -10588,21 +10349,20 @@ 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 `path_zone_id` but received ''"): + with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): await async_client.dns.records.with_raw_response.edit( "023e105f4ecef8ad9ca31a8372d0c353", - path_zone_id="", + 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( "", - path_zone_id="023e105f4ecef8ad9ca31a8372d0c353", + zone_id="023e105f4ecef8ad9ca31a8372d0c353", data={}, name="example.com", priority=10,