From dc229bdd5b0e921e85b1f973dbb13b17397d538b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 23:33:35 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#226) --- api.md | 34 +- src/cloudflare/resources/dns/records.py | 1098 ++++++------- src/cloudflare/types/dns/__init__.py | 25 +- src/cloudflare/types/dns/a_record.py | 71 + src/cloudflare/types/dns/aaaa_record.py | 71 + src/cloudflare/types/dns/caa_record.py | 79 + src/cloudflare/types/dns/cert_record.py | 82 + src/cloudflare/types/dns/cname_record.py | 71 + src/cloudflare/types/dns/dns_record.py | 1429 ----------------- src/cloudflare/types/dns/dnskey_record.py | 82 + src/cloudflare/types/dns/ds_record.py | 82 + src/cloudflare/types/dns/https_record.py | 79 + src/cloudflare/types/dns/loc_record.py | 106 ++ src/cloudflare/types/dns/mx_record.py | 71 + src/cloudflare/types/dns/naptr_record.py | 88 + src/cloudflare/types/dns/ns_record.py | 65 + src/cloudflare/types/dns/ptr_record.py | 65 + src/cloudflare/types/dns/record.py | 54 + .../types/dns/record_create_params.py | 281 ++-- .../types/dns/record_edit_params.py | 281 ++-- src/cloudflare/types/dns/record_tags_item.py | 6 + .../types/dns/record_update_params.py | 281 ++-- src/cloudflare/types/dns/smimea_record.py | 82 + src/cloudflare/types/dns/srv_record.py | 114 ++ src/cloudflare/types/dns/sshfp_record.py | 79 + src/cloudflare/types/dns/svcb_record.py | 79 + src/cloudflare/types/dns/tlsa_record.py | 82 + src/cloudflare/types/dns/ttl.py | 8 + src/cloudflare/types/dns/ttl_param.py | 10 + src/cloudflare/types/dns/txt_record.py | 65 + src/cloudflare/types/dns/uri_record.py | 82 + tests/api_resources/dns/test_records.py | 990 ++++++------ 32 files changed, 3196 insertions(+), 2896 deletions(-) create mode 100644 src/cloudflare/types/dns/a_record.py create mode 100644 src/cloudflare/types/dns/aaaa_record.py create mode 100644 src/cloudflare/types/dns/caa_record.py create mode 100644 src/cloudflare/types/dns/cert_record.py create mode 100644 src/cloudflare/types/dns/cname_record.py delete mode 100644 src/cloudflare/types/dns/dns_record.py create mode 100644 src/cloudflare/types/dns/dnskey_record.py create mode 100644 src/cloudflare/types/dns/ds_record.py create mode 100644 src/cloudflare/types/dns/https_record.py create mode 100644 src/cloudflare/types/dns/loc_record.py create mode 100644 src/cloudflare/types/dns/mx_record.py create mode 100644 src/cloudflare/types/dns/naptr_record.py create mode 100644 src/cloudflare/types/dns/ns_record.py create mode 100644 src/cloudflare/types/dns/ptr_record.py create mode 100644 src/cloudflare/types/dns/record.py create mode 100644 src/cloudflare/types/dns/record_tags_item.py create mode 100644 src/cloudflare/types/dns/smimea_record.py create mode 100644 src/cloudflare/types/dns/srv_record.py create mode 100644 src/cloudflare/types/dns/sshfp_record.py create mode 100644 src/cloudflare/types/dns/svcb_record.py create mode 100644 src/cloudflare/types/dns/tlsa_record.py create mode 100644 src/cloudflare/types/dns/ttl.py create mode 100644 src/cloudflare/types/dns/ttl_param.py create mode 100644 src/cloudflare/types/dns/txt_record.py create mode 100644 src/cloudflare/types/dns/uri_record.py diff --git a/api.md b/api.md index 4de6b678996..68d6c97aa8d 100644 --- a/api.md +++ b/api.md @@ -1617,10 +1617,32 @@ Types: ```python from cloudflare.types.dns import ( - DNSRecord, + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + Record, + RecordTagsItem, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TTL, + TXTRecord, UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb, UnnamedSchemaRef186756a742f85f535cb7bfb2d03b2b8c, UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd, + URIRecord, RecordDeleteResponse, RecordExportResponse, RecordImportResponse, @@ -1630,13 +1652,13 @@ from cloudflare.types.dns import ( Methods: -- client.dns.records.create(\*, zone_id, \*\*params) -> DNSRecord -- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> DNSRecord -- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[DNSRecord] +- client.dns.records.create(\*, zone_id, \*\*params) -> Record +- client.dns.records.update(dns_record_id, \*, zone_id, \*\*params) -> Record +- client.dns.records.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[Record] - client.dns.records.delete(dns_record_id, \*, zone_id, \*\*params) -> Optional -- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> DNSRecord +- client.dns.records.edit(dns_record_id, \*, zone_id, \*\*params) -> Record - client.dns.records.export(\*, zone_id) -> str -- client.dns.records.get(dns_record_id, \*, zone_id) -> DNSRecord +- client.dns.records.get(dns_record_id, \*, zone_id) -> Record - client.dns.records.import\_(\*, zone_id, \*\*params) -> RecordImportResponse - client.dns.records.scan(\*, zone_id, \*\*params) -> RecordScanResponse diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py index 734401f520f..7a3a6141e4e 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Any, List, Type, Union, Optional, cast, overload +from typing import Any, List, Type, Optional, cast, overload from typing_extensions import Literal import httpx @@ -23,7 +23,9 @@ ) from ..._wrappers import ResultWrapper from ...types.dns import ( - DNSRecord, + Record, + TTLParam, + RecordTagsItem, RecordScanResponse, RecordDeleteResponse, RecordImportResponse, @@ -63,15 +65,15 @@ def create( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -123,15 +125,15 @@ def create( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -178,19 +180,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsCAARecordData, + data: record_create_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -234,19 +236,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsCERTRecordData, + data: record_create_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -295,15 +297,15 @@ def create( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -350,19 +352,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsDNSKEYRecordData, + data: record_create_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -406,19 +408,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsDSRecordData, + data: record_create_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -462,19 +464,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsHTTPSRecordData, + data: record_create_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -518,19 +520,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsLOCRecordData, + data: record_create_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -579,15 +581,15 @@ def create( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -634,19 +636,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsNAPTRRecordData, + data: record_create_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -694,15 +696,15 @@ def create( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -750,15 +752,15 @@ def create( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -802,19 +804,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSMIMEARecordData, + data: record_create_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -858,19 +860,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSRVRecordData, + data: record_create_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -916,19 +918,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSSHFPRecordData, + data: record_create_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -972,19 +974,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSVCBRecordData, + data: record_create_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -1028,19 +1030,19 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsTLSARecordData, + data: record_create_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -1088,15 +1090,15 @@ def create( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -1140,20 +1142,20 @@ def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsURIRecordData, + data: record_create_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -1245,19 +1247,19 @@ def create( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_create_params.DNSRecordsCAARecordData - | record_create_params.DNSRecordsCERTRecordData - | record_create_params.DNSRecordsDNSKEYRecordData - | record_create_params.DNSRecordsDSRecordData - | record_create_params.DNSRecordsHTTPSRecordData - | record_create_params.DNSRecordsLOCRecordData - | record_create_params.DNSRecordsNAPTRRecordData - | record_create_params.DNSRecordsSMIMEARecordData - | record_create_params.DNSRecordsSRVRecordData - | record_create_params.DNSRecordsSSHFPRecordData - | record_create_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_create_params.CAARecordData + | record_create_params.CERTRecordData + | record_create_params.DNSKEYRecordData + | record_create_params.DSRecordData + | record_create_params.HTTPSRecordData + | record_create_params.LOCRecordData + | record_create_params.NAPTRRecordData + | record_create_params.SMIMEARecordData + | record_create_params.SRVRecordData + | record_create_params.SSHFPRecordData + | record_create_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1266,11 +1268,11 @@ def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return cast( - DNSRecord, + Record, self._post( f"/zones/{zone_id}/dns_records", body=maybe_transform( @@ -1295,7 +1297,7 @@ def create( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -1311,15 +1313,15 @@ def update( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1373,15 +1375,15 @@ def update( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1430,19 +1432,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsCAARecordData, + data: record_update_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1488,19 +1490,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsCERTRecordData, + data: record_update_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1551,15 +1553,15 @@ def update( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1608,19 +1610,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsDNSKEYRecordData, + data: record_update_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1666,19 +1668,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsDSRecordData, + data: record_update_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1724,19 +1726,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsHTTPSRecordData, + data: record_update_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1782,19 +1784,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsLOCRecordData, + data: record_update_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1845,15 +1847,15 @@ def update( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1902,19 +1904,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsNAPTRRecordData, + data: record_update_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -1964,15 +1966,15 @@ def update( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2022,15 +2024,15 @@ def update( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2076,19 +2078,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSMIMEARecordData, + data: record_update_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2134,19 +2136,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSRVRecordData, + data: record_update_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2194,19 +2196,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSSHFPRecordData, + data: record_update_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2252,19 +2254,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSVCBRecordData, + data: record_update_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2310,19 +2312,19 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsTLSARecordData, + data: record_update_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2372,15 +2374,15 @@ def update( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2426,20 +2428,20 @@ def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsURIRecordData, + data: record_update_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -2533,19 +2535,19 @@ def update( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_update_params.DNSRecordsCAARecordData - | record_update_params.DNSRecordsCERTRecordData - | record_update_params.DNSRecordsDNSKEYRecordData - | record_update_params.DNSRecordsDSRecordData - | record_update_params.DNSRecordsHTTPSRecordData - | record_update_params.DNSRecordsLOCRecordData - | record_update_params.DNSRecordsNAPTRRecordData - | record_update_params.DNSRecordsSMIMEARecordData - | record_update_params.DNSRecordsSRVRecordData - | record_update_params.DNSRecordsSSHFPRecordData - | record_update_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_update_params.CAARecordData + | record_update_params.CERTRecordData + | record_update_params.DNSKEYRecordData + | record_update_params.DSRecordData + | record_update_params.HTTPSRecordData + | record_update_params.LOCRecordData + | record_update_params.NAPTRRecordData + | record_update_params.SMIMEARecordData + | record_update_params.SRVRecordData + | record_update_params.SSHFPRecordData + | record_update_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2554,13 +2556,13 @@ def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: 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( - DNSRecord, + Record, self._put( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( @@ -2585,7 +2587,7 @@ def update( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -2635,7 +2637,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> SyncV4PagePaginationArray[DNSRecord]: + ) -> SyncV4PagePaginationArray[Record]: """ List, search, sort, and filter a zones' DNS records. @@ -2687,7 +2689,7 @@ def list( raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return self._get_api_list( f"/zones/{zone_id}/dns_records", - page=SyncV4PagePaginationArray[DNSRecord], + page=SyncV4PagePaginationArray[Record], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, @@ -2712,7 +2714,7 @@ def list( record_list_params.RecordListParams, ), ), - model=cast(Any, DNSRecord), # Union types cannot be passed in as arguments in the type system + model=cast(Any, Record), # Union types cannot be passed in as arguments in the type system ) def delete( @@ -2772,15 +2774,15 @@ def edit( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -2834,15 +2836,15 @@ def edit( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -2891,19 +2893,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsCAARecordData, + data: record_edit_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -2949,19 +2951,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsCERTRecordData, + data: record_edit_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3012,15 +3014,15 @@ def edit( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3069,19 +3071,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsDNSKEYRecordData, + data: record_edit_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3127,19 +3129,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsDSRecordData, + data: record_edit_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3185,19 +3187,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsHTTPSRecordData, + data: record_edit_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3243,19 +3245,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsLOCRecordData, + data: record_edit_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3306,15 +3308,15 @@ def edit( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3363,19 +3365,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsNAPTRRecordData, + data: record_edit_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3425,15 +3427,15 @@ def edit( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3483,15 +3485,15 @@ def edit( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3537,19 +3539,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSMIMEARecordData, + data: record_edit_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3595,19 +3597,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSRVRecordData, + data: record_edit_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3655,19 +3657,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSSHFPRecordData, + data: record_edit_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3713,19 +3715,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSVCBRecordData, + data: record_edit_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3771,19 +3773,19 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsTLSARecordData, + data: record_edit_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3833,15 +3835,15 @@ def edit( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3887,20 +3889,20 @@ def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsURIRecordData, + data: record_edit_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -3994,19 +3996,19 @@ def edit( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_edit_params.DNSRecordsCAARecordData - | record_edit_params.DNSRecordsCERTRecordData - | record_edit_params.DNSRecordsDNSKEYRecordData - | record_edit_params.DNSRecordsDSRecordData - | record_edit_params.DNSRecordsHTTPSRecordData - | record_edit_params.DNSRecordsLOCRecordData - | record_edit_params.DNSRecordsNAPTRRecordData - | record_edit_params.DNSRecordsSMIMEARecordData - | record_edit_params.DNSRecordsSRVRecordData - | record_edit_params.DNSRecordsSSHFPRecordData - | record_edit_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_edit_params.CAARecordData + | record_edit_params.CERTRecordData + | record_edit_params.DNSKEYRecordData + | record_edit_params.DSRecordData + | record_edit_params.HTTPSRecordData + | record_edit_params.LOCRecordData + | record_edit_params.NAPTRRecordData + | record_edit_params.SMIMEARecordData + | record_edit_params.SRVRecordData + | record_edit_params.SSHFPRecordData + | record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -4015,13 +4017,13 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: 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( - DNSRecord, + Record, self._patch( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( @@ -4046,7 +4048,7 @@ def edit( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -4104,7 +4106,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ DNS Record Details @@ -4126,7 +4128,7 @@ def get( if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( - DNSRecord, + Record, self._get( f"/zones/{zone_id}/dns_records/{dns_record_id}", options=make_request_options( @@ -4137,7 +4139,7 @@ def get( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -4269,15 +4271,15 @@ async def create( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4329,15 +4331,15 @@ async def create( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4384,19 +4386,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsCAARecordData, + data: record_create_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4440,19 +4442,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsCERTRecordData, + data: record_create_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4501,15 +4503,15 @@ async def create( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4556,19 +4558,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsDNSKEYRecordData, + data: record_create_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4612,19 +4614,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsDSRecordData, + data: record_create_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4668,19 +4670,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsHTTPSRecordData, + data: record_create_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4724,19 +4726,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsLOCRecordData, + data: record_create_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4785,15 +4787,15 @@ async def create( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4840,19 +4842,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsNAPTRRecordData, + data: record_create_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4900,15 +4902,15 @@ async def create( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -4956,15 +4958,15 @@ async def create( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5008,19 +5010,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSMIMEARecordData, + data: record_create_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5064,19 +5066,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSRVRecordData, + data: record_create_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5122,19 +5124,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSSHFPRecordData, + data: record_create_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5178,19 +5180,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsSVCBRecordData, + data: record_create_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5234,19 +5236,19 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsTLSARecordData, + data: record_create_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5294,15 +5296,15 @@ async def create( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5346,20 +5348,20 @@ async def create( self, *, zone_id: str, - data: record_create_params.DNSRecordsURIRecordData, + data: record_create_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ Create a new DNS record for a zone. @@ -5451,19 +5453,19 @@ async def create( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_create_params.DNSRecordsCAARecordData - | record_create_params.DNSRecordsCERTRecordData - | record_create_params.DNSRecordsDNSKEYRecordData - | record_create_params.DNSRecordsDSRecordData - | record_create_params.DNSRecordsHTTPSRecordData - | record_create_params.DNSRecordsLOCRecordData - | record_create_params.DNSRecordsNAPTRRecordData - | record_create_params.DNSRecordsSMIMEARecordData - | record_create_params.DNSRecordsSRVRecordData - | record_create_params.DNSRecordsSSHFPRecordData - | record_create_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_create_params.CAARecordData + | record_create_params.CERTRecordData + | record_create_params.DNSKEYRecordData + | record_create_params.DSRecordData + | record_create_params.HTTPSRecordData + | record_create_params.LOCRecordData + | record_create_params.NAPTRRecordData + | record_create_params.SMIMEARecordData + | record_create_params.SRVRecordData + | record_create_params.SSHFPRecordData + | record_create_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -5472,11 +5474,11 @@ async def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return cast( - DNSRecord, + Record, await self._post( f"/zones/{zone_id}/dns_records", body=await async_maybe_transform( @@ -5501,7 +5503,7 @@ async def create( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -5517,15 +5519,15 @@ async def update( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5579,15 +5581,15 @@ async def update( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5636,19 +5638,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsCAARecordData, + data: record_update_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5694,19 +5696,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsCERTRecordData, + data: record_update_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5757,15 +5759,15 @@ async def update( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5814,19 +5816,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsDNSKEYRecordData, + data: record_update_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5872,19 +5874,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsDSRecordData, + data: record_update_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5930,19 +5932,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsHTTPSRecordData, + data: record_update_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -5988,19 +5990,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsLOCRecordData, + data: record_update_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6051,15 +6053,15 @@ async def update( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6108,19 +6110,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsNAPTRRecordData, + data: record_update_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6170,15 +6172,15 @@ async def update( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6228,15 +6230,15 @@ async def update( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6282,19 +6284,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSMIMEARecordData, + data: record_update_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6340,19 +6342,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSRVRecordData, + data: record_update_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6400,19 +6402,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSSHFPRecordData, + data: record_update_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6458,19 +6460,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsSVCBRecordData, + data: record_update_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6516,19 +6518,19 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsTLSARecordData, + data: record_update_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6578,15 +6580,15 @@ async def update( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6632,20 +6634,20 @@ async def update( dns_record_id: str, *, zone_id: str, - data: record_update_params.DNSRecordsURIRecordData, + data: record_update_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Overwrite an existing DNS record. Notes: @@ -6739,19 +6741,19 @@ async def update( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_update_params.DNSRecordsCAARecordData - | record_update_params.DNSRecordsCERTRecordData - | record_update_params.DNSRecordsDNSKEYRecordData - | record_update_params.DNSRecordsDSRecordData - | record_update_params.DNSRecordsHTTPSRecordData - | record_update_params.DNSRecordsLOCRecordData - | record_update_params.DNSRecordsNAPTRRecordData - | record_update_params.DNSRecordsSMIMEARecordData - | record_update_params.DNSRecordsSRVRecordData - | record_update_params.DNSRecordsSSHFPRecordData - | record_update_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_update_params.CAARecordData + | record_update_params.CERTRecordData + | record_update_params.DNSKEYRecordData + | record_update_params.DSRecordData + | record_update_params.HTTPSRecordData + | record_update_params.LOCRecordData + | record_update_params.NAPTRRecordData + | record_update_params.SMIMEARecordData + | record_update_params.SRVRecordData + | record_update_params.SSHFPRecordData + | record_update_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -6760,13 +6762,13 @@ async def update( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: 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( - DNSRecord, + Record, await self._put( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( @@ -6791,7 +6793,7 @@ async def update( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -6841,7 +6843,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> AsyncPaginator[DNSRecord, AsyncV4PagePaginationArray[DNSRecord]]: + ) -> AsyncPaginator[Record, AsyncV4PagePaginationArray[Record]]: """ List, search, sort, and filter a zones' DNS records. @@ -6893,7 +6895,7 @@ def list( raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") return self._get_api_list( f"/zones/{zone_id}/dns_records", - page=AsyncV4PagePaginationArray[DNSRecord], + page=AsyncV4PagePaginationArray[Record], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, @@ -6918,7 +6920,7 @@ def list( record_list_params.RecordListParams, ), ), - model=cast(Any, DNSRecord), # Union types cannot be passed in as arguments in the type system + model=cast(Any, Record), # Union types cannot be passed in as arguments in the type system ) async def delete( @@ -6978,15 +6980,15 @@ async def edit( type: Literal["A"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7040,15 +7042,15 @@ async def edit( type: Literal["AAAA"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7097,19 +7099,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsCAARecordData, + data: record_edit_params.CAARecordData, name: str, type: Literal["CAA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7155,19 +7157,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsCERTRecordData, + data: record_edit_params.CERTRecordData, name: str, type: Literal["CERT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7218,15 +7220,15 @@ async def edit( type: Literal["CNAME"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7275,19 +7277,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsDNSKEYRecordData, + data: record_edit_params.DNSKEYRecordData, name: str, type: Literal["DNSKEY"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7333,19 +7335,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsDSRecordData, + data: record_edit_params.DSRecordData, name: str, type: Literal["DS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7391,19 +7393,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsHTTPSRecordData, + data: record_edit_params.HTTPSRecordData, name: str, type: Literal["HTTPS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7449,19 +7451,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsLOCRecordData, + data: record_edit_params.LOCRecordData, name: str, type: Literal["LOC"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7512,15 +7514,15 @@ async def edit( priority: float, type: Literal["MX"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7569,19 +7571,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsNAPTRRecordData, + data: record_edit_params.NAPTRRecordData, name: str, type: Literal["NAPTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7631,15 +7633,15 @@ async def edit( name: str, type: Literal["NS"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7689,15 +7691,15 @@ async def edit( name: str, type: Literal["PTR"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7743,19 +7745,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSMIMEARecordData, + data: record_edit_params.SMIMEARecordData, name: str, type: Literal["SMIMEA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7801,19 +7803,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSRVRecordData, + data: record_edit_params.SRVRecordData, name: str, type: Literal["SRV"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7861,19 +7863,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSSHFPRecordData, + data: record_edit_params.SSHFPRecordData, name: str, type: Literal["SSHFP"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7919,19 +7921,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsSVCBRecordData, + data: record_edit_params.SVCBRecordData, name: str, type: Literal["SVCB"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -7977,19 +7979,19 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsTLSARecordData, + data: record_edit_params.TLSARecordData, name: str, type: Literal["TLSA"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -8039,15 +8041,15 @@ async def edit( name: str, type: Literal["TXT"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -8093,20 +8095,20 @@ async def edit( dns_record_id: str, *, zone_id: str, - data: record_edit_params.DNSRecordsURIRecordData, + data: record_edit_params.URIRecordData, name: str, priority: float, type: Literal["URI"], comment: str | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """Update an existing DNS record. Notes: @@ -8200,19 +8202,19 @@ async def edit( | Literal["URI"], comment: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, - tags: List[str] | NotGiven = NOT_GIVEN, - ttl: Union[float, Literal[1]] | NotGiven = NOT_GIVEN, - data: record_edit_params.DNSRecordsCAARecordData - | record_edit_params.DNSRecordsCERTRecordData - | record_edit_params.DNSRecordsDNSKEYRecordData - | record_edit_params.DNSRecordsDSRecordData - | record_edit_params.DNSRecordsHTTPSRecordData - | record_edit_params.DNSRecordsLOCRecordData - | record_edit_params.DNSRecordsNAPTRRecordData - | record_edit_params.DNSRecordsSMIMEARecordData - | record_edit_params.DNSRecordsSRVRecordData - | record_edit_params.DNSRecordsSSHFPRecordData - | record_edit_params.DNSRecordsURIRecordData + tags: List[RecordTagsItem] | NotGiven = NOT_GIVEN, + ttl: TTLParam | NotGiven = NOT_GIVEN, + data: record_edit_params.CAARecordData + | record_edit_params.CERTRecordData + | record_edit_params.DNSKEYRecordData + | record_edit_params.DSRecordData + | record_edit_params.HTTPSRecordData + | record_edit_params.LOCRecordData + | record_edit_params.NAPTRRecordData + | record_edit_params.SMIMEARecordData + | record_edit_params.SRVRecordData + | record_edit_params.SSHFPRecordData + | record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -8221,13 +8223,13 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: 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( - DNSRecord, + Record, await self._patch( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( @@ -8252,7 +8254,7 @@ async def edit( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) @@ -8310,7 +8312,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> DNSRecord: + ) -> Record: """ DNS Record Details @@ -8332,7 +8334,7 @@ async def get( if not dns_record_id: raise ValueError(f"Expected a non-empty value for `dns_record_id` but received {dns_record_id!r}") return cast( - DNSRecord, + Record, await self._get( f"/zones/{zone_id}/dns_records/{dns_record_id}", options=make_request_options( @@ -8343,7 +8345,7 @@ async def get( post_parser=ResultWrapper._unwrapper, ), cast_to=cast( - Any, ResultWrapper[DNSRecord] + Any, ResultWrapper[Record] ), # Union types cannot be passed in as arguments in the type system ), ) diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py index cb26f5a4649..034fe473382 100644 --- a/src/cloudflare/types/dns/__init__.py +++ b/src/cloudflare/types/dns/__init__.py @@ -2,8 +2,31 @@ from __future__ import annotations -from .dns_record import DNSRecord as DNSRecord +from .ttl import TTL as TTL +from .record import Record as Record +from .a_record import ARecord as ARecord +from .ds_record import DSRecord as DSRecord +from .mx_record import MXRecord as MXRecord +from .ns_record import NSRecord as NSRecord +from .ttl_param import TTLParam as TTLParam +from .caa_record import CAARecord as CAARecord +from .loc_record import LOCRecord as LOCRecord +from .ptr_record import PTRRecord as PTRRecord +from .srv_record import SRVRecord as SRVRecord +from .txt_record import TXTRecord as TXTRecord +from .uri_record import URIRecord as URIRecord +from .aaaa_record import AAAARecord as AAAARecord +from .cert_record import CERTRecord as CERTRecord +from .svcb_record import SVCBRecord as SVCBRecord +from .tlsa_record import TLSARecord as TLSARecord +from .cname_record import CNAMERecord as CNAMERecord from .dns_firewall import DNSFirewall as DNSFirewall +from .https_record import HTTPSRecord as HTTPSRecord +from .naptr_record import NAPTRRecord as NAPTRRecord +from .sshfp_record import SSHFPRecord as SSHFPRecord +from .dnskey_record import DNSKEYRecord as DNSKEYRecord +from .smimea_record import SMIMEARecord as SMIMEARecord +from .record_tags_item import RecordTagsItem as RecordTagsItem from .record_edit_params import RecordEditParams as RecordEditParams from .record_list_params import RecordListParams as RecordListParams from .record_scan_params import RecordScanParams as RecordScanParams diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py new file mode 100644 index 00000000000..2ae0c167b7f --- /dev/null +++ b/src/cloudflare/types/dns/a_record.py @@ -0,0 +1,71 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["ARecord"] + + +class ARecord(BaseModel): + content: str + """A valid IPv4 address.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["A"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + proxied: Optional[bool] = None + """ + Whether the record is receiving the performance and security benefits of + Cloudflare. + """ + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..6f1beb5aac3 --- /dev/null +++ b/src/cloudflare/types/dns/aaaa_record.py @@ -0,0 +1,71 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["AAAARecord"] + + +class AAAARecord(BaseModel): + content: str + """A valid IPv6 address.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["AAAA"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + proxied: Optional[bool] = None + """ + Whether the record is receiving the performance and security benefits of + Cloudflare. + """ + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..86d10cdffb8 --- /dev/null +++ b/src/cloudflare/types/dns/caa_record.py @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["CAARecord", "Data"] + + +class Data(BaseModel): + flags: Optional[float] = None + """Flags for the CAA record.""" + + tag: Optional[str] = None + """Name of the property controlled by this record (e.g.: issue, issuewild, iodef).""" + + value: Optional[str] = None + """Value of the record. This field's semantics depend on the chosen tag.""" + + +class CAARecord(BaseModel): + data: Data + """Components of a CAA record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["CAA"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted CAA content. See 'data' to set CAA properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..b2d02beea48 --- /dev/null +++ b/src/cloudflare/types/dns/cert_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["CERTRecord", "Data"] + + +class Data(BaseModel): + algorithm: Optional[float] = None + """Algorithm.""" + + certificate: Optional[str] = None + """Certificate.""" + + key_tag: Optional[float] = None + """Key Tag.""" + + type: Optional[float] = None + """Type.""" + + +class CERTRecord(BaseModel): + data: Data + """Components of a CERT record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["CERT"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted CERT content. See 'data' to set CERT properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..b4d9158c6ae --- /dev/null +++ b/src/cloudflare/types/dns/cname_record.py @@ -0,0 +1,71 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["CNAMERecord"] + + +class CNAMERecord(BaseModel): + content: object + """A valid hostname. Must not match the record's name.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["CNAME"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + proxied: Optional[bool] = None + """ + Whether the record is receiving the performance and security benefits of + Cloudflare. + """ + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + zone_id: Optional[str] = None + """Identifier""" + + zone_name: Optional[str] = None + """The domain of the record.""" diff --git a/src/cloudflare/types/dns/dns_record.py b/src/cloudflare/types/dns/dns_record.py deleted file mode 100644 index 211eadcd9e4..00000000000 --- a/src/cloudflare/types/dns/dns_record.py +++ /dev/null @@ -1,1429 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import List, Union, Optional -from datetime import datetime -from typing_extensions import Literal, Annotated - -from ..._utils import PropertyInfo -from ..._models import BaseModel -from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb - -__all__ = [ - "DNSRecord", - "A", - "AAAA", - "CAA", - "CAAData", - "CERT", - "CERTData", - "CNAME", - "DNSKEY", - "DNSKEYData", - "DS", - "DSData", - "HTTPS", - "HTTPSData", - "LOC", - "LOCData", - "MX", - "NAPTR", - "NAPTRData", - "NS", - "PTR", - "SMIMEA", - "SMIMEAData", - "SRV", - "SRVData", - "SSHFP", - "SSHFPData", - "SVCB", - "SVCBData", - "TLSA", - "TLSAData", - "TXT", - "URI", - "URIData", -] - - -class A(BaseModel): - content: str - """A valid IPv4 address.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["A"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class AAAA(BaseModel): - content: str - """A valid IPv6 address.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["AAAA"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class CAAData(BaseModel): - flags: Optional[float] = None - """Flags for the CAA record.""" - - tag: Optional[str] = None - """Name of the property controlled by this record (e.g.: issue, issuewild, iodef).""" - - value: Optional[str] = None - """Value of the record. This field's semantics depend on the chosen tag.""" - - -class CAA(BaseModel): - data: CAAData - """Components of a CAA record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["CAA"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted CAA content. See 'data' to set CAA properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class CERTData(BaseModel): - algorithm: Optional[float] = None - """Algorithm.""" - - certificate: Optional[str] = None - """Certificate.""" - - key_tag: Optional[float] = None - """Key Tag.""" - - type: Optional[float] = None - """Type.""" - - -class CERT(BaseModel): - data: CERTData - """Components of a CERT record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["CERT"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted CERT content. See 'data' to set CERT properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class CNAME(BaseModel): - content: object - """A valid hostname. Must not match the record's name.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["CNAME"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class DNSKEYData(BaseModel): - algorithm: Optional[float] = None - """Algorithm.""" - - flags: Optional[float] = None - """Flags.""" - - protocol: Optional[float] = None - """Protocol.""" - - public_key: Optional[str] = None - """Public Key.""" - - -class DNSKEY(BaseModel): - data: DNSKEYData - """Components of a DNSKEY record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["DNSKEY"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted DNSKEY content. See 'data' to set DNSKEY properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class DSData(BaseModel): - algorithm: Optional[float] = None - """Algorithm.""" - - digest: Optional[str] = None - """Digest.""" - - digest_type: Optional[float] = None - """Digest Type.""" - - key_tag: Optional[float] = None - """Key Tag.""" - - -class DS(BaseModel): - data: DSData - """Components of a DS record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["DS"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted DS content. See 'data' to set DS properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class HTTPSData(BaseModel): - priority: Optional[float] = None - """priority.""" - - target: Optional[str] = None - """target.""" - - value: Optional[str] = None - """value.""" - - -class HTTPS(BaseModel): - data: HTTPSData - """Components of a HTTPS record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["HTTPS"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted HTTPS content. See 'data' to set HTTPS properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class LOCData(BaseModel): - altitude: Optional[float] = None - """Altitude of location in meters.""" - - lat_degrees: Optional[float] = None - """Degrees of latitude.""" - - lat_direction: Optional[Literal["N", "S"]] = None - """Latitude direction.""" - - lat_minutes: Optional[float] = None - """Minutes of latitude.""" - - lat_seconds: Optional[float] = None - """Seconds of latitude.""" - - long_degrees: Optional[float] = None - """Degrees of longitude.""" - - long_direction: Optional[Literal["E", "W"]] = None - """Longitude direction.""" - - long_minutes: Optional[float] = None - """Minutes of longitude.""" - - long_seconds: Optional[float] = None - """Seconds of longitude.""" - - precision_horz: Optional[float] = None - """Horizontal precision of location.""" - - precision_vert: Optional[float] = None - """Vertical precision of location.""" - - size: Optional[float] = None - """Size of location in meters.""" - - -class LOC(BaseModel): - data: LOCData - """Components of a LOC record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["LOC"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted LOC content. See 'data' to set LOC properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class MX(BaseModel): - content: str - """A valid mail server hostname.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - priority: float - """Required for MX, SRV and URI records; unused by other record types. - - Records with lower priorities are preferred. - """ - - type: Literal["MX"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class NAPTRData(BaseModel): - flags: Optional[str] = None - """Flags.""" - - order: Optional[float] = None - """Order.""" - - preference: Optional[float] = None - """Preference.""" - - regex: Optional[str] = None - """Regex.""" - - replacement: Optional[str] = None - """Replacement.""" - - service: Optional[str] = None - """Service.""" - - -class NAPTR(BaseModel): - data: NAPTRData - """Components of a NAPTR record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["NAPTR"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted NAPTR content. See 'data' to set NAPTR properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class NS(BaseModel): - content: str - """A valid name server host name.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["NS"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class PTR(BaseModel): - content: str - """Domain name pointing to the address.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["PTR"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class SMIMEAData(BaseModel): - certificate: Optional[str] = None - """Certificate.""" - - matching_type: Optional[float] = None - """Matching Type.""" - - selector: Optional[float] = None - """Selector.""" - - usage: Optional[float] = None - """Usage.""" - - -class SMIMEA(BaseModel): - data: SMIMEAData - """Components of a SMIMEA record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["SMIMEA"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted SMIMEA content. See 'data' to set SMIMEA properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class SRVData(BaseModel): - name: Optional[str] = None - """A valid hostname. - - Deprecated in favor of the regular 'name' outside the data map. This data map - field represents the remainder of the full 'name' after the service and - protocol. - """ - - port: Optional[float] = None - """The port of the service.""" - - priority: Optional[float] = None - """Required for MX, SRV and URI records; unused by other record types. - - Records with lower priorities are preferred. - """ - - proto: Optional[str] = None - """A valid protocol, prefixed with an underscore. - - Deprecated in favor of the regular 'name' outside the data map. This data map - field normally represents the second label of that 'name'. - """ - - service: Optional[str] = None - """A service type, prefixed with an underscore. - - Deprecated in favor of the regular 'name' outside the data map. This data map - field normally represents the first label of that 'name'. - """ - - target: Optional[str] = None - """A valid hostname.""" - - weight: Optional[float] = None - """The record weight.""" - - -class SRV(BaseModel): - data: SRVData - """Components of a SRV record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode. - - For SRV records, the first label is normally a service and the second a protocol - name, each starting with an underscore. - """ - - type: Literal["SRV"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Priority, weight, port, and SRV target. - - See 'data' for setting the individual component values. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class SSHFPData(BaseModel): - algorithm: Optional[float] = None - """algorithm.""" - - fingerprint: Optional[str] = None - """fingerprint.""" - - type: Optional[float] = None - """type.""" - - -class SSHFP(BaseModel): - data: SSHFPData - """Components of a SSHFP record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["SSHFP"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted SSHFP content. See 'data' to set SSHFP properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class SVCBData(BaseModel): - priority: Optional[float] = None - """priority.""" - - target: Optional[str] = None - """target.""" - - value: Optional[str] = None - """value.""" - - -class SVCB(BaseModel): - data: SVCBData - """Components of a SVCB record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["SVCB"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted SVCB content. See 'data' to set SVCB properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class TLSAData(BaseModel): - certificate: Optional[str] = None - """certificate.""" - - matching_type: Optional[float] = None - """Matching Type.""" - - selector: Optional[float] = None - """Selector.""" - - usage: Optional[float] = None - """Usage.""" - - -class TLSA(BaseModel): - data: TLSAData - """Components of a TLSA record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["TLSA"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted TLSA content. See 'data' to set TLSA properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class TXT(BaseModel): - content: str - """Text content for the record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - type: Literal["TXT"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -class URIData(BaseModel): - content: Optional[str] = None - """The record content.""" - - weight: Optional[float] = None - """The record weight.""" - - -class URI(BaseModel): - data: URIData - """Components of a URI record.""" - - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - priority: float - """Required for MX, SRV and URI records; unused by other record types. - - Records with lower priorities are preferred. - """ - - type: Literal["URI"] - """Record type.""" - - id: Optional[str] = None - """Identifier""" - - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - - content: Optional[str] = None - """Formatted URI content. See 'data' to set URI properties.""" - - created_on: Optional[datetime] = None - """When the record was created.""" - - locked: Optional[bool] = None - """ - Whether this record can be modified/deleted (true means it's managed by - Cloudflare). - """ - - meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None - """Extra Cloudflare-specific information about the record.""" - - modified_on: Optional[datetime] = None - """When the record was last modified.""" - - proxiable: Optional[bool] = None - """Whether the record can be proxied by Cloudflare or not.""" - - tags: Optional[List[str]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Union[float, Literal[1], None] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - - zone_id: Optional[str] = None - """Identifier""" - - zone_name: Optional[str] = None - """The domain of the record.""" - - -DNSRecord = Annotated[ - Union[ - A, AAAA, CAA, CERT, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, SMIMEA, SRV, SSHFP, SVCB, TLSA, TXT, URI - ], - PropertyInfo(discriminator="type"), -] diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py new file mode 100644 index 00000000000..61a7443d9bd --- /dev/null +++ b/src/cloudflare/types/dns/dnskey_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["DNSKEYRecord", "Data"] + + +class Data(BaseModel): + algorithm: Optional[float] = None + """Algorithm.""" + + flags: Optional[float] = None + """Flags.""" + + protocol: Optional[float] = None + """Protocol.""" + + public_key: Optional[str] = None + """Public Key.""" + + +class DNSKEYRecord(BaseModel): + data: Data + """Components of a DNSKEY record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["DNSKEY"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted DNSKEY content. See 'data' to set DNSKEY properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..1839e6d89ac --- /dev/null +++ b/src/cloudflare/types/dns/ds_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["DSRecord", "Data"] + + +class Data(BaseModel): + algorithm: Optional[float] = None + """Algorithm.""" + + digest: Optional[str] = None + """Digest.""" + + digest_type: Optional[float] = None + """Digest Type.""" + + key_tag: Optional[float] = None + """Key Tag.""" + + +class DSRecord(BaseModel): + data: Data + """Components of a DS record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["DS"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted DS content. See 'data' to set DS properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..732ea6acd00 --- /dev/null +++ b/src/cloudflare/types/dns/https_record.py @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["HTTPSRecord", "Data"] + + +class Data(BaseModel): + priority: Optional[float] = None + """priority.""" + + target: Optional[str] = None + """target.""" + + value: Optional[str] = None + """value.""" + + +class HTTPSRecord(BaseModel): + data: Data + """Components of a HTTPS record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["HTTPS"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted HTTPS content. See 'data' to set HTTPS properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..4b85d150b88 --- /dev/null +++ b/src/cloudflare/types/dns/loc_record.py @@ -0,0 +1,106 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["LOCRecord", "Data"] + + +class Data(BaseModel): + altitude: Optional[float] = None + """Altitude of location in meters.""" + + lat_degrees: Optional[float] = None + """Degrees of latitude.""" + + lat_direction: Optional[Literal["N", "S"]] = None + """Latitude direction.""" + + lat_minutes: Optional[float] = None + """Minutes of latitude.""" + + lat_seconds: Optional[float] = None + """Seconds of latitude.""" + + long_degrees: Optional[float] = None + """Degrees of longitude.""" + + long_direction: Optional[Literal["E", "W"]] = None + """Longitude direction.""" + + long_minutes: Optional[float] = None + """Minutes of longitude.""" + + long_seconds: Optional[float] = None + """Seconds of longitude.""" + + precision_horz: Optional[float] = None + """Horizontal precision of location.""" + + precision_vert: Optional[float] = None + """Vertical precision of location.""" + + size: Optional[float] = None + """Size of location in meters.""" + + +class LOCRecord(BaseModel): + data: Data + """Components of a LOC record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["LOC"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted LOC content. See 'data' to set LOC properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..86b7bda5e2f --- /dev/null +++ b/src/cloudflare/types/dns/mx_record.py @@ -0,0 +1,71 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["MXRecord"] + + +class MXRecord(BaseModel): + content: str + """A valid mail server hostname.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + priority: float + """Required for MX, SRV and URI records; unused by other record types. + + Records with lower priorities are preferred. + """ + + type: Literal["MX"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..ca6204e84d3 --- /dev/null +++ b/src/cloudflare/types/dns/naptr_record.py @@ -0,0 +1,88 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["NAPTRRecord", "Data"] + + +class Data(BaseModel): + flags: Optional[str] = None + """Flags.""" + + order: Optional[float] = None + """Order.""" + + preference: Optional[float] = None + """Preference.""" + + regex: Optional[str] = None + """Regex.""" + + replacement: Optional[str] = None + """Replacement.""" + + service: Optional[str] = None + """Service.""" + + +class NAPTRRecord(BaseModel): + data: Data + """Components of a NAPTR record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["NAPTR"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted NAPTR content. See 'data' to set NAPTR properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..1142e6d2b4c --- /dev/null +++ b/src/cloudflare/types/dns/ns_record.py @@ -0,0 +1,65 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["NSRecord"] + + +class NSRecord(BaseModel): + content: str + """A valid name server host name.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["NS"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..3e4fc3747f3 --- /dev/null +++ b/src/cloudflare/types/dns/ptr_record.py @@ -0,0 +1,65 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["PTRRecord"] + + +class PTRRecord(BaseModel): + content: str + """Domain name pointing to the address.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["PTR"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + zone_id: Optional[str] = None + """Identifier""" + + zone_name: Optional[str] = None + """The domain of the record.""" diff --git a/src/cloudflare/types/dns/record.py b/src/cloudflare/types/dns/record.py new file mode 100644 index 00000000000..6dcc3a1a15c --- /dev/null +++ b/src/cloudflare/types/dns/record.py @@ -0,0 +1,54 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Annotated + +from ..._utils import PropertyInfo +from .a_record import ARecord +from .ds_record import DSRecord +from .mx_record import MXRecord +from .ns_record import NSRecord +from .caa_record import CAARecord +from .loc_record import LOCRecord +from .ptr_record import PTRRecord +from .srv_record import SRVRecord +from .txt_record import TXTRecord +from .uri_record import URIRecord +from .aaaa_record import AAAARecord +from .cert_record import CERTRecord +from .svcb_record import SVCBRecord +from .tlsa_record import TLSARecord +from .cname_record import CNAMERecord +from .https_record import HTTPSRecord +from .naptr_record import NAPTRRecord +from .sshfp_record import SSHFPRecord +from .dnskey_record import DNSKEYRecord +from .smimea_record import SMIMEARecord + +__all__ = ["Record"] + +Record = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), +] diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index d5e32477ca0..14f1e8784fb 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -5,45 +5,48 @@ from typing import List, Union from typing_extensions import Literal, Required, TypedDict +from .ttl_param import TTLParam +from .record_tags_item import RecordTagsItem + __all__ = [ "RecordCreateParams", - "DNSRecordsARecord", - "DNSRecordsAAAARecord", - "DNSRecordsCAARecord", - "DNSRecordsCAARecordData", - "DNSRecordsCERTRecord", - "DNSRecordsCERTRecordData", - "DNSRecordsCNAMERecord", - "DNSRecordsDNSKEYRecord", - "DNSRecordsDNSKEYRecordData", - "DNSRecordsDSRecord", - "DNSRecordsDSRecordData", - "DNSRecordsHTTPSRecord", - "DNSRecordsHTTPSRecordData", - "DNSRecordsLOCRecord", - "DNSRecordsLOCRecordData", - "DNSRecordsMXRecord", - "DNSRecordsNAPTRRecord", - "DNSRecordsNAPTRRecordData", - "DNSRecordsNSRecord", - "DNSRecordsPTRRecord", - "DNSRecordsSMIMEARecord", - "DNSRecordsSMIMEARecordData", - "DNSRecordsSRVRecord", - "DNSRecordsSRVRecordData", - "DNSRecordsSSHFPRecord", - "DNSRecordsSSHFPRecordData", - "DNSRecordsSVCBRecord", - "DNSRecordsSVCBRecordData", - "DNSRecordsTLSARecord", - "DNSRecordsTLSARecordData", - "DNSRecordsTXTRecord", - "DNSRecordsURIRecord", - "DNSRecordsURIRecordData", + "ARecord", + "AAAARecord", + "CAARecord", + "CAARecordData", + "CERTRecord", + "CERTRecordData", + "CNAMERecord", + "DNSKEYRecord", + "DNSKEYRecordData", + "DSRecord", + "DSRecordData", + "HTTPSRecord", + "HTTPSRecordData", + "LOCRecord", + "LOCRecordData", + "MXRecord", + "NAPTRRecord", + "NAPTRRecordData", + "NSRecord", + "PTRRecord", + "SMIMEARecord", + "SMIMEARecordData", + "SRVRecord", + "SRVRecordData", + "SSHFPRecord", + "SSHFPRecordData", + "SVCBRecord", + "SVCBRecordData", + "TLSARecord", + "TLSARecordData", + "TXTRecord", + "URIRecord", + "URIRecordData", ] -class DNSRecordsARecord(TypedDict, total=False): +class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -68,10 +71,10 @@ class DNSRecordsARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -79,7 +82,7 @@ class DNSRecordsARecord(TypedDict, total=False): """ -class DNSRecordsAAAARecord(TypedDict, total=False): +class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -104,10 +107,10 @@ class DNSRecordsAAAARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -115,11 +118,11 @@ class DNSRecordsAAAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecord(TypedDict, total=False): +class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCAARecordData] + data: Required[CAARecordData] """Components of a CAA record.""" name: Required[str] @@ -134,10 +137,10 @@ class DNSRecordsCAARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -145,7 +148,7 @@ class DNSRecordsCAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecordData(TypedDict, total=False): +class CAARecordData(TypedDict, total=False): flags: float """Flags for the CAA record.""" @@ -156,11 +159,11 @@ class DNSRecordsCAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" -class DNSRecordsCERTRecord(TypedDict, total=False): +class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCERTRecordData] + data: Required[CERTRecordData] """Components of a CERT record.""" name: Required[str] @@ -175,10 +178,10 @@ class DNSRecordsCERTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -186,7 +189,7 @@ class DNSRecordsCERTRecord(TypedDict, total=False): """ -class DNSRecordsCERTRecordData(TypedDict, total=False): +class CERTRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -200,7 +203,7 @@ class DNSRecordsCERTRecordData(TypedDict, total=False): """Type.""" -class DNSRecordsCNAMERecord(TypedDict, total=False): +class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -225,10 +228,10 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -236,11 +239,11 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecord(TypedDict, total=False): +class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDNSKEYRecordData] + data: Required[DNSKEYRecordData] """Components of a DNSKEY record.""" name: Required[str] @@ -255,10 +258,10 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -266,7 +269,7 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecordData(TypedDict, total=False): +class DNSKEYRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -280,11 +283,11 @@ class DNSRecordsDNSKEYRecordData(TypedDict, total=False): """Public Key.""" -class DNSRecordsDSRecord(TypedDict, total=False): +class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDSRecordData] + data: Required[DSRecordData] """Components of a DS record.""" name: Required[str] @@ -299,10 +302,10 @@ class DNSRecordsDSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -310,7 +313,7 @@ class DNSRecordsDSRecord(TypedDict, total=False): """ -class DNSRecordsDSRecordData(TypedDict, total=False): +class DSRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -324,11 +327,11 @@ class DNSRecordsDSRecordData(TypedDict, total=False): """Key Tag.""" -class DNSRecordsHTTPSRecord(TypedDict, total=False): +class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsHTTPSRecordData] + data: Required[HTTPSRecordData] """Components of a HTTPS record.""" name: Required[str] @@ -343,10 +346,10 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -354,7 +357,7 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): """ -class DNSRecordsHTTPSRecordData(TypedDict, total=False): +class HTTPSRecordData(TypedDict, total=False): priority: float """priority.""" @@ -365,11 +368,11 @@ class DNSRecordsHTTPSRecordData(TypedDict, total=False): """value.""" -class DNSRecordsLOCRecord(TypedDict, total=False): +class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsLOCRecordData] + data: Required[LOCRecordData] """Components of a LOC record.""" name: Required[str] @@ -384,10 +387,10 @@ class DNSRecordsLOCRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -395,7 +398,7 @@ class DNSRecordsLOCRecord(TypedDict, total=False): """ -class DNSRecordsLOCRecordData(TypedDict, total=False): +class LOCRecordData(TypedDict, total=False): altitude: float """Altitude of location in meters.""" @@ -433,7 +436,7 @@ class DNSRecordsLOCRecordData(TypedDict, total=False): """Size of location in meters.""" -class DNSRecordsMXRecord(TypedDict, total=False): +class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -458,10 +461,10 @@ class DNSRecordsMXRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -469,11 +472,11 @@ class DNSRecordsMXRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecord(TypedDict, total=False): +class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsNAPTRRecordData] + data: Required[NAPTRRecordData] """Components of a NAPTR record.""" name: Required[str] @@ -488,10 +491,10 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -499,7 +502,7 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecordData(TypedDict, total=False): +class NAPTRRecordData(TypedDict, total=False): flags: str """Flags.""" @@ -519,7 +522,7 @@ class DNSRecordsNAPTRRecordData(TypedDict, total=False): """Service.""" -class DNSRecordsNSRecord(TypedDict, total=False): +class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -538,10 +541,10 @@ class DNSRecordsNSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -549,7 +552,7 @@ class DNSRecordsNSRecord(TypedDict, total=False): """ -class DNSRecordsPTRRecord(TypedDict, total=False): +class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -568,10 +571,10 @@ class DNSRecordsPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -579,11 +582,11 @@ class DNSRecordsPTRRecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecord(TypedDict, total=False): +class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSMIMEARecordData] + data: Required[SMIMEARecordData] """Components of a SMIMEA record.""" name: Required[str] @@ -598,10 +601,10 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -609,7 +612,7 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecordData(TypedDict, total=False): +class SMIMEARecordData(TypedDict, total=False): certificate: str """Certificate.""" @@ -623,11 +626,11 @@ class DNSRecordsSMIMEARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsSRVRecord(TypedDict, total=False): +class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSRVRecordData] + data: Required[SRVRecordData] """Components of a SRV record.""" name: Required[str] @@ -646,10 +649,10 @@ class DNSRecordsSRVRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -657,7 +660,7 @@ class DNSRecordsSRVRecord(TypedDict, total=False): """ -class DNSRecordsSRVRecordData(TypedDict, total=False): +class SRVRecordData(TypedDict, total=False): name: str """A valid hostname. @@ -696,11 +699,11 @@ class DNSRecordsSRVRecordData(TypedDict, total=False): """The record weight.""" -class DNSRecordsSSHFPRecord(TypedDict, total=False): +class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSSHFPRecordData] + data: Required[SSHFPRecordData] """Components of a SSHFP record.""" name: Required[str] @@ -715,10 +718,10 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -726,7 +729,7 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): """ -class DNSRecordsSSHFPRecordData(TypedDict, total=False): +class SSHFPRecordData(TypedDict, total=False): algorithm: float """algorithm.""" @@ -737,11 +740,11 @@ class DNSRecordsSSHFPRecordData(TypedDict, total=False): """type.""" -class DNSRecordsSVCBRecord(TypedDict, total=False): +class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSVCBRecordData] + data: Required[SVCBRecordData] """Components of a SVCB record.""" name: Required[str] @@ -756,10 +759,10 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -767,7 +770,7 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): """ -class DNSRecordsSVCBRecordData(TypedDict, total=False): +class SVCBRecordData(TypedDict, total=False): priority: float """priority.""" @@ -778,11 +781,11 @@ class DNSRecordsSVCBRecordData(TypedDict, total=False): """value.""" -class DNSRecordsTLSARecord(TypedDict, total=False): +class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsTLSARecordData] + data: Required[TLSARecordData] """Components of a TLSA record.""" name: Required[str] @@ -797,10 +800,10 @@ class DNSRecordsTLSARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -808,7 +811,7 @@ class DNSRecordsTLSARecord(TypedDict, total=False): """ -class DNSRecordsTLSARecordData(TypedDict, total=False): +class TLSARecordData(TypedDict, total=False): certificate: str """certificate.""" @@ -822,7 +825,7 @@ class DNSRecordsTLSARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsTXTRecord(TypedDict, total=False): +class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -841,10 +844,10 @@ class DNSRecordsTXTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -852,11 +855,11 @@ class DNSRecordsTXTRecord(TypedDict, total=False): """ -class DNSRecordsURIRecord(TypedDict, total=False): +class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsURIRecordData] + data: Required[URIRecordData] """Components of a URI record.""" name: Required[str] @@ -877,10 +880,10 @@ class DNSRecordsURIRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -888,7 +891,7 @@ class DNSRecordsURIRecord(TypedDict, total=False): """ -class DNSRecordsURIRecordData(TypedDict, total=False): +class URIRecordData(TypedDict, total=False): content: str """The record content.""" @@ -897,24 +900,24 @@ class DNSRecordsURIRecordData(TypedDict, total=False): RecordCreateParams = Union[ - DNSRecordsARecord, - DNSRecordsAAAARecord, - DNSRecordsCAARecord, - DNSRecordsCERTRecord, - DNSRecordsCNAMERecord, - DNSRecordsDNSKEYRecord, - DNSRecordsDSRecord, - DNSRecordsHTTPSRecord, - DNSRecordsLOCRecord, - DNSRecordsMXRecord, - DNSRecordsNAPTRRecord, - DNSRecordsNSRecord, - DNSRecordsPTRRecord, - DNSRecordsSMIMEARecord, - DNSRecordsSRVRecord, - DNSRecordsSSHFPRecord, - DNSRecordsSVCBRecord, - DNSRecordsTLSARecord, - DNSRecordsTXTRecord, - DNSRecordsURIRecord, + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, ] diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py index bcbb04b48df..d1964075fb1 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -5,45 +5,48 @@ from typing import List, Union from typing_extensions import Literal, Required, TypedDict +from .ttl_param import TTLParam +from .record_tags_item import RecordTagsItem + __all__ = [ "RecordEditParams", - "DNSRecordsARecord", - "DNSRecordsAAAARecord", - "DNSRecordsCAARecord", - "DNSRecordsCAARecordData", - "DNSRecordsCERTRecord", - "DNSRecordsCERTRecordData", - "DNSRecordsCNAMERecord", - "DNSRecordsDNSKEYRecord", - "DNSRecordsDNSKEYRecordData", - "DNSRecordsDSRecord", - "DNSRecordsDSRecordData", - "DNSRecordsHTTPSRecord", - "DNSRecordsHTTPSRecordData", - "DNSRecordsLOCRecord", - "DNSRecordsLOCRecordData", - "DNSRecordsMXRecord", - "DNSRecordsNAPTRRecord", - "DNSRecordsNAPTRRecordData", - "DNSRecordsNSRecord", - "DNSRecordsPTRRecord", - "DNSRecordsSMIMEARecord", - "DNSRecordsSMIMEARecordData", - "DNSRecordsSRVRecord", - "DNSRecordsSRVRecordData", - "DNSRecordsSSHFPRecord", - "DNSRecordsSSHFPRecordData", - "DNSRecordsSVCBRecord", - "DNSRecordsSVCBRecordData", - "DNSRecordsTLSARecord", - "DNSRecordsTLSARecordData", - "DNSRecordsTXTRecord", - "DNSRecordsURIRecord", - "DNSRecordsURIRecordData", + "ARecord", + "AAAARecord", + "CAARecord", + "CAARecordData", + "CERTRecord", + "CERTRecordData", + "CNAMERecord", + "DNSKEYRecord", + "DNSKEYRecordData", + "DSRecord", + "DSRecordData", + "HTTPSRecord", + "HTTPSRecordData", + "LOCRecord", + "LOCRecordData", + "MXRecord", + "NAPTRRecord", + "NAPTRRecordData", + "NSRecord", + "PTRRecord", + "SMIMEARecord", + "SMIMEARecordData", + "SRVRecord", + "SRVRecordData", + "SSHFPRecord", + "SSHFPRecordData", + "SVCBRecord", + "SVCBRecordData", + "TLSARecord", + "TLSARecordData", + "TXTRecord", + "URIRecord", + "URIRecordData", ] -class DNSRecordsARecord(TypedDict, total=False): +class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -68,10 +71,10 @@ class DNSRecordsARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -79,7 +82,7 @@ class DNSRecordsARecord(TypedDict, total=False): """ -class DNSRecordsAAAARecord(TypedDict, total=False): +class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -104,10 +107,10 @@ class DNSRecordsAAAARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -115,11 +118,11 @@ class DNSRecordsAAAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecord(TypedDict, total=False): +class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCAARecordData] + data: Required[CAARecordData] """Components of a CAA record.""" name: Required[str] @@ -134,10 +137,10 @@ class DNSRecordsCAARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -145,7 +148,7 @@ class DNSRecordsCAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecordData(TypedDict, total=False): +class CAARecordData(TypedDict, total=False): flags: float """Flags for the CAA record.""" @@ -156,11 +159,11 @@ class DNSRecordsCAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" -class DNSRecordsCERTRecord(TypedDict, total=False): +class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCERTRecordData] + data: Required[CERTRecordData] """Components of a CERT record.""" name: Required[str] @@ -175,10 +178,10 @@ class DNSRecordsCERTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -186,7 +189,7 @@ class DNSRecordsCERTRecord(TypedDict, total=False): """ -class DNSRecordsCERTRecordData(TypedDict, total=False): +class CERTRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -200,7 +203,7 @@ class DNSRecordsCERTRecordData(TypedDict, total=False): """Type.""" -class DNSRecordsCNAMERecord(TypedDict, total=False): +class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -225,10 +228,10 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -236,11 +239,11 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecord(TypedDict, total=False): +class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDNSKEYRecordData] + data: Required[DNSKEYRecordData] """Components of a DNSKEY record.""" name: Required[str] @@ -255,10 +258,10 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -266,7 +269,7 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecordData(TypedDict, total=False): +class DNSKEYRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -280,11 +283,11 @@ class DNSRecordsDNSKEYRecordData(TypedDict, total=False): """Public Key.""" -class DNSRecordsDSRecord(TypedDict, total=False): +class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDSRecordData] + data: Required[DSRecordData] """Components of a DS record.""" name: Required[str] @@ -299,10 +302,10 @@ class DNSRecordsDSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -310,7 +313,7 @@ class DNSRecordsDSRecord(TypedDict, total=False): """ -class DNSRecordsDSRecordData(TypedDict, total=False): +class DSRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -324,11 +327,11 @@ class DNSRecordsDSRecordData(TypedDict, total=False): """Key Tag.""" -class DNSRecordsHTTPSRecord(TypedDict, total=False): +class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsHTTPSRecordData] + data: Required[HTTPSRecordData] """Components of a HTTPS record.""" name: Required[str] @@ -343,10 +346,10 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -354,7 +357,7 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): """ -class DNSRecordsHTTPSRecordData(TypedDict, total=False): +class HTTPSRecordData(TypedDict, total=False): priority: float """priority.""" @@ -365,11 +368,11 @@ class DNSRecordsHTTPSRecordData(TypedDict, total=False): """value.""" -class DNSRecordsLOCRecord(TypedDict, total=False): +class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsLOCRecordData] + data: Required[LOCRecordData] """Components of a LOC record.""" name: Required[str] @@ -384,10 +387,10 @@ class DNSRecordsLOCRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -395,7 +398,7 @@ class DNSRecordsLOCRecord(TypedDict, total=False): """ -class DNSRecordsLOCRecordData(TypedDict, total=False): +class LOCRecordData(TypedDict, total=False): altitude: float """Altitude of location in meters.""" @@ -433,7 +436,7 @@ class DNSRecordsLOCRecordData(TypedDict, total=False): """Size of location in meters.""" -class DNSRecordsMXRecord(TypedDict, total=False): +class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -458,10 +461,10 @@ class DNSRecordsMXRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -469,11 +472,11 @@ class DNSRecordsMXRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecord(TypedDict, total=False): +class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsNAPTRRecordData] + data: Required[NAPTRRecordData] """Components of a NAPTR record.""" name: Required[str] @@ -488,10 +491,10 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -499,7 +502,7 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecordData(TypedDict, total=False): +class NAPTRRecordData(TypedDict, total=False): flags: str """Flags.""" @@ -519,7 +522,7 @@ class DNSRecordsNAPTRRecordData(TypedDict, total=False): """Service.""" -class DNSRecordsNSRecord(TypedDict, total=False): +class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -538,10 +541,10 @@ class DNSRecordsNSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -549,7 +552,7 @@ class DNSRecordsNSRecord(TypedDict, total=False): """ -class DNSRecordsPTRRecord(TypedDict, total=False): +class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -568,10 +571,10 @@ class DNSRecordsPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -579,11 +582,11 @@ class DNSRecordsPTRRecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecord(TypedDict, total=False): +class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSMIMEARecordData] + data: Required[SMIMEARecordData] """Components of a SMIMEA record.""" name: Required[str] @@ -598,10 +601,10 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -609,7 +612,7 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecordData(TypedDict, total=False): +class SMIMEARecordData(TypedDict, total=False): certificate: str """Certificate.""" @@ -623,11 +626,11 @@ class DNSRecordsSMIMEARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsSRVRecord(TypedDict, total=False): +class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSRVRecordData] + data: Required[SRVRecordData] """Components of a SRV record.""" name: Required[str] @@ -646,10 +649,10 @@ class DNSRecordsSRVRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -657,7 +660,7 @@ class DNSRecordsSRVRecord(TypedDict, total=False): """ -class DNSRecordsSRVRecordData(TypedDict, total=False): +class SRVRecordData(TypedDict, total=False): name: str """A valid hostname. @@ -696,11 +699,11 @@ class DNSRecordsSRVRecordData(TypedDict, total=False): """The record weight.""" -class DNSRecordsSSHFPRecord(TypedDict, total=False): +class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSSHFPRecordData] + data: Required[SSHFPRecordData] """Components of a SSHFP record.""" name: Required[str] @@ -715,10 +718,10 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -726,7 +729,7 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): """ -class DNSRecordsSSHFPRecordData(TypedDict, total=False): +class SSHFPRecordData(TypedDict, total=False): algorithm: float """algorithm.""" @@ -737,11 +740,11 @@ class DNSRecordsSSHFPRecordData(TypedDict, total=False): """type.""" -class DNSRecordsSVCBRecord(TypedDict, total=False): +class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSVCBRecordData] + data: Required[SVCBRecordData] """Components of a SVCB record.""" name: Required[str] @@ -756,10 +759,10 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -767,7 +770,7 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): """ -class DNSRecordsSVCBRecordData(TypedDict, total=False): +class SVCBRecordData(TypedDict, total=False): priority: float """priority.""" @@ -778,11 +781,11 @@ class DNSRecordsSVCBRecordData(TypedDict, total=False): """value.""" -class DNSRecordsTLSARecord(TypedDict, total=False): +class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsTLSARecordData] + data: Required[TLSARecordData] """Components of a TLSA record.""" name: Required[str] @@ -797,10 +800,10 @@ class DNSRecordsTLSARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -808,7 +811,7 @@ class DNSRecordsTLSARecord(TypedDict, total=False): """ -class DNSRecordsTLSARecordData(TypedDict, total=False): +class TLSARecordData(TypedDict, total=False): certificate: str """certificate.""" @@ -822,7 +825,7 @@ class DNSRecordsTLSARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsTXTRecord(TypedDict, total=False): +class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -841,10 +844,10 @@ class DNSRecordsTXTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -852,11 +855,11 @@ class DNSRecordsTXTRecord(TypedDict, total=False): """ -class DNSRecordsURIRecord(TypedDict, total=False): +class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsURIRecordData] + data: Required[URIRecordData] """Components of a URI record.""" name: Required[str] @@ -877,10 +880,10 @@ class DNSRecordsURIRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -888,7 +891,7 @@ class DNSRecordsURIRecord(TypedDict, total=False): """ -class DNSRecordsURIRecordData(TypedDict, total=False): +class URIRecordData(TypedDict, total=False): content: str """The record content.""" @@ -897,24 +900,24 @@ class DNSRecordsURIRecordData(TypedDict, total=False): RecordEditParams = Union[ - DNSRecordsARecord, - DNSRecordsAAAARecord, - DNSRecordsCAARecord, - DNSRecordsCERTRecord, - DNSRecordsCNAMERecord, - DNSRecordsDNSKEYRecord, - DNSRecordsDSRecord, - DNSRecordsHTTPSRecord, - DNSRecordsLOCRecord, - DNSRecordsMXRecord, - DNSRecordsNAPTRRecord, - DNSRecordsNSRecord, - DNSRecordsPTRRecord, - DNSRecordsSMIMEARecord, - DNSRecordsSRVRecord, - DNSRecordsSSHFPRecord, - DNSRecordsSVCBRecord, - DNSRecordsTLSARecord, - DNSRecordsTXTRecord, - DNSRecordsURIRecord, + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, ] diff --git a/src/cloudflare/types/dns/record_tags_item.py b/src/cloudflare/types/dns/record_tags_item.py new file mode 100644 index 00000000000..faf62397593 --- /dev/null +++ b/src/cloudflare/types/dns/record_tags_item.py @@ -0,0 +1,6 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + +__all__ = ["RecordTagsItem"] + +RecordTagsItem = str diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py index e1130ce0ace..e6024b23a29 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -5,45 +5,48 @@ from typing import List, Union from typing_extensions import Literal, Required, TypedDict +from .ttl_param import TTLParam +from .record_tags_item import RecordTagsItem + __all__ = [ "RecordUpdateParams", - "DNSRecordsARecord", - "DNSRecordsAAAARecord", - "DNSRecordsCAARecord", - "DNSRecordsCAARecordData", - "DNSRecordsCERTRecord", - "DNSRecordsCERTRecordData", - "DNSRecordsCNAMERecord", - "DNSRecordsDNSKEYRecord", - "DNSRecordsDNSKEYRecordData", - "DNSRecordsDSRecord", - "DNSRecordsDSRecordData", - "DNSRecordsHTTPSRecord", - "DNSRecordsHTTPSRecordData", - "DNSRecordsLOCRecord", - "DNSRecordsLOCRecordData", - "DNSRecordsMXRecord", - "DNSRecordsNAPTRRecord", - "DNSRecordsNAPTRRecordData", - "DNSRecordsNSRecord", - "DNSRecordsPTRRecord", - "DNSRecordsSMIMEARecord", - "DNSRecordsSMIMEARecordData", - "DNSRecordsSRVRecord", - "DNSRecordsSRVRecordData", - "DNSRecordsSSHFPRecord", - "DNSRecordsSSHFPRecordData", - "DNSRecordsSVCBRecord", - "DNSRecordsSVCBRecordData", - "DNSRecordsTLSARecord", - "DNSRecordsTLSARecordData", - "DNSRecordsTXTRecord", - "DNSRecordsURIRecord", - "DNSRecordsURIRecordData", + "ARecord", + "AAAARecord", + "CAARecord", + "CAARecordData", + "CERTRecord", + "CERTRecordData", + "CNAMERecord", + "DNSKEYRecord", + "DNSKEYRecordData", + "DSRecord", + "DSRecordData", + "HTTPSRecord", + "HTTPSRecordData", + "LOCRecord", + "LOCRecordData", + "MXRecord", + "NAPTRRecord", + "NAPTRRecordData", + "NSRecord", + "PTRRecord", + "SMIMEARecord", + "SMIMEARecordData", + "SRVRecord", + "SRVRecordData", + "SSHFPRecord", + "SSHFPRecordData", + "SVCBRecord", + "SVCBRecordData", + "TLSARecord", + "TLSARecordData", + "TXTRecord", + "URIRecord", + "URIRecordData", ] -class DNSRecordsARecord(TypedDict, total=False): +class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -68,10 +71,10 @@ class DNSRecordsARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -79,7 +82,7 @@ class DNSRecordsARecord(TypedDict, total=False): """ -class DNSRecordsAAAARecord(TypedDict, total=False): +class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -104,10 +107,10 @@ class DNSRecordsAAAARecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -115,11 +118,11 @@ class DNSRecordsAAAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecord(TypedDict, total=False): +class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCAARecordData] + data: Required[CAARecordData] """Components of a CAA record.""" name: Required[str] @@ -134,10 +137,10 @@ class DNSRecordsCAARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -145,7 +148,7 @@ class DNSRecordsCAARecord(TypedDict, total=False): """ -class DNSRecordsCAARecordData(TypedDict, total=False): +class CAARecordData(TypedDict, total=False): flags: float """Flags for the CAA record.""" @@ -156,11 +159,11 @@ class DNSRecordsCAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" -class DNSRecordsCERTRecord(TypedDict, total=False): +class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsCERTRecordData] + data: Required[CERTRecordData] """Components of a CERT record.""" name: Required[str] @@ -175,10 +178,10 @@ class DNSRecordsCERTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -186,7 +189,7 @@ class DNSRecordsCERTRecord(TypedDict, total=False): """ -class DNSRecordsCERTRecordData(TypedDict, total=False): +class CERTRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -200,7 +203,7 @@ class DNSRecordsCERTRecordData(TypedDict, total=False): """Type.""" -class DNSRecordsCNAMERecord(TypedDict, total=False): +class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -225,10 +228,10 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): Cloudflare. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -236,11 +239,11 @@ class DNSRecordsCNAMERecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecord(TypedDict, total=False): +class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDNSKEYRecordData] + data: Required[DNSKEYRecordData] """Components of a DNSKEY record.""" name: Required[str] @@ -255,10 +258,10 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -266,7 +269,7 @@ class DNSRecordsDNSKEYRecord(TypedDict, total=False): """ -class DNSRecordsDNSKEYRecordData(TypedDict, total=False): +class DNSKEYRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -280,11 +283,11 @@ class DNSRecordsDNSKEYRecordData(TypedDict, total=False): """Public Key.""" -class DNSRecordsDSRecord(TypedDict, total=False): +class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsDSRecordData] + data: Required[DSRecordData] """Components of a DS record.""" name: Required[str] @@ -299,10 +302,10 @@ class DNSRecordsDSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -310,7 +313,7 @@ class DNSRecordsDSRecord(TypedDict, total=False): """ -class DNSRecordsDSRecordData(TypedDict, total=False): +class DSRecordData(TypedDict, total=False): algorithm: float """Algorithm.""" @@ -324,11 +327,11 @@ class DNSRecordsDSRecordData(TypedDict, total=False): """Key Tag.""" -class DNSRecordsHTTPSRecord(TypedDict, total=False): +class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsHTTPSRecordData] + data: Required[HTTPSRecordData] """Components of a HTTPS record.""" name: Required[str] @@ -343,10 +346,10 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -354,7 +357,7 @@ class DNSRecordsHTTPSRecord(TypedDict, total=False): """ -class DNSRecordsHTTPSRecordData(TypedDict, total=False): +class HTTPSRecordData(TypedDict, total=False): priority: float """priority.""" @@ -365,11 +368,11 @@ class DNSRecordsHTTPSRecordData(TypedDict, total=False): """value.""" -class DNSRecordsLOCRecord(TypedDict, total=False): +class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsLOCRecordData] + data: Required[LOCRecordData] """Components of a LOC record.""" name: Required[str] @@ -384,10 +387,10 @@ class DNSRecordsLOCRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -395,7 +398,7 @@ class DNSRecordsLOCRecord(TypedDict, total=False): """ -class DNSRecordsLOCRecordData(TypedDict, total=False): +class LOCRecordData(TypedDict, total=False): altitude: float """Altitude of location in meters.""" @@ -433,7 +436,7 @@ class DNSRecordsLOCRecordData(TypedDict, total=False): """Size of location in meters.""" -class DNSRecordsMXRecord(TypedDict, total=False): +class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -458,10 +461,10 @@ class DNSRecordsMXRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -469,11 +472,11 @@ class DNSRecordsMXRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecord(TypedDict, total=False): +class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsNAPTRRecordData] + data: Required[NAPTRRecordData] """Components of a NAPTR record.""" name: Required[str] @@ -488,10 +491,10 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -499,7 +502,7 @@ class DNSRecordsNAPTRRecord(TypedDict, total=False): """ -class DNSRecordsNAPTRRecordData(TypedDict, total=False): +class NAPTRRecordData(TypedDict, total=False): flags: str """Flags.""" @@ -519,7 +522,7 @@ class DNSRecordsNAPTRRecordData(TypedDict, total=False): """Service.""" -class DNSRecordsNSRecord(TypedDict, total=False): +class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -538,10 +541,10 @@ class DNSRecordsNSRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -549,7 +552,7 @@ class DNSRecordsNSRecord(TypedDict, total=False): """ -class DNSRecordsPTRRecord(TypedDict, total=False): +class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -568,10 +571,10 @@ class DNSRecordsPTRRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -579,11 +582,11 @@ class DNSRecordsPTRRecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecord(TypedDict, total=False): +class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSMIMEARecordData] + data: Required[SMIMEARecordData] """Components of a SMIMEA record.""" name: Required[str] @@ -598,10 +601,10 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -609,7 +612,7 @@ class DNSRecordsSMIMEARecord(TypedDict, total=False): """ -class DNSRecordsSMIMEARecordData(TypedDict, total=False): +class SMIMEARecordData(TypedDict, total=False): certificate: str """Certificate.""" @@ -623,11 +626,11 @@ class DNSRecordsSMIMEARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsSRVRecord(TypedDict, total=False): +class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSRVRecordData] + data: Required[SRVRecordData] """Components of a SRV record.""" name: Required[str] @@ -646,10 +649,10 @@ class DNSRecordsSRVRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -657,7 +660,7 @@ class DNSRecordsSRVRecord(TypedDict, total=False): """ -class DNSRecordsSRVRecordData(TypedDict, total=False): +class SRVRecordData(TypedDict, total=False): name: str """A valid hostname. @@ -696,11 +699,11 @@ class DNSRecordsSRVRecordData(TypedDict, total=False): """The record weight.""" -class DNSRecordsSSHFPRecord(TypedDict, total=False): +class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSSHFPRecordData] + data: Required[SSHFPRecordData] """Components of a SSHFP record.""" name: Required[str] @@ -715,10 +718,10 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -726,7 +729,7 @@ class DNSRecordsSSHFPRecord(TypedDict, total=False): """ -class DNSRecordsSSHFPRecordData(TypedDict, total=False): +class SSHFPRecordData(TypedDict, total=False): algorithm: float """algorithm.""" @@ -737,11 +740,11 @@ class DNSRecordsSSHFPRecordData(TypedDict, total=False): """type.""" -class DNSRecordsSVCBRecord(TypedDict, total=False): +class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsSVCBRecordData] + data: Required[SVCBRecordData] """Components of a SVCB record.""" name: Required[str] @@ -756,10 +759,10 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -767,7 +770,7 @@ class DNSRecordsSVCBRecord(TypedDict, total=False): """ -class DNSRecordsSVCBRecordData(TypedDict, total=False): +class SVCBRecordData(TypedDict, total=False): priority: float """priority.""" @@ -778,11 +781,11 @@ class DNSRecordsSVCBRecordData(TypedDict, total=False): """value.""" -class DNSRecordsTLSARecord(TypedDict, total=False): +class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsTLSARecordData] + data: Required[TLSARecordData] """Components of a TLSA record.""" name: Required[str] @@ -797,10 +800,10 @@ class DNSRecordsTLSARecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -808,7 +811,7 @@ class DNSRecordsTLSARecord(TypedDict, total=False): """ -class DNSRecordsTLSARecordData(TypedDict, total=False): +class TLSARecordData(TypedDict, total=False): certificate: str """certificate.""" @@ -822,7 +825,7 @@ class DNSRecordsTLSARecordData(TypedDict, total=False): """Usage.""" -class DNSRecordsTXTRecord(TypedDict, total=False): +class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -841,10 +844,10 @@ class DNSRecordsTXTRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -852,11 +855,11 @@ class DNSRecordsTXTRecord(TypedDict, total=False): """ -class DNSRecordsURIRecord(TypedDict, total=False): +class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - data: Required[DNSRecordsURIRecordData] + data: Required[URIRecordData] """Components of a URI record.""" name: Required[str] @@ -877,10 +880,10 @@ class DNSRecordsURIRecord(TypedDict, total=False): This field has no effect on DNS responses. """ - tags: List[str] + tags: List[RecordTagsItem] """Custom tags for the DNS record. This field has no effect on DNS responses.""" - ttl: Union[float, Literal[1]] + ttl: TTLParam """Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the @@ -888,7 +891,7 @@ class DNSRecordsURIRecord(TypedDict, total=False): """ -class DNSRecordsURIRecordData(TypedDict, total=False): +class URIRecordData(TypedDict, total=False): content: str """The record content.""" @@ -897,24 +900,24 @@ class DNSRecordsURIRecordData(TypedDict, total=False): RecordUpdateParams = Union[ - DNSRecordsARecord, - DNSRecordsAAAARecord, - DNSRecordsCAARecord, - DNSRecordsCERTRecord, - DNSRecordsCNAMERecord, - DNSRecordsDNSKEYRecord, - DNSRecordsDSRecord, - DNSRecordsHTTPSRecord, - DNSRecordsLOCRecord, - DNSRecordsMXRecord, - DNSRecordsNAPTRRecord, - DNSRecordsNSRecord, - DNSRecordsPTRRecord, - DNSRecordsSMIMEARecord, - DNSRecordsSRVRecord, - DNSRecordsSSHFPRecord, - DNSRecordsSVCBRecord, - DNSRecordsTLSARecord, - DNSRecordsTXTRecord, - DNSRecordsURIRecord, + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, ] diff --git a/src/cloudflare/types/dns/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py new file mode 100644 index 00000000000..1fb2faa2fd1 --- /dev/null +++ b/src/cloudflare/types/dns/smimea_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["SMIMEARecord", "Data"] + + +class Data(BaseModel): + certificate: Optional[str] = None + """Certificate.""" + + matching_type: Optional[float] = None + """Matching Type.""" + + selector: Optional[float] = None + """Selector.""" + + usage: Optional[float] = None + """Usage.""" + + +class SMIMEARecord(BaseModel): + data: Data + """Components of a SMIMEA record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["SMIMEA"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted SMIMEA content. See 'data' to set SMIMEA properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..6a411dd9a60 --- /dev/null +++ b/src/cloudflare/types/dns/srv_record.py @@ -0,0 +1,114 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["SRVRecord", "Data"] + + +class Data(BaseModel): + name: Optional[str] = None + """A valid hostname. + + Deprecated in favor of the regular 'name' outside the data map. This data map + field represents the remainder of the full 'name' after the service and + protocol. + """ + + port: Optional[float] = None + """The port of the service.""" + + priority: Optional[float] = None + """Required for MX, SRV and URI records; unused by other record types. + + Records with lower priorities are preferred. + """ + + proto: Optional[str] = None + """A valid protocol, prefixed with an underscore. + + Deprecated in favor of the regular 'name' outside the data map. This data map + field normally represents the second label of that 'name'. + """ + + service: Optional[str] = None + """A service type, prefixed with an underscore. + + Deprecated in favor of the regular 'name' outside the data map. This data map + field normally represents the first label of that 'name'. + """ + + target: Optional[str] = None + """A valid hostname.""" + + weight: Optional[float] = None + """The record weight.""" + + +class SRVRecord(BaseModel): + data: Data + """Components of a SRV record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode. + + For SRV records, the first label is normally a service and the second a protocol + name, each starting with an underscore. + """ + + type: Literal["SRV"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Priority, weight, port, and SRV target. + + See 'data' for setting the individual component values. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..d31385e414c --- /dev/null +++ b/src/cloudflare/types/dns/sshfp_record.py @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["SSHFPRecord", "Data"] + + +class Data(BaseModel): + algorithm: Optional[float] = None + """algorithm.""" + + fingerprint: Optional[str] = None + """fingerprint.""" + + type: Optional[float] = None + """type.""" + + +class SSHFPRecord(BaseModel): + data: Data + """Components of a SSHFP record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["SSHFP"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted SSHFP content. See 'data' to set SSHFP properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..1cbf3e2f2ca --- /dev/null +++ b/src/cloudflare/types/dns/svcb_record.py @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["SVCBRecord", "Data"] + + +class Data(BaseModel): + priority: Optional[float] = None + """priority.""" + + target: Optional[str] = None + """target.""" + + value: Optional[str] = None + """value.""" + + +class SVCBRecord(BaseModel): + data: Data + """Components of a SVCB record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["SVCB"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted SVCB content. See 'data' to set SVCB properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..ae7990ce6c5 --- /dev/null +++ b/src/cloudflare/types/dns/tlsa_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["TLSARecord", "Data"] + + +class Data(BaseModel): + certificate: Optional[str] = None + """certificate.""" + + matching_type: Optional[float] = None + """Matching Type.""" + + selector: Optional[float] = None + """Selector.""" + + usage: Optional[float] = None + """Usage.""" + + +class TLSARecord(BaseModel): + data: Data + """Components of a TLSA record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["TLSA"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted TLSA content. See 'data' to set TLSA properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + zone_id: Optional[str] = None + """Identifier""" + + zone_name: Optional[str] = None + """The domain of the record.""" diff --git a/src/cloudflare/types/dns/ttl.py b/src/cloudflare/types/dns/ttl.py new file mode 100644 index 00000000000..0fdce1c28c8 --- /dev/null +++ b/src/cloudflare/types/dns/ttl.py @@ -0,0 +1,8 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Literal + +__all__ = ["TTL"] + +TTL = Union[float, Literal[1]] diff --git a/src/cloudflare/types/dns/ttl_param.py b/src/cloudflare/types/dns/ttl_param.py new file mode 100644 index 00000000000..aab7e93732e --- /dev/null +++ b/src/cloudflare/types/dns/ttl_param.py @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal + +__all__ = ["TTLParam"] + +TTLParam = Union[float, Literal[1]] diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py new file mode 100644 index 00000000000..9dfa1cf24f4 --- /dev/null +++ b/src/cloudflare/types/dns/txt_record.py @@ -0,0 +1,65 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["TXTRecord"] + + +class TXTRecord(BaseModel): + content: str + """Text content for the record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + type: Literal["TXT"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 new file mode 100644 index 00000000000..9e665d096cf --- /dev/null +++ b/src/cloudflare/types/dns/uri_record.py @@ -0,0 +1,82 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from datetime import datetime +from typing_extensions import Literal + +from .ttl import TTL +from ..._models import BaseModel +from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb + +__all__ = ["URIRecord", "Data"] + + +class Data(BaseModel): + content: Optional[str] = None + """The record content.""" + + weight: Optional[float] = None + """The record weight.""" + + +class URIRecord(BaseModel): + data: Data + """Components of a URI record.""" + + name: str + """DNS record name (or @ for the zone apex) in Punycode.""" + + priority: float + """Required for MX, SRV and URI records; unused by other record types. + + Records with lower priorities are preferred. + """ + + type: Literal["URI"] + """Record type.""" + + id: Optional[str] = None + """Identifier""" + + comment: Optional[str] = None + """Comments or notes about the DNS record. + + This field has no effect on DNS responses. + """ + + content: Optional[str] = None + """Formatted URI content. See 'data' to set URI properties.""" + + created_on: Optional[datetime] = None + """When the record was created.""" + + locked: Optional[bool] = None + """ + Whether this record can be modified/deleted (true means it's managed by + Cloudflare). + """ + + meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None + """Extra Cloudflare-specific information about the record.""" + + modified_on: Optional[datetime] = None + """When the record was last modified.""" + + proxiable: Optional[bool] = None + """Whether the record can be proxied by Cloudflare or not.""" + + tags: Optional[List[str]] = None + """Custom tags for the DNS record. This field has no effect on DNS responses.""" + + ttl: Optional[TTL] = None + """Time To Live (TTL) of the DNS record in seconds. + + Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the + minimum reduced to 30 for Enterprise zones. + """ + + 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 90b62501c5c..3967ac88663 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -10,7 +10,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type from cloudflare.types.dns import ( - DNSRecord, + Record, RecordScanResponse, RecordDeleteResponse, RecordImportResponse, @@ -32,7 +32,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None: name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -47,7 +47,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -62,7 +62,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -77,7 +77,7 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -101,7 +101,7 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None: name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -116,7 +116,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -131,7 +131,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -146,7 +146,7 @@ def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -170,7 +170,7 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None: name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -188,7 +188,7 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -203,7 +203,7 @@ def test_raw_response_create_overload_3(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -218,7 +218,7 @@ def test_streaming_response_create_overload_3(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -242,7 +242,7 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None: name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -261,7 +261,7 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -276,7 +276,7 @@ def test_raw_response_create_overload_4(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -291,7 +291,7 @@ def test_streaming_response_create_overload_4(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -315,7 +315,7 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None: name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -330,7 +330,7 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -345,7 +345,7 @@ def test_raw_response_create_overload_5(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -360,7 +360,7 @@ def test_streaming_response_create_overload_5(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -384,7 +384,7 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None: name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -403,7 +403,7 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -418,7 +418,7 @@ def test_raw_response_create_overload_6(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -433,7 +433,7 @@ def test_streaming_response_create_overload_6(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -457,7 +457,7 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None: name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -476,7 +476,7 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -491,7 +491,7 @@ def test_raw_response_create_overload_7(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -506,7 +506,7 @@ def test_streaming_response_create_overload_7(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -530,7 +530,7 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None: name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -548,7 +548,7 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -563,7 +563,7 @@ def test_raw_response_create_overload_8(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -578,7 +578,7 @@ def test_streaming_response_create_overload_8(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -602,7 +602,7 @@ def test_method_create_overload_9(self, client: Cloudflare) -> None: name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -629,7 +629,7 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -644,7 +644,7 @@ def test_raw_response_create_overload_9(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -659,7 +659,7 @@ def test_streaming_response_create_overload_9(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -684,7 +684,7 @@ def test_method_create_overload_10(self, client: Cloudflare) -> None: priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -699,7 +699,7 @@ def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -715,7 +715,7 @@ def test_raw_response_create_overload_10(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -731,7 +731,7 @@ def test_streaming_response_create_overload_10(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -756,7 +756,7 @@ def test_method_create_overload_11(self, client: Cloudflare) -> None: name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -777,7 +777,7 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -792,7 +792,7 @@ def test_raw_response_create_overload_11(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -807,7 +807,7 @@ def test_streaming_response_create_overload_11(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -831,7 +831,7 @@ def test_method_create_overload_12(self, client: Cloudflare) -> None: name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -845,7 +845,7 @@ def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -860,7 +860,7 @@ def test_raw_response_create_overload_12(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -875,7 +875,7 @@ def test_streaming_response_create_overload_12(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -899,7 +899,7 @@ def test_method_create_overload_13(self, client: Cloudflare) -> None: name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -913,7 +913,7 @@ def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -928,7 +928,7 @@ def test_raw_response_create_overload_13(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -943,7 +943,7 @@ def test_streaming_response_create_overload_13(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -967,7 +967,7 @@ def test_method_create_overload_14(self, client: Cloudflare) -> None: name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -986,7 +986,7 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1001,7 +1001,7 @@ def test_raw_response_create_overload_14(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1016,7 +1016,7 @@ def test_streaming_response_create_overload_14(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1040,7 +1040,7 @@ def test_method_create_overload_15(self, client: Cloudflare) -> None: name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1062,7 +1062,7 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1077,7 +1077,7 @@ def test_raw_response_create_overload_15(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1092,7 +1092,7 @@ def test_streaming_response_create_overload_15(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1116,7 +1116,7 @@ def test_method_create_overload_16(self, client: Cloudflare) -> None: name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1134,7 +1134,7 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1149,7 +1149,7 @@ def test_raw_response_create_overload_16(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1164,7 +1164,7 @@ def test_streaming_response_create_overload_16(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1188,7 +1188,7 @@ def test_method_create_overload_17(self, client: Cloudflare) -> None: name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1206,7 +1206,7 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1221,7 +1221,7 @@ def test_raw_response_create_overload_17(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1236,7 +1236,7 @@ def test_streaming_response_create_overload_17(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1260,7 +1260,7 @@ def test_method_create_overload_18(self, client: Cloudflare) -> None: name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1279,7 +1279,7 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1294,7 +1294,7 @@ def test_raw_response_create_overload_18(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1309,7 +1309,7 @@ def test_streaming_response_create_overload_18(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1333,7 +1333,7 @@ def test_method_create_overload_19(self, client: Cloudflare) -> None: name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1347,7 +1347,7 @@ def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1362,7 +1362,7 @@ def test_raw_response_create_overload_19(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1377,7 +1377,7 @@ def test_streaming_response_create_overload_19(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1402,7 +1402,7 @@ def test_method_create_overload_20(self, client: Cloudflare) -> None: priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1420,7 +1420,7 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1436,7 +1436,7 @@ def test_raw_response_create_overload_20(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1452,7 +1452,7 @@ def test_streaming_response_create_overload_20(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1478,7 +1478,7 @@ def test_method_update_overload_1(self, client: Cloudflare) -> None: name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1494,7 +1494,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1510,7 +1510,7 @@ def test_raw_response_update_overload_1(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1526,7 +1526,7 @@ def test_streaming_response_update_overload_1(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1561,7 +1561,7 @@ def test_method_update_overload_2(self, client: Cloudflare) -> None: name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1577,7 +1577,7 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1593,7 +1593,7 @@ def test_raw_response_update_overload_2(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1609,7 +1609,7 @@ def test_streaming_response_update_overload_2(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1644,7 +1644,7 @@ def test_method_update_overload_3(self, client: Cloudflare) -> None: name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1663,7 +1663,7 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1679,7 +1679,7 @@ def test_raw_response_update_overload_3(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1695,7 +1695,7 @@ def test_streaming_response_update_overload_3(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1730,7 +1730,7 @@ def test_method_update_overload_4(self, client: Cloudflare) -> None: name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1750,7 +1750,7 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1766,7 +1766,7 @@ def test_raw_response_update_overload_4(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1782,7 +1782,7 @@ def test_streaming_response_update_overload_4(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1817,7 +1817,7 @@ def test_method_update_overload_5(self, client: Cloudflare) -> None: name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1833,7 +1833,7 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1849,7 +1849,7 @@ def test_raw_response_update_overload_5(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1865,7 +1865,7 @@ def test_streaming_response_update_overload_5(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1900,7 +1900,7 @@ def test_method_update_overload_6(self, client: Cloudflare) -> None: name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1920,7 +1920,7 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1936,7 +1936,7 @@ def test_raw_response_update_overload_6(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -1952,7 +1952,7 @@ def test_streaming_response_update_overload_6(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -1987,7 +1987,7 @@ def test_method_update_overload_7(self, client: Cloudflare) -> None: name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2007,7 +2007,7 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2023,7 +2023,7 @@ def test_raw_response_update_overload_7(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2039,7 +2039,7 @@ def test_streaming_response_update_overload_7(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2074,7 +2074,7 @@ def test_method_update_overload_8(self, client: Cloudflare) -> None: name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2093,7 +2093,7 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2109,7 +2109,7 @@ def test_raw_response_update_overload_8(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2125,7 +2125,7 @@ def test_streaming_response_update_overload_8(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2160,7 +2160,7 @@ def test_method_update_overload_9(self, client: Cloudflare) -> None: name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2188,7 +2188,7 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2204,7 +2204,7 @@ def test_raw_response_update_overload_9(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2220,7 +2220,7 @@ def test_streaming_response_update_overload_9(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2256,7 +2256,7 @@ def test_method_update_overload_10(self, client: Cloudflare) -> None: priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2272,7 +2272,7 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2289,7 +2289,7 @@ def test_raw_response_update_overload_10(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2306,7 +2306,7 @@ def test_streaming_response_update_overload_10(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2343,7 +2343,7 @@ def test_method_update_overload_11(self, client: Cloudflare) -> None: name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2365,7 +2365,7 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2381,7 +2381,7 @@ def test_raw_response_update_overload_11(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2397,7 +2397,7 @@ def test_streaming_response_update_overload_11(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2432,7 +2432,7 @@ def test_method_update_overload_12(self, client: Cloudflare) -> None: name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2447,7 +2447,7 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2463,7 +2463,7 @@ def test_raw_response_update_overload_12(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2479,7 +2479,7 @@ def test_streaming_response_update_overload_12(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2514,7 +2514,7 @@ def test_method_update_overload_13(self, client: Cloudflare) -> None: name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2529,7 +2529,7 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2545,7 +2545,7 @@ def test_raw_response_update_overload_13(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2561,7 +2561,7 @@ def test_streaming_response_update_overload_13(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2596,7 +2596,7 @@ def test_method_update_overload_14(self, client: Cloudflare) -> None: name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2616,7 +2616,7 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2632,7 +2632,7 @@ def test_raw_response_update_overload_14(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2648,7 +2648,7 @@ def test_streaming_response_update_overload_14(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2683,7 +2683,7 @@ def test_method_update_overload_15(self, client: Cloudflare) -> None: name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2706,7 +2706,7 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2722,7 +2722,7 @@ def test_raw_response_update_overload_15(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2738,7 +2738,7 @@ def test_streaming_response_update_overload_15(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2773,7 +2773,7 @@ def test_method_update_overload_16(self, client: Cloudflare) -> None: name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2792,7 +2792,7 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2808,7 +2808,7 @@ def test_raw_response_update_overload_16(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2824,7 +2824,7 @@ def test_streaming_response_update_overload_16(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2859,7 +2859,7 @@ def test_method_update_overload_17(self, client: Cloudflare) -> None: name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2878,7 +2878,7 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2894,7 +2894,7 @@ def test_raw_response_update_overload_17(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2910,7 +2910,7 @@ def test_streaming_response_update_overload_17(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -2945,7 +2945,7 @@ def test_method_update_overload_18(self, client: Cloudflare) -> None: name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2965,7 +2965,7 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2981,7 +2981,7 @@ def test_raw_response_update_overload_18(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -2997,7 +2997,7 @@ def test_streaming_response_update_overload_18(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3032,7 +3032,7 @@ def test_method_update_overload_19(self, client: Cloudflare) -> None: name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3047,7 +3047,7 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3063,7 +3063,7 @@ def test_raw_response_update_overload_19(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3079,7 +3079,7 @@ def test_streaming_response_update_overload_19(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3115,7 +3115,7 @@ def test_method_update_overload_20(self, client: Cloudflare) -> None: priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3134,7 +3134,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3151,7 +3151,7 @@ def test_raw_response_update_overload_20(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3168,7 +3168,7 @@ def test_streaming_response_update_overload_20(self, client: Cloudflare) -> None assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3201,7 +3201,7 @@ def test_method_list(self, client: Cloudflare) -> None: record = client.dns.records.list( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) - assert_matches_type(SyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(SyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3236,7 +3236,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None: tag_match="any", type="A", ) - assert_matches_type(SyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(SyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3248,7 +3248,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(SyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(SyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3260,7 +3260,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(SyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(SyncV4PagePaginationArray[Record], record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3339,7 +3339,7 @@ def test_method_edit_overload_1(self, client: Cloudflare) -> None: name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3355,7 +3355,7 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3371,7 +3371,7 @@ def test_raw_response_edit_overload_1(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3387,7 +3387,7 @@ def test_streaming_response_edit_overload_1(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3422,7 +3422,7 @@ def test_method_edit_overload_2(self, client: Cloudflare) -> None: name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3438,7 +3438,7 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3454,7 +3454,7 @@ def test_raw_response_edit_overload_2(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3470,7 +3470,7 @@ def test_streaming_response_edit_overload_2(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3505,7 +3505,7 @@ def test_method_edit_overload_3(self, client: Cloudflare) -> None: name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3524,7 +3524,7 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3540,7 +3540,7 @@ def test_raw_response_edit_overload_3(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3556,7 +3556,7 @@ def test_streaming_response_edit_overload_3(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3591,7 +3591,7 @@ def test_method_edit_overload_4(self, client: Cloudflare) -> None: name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3611,7 +3611,7 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3627,7 +3627,7 @@ def test_raw_response_edit_overload_4(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3643,7 +3643,7 @@ def test_streaming_response_edit_overload_4(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3678,7 +3678,7 @@ def test_method_edit_overload_5(self, client: Cloudflare) -> None: name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3694,7 +3694,7 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3710,7 +3710,7 @@ def test_raw_response_edit_overload_5(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3726,7 +3726,7 @@ def test_streaming_response_edit_overload_5(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3761,7 +3761,7 @@ def test_method_edit_overload_6(self, client: Cloudflare) -> None: name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3781,7 +3781,7 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3797,7 +3797,7 @@ def test_raw_response_edit_overload_6(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3813,7 +3813,7 @@ def test_streaming_response_edit_overload_6(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3848,7 +3848,7 @@ def test_method_edit_overload_7(self, client: Cloudflare) -> None: name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3868,7 +3868,7 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3884,7 +3884,7 @@ def test_raw_response_edit_overload_7(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3900,7 +3900,7 @@ def test_streaming_response_edit_overload_7(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -3935,7 +3935,7 @@ def test_method_edit_overload_8(self, client: Cloudflare) -> None: name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3954,7 +3954,7 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3970,7 +3970,7 @@ def test_raw_response_edit_overload_8(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -3986,7 +3986,7 @@ def test_streaming_response_edit_overload_8(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4021,7 +4021,7 @@ def test_method_edit_overload_9(self, client: Cloudflare) -> None: name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4049,7 +4049,7 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4065,7 +4065,7 @@ def test_raw_response_edit_overload_9(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4081,7 +4081,7 @@ def test_streaming_response_edit_overload_9(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4117,7 +4117,7 @@ def test_method_edit_overload_10(self, client: Cloudflare) -> None: priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4133,7 +4133,7 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4150,7 +4150,7 @@ def test_raw_response_edit_overload_10(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4167,7 +4167,7 @@ def test_streaming_response_edit_overload_10(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4204,7 +4204,7 @@ def test_method_edit_overload_11(self, client: Cloudflare) -> None: name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4226,7 +4226,7 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4242,7 +4242,7 @@ def test_raw_response_edit_overload_11(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4258,7 +4258,7 @@ def test_streaming_response_edit_overload_11(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4293,7 +4293,7 @@ def test_method_edit_overload_12(self, client: Cloudflare) -> None: name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4308,7 +4308,7 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4324,7 +4324,7 @@ def test_raw_response_edit_overload_12(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4340,7 +4340,7 @@ def test_streaming_response_edit_overload_12(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4375,7 +4375,7 @@ def test_method_edit_overload_13(self, client: Cloudflare) -> None: name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4390,7 +4390,7 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4406,7 +4406,7 @@ def test_raw_response_edit_overload_13(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4422,7 +4422,7 @@ def test_streaming_response_edit_overload_13(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4457,7 +4457,7 @@ def test_method_edit_overload_14(self, client: Cloudflare) -> None: name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4477,7 +4477,7 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4493,7 +4493,7 @@ def test_raw_response_edit_overload_14(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4509,7 +4509,7 @@ def test_streaming_response_edit_overload_14(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4544,7 +4544,7 @@ def test_method_edit_overload_15(self, client: Cloudflare) -> None: name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4567,7 +4567,7 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4583,7 +4583,7 @@ def test_raw_response_edit_overload_15(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4599,7 +4599,7 @@ def test_streaming_response_edit_overload_15(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4634,7 +4634,7 @@ def test_method_edit_overload_16(self, client: Cloudflare) -> None: name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4653,7 +4653,7 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4669,7 +4669,7 @@ def test_raw_response_edit_overload_16(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4685,7 +4685,7 @@ def test_streaming_response_edit_overload_16(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4720,7 +4720,7 @@ def test_method_edit_overload_17(self, client: Cloudflare) -> None: name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4739,7 +4739,7 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4755,7 +4755,7 @@ def test_raw_response_edit_overload_17(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4771,7 +4771,7 @@ def test_streaming_response_edit_overload_17(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4806,7 +4806,7 @@ def test_method_edit_overload_18(self, client: Cloudflare) -> None: name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4826,7 +4826,7 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4842,7 +4842,7 @@ def test_raw_response_edit_overload_18(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4858,7 +4858,7 @@ def test_streaming_response_edit_overload_18(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4893,7 +4893,7 @@ def test_method_edit_overload_19(self, client: Cloudflare) -> None: name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4908,7 +4908,7 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4924,7 +4924,7 @@ def test_raw_response_edit_overload_19(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4940,7 +4940,7 @@ def test_streaming_response_edit_overload_19(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -4976,7 +4976,7 @@ def test_method_edit_overload_20(self, client: Cloudflare) -> None: priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -4995,7 +4995,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5012,7 +5012,7 @@ def test_raw_response_edit_overload_20(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5029,7 +5029,7 @@ def test_streaming_response_edit_overload_20(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5105,7 +5105,7 @@ def test_method_get(self, client: Cloudflare) -> None: "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5118,7 +5118,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5131,7 +5131,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5265,7 +5265,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5280,7 +5280,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5295,7 +5295,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5310,7 +5310,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5334,7 +5334,7 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5349,7 +5349,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5364,7 +5364,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5379,7 +5379,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5403,7 +5403,7 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) -> name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5421,7 +5421,7 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5436,7 +5436,7 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5451,7 +5451,7 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5475,7 +5475,7 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) -> name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5494,7 +5494,7 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5509,7 +5509,7 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5524,7 +5524,7 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5548,7 +5548,7 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) -> name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5563,7 +5563,7 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5578,7 +5578,7 @@ async def test_raw_response_create_overload_5(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5593,7 +5593,7 @@ async def test_streaming_response_create_overload_5(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5617,7 +5617,7 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) -> name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5636,7 +5636,7 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5651,7 +5651,7 @@ async def test_raw_response_create_overload_6(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5666,7 +5666,7 @@ async def test_streaming_response_create_overload_6(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5690,7 +5690,7 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) -> name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5709,7 +5709,7 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5724,7 +5724,7 @@ async def test_raw_response_create_overload_7(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5739,7 +5739,7 @@ async def test_streaming_response_create_overload_7(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5763,7 +5763,7 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) -> name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5781,7 +5781,7 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5796,7 +5796,7 @@ async def test_raw_response_create_overload_8(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5811,7 +5811,7 @@ async def test_streaming_response_create_overload_8(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5835,7 +5835,7 @@ async def test_method_create_overload_9(self, async_client: AsyncCloudflare) -> name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5862,7 +5862,7 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5877,7 +5877,7 @@ async def test_raw_response_create_overload_9(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5892,7 +5892,7 @@ async def test_streaming_response_create_overload_9(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5917,7 +5917,7 @@ async def test_method_create_overload_10(self, async_client: AsyncCloudflare) -> priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5932,7 +5932,7 @@ async def test_method_create_with_all_params_overload_10(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5948,7 +5948,7 @@ async def test_raw_response_create_overload_10(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -5964,7 +5964,7 @@ async def test_streaming_response_create_overload_10(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -5989,7 +5989,7 @@ async def test_method_create_overload_11(self, async_client: AsyncCloudflare) -> name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6010,7 +6010,7 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6025,7 +6025,7 @@ async def test_raw_response_create_overload_11(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6040,7 +6040,7 @@ async def test_streaming_response_create_overload_11(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6064,7 +6064,7 @@ async def test_method_create_overload_12(self, async_client: AsyncCloudflare) -> name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6078,7 +6078,7 @@ async def test_method_create_with_all_params_overload_12(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6093,7 +6093,7 @@ async def test_raw_response_create_overload_12(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6108,7 +6108,7 @@ async def test_streaming_response_create_overload_12(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6132,7 +6132,7 @@ async def test_method_create_overload_13(self, async_client: AsyncCloudflare) -> name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6146,7 +6146,7 @@ async def test_method_create_with_all_params_overload_13(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6161,7 +6161,7 @@ async def test_raw_response_create_overload_13(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6176,7 +6176,7 @@ async def test_streaming_response_create_overload_13(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6200,7 +6200,7 @@ async def test_method_create_overload_14(self, async_client: AsyncCloudflare) -> name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6219,7 +6219,7 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6234,7 +6234,7 @@ async def test_raw_response_create_overload_14(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6249,7 +6249,7 @@ async def test_streaming_response_create_overload_14(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6273,7 +6273,7 @@ async def test_method_create_overload_15(self, async_client: AsyncCloudflare) -> name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6295,7 +6295,7 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6310,7 +6310,7 @@ async def test_raw_response_create_overload_15(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6325,7 +6325,7 @@ async def test_streaming_response_create_overload_15(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6349,7 +6349,7 @@ async def test_method_create_overload_16(self, async_client: AsyncCloudflare) -> name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6367,7 +6367,7 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6382,7 +6382,7 @@ async def test_raw_response_create_overload_16(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6397,7 +6397,7 @@ async def test_streaming_response_create_overload_16(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6421,7 +6421,7 @@ async def test_method_create_overload_17(self, async_client: AsyncCloudflare) -> name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6439,7 +6439,7 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6454,7 +6454,7 @@ async def test_raw_response_create_overload_17(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6469,7 +6469,7 @@ async def test_streaming_response_create_overload_17(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6493,7 +6493,7 @@ async def test_method_create_overload_18(self, async_client: AsyncCloudflare) -> name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6512,7 +6512,7 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6527,7 +6527,7 @@ async def test_raw_response_create_overload_18(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6542,7 +6542,7 @@ async def test_streaming_response_create_overload_18(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6566,7 +6566,7 @@ async def test_method_create_overload_19(self, async_client: AsyncCloudflare) -> name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6580,7 +6580,7 @@ async def test_method_create_with_all_params_overload_19(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6595,7 +6595,7 @@ async def test_raw_response_create_overload_19(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6610,7 +6610,7 @@ async def test_streaming_response_create_overload_19(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6635,7 +6635,7 @@ async def test_method_create_overload_20(self, async_client: AsyncCloudflare) -> priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6653,7 +6653,7 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6669,7 +6669,7 @@ async def test_raw_response_create_overload_20(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6685,7 +6685,7 @@ async def test_streaming_response_create_overload_20(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6711,7 +6711,7 @@ async def test_method_update_overload_1(self, async_client: AsyncCloudflare) -> name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6727,7 +6727,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6743,7 +6743,7 @@ async def test_raw_response_update_overload_1(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6759,7 +6759,7 @@ async def test_streaming_response_update_overload_1(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6794,7 +6794,7 @@ async def test_method_update_overload_2(self, async_client: AsyncCloudflare) -> name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6810,7 +6810,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6826,7 +6826,7 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6842,7 +6842,7 @@ async def test_streaming_response_update_overload_2(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6877,7 +6877,7 @@ async def test_method_update_overload_3(self, async_client: AsyncCloudflare) -> name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6896,7 +6896,7 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6912,7 +6912,7 @@ async def test_raw_response_update_overload_3(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6928,7 +6928,7 @@ async def test_streaming_response_update_overload_3(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -6963,7 +6963,7 @@ async def test_method_update_overload_4(self, async_client: AsyncCloudflare) -> name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6983,7 +6983,7 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -6999,7 +6999,7 @@ async def test_raw_response_update_overload_4(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7015,7 +7015,7 @@ async def test_streaming_response_update_overload_4(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7050,7 +7050,7 @@ async def test_method_update_overload_5(self, async_client: AsyncCloudflare) -> name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7066,7 +7066,7 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7082,7 +7082,7 @@ async def test_raw_response_update_overload_5(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7098,7 +7098,7 @@ async def test_streaming_response_update_overload_5(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7133,7 +7133,7 @@ async def test_method_update_overload_6(self, async_client: AsyncCloudflare) -> name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7153,7 +7153,7 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7169,7 +7169,7 @@ async def test_raw_response_update_overload_6(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7185,7 +7185,7 @@ async def test_streaming_response_update_overload_6(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7220,7 +7220,7 @@ async def test_method_update_overload_7(self, async_client: AsyncCloudflare) -> name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7240,7 +7240,7 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7256,7 +7256,7 @@ async def test_raw_response_update_overload_7(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7272,7 +7272,7 @@ async def test_streaming_response_update_overload_7(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7307,7 +7307,7 @@ async def test_method_update_overload_8(self, async_client: AsyncCloudflare) -> name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7326,7 +7326,7 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7342,7 +7342,7 @@ async def test_raw_response_update_overload_8(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7358,7 +7358,7 @@ async def test_streaming_response_update_overload_8(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7393,7 +7393,7 @@ async def test_method_update_overload_9(self, async_client: AsyncCloudflare) -> name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7421,7 +7421,7 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7437,7 +7437,7 @@ async def test_raw_response_update_overload_9(self, async_client: AsyncCloudflar assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7453,7 +7453,7 @@ async def test_streaming_response_update_overload_9(self, async_client: AsyncClo assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7489,7 +7489,7 @@ async def test_method_update_overload_10(self, async_client: AsyncCloudflare) -> priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7505,7 +7505,7 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7522,7 +7522,7 @@ async def test_raw_response_update_overload_10(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7539,7 +7539,7 @@ async def test_streaming_response_update_overload_10(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7576,7 +7576,7 @@ async def test_method_update_overload_11(self, async_client: AsyncCloudflare) -> name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7598,7 +7598,7 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7614,7 +7614,7 @@ async def test_raw_response_update_overload_11(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7630,7 +7630,7 @@ async def test_streaming_response_update_overload_11(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7665,7 +7665,7 @@ async def test_method_update_overload_12(self, async_client: AsyncCloudflare) -> name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7680,7 +7680,7 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7696,7 +7696,7 @@ async def test_raw_response_update_overload_12(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7712,7 +7712,7 @@ async def test_streaming_response_update_overload_12(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7747,7 +7747,7 @@ async def test_method_update_overload_13(self, async_client: AsyncCloudflare) -> name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7762,7 +7762,7 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7778,7 +7778,7 @@ async def test_raw_response_update_overload_13(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7794,7 +7794,7 @@ async def test_streaming_response_update_overload_13(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7829,7 +7829,7 @@ async def test_method_update_overload_14(self, async_client: AsyncCloudflare) -> name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7849,7 +7849,7 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7865,7 +7865,7 @@ async def test_raw_response_update_overload_14(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7881,7 +7881,7 @@ async def test_streaming_response_update_overload_14(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -7916,7 +7916,7 @@ async def test_method_update_overload_15(self, async_client: AsyncCloudflare) -> name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7939,7 +7939,7 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7955,7 +7955,7 @@ async def test_raw_response_update_overload_15(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -7971,7 +7971,7 @@ async def test_streaming_response_update_overload_15(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8006,7 +8006,7 @@ async def test_method_update_overload_16(self, async_client: AsyncCloudflare) -> name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8025,7 +8025,7 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8041,7 +8041,7 @@ async def test_raw_response_update_overload_16(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8057,7 +8057,7 @@ async def test_streaming_response_update_overload_16(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8092,7 +8092,7 @@ async def test_method_update_overload_17(self, async_client: AsyncCloudflare) -> name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8111,7 +8111,7 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8127,7 +8127,7 @@ async def test_raw_response_update_overload_17(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8143,7 +8143,7 @@ async def test_streaming_response_update_overload_17(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8178,7 +8178,7 @@ async def test_method_update_overload_18(self, async_client: AsyncCloudflare) -> name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8198,7 +8198,7 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8214,7 +8214,7 @@ async def test_raw_response_update_overload_18(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8230,7 +8230,7 @@ async def test_streaming_response_update_overload_18(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8265,7 +8265,7 @@ async def test_method_update_overload_19(self, async_client: AsyncCloudflare) -> name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8280,7 +8280,7 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8296,7 +8296,7 @@ async def test_raw_response_update_overload_19(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8312,7 +8312,7 @@ async def test_streaming_response_update_overload_19(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8348,7 +8348,7 @@ async def test_method_update_overload_20(self, async_client: AsyncCloudflare) -> priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8367,7 +8367,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8384,7 +8384,7 @@ async def test_raw_response_update_overload_20(self, async_client: AsyncCloudfla assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8401,7 +8401,7 @@ async def test_streaming_response_update_overload_20(self, async_client: AsyncCl assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8434,7 +8434,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.list( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) - assert_matches_type(AsyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(AsyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8469,7 +8469,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) tag_match="any", type="A", ) - assert_matches_type(AsyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(AsyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8481,7 +8481,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(AsyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(AsyncV4PagePaginationArray[Record], record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8493,7 +8493,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(AsyncV4PagePaginationArray[DNSRecord], record, path=["response"]) + assert_matches_type(AsyncV4PagePaginationArray[Record], record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8572,7 +8572,7 @@ async def test_method_edit_overload_1(self, async_client: AsyncCloudflare) -> No name="example.com", type="A", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8588,7 +8588,7 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8604,7 +8604,7 @@ async def test_raw_response_edit_overload_1(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8620,7 +8620,7 @@ async def test_streaming_response_edit_overload_1(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8655,7 +8655,7 @@ async def test_method_edit_overload_2(self, async_client: AsyncCloudflare) -> No name="example.com", type="AAAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8671,7 +8671,7 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8687,7 +8687,7 @@ async def test_raw_response_edit_overload_2(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8703,7 +8703,7 @@ async def test_streaming_response_edit_overload_2(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8738,7 +8738,7 @@ async def test_method_edit_overload_3(self, async_client: AsyncCloudflare) -> No name="example.com", type="CAA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8757,7 +8757,7 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8773,7 +8773,7 @@ async def test_raw_response_edit_overload_3(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8789,7 +8789,7 @@ async def test_streaming_response_edit_overload_3(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8824,7 +8824,7 @@ async def test_method_edit_overload_4(self, async_client: AsyncCloudflare) -> No name="example.com", type="CERT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8844,7 +8844,7 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8860,7 +8860,7 @@ async def test_raw_response_edit_overload_4(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8876,7 +8876,7 @@ async def test_streaming_response_edit_overload_4(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8911,7 +8911,7 @@ async def test_method_edit_overload_5(self, async_client: AsyncCloudflare) -> No name="example.com", type="CNAME", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8927,7 +8927,7 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8943,7 +8943,7 @@ async def test_raw_response_edit_overload_5(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -8959,7 +8959,7 @@ async def test_streaming_response_edit_overload_5(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -8994,7 +8994,7 @@ async def test_method_edit_overload_6(self, async_client: AsyncCloudflare) -> No name="example.com", type="DNSKEY", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9014,7 +9014,7 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9030,7 +9030,7 @@ async def test_raw_response_edit_overload_6(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9046,7 +9046,7 @@ async def test_streaming_response_edit_overload_6(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9081,7 +9081,7 @@ async def test_method_edit_overload_7(self, async_client: AsyncCloudflare) -> No name="example.com", type="DS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9101,7 +9101,7 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9117,7 +9117,7 @@ async def test_raw_response_edit_overload_7(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9133,7 +9133,7 @@ async def test_streaming_response_edit_overload_7(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9168,7 +9168,7 @@ async def test_method_edit_overload_8(self, async_client: AsyncCloudflare) -> No name="example.com", type="HTTPS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9187,7 +9187,7 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9203,7 +9203,7 @@ async def test_raw_response_edit_overload_8(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9219,7 +9219,7 @@ async def test_streaming_response_edit_overload_8(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9254,7 +9254,7 @@ async def test_method_edit_overload_9(self, async_client: AsyncCloudflare) -> No name="example.com", type="LOC", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9282,7 +9282,7 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9298,7 +9298,7 @@ async def test_raw_response_edit_overload_9(self, async_client: AsyncCloudflare) assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9314,7 +9314,7 @@ async def test_streaming_response_edit_overload_9(self, async_client: AsyncCloud assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9350,7 +9350,7 @@ async def test_method_edit_overload_10(self, async_client: AsyncCloudflare) -> N priority=10, type="MX", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9366,7 +9366,7 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9383,7 +9383,7 @@ async def test_raw_response_edit_overload_10(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9400,7 +9400,7 @@ async def test_streaming_response_edit_overload_10(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9437,7 +9437,7 @@ async def test_method_edit_overload_11(self, async_client: AsyncCloudflare) -> N name="example.com", type="NAPTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9459,7 +9459,7 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9475,7 +9475,7 @@ async def test_raw_response_edit_overload_11(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9491,7 +9491,7 @@ async def test_streaming_response_edit_overload_11(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9526,7 +9526,7 @@ async def test_method_edit_overload_12(self, async_client: AsyncCloudflare) -> N name="example.com", type="NS", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9541,7 +9541,7 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9557,7 +9557,7 @@ async def test_raw_response_edit_overload_12(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9573,7 +9573,7 @@ async def test_streaming_response_edit_overload_12(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9608,7 +9608,7 @@ async def test_method_edit_overload_13(self, async_client: AsyncCloudflare) -> N name="example.com", type="PTR", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9623,7 +9623,7 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9639,7 +9639,7 @@ async def test_raw_response_edit_overload_13(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9655,7 +9655,7 @@ async def test_streaming_response_edit_overload_13(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9690,7 +9690,7 @@ async def test_method_edit_overload_14(self, async_client: AsyncCloudflare) -> N name="example.com", type="SMIMEA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9710,7 +9710,7 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9726,7 +9726,7 @@ async def test_raw_response_edit_overload_14(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9742,7 +9742,7 @@ async def test_streaming_response_edit_overload_14(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9777,7 +9777,7 @@ async def test_method_edit_overload_15(self, async_client: AsyncCloudflare) -> N name="_sip._tcp.example.com", type="SRV", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9800,7 +9800,7 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9816,7 +9816,7 @@ async def test_raw_response_edit_overload_15(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9832,7 +9832,7 @@ async def test_streaming_response_edit_overload_15(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9867,7 +9867,7 @@ async def test_method_edit_overload_16(self, async_client: AsyncCloudflare) -> N name="example.com", type="SSHFP", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9886,7 +9886,7 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9902,7 +9902,7 @@ async def test_raw_response_edit_overload_16(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9918,7 +9918,7 @@ async def test_streaming_response_edit_overload_16(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -9953,7 +9953,7 @@ async def test_method_edit_overload_17(self, async_client: AsyncCloudflare) -> N name="example.com", type="SVCB", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9972,7 +9972,7 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -9988,7 +9988,7 @@ async def test_raw_response_edit_overload_17(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10004,7 +10004,7 @@ async def test_streaming_response_edit_overload_17(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -10039,7 +10039,7 @@ async def test_method_edit_overload_18(self, async_client: AsyncCloudflare) -> N name="example.com", type="TLSA", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10059,7 +10059,7 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10075,7 +10075,7 @@ async def test_raw_response_edit_overload_18(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10091,7 +10091,7 @@ async def test_streaming_response_edit_overload_18(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -10126,7 +10126,7 @@ async def test_method_edit_overload_19(self, async_client: AsyncCloudflare) -> N name="example.com", type="TXT", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10141,7 +10141,7 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10157,7 +10157,7 @@ async def test_raw_response_edit_overload_19(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10173,7 +10173,7 @@ async def test_streaming_response_edit_overload_19(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -10209,7 +10209,7 @@ async def test_method_edit_overload_20(self, async_client: AsyncCloudflare) -> N priority=10, type="URI", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10228,7 +10228,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async tags=["owner:dns-team", "owner:dns-team", "owner:dns-team"], ttl=3600, ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10245,7 +10245,7 @@ async def test_raw_response_edit_overload_20(self, async_client: AsyncCloudflare assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10262,7 +10262,7 @@ async def test_streaming_response_edit_overload_20(self, async_client: AsyncClou assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True @@ -10338,7 +10338,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None: "023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10351,7 +10351,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) @pytest.mark.skip() @parametrize @@ -10364,7 +10364,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No assert response.http_request.headers.get("X-Stainless-Lang") == "python" record = await response.parse() - assert_matches_type(DNSRecord, record, path=["response"]) + assert_matches_type(Record, record, path=["response"]) assert cast(Any, response.is_closed) is True