diff --git a/.stats.yml b/.stats.yml
index ff11f713089..0af34bafd24 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1462
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3b96d01a5ed5ab049912224c82a2378d389d9426503d468a859ff8d59e79fabc.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-df037996f4a1d35cf34bb8d9deeee63b60463bb6f8814caec9fa4c659073fb0d.yml
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index fbbf251cedb..bc07a6ac91f 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, Type, Iterable, Optional, cast
+from typing import Any, List, Type, Iterable, Optional, cast
from typing_extensions import Literal, overload
import httpx
@@ -33,6 +33,8 @@
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import AsyncPaginator, make_request_options
+from ...types.dns.ttl_param import TTLParam
+from ...types.dns.record_tags import RecordTags
from ...types.dns.record_param import RecordParam
from ...types.shared.sort_direction import SortDirection
from ...types.dns.record_get_response import RecordGetResponse
@@ -73,7 +75,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -95,8 +102,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -114,7 +135,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -136,8 +162,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -155,7 +195,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -177,8 +222,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -196,7 +255,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -218,8 +282,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -237,8 +315,13 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -260,8 +343,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -279,7 +376,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -301,8 +403,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -320,7 +436,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -342,8 +463,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -361,7 +496,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -383,8 +523,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -402,7 +556,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -424,8 +583,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -443,8 +616,13 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -466,11 +644,25 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -488,7 +680,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -510,8 +707,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -529,7 +740,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -551,8 +767,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -570,7 +800,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -592,8 +827,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -611,7 +860,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -633,8 +887,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -652,7 +920,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -674,8 +947,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -693,7 +980,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -715,8 +1007,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -734,7 +1040,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -756,8 +1067,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -775,7 +1100,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -797,8 +1127,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -816,7 +1160,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -838,8 +1187,22 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -857,7 +1220,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -879,6 +1247,9 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -886,6 +1257,17 @@ def create(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -903,8 +1285,13 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -926,11 +1313,25 @@ def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -948,7 +1349,12 @@ def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -1000,7 +1406,12 @@ def create(
f"/zones/{zone_id}/dns_records",
body=maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
@@ -1027,7 +1438,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1051,8 +1467,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1071,7 +1501,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1095,8 +1530,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1115,7 +1564,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1139,8 +1593,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1159,7 +1627,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1183,8 +1656,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1203,8 +1690,13 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1228,8 +1720,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1248,7 +1754,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1272,8 +1783,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1292,7 +1817,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1316,8 +1846,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1336,7 +1880,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1360,8 +1909,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1380,7 +1943,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1404,8 +1972,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1424,8 +2006,13 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1449,11 +2036,25 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1472,7 +2073,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1496,11 +2102,25 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
- type: Record type.
+ name: DNS record name (or @ for the zone apex) in Punycode.
- extra_headers: Send extra headers
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
+ type: Record type.
+
+ extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1516,7 +2136,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1540,8 +2165,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1560,7 +2199,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1584,8 +2228,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1604,7 +2262,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1628,8 +2291,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1648,7 +2325,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1672,8 +2354,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1692,7 +2388,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1716,8 +2417,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1736,7 +2451,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1760,8 +2480,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1780,7 +2514,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1804,8 +2543,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1824,7 +2577,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1848,8 +2606,22 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1868,7 +2640,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1892,6 +2669,9 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -1899,6 +2679,17 @@ def update(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1917,8 +2708,13 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1942,11 +2738,25 @@ def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -1965,7 +2775,12 @@ def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -2019,7 +2834,12 @@ def update(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
@@ -2280,7 +3100,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2304,8 +3129,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2324,7 +3163,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2348,8 +3192,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2368,7 +3226,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2392,8 +3255,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2412,7 +3289,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2436,8 +3318,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2456,8 +3352,13 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2481,8 +3382,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2501,7 +3416,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2525,8 +3445,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2545,7 +3479,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2569,8 +3508,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2589,7 +3542,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2613,8 +3571,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2633,7 +3605,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2657,8 +3634,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2677,8 +3668,13 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2702,11 +3698,25 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2725,7 +3735,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2749,8 +3764,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2769,7 +3798,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2793,8 +3827,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2813,7 +3861,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2837,8 +3890,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2857,7 +3924,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2881,8 +3953,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2901,7 +3987,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2925,8 +4016,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2945,7 +4050,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2969,8 +4079,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -2989,7 +4113,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3013,8 +4142,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3033,7 +4176,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3057,8 +4205,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3077,7 +4239,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3101,8 +4268,22 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3121,7 +4302,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3145,6 +4331,9 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -3152,6 +4341,17 @@ def edit(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3170,8 +4370,13 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3195,12 +4400,26 @@ def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
- type: Record type.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
+ type: Record type.
extra_headers: Send extra headers
@@ -3218,7 +4437,12 @@ def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -3272,7 +4496,12 @@ def edit(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
@@ -3521,7 +4750,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3543,8 +4777,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3562,7 +4810,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3584,8 +4837,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3603,7 +4870,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3625,8 +4897,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3644,7 +4930,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3666,8 +4957,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3685,8 +4990,13 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3708,8 +5018,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3727,7 +5051,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3749,8 +5078,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3768,7 +5111,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3790,8 +5138,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3809,7 +5171,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3831,8 +5198,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3850,7 +5231,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3872,8 +5258,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3891,8 +5291,13 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3914,11 +5319,25 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3936,7 +5355,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3958,8 +5382,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -3977,7 +5415,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -3999,8 +5442,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4018,7 +5475,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4040,8 +5502,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4059,7 +5535,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4081,8 +5562,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4100,7 +5595,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4122,8 +5622,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4141,7 +5655,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4163,8 +5682,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4182,7 +5715,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4204,8 +5742,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4223,7 +5775,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4245,8 +5802,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4264,7 +5835,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4286,8 +5862,22 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4305,7 +5895,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4327,6 +5922,9 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -4334,6 +5932,17 @@ async def create(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4351,8 +5960,13 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_create_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4374,11 +5988,25 @@ async def create(
Args:
zone_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4396,7 +6024,12 @@ async def create(
self,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -4448,7 +6081,12 @@ async def create(
f"/zones/{zone_id}/dns_records",
body=await async_maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
@@ -4475,7 +6113,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4499,8 +6142,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4519,7 +6176,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4543,8 +6205,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4563,7 +6239,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4587,8 +6268,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4607,7 +6302,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4631,8 +6331,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4651,8 +6365,13 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4676,8 +6395,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4696,7 +6429,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4720,8 +6458,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4740,7 +6492,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4764,8 +6521,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4784,7 +6555,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4808,8 +6584,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4828,7 +6618,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4852,8 +6647,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4872,8 +6681,13 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4897,11 +6711,25 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4920,7 +6748,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4944,8 +6777,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -4964,7 +6811,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -4988,8 +6840,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5008,7 +6874,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5032,8 +6903,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5052,7 +6937,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5076,8 +6966,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5096,7 +7000,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5120,8 +7029,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5140,7 +7063,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5164,8 +7092,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5184,7 +7126,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5208,8 +7155,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5228,7 +7189,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5252,8 +7218,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5272,7 +7252,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5296,8 +7281,22 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5316,7 +7315,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5340,6 +7344,9 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -5347,6 +7354,17 @@ async def update(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5365,8 +7383,13 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_update_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5390,11 +7413,25 @@ async def update(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5413,7 +7450,12 @@ async def update(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -5467,7 +7509,12 @@ async def update(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
@@ -5728,7 +7775,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5752,8 +7804,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv4 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5772,7 +7838,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["AAAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5796,8 +7867,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid IPv6 address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5816,7 +7901,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CAA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5840,8 +7930,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CAA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5860,7 +7964,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CERT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5884,8 +7993,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a CERT record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5904,8 +8027,13 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["CNAME"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5929,8 +8057,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid hostname. Must not match the record's name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5949,7 +8091,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -5973,8 +8120,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DNSKEY record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -5993,7 +8154,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["DS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6017,8 +8183,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a DS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6037,7 +8217,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["HTTPS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6061,8 +8246,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a HTTPS record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6081,7 +8280,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["LOC"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6105,8 +8309,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a LOC record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6125,8 +8343,13 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["MX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6150,11 +8373,25 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid mail server hostname.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6173,7 +8410,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NAPTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6197,8 +8439,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a NAPTR record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6217,7 +8473,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["NS"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6241,8 +8502,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A valid name server host name.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6261,7 +8536,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6285,8 +8565,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6305,7 +8599,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["PTR"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6329,8 +8628,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Domain name pointing to the address.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6349,7 +8662,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6373,8 +8691,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SMIMEA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6393,7 +8725,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SRV"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6417,8 +8754,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SRV record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6437,7 +8788,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SSHFP"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6461,8 +8817,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SSHFP record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6481,7 +8851,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["SVCB"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6505,8 +8880,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a SVCB record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6525,7 +8914,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TLSA"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6549,8 +8943,22 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a TLSA record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6569,7 +8977,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["TXT"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6593,6 +9006,9 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
content: Text content for the record. The content must consist of quoted "character
strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding
this allowed maximum length are automatically split.
@@ -6600,6 +9016,17 @@ async def edit(
Learn more at
.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6618,8 +9045,13 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
data: record_edit_params.URIRecordData | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
priority: float | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["URI"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -6643,11 +9075,25 @@ async def edit(
dns_record_id: Identifier
+ comment: Comments or notes about the DNS record. This field has no effect on DNS
+ responses.
+
data: Components of a URI record.
+ name: DNS record name (or @ for the zone apex) in Punycode.
+
priority: Required for MX, SRV and URI records; unused by other record types. Records with
lower priorities are preferred.
+ proxied: Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+
+ tags: Custom tags for the DNS record. This field has no effect on DNS responses.
+
+ ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'.
+ Value must be between 60 and 86400, with the minimum reduced to 30 for
+ Enterprise zones.
+
type: Record type.
extra_headers: Send extra headers
@@ -6666,7 +9112,12 @@ async def edit(
dns_record_id: str,
*,
zone_id: str,
+ comment: str | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ proxied: bool | NotGiven = NOT_GIVEN,
+ tags: List[RecordTags] | NotGiven = NOT_GIVEN,
+ ttl: TTLParam | NotGiven = NOT_GIVEN,
type: Literal["A"]
| Literal["AAAA"]
| Literal["CAA"]
@@ -6720,7 +9171,12 @@ async def edit(
f"/zones/{zone_id}/dns_records/{dns_record_id}",
body=await async_maybe_transform(
{
+ "comment": comment,
"content": content,
+ "name": name,
+ "proxied": proxied,
+ "tags": tags,
+ "ttl": ttl,
"type": type,
"data": data,
"settings": settings,
diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py
index ab56ab8892e..896ce3f6c10 100644
--- a/src/cloudflare/types/dns/__init__.py
+++ b/src/cloudflare/types/dns/__init__.py
@@ -2,6 +2,7 @@
from __future__ import annotations
+from .ttl import TTL as TTL
from .dnssec import DNSSEC as DNSSEC
from .a_record import ARecord as ARecord
from .ds_record import DSRecord as DSRecord
diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py
index effdaa8bb3c..0e92b18aa87 100644
--- a/src/cloudflare/types/dns/a_record.py
+++ b/src/cloudflare/types/dns/a_record.py
@@ -1,16 +1,43 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["ARecord"]
class ARecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A valid IPv4 address."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["A"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/a_record_param.py b/src/cloudflare/types/dns/a_record_param.py
index d0599531818..a7b46b5a982 100644
--- a/src/cloudflare/types/dns/a_record_param.py
+++ b/src/cloudflare/types/dns/a_record_param.py
@@ -2,14 +2,43 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["ARecordParam"]
class ARecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv4 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["A"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/aaaa_record.py b/src/cloudflare/types/dns/aaaa_record.py
index 389da8c9d8d..12b4a80d50f 100644
--- a/src/cloudflare/types/dns/aaaa_record.py
+++ b/src/cloudflare/types/dns/aaaa_record.py
@@ -1,16 +1,43 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["AAAARecord"]
class AAAARecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A valid IPv6 address."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["AAAA"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/aaaa_record_param.py b/src/cloudflare/types/dns/aaaa_record_param.py
index 134dad1d3ff..dda366f6e09 100644
--- a/src/cloudflare/types/dns/aaaa_record_param.py
+++ b/src/cloudflare/types/dns/aaaa_record_param.py
@@ -2,14 +2,43 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["AAAARecordParam"]
class AAAARecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv6 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["AAAA"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/caa_record.py b/src/cloudflare/types/dns/caa_record.py
index 9c297caf161..db52be5fb3d 100644
--- a/src/cloudflare/types/dns/caa_record.py
+++ b/src/cloudflare/types/dns/caa_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["CAARecord", "Data"]
@@ -20,11 +22,36 @@ class Data(BaseModel):
class CAARecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a CAA record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["CAA"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/caa_record_param.py b/src/cloudflare/types/dns/caa_record_param.py
index 61f67b7d043..f4607bff8a3 100644
--- a/src/cloudflare/types/dns/caa_record_param.py
+++ b/src/cloudflare/types/dns/caa_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["CAARecordParam", "Data"]
@@ -19,8 +23,33 @@ class Data(TypedDict, total=False):
class CAARecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a CAA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CAA"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/cert_record.py b/src/cloudflare/types/dns/cert_record.py
index 146b7fd6536..773fc039929 100644
--- a/src/cloudflare/types/dns/cert_record.py
+++ b/src/cloudflare/types/dns/cert_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["CERTRecord", "Data"]
@@ -23,11 +25,36 @@ class Data(BaseModel):
class CERTRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a CERT record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["CERT"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/cert_record_param.py b/src/cloudflare/types/dns/cert_record_param.py
index a5723865221..ae6a63bf15f 100644
--- a/src/cloudflare/types/dns/cert_record_param.py
+++ b/src/cloudflare/types/dns/cert_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["CERTRecordParam", "Data"]
@@ -22,8 +26,33 @@ class Data(TypedDict, total=False):
class CERTRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a CERT record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CERT"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py
index 300fb022f02..fb32c1ca384 100644
--- a/src/cloudflare/types/dns/cname_record.py
+++ b/src/cloudflare/types/dns/cname_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["CNAMERecord", "Settings"]
@@ -19,10 +21,35 @@ class Settings(BaseModel):
class CNAMERecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A valid hostname. Must not match the record's name."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
settings: Optional[Settings] = None
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["CNAME"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/cname_record_param.py b/src/cloudflare/types/dns/cname_record_param.py
index 889ae02d71a..87006d1b36d 100644
--- a/src/cloudflare/types/dns/cname_record_param.py
+++ b/src/cloudflare/types/dns/cname_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["CNAMERecordParam", "Settings"]
@@ -18,10 +22,35 @@ class Settings(TypedDict, total=False):
class CNAMERecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid hostname. Must not match the record's name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
settings: Settings
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CNAME"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py
index e7768878c41..650e258205b 100644
--- a/src/cloudflare/types/dns/dnskey_record.py
+++ b/src/cloudflare/types/dns/dnskey_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["DNSKEYRecord", "Data"]
@@ -23,11 +25,36 @@ class Data(BaseModel):
class DNSKEYRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a DNSKEY record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["DNSKEY"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/dnskey_record_param.py b/src/cloudflare/types/dns/dnskey_record_param.py
index 2569d59759a..daba9a3225e 100644
--- a/src/cloudflare/types/dns/dnskey_record_param.py
+++ b/src/cloudflare/types/dns/dnskey_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["DNSKEYRecordParam", "Data"]
@@ -22,8 +26,33 @@ class Data(TypedDict, total=False):
class DNSKEYRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a DNSKEY record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DNSKEY"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/ds_record.py b/src/cloudflare/types/dns/ds_record.py
index 2f5644c7a93..2d13516a67e 100644
--- a/src/cloudflare/types/dns/ds_record.py
+++ b/src/cloudflare/types/dns/ds_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["DSRecord", "Data"]
@@ -23,11 +25,36 @@ class Data(BaseModel):
class DSRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a DS record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["DS"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/ds_record_param.py b/src/cloudflare/types/dns/ds_record_param.py
index 0e6ef32a6e3..14618b80a4b 100644
--- a/src/cloudflare/types/dns/ds_record_param.py
+++ b/src/cloudflare/types/dns/ds_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["DSRecordParam", "Data"]
@@ -22,8 +26,33 @@ class Data(TypedDict, total=False):
class DSRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a DS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DS"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/https_record.py b/src/cloudflare/types/dns/https_record.py
index 1abe51a24fc..7fb87c4bcf3 100644
--- a/src/cloudflare/types/dns/https_record.py
+++ b/src/cloudflare/types/dns/https_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["HTTPSRecord", "Data"]
@@ -20,11 +22,36 @@ class Data(BaseModel):
class HTTPSRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a HTTPS record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["HTTPS"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/https_record_param.py b/src/cloudflare/types/dns/https_record_param.py
index 35f84e96112..250fbb445ee 100644
--- a/src/cloudflare/types/dns/https_record_param.py
+++ b/src/cloudflare/types/dns/https_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["HTTPSRecordParam", "Data"]
@@ -19,8 +23,33 @@ class Data(TypedDict, total=False):
class HTTPSRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a HTTPS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["HTTPS"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/loc_record.py b/src/cloudflare/types/dns/loc_record.py
index a6ec91991a6..0fa1b139124 100644
--- a/src/cloudflare/types/dns/loc_record.py
+++ b/src/cloudflare/types/dns/loc_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["LOCRecord", "Data"]
@@ -47,11 +49,36 @@ class Data(BaseModel):
class LOCRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a LOC record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["LOC"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/loc_record_param.py b/src/cloudflare/types/dns/loc_record_param.py
index 1ad54efe68d..15b31223784 100644
--- a/src/cloudflare/types/dns/loc_record_param.py
+++ b/src/cloudflare/types/dns/loc_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["LOCRecordParam", "Data"]
@@ -46,8 +50,33 @@ class Data(TypedDict, total=False):
class LOCRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a LOC record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["LOC"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/mx_record.py b/src/cloudflare/types/dns/mx_record.py
index f9b2541541d..ef6c49db053 100644
--- a/src/cloudflare/types/dns/mx_record.py
+++ b/src/cloudflare/types/dns/mx_record.py
@@ -1,22 +1,49 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["MXRecord"]
class MXRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A valid mail server hostname."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
priority: Optional[float] = None
"""Required for MX, SRV and URI records; unused by other record types.
Records with lower priorities are preferred.
"""
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["MX"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/mx_record_param.py b/src/cloudflare/types/dns/mx_record_param.py
index 1b10131d295..633211e4684 100644
--- a/src/cloudflare/types/dns/mx_record_param.py
+++ b/src/cloudflare/types/dns/mx_record_param.py
@@ -2,20 +2,49 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["MXRecordParam"]
class MXRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["MX"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/naptr_record.py b/src/cloudflare/types/dns/naptr_record.py
index 844b4405591..909bdc97dad 100644
--- a/src/cloudflare/types/dns/naptr_record.py
+++ b/src/cloudflare/types/dns/naptr_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["NAPTRRecord", "Data"]
@@ -29,11 +31,36 @@ class Data(BaseModel):
class NAPTRRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a NAPTR record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["NAPTR"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/naptr_record_param.py b/src/cloudflare/types/dns/naptr_record_param.py
index 751121258d6..9511cbba68e 100644
--- a/src/cloudflare/types/dns/naptr_record_param.py
+++ b/src/cloudflare/types/dns/naptr_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["NAPTRRecordParam", "Data"]
@@ -28,8 +32,33 @@ class Data(TypedDict, total=False):
class NAPTRRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a NAPTR record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NAPTR"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/ns_record.py b/src/cloudflare/types/dns/ns_record.py
index 3c417541bfa..76e5aaff7c1 100644
--- a/src/cloudflare/types/dns/ns_record.py
+++ b/src/cloudflare/types/dns/ns_record.py
@@ -1,16 +1,43 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["NSRecord"]
class NSRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A valid name server host name."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["NS"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/ns_record_param.py b/src/cloudflare/types/dns/ns_record_param.py
index 2b1ff211cd0..f036a719ddf 100644
--- a/src/cloudflare/types/dns/ns_record_param.py
+++ b/src/cloudflare/types/dns/ns_record_param.py
@@ -2,14 +2,43 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["NSRecordParam"]
class NSRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid name server host name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NS"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/ptr_record.py b/src/cloudflare/types/dns/ptr_record.py
index 2ad8219aaec..3eee7c802d1 100644
--- a/src/cloudflare/types/dns/ptr_record.py
+++ b/src/cloudflare/types/dns/ptr_record.py
@@ -1,16 +1,43 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["PTRRecord"]
class PTRRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""Domain name pointing to the address."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["PTR"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/ptr_record_param.py b/src/cloudflare/types/dns/ptr_record_param.py
index 612dc727e0f..d0390797c51 100644
--- a/src/cloudflare/types/dns/ptr_record_param.py
+++ b/src/cloudflare/types/dns/ptr_record_param.py
@@ -2,14 +2,43 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["PTRRecordParam"]
class PTRRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Domain name pointing to the address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["PTR"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/record_batch_response.py b/src/cloudflare/types/dns/record_batch_response.py
index d9210070092..71382fb420b 100644
--- a/src/cloudflare/types/dns/record_batch_response.py
+++ b/src/cloudflare/types/dns/record_batch_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -29,157 +30,245 @@
__all__ = [
"RecordBatchResponse",
"Delete",
- "DeleteOpenpgpkey",
+ "DeleteDNSRecordsOpenpgpkeyRecord",
"Patch",
- "PatchOpenpgpkey",
+ "PatchDNSRecordsOpenpgpkeyRecord",
"Post",
- "PostOpenpgpkey",
+ "PostDNSRecordsOpenpgpkeyRecord",
"Put",
- "PutOpenpgpkey",
+ "PutDNSRecordsOpenpgpkeyRecord",
]
-class DeleteOpenpgpkey(BaseModel):
+class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-Delete: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- DeleteOpenpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+Delete: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DeleteDNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
-class PatchOpenpgpkey(BaseModel):
+class PatchDNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-Patch: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PatchOpenpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+Patch: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ PatchDNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
-class PostOpenpgpkey(BaseModel):
+class PostDNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-Post: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PostOpenpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+Post: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ PostDNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
-class PutOpenpgpkey(BaseModel):
+class PutDNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-Put: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- PutOpenpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+Put: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ PutDNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py
index 81ebaf1568a..b9ce9b46a95 100644
--- a/src/cloudflare/types/dns/record_create_params.py
+++ b/src/cloudflare/types/dns/record_create_params.py
@@ -2,9 +2,12 @@
from __future__ import annotations
-from typing import Union
+from typing import List, Union
from typing_extensions import Literal, Required, TypeAlias, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = [
"RecordCreateParams",
"ARecord",
@@ -49,9 +52,34 @@ class ARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv4 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["A"]
"""Record type."""
@@ -60,9 +88,34 @@ class AAAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv6 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["AAAA"]
"""Record type."""
@@ -71,9 +124,34 @@ class CAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CAARecordData
"""Components of a CAA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CAA"]
"""Record type."""
@@ -93,9 +171,34 @@ class CERTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CERTRecordData
"""Components of a CERT record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CERT"]
"""Record type."""
@@ -118,11 +221,36 @@ class CNAMERecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid hostname. Must not match the record's name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
settings: CNAMERecordSettings
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CNAME"]
"""Record type."""
@@ -141,9 +269,34 @@ class DNSKEYRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DNSKEYRecordData
"""Components of a DNSKEY record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DNSKEY"]
"""Record type."""
@@ -166,9 +319,34 @@ class DSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DSRecordData
"""Components of a DS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DS"]
"""Record type."""
@@ -191,9 +369,34 @@ class HTTPSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: HTTPSRecordData
"""Components of a HTTPS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["HTTPS"]
"""Record type."""
@@ -213,9 +416,34 @@ class LOCRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: LOCRecordData
"""Components of a LOC record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["LOC"]
"""Record type."""
@@ -262,15 +490,40 @@ class MXRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["MX"]
"""Record type."""
@@ -279,9 +532,34 @@ class NAPTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: NAPTRRecordData
"""Components of a NAPTR record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NAPTR"]
"""Record type."""
@@ -310,9 +588,34 @@ class NSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid name server host name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NS"]
"""Record type."""
@@ -321,9 +624,34 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["OPENPGPKEY"]
"""Record type."""
@@ -332,9 +660,34 @@ class PTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Domain name pointing to the address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["PTR"]
"""Record type."""
@@ -343,9 +696,34 @@ class SMIMEARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SMIMEARecordData
"""Components of a SMIMEA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SMIMEA"]
"""Record type."""
@@ -368,9 +746,34 @@ class SRVRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SRVRecordData
"""Components of a SRV record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SRV"]
"""Record type."""
@@ -396,9 +799,34 @@ class SSHFPRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SSHFPRecordData
"""Components of a SSHFP record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SSHFP"]
"""Record type."""
@@ -418,9 +846,34 @@ class SVCBRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SVCBRecordData
"""Components of a SVCB record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SVCB"]
"""Record type."""
@@ -440,9 +893,34 @@ class TLSARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: TLSARecordData
"""Components of a TLSA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TLSA"]
"""Record type."""
@@ -465,6 +943,12 @@ class TXTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Text content for the record.
@@ -476,6 +960,25 @@ class TXTRecord(TypedDict, total=False):
.
"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TXT"]
"""Record type."""
@@ -484,15 +987,40 @@ class URIRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: URIRecordData
"""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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["URI"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py
index e4ff8cffbd6..4daffd56f7f 100644
--- a/src/cloudflare/types/dns/record_create_response.py
+++ b/src/cloudflare/types/dns/record_create_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing import List, Union, Optional
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -26,40 +27,62 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordCreateResponse", "Openpgpkey"]
+__all__ = ["RecordCreateResponse", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(BaseModel):
+class DNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-RecordCreateResponse: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- Openpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+RecordCreateResponse: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py
index 847c4b0e1e5..560790f1419 100644
--- a/src/cloudflare/types/dns/record_edit_params.py
+++ b/src/cloudflare/types/dns/record_edit_params.py
@@ -2,9 +2,12 @@
from __future__ import annotations
-from typing import Union
+from typing import List, Union
from typing_extensions import Literal, Required, TypeAlias, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = [
"RecordEditParams",
"ARecord",
@@ -49,9 +52,34 @@ class ARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv4 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["A"]
"""Record type."""
@@ -60,9 +88,34 @@ class AAAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv6 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["AAAA"]
"""Record type."""
@@ -71,9 +124,34 @@ class CAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CAARecordData
"""Components of a CAA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CAA"]
"""Record type."""
@@ -93,9 +171,34 @@ class CERTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CERTRecordData
"""Components of a CERT record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CERT"]
"""Record type."""
@@ -118,11 +221,36 @@ class CNAMERecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid hostname. Must not match the record's name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
settings: CNAMERecordSettings
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CNAME"]
"""Record type."""
@@ -141,9 +269,34 @@ class DNSKEYRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DNSKEYRecordData
"""Components of a DNSKEY record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DNSKEY"]
"""Record type."""
@@ -166,9 +319,34 @@ class DSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DSRecordData
"""Components of a DS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DS"]
"""Record type."""
@@ -191,9 +369,34 @@ class HTTPSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: HTTPSRecordData
"""Components of a HTTPS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["HTTPS"]
"""Record type."""
@@ -213,9 +416,34 @@ class LOCRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: LOCRecordData
"""Components of a LOC record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["LOC"]
"""Record type."""
@@ -262,15 +490,40 @@ class MXRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["MX"]
"""Record type."""
@@ -279,9 +532,34 @@ class NAPTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: NAPTRRecordData
"""Components of a NAPTR record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NAPTR"]
"""Record type."""
@@ -310,9 +588,34 @@ class NSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid name server host name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NS"]
"""Record type."""
@@ -321,9 +624,34 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["OPENPGPKEY"]
"""Record type."""
@@ -332,9 +660,34 @@ class PTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Domain name pointing to the address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["PTR"]
"""Record type."""
@@ -343,9 +696,34 @@ class SMIMEARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SMIMEARecordData
"""Components of a SMIMEA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SMIMEA"]
"""Record type."""
@@ -368,9 +746,34 @@ class SRVRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SRVRecordData
"""Components of a SRV record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SRV"]
"""Record type."""
@@ -396,9 +799,34 @@ class SSHFPRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SSHFPRecordData
"""Components of a SSHFP record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SSHFP"]
"""Record type."""
@@ -418,9 +846,34 @@ class SVCBRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SVCBRecordData
"""Components of a SVCB record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SVCB"]
"""Record type."""
@@ -440,9 +893,34 @@ class TLSARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: TLSARecordData
"""Components of a TLSA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TLSA"]
"""Record type."""
@@ -465,6 +943,12 @@ class TXTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Text content for the record.
@@ -476,6 +960,25 @@ class TXTRecord(TypedDict, total=False):
.
"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TXT"]
"""Record type."""
@@ -484,15 +987,40 @@ class URIRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: URIRecordData
"""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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["URI"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py
index 0ccb58bc557..9f6285bd2fc 100644
--- a/src/cloudflare/types/dns/record_edit_response.py
+++ b/src/cloudflare/types/dns/record_edit_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing import List, Union, Optional
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -26,40 +27,62 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordEditResponse", "Openpgpkey"]
+__all__ = ["RecordEditResponse", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(BaseModel):
+class DNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-RecordEditResponse: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- Openpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+RecordEditResponse: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_get_response.py
index 906e5d6bf5f..4e1ad042c71 100644
--- a/src/cloudflare/types/dns/record_get_response.py
+++ b/src/cloudflare/types/dns/record_get_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing import List, Union, Optional
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -26,40 +27,62 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordGetResponse", "Openpgpkey"]
+__all__ = ["RecordGetResponse", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(BaseModel):
+class DNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-RecordGetResponse: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- Openpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+RecordGetResponse: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py
index e14114e58b2..f4aa743e44b 100644
--- a/src/cloudflare/types/dns/record_list_response.py
+++ b/src/cloudflare/types/dns/record_list_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing import List, Union, Optional
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -26,40 +27,62 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordListResponse", "Openpgpkey"]
+__all__ = ["RecordListResponse", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(BaseModel):
+class DNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-RecordListResponse: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- Openpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+RecordListResponse: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/record_param.py b/src/cloudflare/types/dns/record_param.py
index e5d19c36bf6..86c91d8b874 100644
--- a/src/cloudflare/types/dns/record_param.py
+++ b/src/cloudflare/types/dns/record_param.py
@@ -2,9 +2,11 @@
from __future__ import annotations
-from typing import Union
+from typing import List, Union
from typing_extensions import Literal, TypeAlias, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
from .a_record_param import ARecordParam
from .ds_record_param import DSRecordParam
from .mx_record_param import MXRecordParam
@@ -26,13 +28,38 @@
from .dnskey_record_param import DNSKEYRecordParam
from .smimea_record_param import SMIMEARecordParam
-__all__ = ["RecordParam", "Openpgpkey"]
+__all__ = ["RecordParam", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(TypedDict, total=False):
+class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["OPENPGPKEY"]
"""Record type."""
@@ -50,7 +77,7 @@ class Openpgpkey(TypedDict, total=False):
MXRecordParam,
NAPTRRecordParam,
NSRecordParam,
- Openpgpkey,
+ DNSRecordsOpenpgpkeyRecord,
PTRRecordParam,
SMIMEARecordParam,
SRVRecordParam,
diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py
index fdea8ae1f41..d959b8c6e1e 100644
--- a/src/cloudflare/types/dns/record_update_params.py
+++ b/src/cloudflare/types/dns/record_update_params.py
@@ -2,9 +2,12 @@
from __future__ import annotations
-from typing import Union
+from typing import List, Union
from typing_extensions import Literal, Required, TypeAlias, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = [
"RecordUpdateParams",
"ARecord",
@@ -49,9 +52,34 @@ class ARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv4 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["A"]
"""Record type."""
@@ -60,9 +88,34 @@ class AAAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid IPv6 address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["AAAA"]
"""Record type."""
@@ -71,9 +124,34 @@ class CAARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CAARecordData
"""Components of a CAA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CAA"]
"""Record type."""
@@ -93,9 +171,34 @@ class CERTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: CERTRecordData
"""Components of a CERT record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CERT"]
"""Record type."""
@@ -118,11 +221,36 @@ class CNAMERecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid hostname. Must not match the record's name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
settings: CNAMERecordSettings
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["CNAME"]
"""Record type."""
@@ -141,9 +269,34 @@ class DNSKEYRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DNSKEYRecordData
"""Components of a DNSKEY record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DNSKEY"]
"""Record type."""
@@ -166,9 +319,34 @@ class DSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: DSRecordData
"""Components of a DS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["DS"]
"""Record type."""
@@ -191,9 +369,34 @@ class HTTPSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: HTTPSRecordData
"""Components of a HTTPS record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["HTTPS"]
"""Record type."""
@@ -213,9 +416,34 @@ class LOCRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: LOCRecordData
"""Components of a LOC record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["LOC"]
"""Record type."""
@@ -262,15 +490,40 @@ class MXRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["MX"]
"""Record type."""
@@ -279,9 +532,34 @@ class NAPTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: NAPTRRecordData
"""Components of a NAPTR record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NAPTR"]
"""Record type."""
@@ -310,9 +588,34 @@ class NSRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A valid name server host name."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["NS"]
"""Record type."""
@@ -321,9 +624,34 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["OPENPGPKEY"]
"""Record type."""
@@ -332,9 +660,34 @@ class PTRRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Domain name pointing to the address."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["PTR"]
"""Record type."""
@@ -343,9 +696,34 @@ class SMIMEARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SMIMEARecordData
"""Components of a SMIMEA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SMIMEA"]
"""Record type."""
@@ -368,9 +746,34 @@ class SRVRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SRVRecordData
"""Components of a SRV record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SRV"]
"""Record type."""
@@ -396,9 +799,34 @@ class SSHFPRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SSHFPRecordData
"""Components of a SSHFP record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SSHFP"]
"""Record type."""
@@ -418,9 +846,34 @@ class SVCBRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: SVCBRecordData
"""Components of a SVCB record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SVCB"]
"""Record type."""
@@ -440,9 +893,34 @@ class TLSARecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: TLSARecordData
"""Components of a TLSA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TLSA"]
"""Record type."""
@@ -465,6 +943,12 @@ class TXTRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Text content for the record.
@@ -476,6 +960,25 @@ class TXTRecord(TypedDict, total=False):
.
"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TXT"]
"""Record type."""
@@ -484,15 +987,40 @@ class URIRecord(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: URIRecordData
"""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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["URI"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py
index 52908351688..51c6afdfe49 100644
--- a/src/cloudflare/types/dns/record_update_response.py
+++ b/src/cloudflare/types/dns/record_update_response.py
@@ -1,9 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Union, Optional
-from typing_extensions import Literal, Annotated, TypeAlias
+from typing import List, Union, Optional
+from typing_extensions import Literal, TypeAlias
-from ..._utils import PropertyInfo
+from .ttl import TTL
from .a_record import ARecord
from ..._models import BaseModel
from .ds_record import DSRecord
@@ -17,6 +17,7 @@
from .uri_record import URIRecord
from .aaaa_record import AAAARecord
from .cert_record import CERTRecord
+from .record_tags import RecordTags
from .svcb_record import SVCBRecord
from .tlsa_record import TLSARecord
from .cname_record import CNAMERecord
@@ -26,40 +27,62 @@
from .dnskey_record import DNSKEYRecord
from .smimea_record import SMIMEARecord
-__all__ = ["RecordUpdateResponse", "Openpgpkey"]
+__all__ = ["RecordUpdateResponse", "DNSRecordsOpenpgpkeyRecord"]
-class Openpgpkey(BaseModel):
+class DNSRecordsOpenpgpkeyRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["OPENPGPKEY"]] = None
"""Record type."""
-RecordUpdateResponse: TypeAlias = Annotated[
- Union[
- ARecord,
- AAAARecord,
- CAARecord,
- CERTRecord,
- CNAMERecord,
- DNSKEYRecord,
- DSRecord,
- HTTPSRecord,
- LOCRecord,
- MXRecord,
- NAPTRRecord,
- NSRecord,
- Openpgpkey,
- PTRRecord,
- SMIMEARecord,
- SRVRecord,
- SSHFPRecord,
- SVCBRecord,
- TLSARecord,
- TXTRecord,
- URIRecord,
- ],
- PropertyInfo(discriminator="type"),
+RecordUpdateResponse: TypeAlias = Union[
+ ARecord,
+ AAAARecord,
+ CAARecord,
+ CERTRecord,
+ CNAMERecord,
+ DNSKEYRecord,
+ DSRecord,
+ HTTPSRecord,
+ LOCRecord,
+ MXRecord,
+ NAPTRRecord,
+ NSRecord,
+ DNSRecordsOpenpgpkeyRecord,
+ PTRRecord,
+ SMIMEARecord,
+ SRVRecord,
+ SSHFPRecord,
+ SVCBRecord,
+ TLSARecord,
+ TXTRecord,
+ URIRecord,
]
diff --git a/src/cloudflare/types/dns/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py
index 8a5afe6ebc9..7fae716400b 100644
--- a/src/cloudflare/types/dns/smimea_record.py
+++ b/src/cloudflare/types/dns/smimea_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["SMIMEARecord", "Data"]
@@ -23,11 +25,36 @@ class Data(BaseModel):
class SMIMEARecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a SMIMEA record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["SMIMEA"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/smimea_record_param.py b/src/cloudflare/types/dns/smimea_record_param.py
index a7cfcea5c18..ce121a41674 100644
--- a/src/cloudflare/types/dns/smimea_record_param.py
+++ b/src/cloudflare/types/dns/smimea_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["SMIMEARecordParam", "Data"]
@@ -22,8 +26,33 @@ class Data(TypedDict, total=False):
class SMIMEARecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a SMIMEA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SMIMEA"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/srv_record.py b/src/cloudflare/types/dns/srv_record.py
index 6003dbe982b..5be06e73406 100644
--- a/src/cloudflare/types/dns/srv_record.py
+++ b/src/cloudflare/types/dns/srv_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["SRVRecord", "Data"]
@@ -26,6 +28,12 @@ class Data(BaseModel):
class SRVRecord(BaseModel):
+ 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.
@@ -35,5 +43,24 @@ class SRVRecord(BaseModel):
data: Optional[Data] = None
"""Components of a SRV record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["SRV"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/srv_record_param.py b/src/cloudflare/types/dns/srv_record_param.py
index 916009bd26d..69812aa320e 100644
--- a/src/cloudflare/types/dns/srv_record_param.py
+++ b/src/cloudflare/types/dns/srv_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["SRVRecordParam", "Data"]
@@ -25,8 +29,33 @@ class Data(TypedDict, total=False):
class SRVRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a SRV record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SRV"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/sshfp_record.py b/src/cloudflare/types/dns/sshfp_record.py
index ed9eafa5e7c..855c412d9c6 100644
--- a/src/cloudflare/types/dns/sshfp_record.py
+++ b/src/cloudflare/types/dns/sshfp_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["SSHFPRecord", "Data"]
@@ -20,11 +22,36 @@ class Data(BaseModel):
class SSHFPRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a SSHFP record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["SSHFP"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/sshfp_record_param.py b/src/cloudflare/types/dns/sshfp_record_param.py
index f24b3e3698e..90bced65ccd 100644
--- a/src/cloudflare/types/dns/sshfp_record_param.py
+++ b/src/cloudflare/types/dns/sshfp_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["SSHFPRecordParam", "Data"]
@@ -19,8 +23,33 @@ class Data(TypedDict, total=False):
class SSHFPRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a SSHFP record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SSHFP"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/svcb_record.py b/src/cloudflare/types/dns/svcb_record.py
index 30379e779a9..57e4bfa4b62 100644
--- a/src/cloudflare/types/dns/svcb_record.py
+++ b/src/cloudflare/types/dns/svcb_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["SVCBRecord", "Data"]
@@ -20,11 +22,36 @@ class Data(BaseModel):
class SVCBRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a SVCB record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["SVCB"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/svcb_record_param.py b/src/cloudflare/types/dns/svcb_record_param.py
index 7194add1748..e96d13d1bf3 100644
--- a/src/cloudflare/types/dns/svcb_record_param.py
+++ b/src/cloudflare/types/dns/svcb_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["SVCBRecordParam", "Data"]
@@ -19,8 +23,33 @@ class Data(TypedDict, total=False):
class SVCBRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a SVCB record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["SVCB"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/tlsa_record.py b/src/cloudflare/types/dns/tlsa_record.py
index e14104a356f..a822b971be1 100644
--- a/src/cloudflare/types/dns/tlsa_record.py
+++ b/src/cloudflare/types/dns/tlsa_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["TLSARecord", "Data"]
@@ -23,11 +25,36 @@ class Data(BaseModel):
class TLSARecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a TLSA record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["TLSA"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/tlsa_record_param.py b/src/cloudflare/types/dns/tlsa_record_param.py
index 447816d0adb..9ee66f2ec8d 100644
--- a/src/cloudflare/types/dns/tlsa_record_param.py
+++ b/src/cloudflare/types/dns/tlsa_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["TLSARecordParam", "Data"]
@@ -22,8 +26,33 @@ class Data(TypedDict, total=False):
class TLSARecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
data: Data
"""Components of a TLSA record."""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TLSA"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/ttl.py b/src/cloudflare/types/dns/ttl.py
new file mode 100644
index 00000000000..693c9980bf0
--- /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, TypeAlias
+
+__all__ = ["TTL"]
+
+TTL: TypeAlias = Union[float, Literal[1]]
diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py
index e89f4944d82..065a97c8938 100644
--- a/src/cloudflare/types/dns/txt_record.py
+++ b/src/cloudflare/types/dns/txt_record.py
@@ -1,14 +1,22 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["TXTRecord"]
class TXTRecord(BaseModel):
+ comment: Optional[str] = None
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: Optional[str] = None
"""Text content for the record.
@@ -20,5 +28,24 @@ class TXTRecord(BaseModel):
.
"""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["TXT"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/txt_record_param.py b/src/cloudflare/types/dns/txt_record_param.py
index 4095e6da09d..4395ac4bcee 100644
--- a/src/cloudflare/types/dns/txt_record_param.py
+++ b/src/cloudflare/types/dns/txt_record_param.py
@@ -2,12 +2,22 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["TXTRecordParam"]
class TXTRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
content: str
"""Text content for the record.
@@ -19,5 +29,24 @@ class TXTRecordParam(TypedDict, total=False):
.
"""
+ name: str
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["TXT"]
"""Record type."""
diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py
index 417a9034308..b3d45461850 100644
--- a/src/cloudflare/types/dns/uri_record.py
+++ b/src/cloudflare/types/dns/uri_record.py
@@ -1,9 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Literal
+from .ttl import TTL
from ..._models import BaseModel
+from .record_tags import RecordTags
__all__ = ["URIRecord", "Data"]
@@ -17,17 +19,42 @@ class Data(BaseModel):
class URIRecord(BaseModel):
+ 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."""
data: Optional[Data] = None
"""Components of a URI record."""
+ name: Optional[str] = None
+ """DNS record name (or @ for the zone apex) in Punycode."""
+
priority: Optional[float] = None
"""Required for MX, SRV and URI records; unused by other record types.
Records with lower priorities are preferred.
"""
+ proxied: Optional[bool] = None
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: Optional[List[RecordTags]] = None
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: Optional[TTL] = None
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Optional[Literal["URI"]] = None
"""Record type."""
diff --git a/src/cloudflare/types/dns/uri_record_param.py b/src/cloudflare/types/dns/uri_record_param.py
index f6d1bc0bcec..59aafdfd3bc 100644
--- a/src/cloudflare/types/dns/uri_record_param.py
+++ b/src/cloudflare/types/dns/uri_record_param.py
@@ -2,8 +2,12 @@
from __future__ import annotations
+from typing import List
from typing_extensions import Literal, TypedDict
+from .ttl_param import TTLParam
+from .record_tags import RecordTags
+
__all__ = ["URIRecordParam", "Data"]
@@ -16,14 +20,39 @@ class Data(TypedDict, total=False):
class URIRecordParam(TypedDict, total=False):
+ comment: str
+ """Comments or notes about the DNS record.
+
+ This field has no effect on DNS responses.
+ """
+
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.
"""
+ proxied: bool
+ """
+ Whether the record is receiving the performance and security benefits of
+ Cloudflare.
+ """
+
+ tags: List[RecordTags]
+ """Custom tags for the DNS record. This field has no effect on DNS responses."""
+
+ ttl: TTLParam
+ """Time To Live (TTL) of the DNS record in seconds.
+
+ Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
+ minimum reduced to 30 for Enterprise zones.
+ """
+
type: Literal["URI"]
"""Record type."""
diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py
index 179c286950d..83d6b2e9b30 100644
--- a/tests/api_resources/dns/test_records.py
+++ b/tests/api_resources/dns/test_records.py
@@ -41,7 +41,12 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -93,7 +98,12 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -145,11 +155,16 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -201,12 +216,17 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -258,8 +278,13 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -311,12 +336,17 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -368,12 +398,17 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -425,11 +460,16 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -481,6 +521,7 @@ def test_method_create_overload_9(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -495,6 +536,10 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -546,8 +591,13 @@ def test_method_create_overload_10(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -599,6 +649,7 @@ def test_method_create_overload_11(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -607,6 +658,10 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) ->
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -658,7 +713,12 @@ def test_method_create_overload_12(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -710,7 +770,12 @@ def test_method_create_overload_13(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -762,7 +827,12 @@ def test_method_create_overload_14(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -814,12 +884,17 @@ def test_method_create_overload_15(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -871,12 +946,17 @@ def test_method_create_overload_16(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -928,11 +1008,16 @@ def test_method_create_overload_17(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -984,11 +1069,16 @@ def test_method_create_overload_18(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -1040,12 +1130,17 @@ def test_method_create_overload_19(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -1097,7 +1192,12 @@ def test_method_create_overload_20(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -1149,11 +1249,16 @@ def test_method_create_overload_21(self, client: Cloudflare) -> None:
def test_method_create_with_all_params_overload_21(self, client: Cloudflare) -> None:
record = client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -1207,7 +1312,12 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1270,7 +1380,12 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1333,11 +1448,16 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1400,12 +1520,17 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1468,8 +1593,13 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1532,12 +1662,17 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1600,12 +1735,17 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1668,11 +1808,16 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1735,6 +1880,7 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -1749,6 +1895,10 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1811,8 +1961,13 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1875,6 +2030,7 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -1883,6 +2039,10 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) ->
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -1945,7 +2105,12 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2008,7 +2173,12 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2071,7 +2241,12 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2134,12 +2309,17 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2202,12 +2382,17 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2270,11 +2455,16 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2337,11 +2527,16 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2404,12 +2599,17 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2472,7 +2672,12 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2535,11 +2740,16 @@ def test_method_update_with_all_params_overload_21(self, client: Cloudflare) ->
record = client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -2733,19 +2943,34 @@ def test_method_batch_with_all_params(self, client: Cloudflare) -> None:
deletes=[{"id": "023e105f4ecef8ad9ca31a8372d0c353"}],
patches=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
posts=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
puts=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
@@ -2801,7 +3026,12 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -2864,7 +3094,12 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -2927,11 +3162,16 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -2994,12 +3234,17 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3062,8 +3307,13 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3126,12 +3376,17 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3194,12 +3449,17 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3262,11 +3522,16 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3329,6 +3594,7 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -3343,6 +3609,10 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3405,8 +3675,13 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3469,6 +3744,7 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -3477,6 +3753,10 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3539,7 +3819,12 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3602,7 +3887,12 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3665,7 +3955,12 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3728,12 +4023,17 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3796,12 +4096,17 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3864,11 +4169,16 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3931,11 +4241,16 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -3998,12 +4313,17 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -4066,7 +4386,12 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -4129,11 +4454,16 @@ def test_method_edit_with_all_params_overload_21(self, client: Cloudflare) -> No
record = client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -4382,7 +4712,12 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4434,7 +4769,12 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4486,11 +4826,16 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4542,12 +4887,17 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_4(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4599,8 +4949,13 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4652,12 +5007,17 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_6(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4709,12 +5069,17 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4766,11 +5131,16 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4822,6 +5192,7 @@ async def test_method_create_overload_9(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -4836,6 +5207,10 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4887,8 +5262,13 @@ async def test_method_create_overload_10(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4940,6 +5320,7 @@ async def test_method_create_overload_11(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -4948,6 +5329,10 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -4999,7 +5384,12 @@ async def test_method_create_overload_12(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5051,7 +5441,12 @@ async def test_method_create_overload_13(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_13(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5103,7 +5498,12 @@ async def test_method_create_overload_14(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_14(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5155,12 +5555,17 @@ async def test_method_create_overload_15(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_15(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5212,12 +5617,17 @@ async def test_method_create_overload_16(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_16(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5269,11 +5679,16 @@ async def test_method_create_overload_17(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_17(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5325,11 +5740,16 @@ async def test_method_create_overload_18(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_18(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5381,12 +5801,17 @@ async def test_method_create_overload_19(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_19(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5438,7 +5863,12 @@ async def test_method_create_overload_20(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_20(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5490,11 +5920,16 @@ async def test_method_create_overload_21(self, async_client: AsyncCloudflare) ->
async def test_method_create_with_all_params_overload_21(self, async_client: AsyncCloudflare) -> None:
record = await async_client.dns.records.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordCreateResponse], record, path=["response"])
@@ -5548,7 +5983,12 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5611,7 +6051,12 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5674,11 +6119,16 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5741,12 +6191,17 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5809,8 +6264,13 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5873,12 +6333,17 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -5941,12 +6406,17 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6009,11 +6479,16 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6076,6 +6551,7 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -6090,6 +6566,10 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6152,8 +6632,13 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6216,6 +6701,7 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -6224,6 +6710,10 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6286,7 +6776,12 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6349,7 +6844,12 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6412,7 +6912,12 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6475,12 +6980,17 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6543,12 +7053,17 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6611,11 +7126,16 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6678,11 +7198,16 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6745,12 +7270,17 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6813,7 +7343,12 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -6876,11 +7411,16 @@ async def test_method_update_with_all_params_overload_21(self, async_client: Asy
record = await async_client.dns.records.update(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"])
@@ -7074,19 +7614,34 @@ async def test_method_batch_with_all_params(self, async_client: AsyncCloudflare)
deletes=[{"id": "023e105f4ecef8ad9ca31a8372d0c353"}],
patches=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
posts=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
puts=[
{
+ "comment": "Domain verification record",
"content": "198.51.100.4",
+ "name": "example.com",
+ "proxied": True,
+ "tags": ["owner:dns-team"],
+ "ttl": 3600,
"type": "A",
}
],
@@ -7142,7 +7697,12 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="198.51.100.4",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="A",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7205,7 +7765,12 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="2400:cb00:2049::1",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="AAAA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7268,11 +7833,16 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": 1,
"tag": "issue",
"value": "value",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CAA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7335,12 +7905,17 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 8,
"certificate": "certificate",
"key_tag": 1,
"type": 9,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CERT",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7403,8 +7978,13 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
settings={"flatten_cname": True},
+ tags=["owner:dns-team"],
+ ttl=3600,
type="CNAME",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7467,12 +8047,17 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 5,
"flags": 1,
"protocol": 3,
"public_key": "public_key",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DNSKEY",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7535,12 +8120,17 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 3,
"digest": "digest",
"digest_type": 1,
"key_tag": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="DS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7603,11 +8193,16 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="HTTPS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7670,6 +8265,7 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"altitude": 0,
"lat_degrees": 37,
@@ -7684,6 +8280,10 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC
"precision_vert": 0,
"size": 100,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="LOC",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7746,8 +8346,13 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="mx.example.com",
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="MX",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7810,6 +8415,7 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"flags": "flags",
"order": 100,
@@ -7818,6 +8424,10 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async
"replacement": "replacement",
"service": "service",
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NAPTR",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7880,7 +8490,12 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="ns1.example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="NS",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -7943,7 +8558,12 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="content",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="OPENPGPKEY",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8006,7 +8626,12 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content="example.com",
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="PTR",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8069,12 +8694,17 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 0,
"selector": 0,
"usage": 3,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SMIMEA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8137,12 +8767,17 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"port": 8806,
"priority": 10,
"target": "example.com",
"weight": 5,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SRV",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8205,11 +8840,16 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"algorithm": 2,
"fingerprint": "fingerprint",
"type": 1,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SSHFP",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8272,11 +8912,16 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"priority": 1,
"target": ".",
"value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"',
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="SVCB",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8339,12 +8984,17 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"certificate": "certificate",
"matching_type": 1,
"selector": 0,
"usage": 0,
},
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TLSA",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8407,7 +9057,12 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
content='"v=spf1 include:example.com -all"',
+ name="example.com",
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="TXT",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])
@@ -8470,11 +9125,16 @@ async def test_method_edit_with_all_params_overload_21(self, async_client: Async
record = await async_client.dns.records.edit(
dns_record_id="023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
+ comment="Domain verification record",
data={
"target": "http://example.com/example.html",
"weight": 20,
},
+ name="example.com",
priority=10,
+ proxied=True,
+ tags=["owner:dns-team"],
+ ttl=3600,
type="URI",
)
assert_matches_type(Optional[RecordEditResponse], record, path=["response"])