diff --git a/.stats.yml b/.stats.yml index 3cb29ed2f8f..97f6cb0bef5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1467 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-df037996f4a1d35cf34bb8d9deeee63b60463bb6f8814caec9fa4c659073fb0d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9b4bc41265e65f34a72f25fd0be8ee70604cd5687d02af20401c22046c736243.yml diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py index bc07a6ac91f..a336225e620 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -79,6 +79,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -112,6 +113,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -139,6 +142,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -172,6 +176,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -199,6 +205,7 @@ def create( data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -232,6 +239,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -259,6 +268,7 @@ def create( data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -292,6 +302,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -353,6 +365,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -380,6 +394,7 @@ def create( data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -413,6 +428,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -440,6 +457,7 @@ def create( data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -473,6 +491,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -500,6 +520,7 @@ def create( data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -533,6 +554,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -560,6 +583,7 @@ def create( data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -593,6 +617,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -621,6 +647,7 @@ def create( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -657,6 +684,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -684,6 +713,7 @@ def create( data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -717,6 +747,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -744,6 +776,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -777,6 +810,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -804,6 +839,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -837,6 +873,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -864,6 +902,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -897,6 +936,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -924,6 +965,7 @@ def create( data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -957,6 +999,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -984,6 +1028,7 @@ def create( data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -1017,6 +1062,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1044,6 +1091,7 @@ def create( data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -1077,6 +1125,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1104,6 +1154,7 @@ def create( data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -1137,6 +1188,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1164,6 +1217,7 @@ def create( data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -1197,6 +1251,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1224,6 +1280,7 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -1262,6 +1319,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1290,6 +1349,7 @@ def create( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -1326,6 +1386,8 @@ def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1353,6 +1415,9 @@ def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.ARecordSettings + | record_create_params.CNAMERecordSettings + | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -1389,7 +1454,6 @@ def create( | record_create_params.SSHFPRecordData | record_create_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1410,11 +1474,11 @@ def create( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_create_params.RecordCreateParams, @@ -1442,6 +1506,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -1477,6 +1542,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1505,6 +1572,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -1540,6 +1608,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1568,6 +1638,7 @@ def update( data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -1603,6 +1674,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1631,6 +1704,7 @@ def update( data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -1666,6 +1740,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1730,6 +1806,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1758,6 +1836,7 @@ def update( data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -1793,6 +1872,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1821,6 +1902,7 @@ def update( data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -1856,6 +1938,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1884,6 +1968,7 @@ def update( data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -1919,6 +2004,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -1947,6 +2034,7 @@ def update( data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -1982,6 +2070,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2011,6 +2101,7 @@ def update( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -2049,6 +2140,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2077,6 +2170,7 @@ def update( data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -2112,6 +2206,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2140,6 +2236,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -2175,6 +2272,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2203,6 +2302,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -2238,6 +2338,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2266,6 +2368,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -2301,6 +2404,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2329,6 +2434,7 @@ def update( data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -2364,6 +2470,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2392,6 +2500,7 @@ def update( data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -2427,6 +2536,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2455,6 +2566,7 @@ def update( data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -2490,6 +2602,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2518,6 +2632,7 @@ def update( data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -2553,6 +2668,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2581,6 +2698,7 @@ def update( data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -2616,6 +2734,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2644,6 +2764,7 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -2684,6 +2805,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2713,6 +2836,7 @@ def update( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -2751,6 +2875,8 @@ def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -2779,6 +2905,9 @@ def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.ARecordSettings + | record_update_params.CNAMERecordSettings + | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -2815,7 +2944,6 @@ def update( | record_update_params.SSHFPRecordData | record_update_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2838,11 +2966,11 @@ def update( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_update_params.RecordUpdateParams, @@ -3104,6 +3232,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -3139,6 +3268,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3167,6 +3298,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -3202,6 +3334,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3230,6 +3364,7 @@ def edit( data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -3265,6 +3400,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3293,6 +3430,7 @@ def edit( data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -3328,6 +3466,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3392,6 +3532,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3420,6 +3562,7 @@ def edit( data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -3455,6 +3598,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3483,6 +3628,7 @@ def edit( data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -3518,6 +3664,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3546,6 +3694,7 @@ def edit( data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -3581,6 +3730,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3609,6 +3760,7 @@ def edit( data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -3644,6 +3796,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3673,6 +3827,7 @@ def edit( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -3711,6 +3866,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3739,6 +3896,7 @@ def edit( data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -3774,6 +3932,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3802,6 +3962,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -3837,6 +3998,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3865,6 +4028,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -3900,6 +4064,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3928,6 +4094,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -3963,6 +4130,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -3991,6 +4160,7 @@ def edit( data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -4026,6 +4196,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4054,6 +4226,7 @@ def edit( data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -4089,6 +4262,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4117,6 +4292,7 @@ def edit( data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -4152,6 +4328,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4180,6 +4358,7 @@ def edit( data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -4215,6 +4394,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4243,6 +4424,7 @@ def edit( data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -4278,6 +4460,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4306,6 +4490,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -4346,6 +4531,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4375,6 +4562,7 @@ def edit( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -4413,6 +4601,8 @@ def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4441,6 +4631,7 @@ def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.ARecordSettings | record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -4477,7 +4668,6 @@ def edit( | record_edit_params.SSHFPRecordData | record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4500,11 +4690,11 @@ def edit( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_edit_params.RecordEditParams, @@ -4754,6 +4944,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -4787,6 +4978,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4814,6 +5007,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -4847,6 +5041,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4874,6 +5070,7 @@ async def create( data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -4907,6 +5104,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -4934,6 +5133,7 @@ async def create( data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -4967,6 +5167,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5028,6 +5230,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5055,6 +5259,7 @@ async def create( data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -5088,6 +5293,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5115,6 +5322,7 @@ async def create( data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -5148,6 +5356,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5175,6 +5385,7 @@ async def create( data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -5208,6 +5419,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5235,6 +5448,7 @@ async def create( data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -5268,6 +5482,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5296,6 +5512,7 @@ async def create( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -5332,6 +5549,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5359,6 +5578,7 @@ async def create( data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -5392,6 +5612,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5419,6 +5641,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -5452,6 +5675,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5479,6 +5704,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -5512,6 +5738,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5539,6 +5767,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -5572,6 +5801,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5599,6 +5830,7 @@ async def create( data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -5632,6 +5864,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5659,6 +5893,7 @@ async def create( data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -5692,6 +5927,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5719,6 +5956,7 @@ async def create( data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -5752,6 +5990,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5779,6 +6019,7 @@ async def create( data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -5812,6 +6053,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5839,6 +6082,7 @@ async def create( data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -5872,6 +6116,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5899,6 +6145,7 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -5937,6 +6184,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -5965,6 +6214,7 @@ async def create( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -6001,6 +6251,8 @@ async def create( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6028,6 +6280,9 @@ async def create( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_create_params.ARecordSettings + | record_create_params.CNAMERecordSettings + | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -6064,7 +6319,6 @@ async def create( | record_create_params.SSHFPRecordData | record_create_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6085,11 +6339,11 @@ async def create( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_create_params.RecordCreateParams, @@ -6117,6 +6371,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -6152,6 +6407,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6180,6 +6437,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -6215,6 +6473,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6243,6 +6503,7 @@ async def update( data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -6278,6 +6539,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6306,6 +6569,7 @@ async def update( data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -6341,6 +6605,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6405,6 +6671,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6433,6 +6701,7 @@ async def update( data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -6468,6 +6737,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6496,6 +6767,7 @@ async def update( data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -6531,6 +6803,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6559,6 +6833,7 @@ async def update( data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -6594,6 +6869,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6622,6 +6899,7 @@ async def update( data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -6657,6 +6935,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6686,6 +6966,7 @@ async def update( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -6724,6 +7005,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6752,6 +7035,7 @@ async def update( data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -6787,6 +7071,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6815,6 +7101,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -6850,6 +7137,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6878,6 +7167,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -6913,6 +7203,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -6941,6 +7233,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -6976,6 +7269,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7004,6 +7299,7 @@ async def update( data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -7039,6 +7335,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7067,6 +7365,7 @@ async def update( data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -7102,6 +7401,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7130,6 +7431,7 @@ async def update( data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -7165,6 +7467,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7193,6 +7497,7 @@ async def update( data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -7228,6 +7533,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7256,6 +7563,7 @@ async def update( data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -7291,6 +7599,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7319,6 +7629,7 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -7359,6 +7670,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7388,6 +7701,7 @@ async def update( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -7426,6 +7740,8 @@ async def update( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7454,6 +7770,9 @@ async def update( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_update_params.ARecordSettings + | record_update_params.CNAMERecordSettings + | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -7490,7 +7809,6 @@ async def update( | record_update_params.SSHFPRecordData | record_update_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7513,11 +7831,11 @@ async def update( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_update_params.RecordUpdateParams, @@ -7779,6 +8097,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.ARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, @@ -7814,6 +8133,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7842,6 +8163,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.AAAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, @@ -7877,6 +8199,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7905,6 +8229,7 @@ async def edit( data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.CAARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, @@ -7940,6 +8265,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -7968,6 +8295,7 @@ async def edit( data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.CERTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, @@ -8003,6 +8331,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8067,6 +8397,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8095,6 +8427,7 @@ async def edit( data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DNSKEYRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, @@ -8130,6 +8463,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8158,6 +8493,7 @@ async def edit( data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, @@ -8193,6 +8529,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8221,6 +8559,7 @@ async def edit( data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.HTTPSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, @@ -8256,6 +8595,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8284,6 +8625,7 @@ async def edit( data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.LOCRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, @@ -8319,6 +8661,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8348,6 +8692,7 @@ async def edit( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.MXRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, @@ -8386,6 +8731,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8414,6 +8761,7 @@ async def edit( data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.NAPTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, @@ -8449,6 +8797,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8477,6 +8827,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.NSRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, @@ -8512,6 +8863,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8540,6 +8893,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.DNSRecordsOpenpgpkeyRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, @@ -8575,6 +8929,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8603,6 +8959,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.PTRRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, @@ -8638,6 +8995,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8666,6 +9025,7 @@ async def edit( data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SMIMEARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, @@ -8701,6 +9061,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8729,6 +9091,7 @@ async def edit( data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SRVRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, @@ -8764,6 +9127,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8792,6 +9157,7 @@ async def edit( data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SSHFPRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, @@ -8827,6 +9193,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8855,6 +9223,7 @@ async def edit( data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.SVCBRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, @@ -8890,6 +9259,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8918,6 +9289,7 @@ async def edit( data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.TLSARecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, @@ -8953,6 +9325,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -8981,6 +9355,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.TXTRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, @@ -9021,6 +9396,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -9050,6 +9427,7 @@ async def edit( name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.URIRecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, @@ -9088,6 +9466,8 @@ async def edit( proxied: Whether the record is receiving the performance and security benefits of Cloudflare. + settings: Settings for the DNS record. + 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'. @@ -9116,6 +9496,7 @@ async def edit( content: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, proxied: bool | NotGiven = NOT_GIVEN, + settings: record_edit_params.ARecordSettings | record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, tags: List[RecordTags] | NotGiven = NOT_GIVEN, ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] @@ -9152,7 +9533,6 @@ async def edit( | record_edit_params.SSHFPRecordData | record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, - settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -9175,11 +9555,11 @@ async def edit( "content": content, "name": name, "proxied": proxied, + "settings": settings, "tags": tags, "ttl": ttl, "type": type, "data": data, - "settings": settings, "priority": priority, }, record_edit_params.RecordEditParams, diff --git a/src/cloudflare/resources/email_security/settings/block_senders.py b/src/cloudflare/resources/email_security/settings/block_senders.py index 41d3e4cfd67..d540e200fce 100644 --- a/src/cloudflare/resources/email_security/settings/block_senders.py +++ b/src/cloudflare/resources/email_security/settings/block_senders.py @@ -2,14 +2,13 @@ from __future__ import annotations -from typing import Any, Type, Iterable, Optional, cast -from typing_extensions import Literal, overload +from typing import Type, Optional, cast +from typing_extensions import Literal import httpx from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( - required_args, maybe_transform, async_maybe_transform, ) @@ -58,7 +57,6 @@ def with_streaming_response(self) -> BlockSendersResourceWithStreamingResponse: """ return BlockSendersResourceWithStreamingResponse(self) - @overload def create( self, *, @@ -88,81 +86,27 @@ def create( timeout: Override the client-level default timeout for this request, in seconds """ - ... - - @overload - def create( - self, - *, - account_id: str, - body: Iterable[block_sender_create_params.Variant1Body], - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> BlockSenderCreateResponse: - """ - Create a blocked email sender - - Args: - account_id: Account Identifier - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - ... - - @required_args(["account_id", "is_regex", "pattern", "pattern_type"], ["account_id", "body"]) - def create( - self, - *, - account_id: str, - is_regex: bool | NotGiven = NOT_GIVEN, - pattern: str | NotGiven = NOT_GIVEN, - pattern_type: Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"] | NotGiven = NOT_GIVEN, - comments: Optional[str] | NotGiven = NOT_GIVEN, - body: Iterable[block_sender_create_params.Variant1Body] | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> BlockSenderCreateResponse: if not account_id: raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}") - return cast( - BlockSenderCreateResponse, - self._post( - f"/accounts/{account_id}/email-security/settings/block_senders", - body=maybe_transform( - { - "is_regex": is_regex, - "pattern": pattern, - "pattern_type": pattern_type, - "comments": comments, - "body": body, - }, - block_sender_create_params.BlockSenderCreateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - post_parser=ResultWrapper[BlockSenderCreateResponse]._unwrapper, - ), - cast_to=cast( - Any, ResultWrapper[BlockSenderCreateResponse] - ), # Union types cannot be passed in as arguments in the type system + return self._post( + f"/accounts/{account_id}/email-security/settings/block_senders", + body=maybe_transform( + { + "is_regex": is_regex, + "pattern": pattern, + "pattern_type": pattern_type, + "comments": comments, + }, + block_sender_create_params.BlockSenderCreateParams, ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + post_parser=ResultWrapper[BlockSenderCreateResponse]._unwrapper, + ), + cast_to=cast(Type[BlockSenderCreateResponse], ResultWrapper[BlockSenderCreateResponse]), ) def list( @@ -251,6 +195,8 @@ def delete( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -295,6 +241,8 @@ def edit( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -344,6 +292,8 @@ def get( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -387,7 +337,6 @@ def with_streaming_response(self) -> AsyncBlockSendersResourceWithStreamingRespo """ return AsyncBlockSendersResourceWithStreamingResponse(self) - @overload async def create( self, *, @@ -417,81 +366,27 @@ async def create( timeout: Override the client-level default timeout for this request, in seconds """ - ... - - @overload - async def create( - self, - *, - account_id: str, - body: Iterable[block_sender_create_params.Variant1Body], - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> BlockSenderCreateResponse: - """ - Create a blocked email sender - - Args: - account_id: Account Identifier - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - ... - - @required_args(["account_id", "is_regex", "pattern", "pattern_type"], ["account_id", "body"]) - async def create( - self, - *, - account_id: str, - is_regex: bool | NotGiven = NOT_GIVEN, - pattern: str | NotGiven = NOT_GIVEN, - pattern_type: Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"] | NotGiven = NOT_GIVEN, - comments: Optional[str] | NotGiven = NOT_GIVEN, - body: Iterable[block_sender_create_params.Variant1Body] | NotGiven = NOT_GIVEN, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> BlockSenderCreateResponse: if not account_id: raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}") - return cast( - BlockSenderCreateResponse, - await self._post( - f"/accounts/{account_id}/email-security/settings/block_senders", - body=await async_maybe_transform( - { - "is_regex": is_regex, - "pattern": pattern, - "pattern_type": pattern_type, - "comments": comments, - "body": body, - }, - block_sender_create_params.BlockSenderCreateParams, - ), - options=make_request_options( - extra_headers=extra_headers, - extra_query=extra_query, - extra_body=extra_body, - timeout=timeout, - post_parser=ResultWrapper[BlockSenderCreateResponse]._unwrapper, - ), - cast_to=cast( - Any, ResultWrapper[BlockSenderCreateResponse] - ), # Union types cannot be passed in as arguments in the type system + return await self._post( + f"/accounts/{account_id}/email-security/settings/block_senders", + body=await async_maybe_transform( + { + "is_regex": is_regex, + "pattern": pattern, + "pattern_type": pattern_type, + "comments": comments, + }, + block_sender_create_params.BlockSenderCreateParams, ), + options=make_request_options( + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + post_parser=ResultWrapper[BlockSenderCreateResponse]._unwrapper, + ), + cast_to=cast(Type[BlockSenderCreateResponse], ResultWrapper[BlockSenderCreateResponse]), ) def list( @@ -580,6 +475,8 @@ async def delete( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -624,6 +521,8 @@ async def edit( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -673,6 +572,8 @@ async def get( Args: account_id: Account Identifier + pattern_id: The unique identifier for the allow policy. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff --git a/src/cloudflare/resources/zero_trust/access/infrastructure/targets.py b/src/cloudflare/resources/zero_trust/access/infrastructure/targets.py index 364b09d482d..ff0a4df5312 100644 --- a/src/cloudflare/resources/zero_trust/access/infrastructure/targets.py +++ b/src/cloudflare/resources/zero_trust/access/infrastructure/targets.py @@ -2,8 +2,9 @@ from __future__ import annotations -from typing import Type, Union, Iterable, Optional, cast +from typing import List, Type, Union, Iterable, Optional, cast from datetime import datetime +from typing_extensions import Literal import httpx @@ -176,11 +177,16 @@ def list( *, account_id: str, created_after: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + created_before: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN, hostname: Optional[str] | NotGiven = NOT_GIVEN, hostname_contains: Optional[str] | NotGiven = NOT_GIVEN, ip_v4: Optional[str] | NotGiven = NOT_GIVEN, ip_v6: Optional[str] | NotGiven = NOT_GIVEN, + ips: List[str] | NotGiven = NOT_GIVEN, modified_after: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + modified_before: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + order: Literal["hostname", "created_at"] | NotGiven = NOT_GIVEN, page: int | NotGiven = NOT_GIVEN, per_page: int | NotGiven = NOT_GIVEN, virtual_network_id: Optional[str] | NotGiven = NOT_GIVEN, @@ -191,13 +197,20 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> SyncV4PagePaginationArray[TargetListResponse]: - """ - List all targets + """Lists and sorts an account’s targets. + + Filters are optional and are ORed + together. However, when a timestamp is specified with both its before and after + counterparts, the timestamp filters are ANDed. Args: account_id: Account identifier - created_after: Date and time at which the target was created + created_after: Date and time at which the target was created after (inclusive) + + created_before: Date and time at which the target was created before (inclusive) + + direction: The sorting direction. hostname: Hostname of a target @@ -207,7 +220,14 @@ def list( ip_v6: IPv6 address of the target - modified_after: Date and time at which the target was modified + ips: Filters for targets that have any of the following IP addresses. Specify `ips` + multiple times in query parameter to build list of candidates. + + modified_after: Date and time at which the target was modified after (inclusive) + + modified_before: Date and time at which the target was modified before (inclusive) + + order: The field to sort by. page: Current page in the response @@ -236,11 +256,16 @@ def list( query=maybe_transform( { "created_after": created_after, + "created_before": created_before, + "direction": direction, "hostname": hostname, "hostname_contains": hostname_contains, "ip_v4": ip_v4, "ip_v6": ip_v6, + "ips": ips, "modified_after": modified_after, + "modified_before": modified_before, + "order": order, "page": page, "per_page": per_page, "virtual_network_id": virtual_network_id, @@ -548,11 +573,16 @@ def list( *, account_id: str, created_after: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + created_before: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN, hostname: Optional[str] | NotGiven = NOT_GIVEN, hostname_contains: Optional[str] | NotGiven = NOT_GIVEN, ip_v4: Optional[str] | NotGiven = NOT_GIVEN, ip_v6: Optional[str] | NotGiven = NOT_GIVEN, + ips: List[str] | NotGiven = NOT_GIVEN, modified_after: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + modified_before: Union[str, datetime, None] | NotGiven = NOT_GIVEN, + order: Literal["hostname", "created_at"] | NotGiven = NOT_GIVEN, page: int | NotGiven = NOT_GIVEN, per_page: int | NotGiven = NOT_GIVEN, virtual_network_id: Optional[str] | NotGiven = NOT_GIVEN, @@ -563,13 +593,20 @@ def list( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> AsyncPaginator[TargetListResponse, AsyncV4PagePaginationArray[TargetListResponse]]: - """ - List all targets + """Lists and sorts an account’s targets. + + Filters are optional and are ORed + together. However, when a timestamp is specified with both its before and after + counterparts, the timestamp filters are ANDed. Args: account_id: Account identifier - created_after: Date and time at which the target was created + created_after: Date and time at which the target was created after (inclusive) + + created_before: Date and time at which the target was created before (inclusive) + + direction: The sorting direction. hostname: Hostname of a target @@ -579,7 +616,14 @@ def list( ip_v6: IPv6 address of the target - modified_after: Date and time at which the target was modified + ips: Filters for targets that have any of the following IP addresses. Specify `ips` + multiple times in query parameter to build list of candidates. + + modified_after: Date and time at which the target was modified after (inclusive) + + modified_before: Date and time at which the target was modified before (inclusive) + + order: The field to sort by. page: Current page in the response @@ -608,11 +652,16 @@ def list( query=maybe_transform( { "created_after": created_after, + "created_before": created_before, + "direction": direction, "hostname": hostname, "hostname_contains": hostname_contains, "ip_v4": ip_v4, "ip_v6": ip_v6, + "ips": ips, "modified_after": modified_after, + "modified_before": modified_before, + "order": order, "page": page, "per_page": per_page, "virtual_network_id": virtual_network_id, diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py index 0e92b18aa87..45e3bc709a2 100644 --- a/src/cloudflare/types/dns/a_record.py +++ b/src/cloudflare/types/dns/a_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["ARecord"] +__all__ = ["ARecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class ARecord(BaseModel): @@ -29,6 +47,9 @@ class ARecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/a_record_param.py b/src/cloudflare/types/dns/a_record_param.py index a7b46b5a982..181939fa954 100644 --- a/src/cloudflare/types/dns/a_record_param.py +++ b/src/cloudflare/types/dns/a_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["ARecordParam"] +__all__ = ["ARecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class ARecordParam(TypedDict, total=False): @@ -30,6 +48,9 @@ class ARecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/aaaa_record.py b/src/cloudflare/types/dns/aaaa_record.py index 12b4a80d50f..a9b929e4f9f 100644 --- a/src/cloudflare/types/dns/aaaa_record.py +++ b/src/cloudflare/types/dns/aaaa_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["AAAARecord"] +__all__ = ["AAAARecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class AAAARecord(BaseModel): @@ -29,6 +47,9 @@ class AAAARecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/aaaa_record_param.py b/src/cloudflare/types/dns/aaaa_record_param.py index dda366f6e09..d305b76b8f0 100644 --- a/src/cloudflare/types/dns/aaaa_record_param.py +++ b/src/cloudflare/types/dns/aaaa_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["AAAARecordParam"] +__all__ = ["AAAARecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class AAAARecordParam(TypedDict, total=False): @@ -30,6 +48,9 @@ class AAAARecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/caa_record.py b/src/cloudflare/types/dns/caa_record.py index db52be5fb3d..c4635a7d010 100644 --- a/src/cloudflare/types/dns/caa_record.py +++ b/src/cloudflare/types/dns/caa_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["CAARecord", "Data"] +__all__ = ["CAARecord", "Data", "Settings"] class Data(BaseModel): @@ -21,6 +21,24 @@ class Data(BaseModel): """Value of the record. This field's semantics depend on the chosen tag.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CAARecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -43,6 +61,9 @@ class CAARecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/caa_record_param.py b/src/cloudflare/types/dns/caa_record_param.py index f4607bff8a3..b33a737dcfd 100644 --- a/src/cloudflare/types/dns/caa_record_param.py +++ b/src/cloudflare/types/dns/caa_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["CAARecordParam", "Data"] +__all__ = ["CAARecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -22,6 +22,24 @@ class Data(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CAARecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -41,6 +59,9 @@ class CAARecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/cert_record.py b/src/cloudflare/types/dns/cert_record.py index 773fc039929..158b93608aa 100644 --- a/src/cloudflare/types/dns/cert_record.py +++ b/src/cloudflare/types/dns/cert_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["CERTRecord", "Data"] +__all__ = ["CERTRecord", "Data", "Settings"] class Data(BaseModel): @@ -24,6 +24,24 @@ class Data(BaseModel): """Type.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CERTRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class CERTRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/cert_record_param.py b/src/cloudflare/types/dns/cert_record_param.py index ae6a63bf15f..139c4c13d84 100644 --- a/src/cloudflare/types/dns/cert_record_param.py +++ b/src/cloudflare/types/dns/cert_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["CERTRecordParam", "Data"] +__all__ = ["CERTRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -25,6 +25,24 @@ class Data(TypedDict, total=False): """Type.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CERTRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class CERTRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py index fb32c1ca384..a6c9dd7fae1 100644 --- a/src/cloudflare/types/dns/cname_record.py +++ b/src/cloudflare/types/dns/cname_record.py @@ -19,6 +19,22 @@ class Settings(BaseModel): flattened. """ + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + class CNAMERecord(BaseModel): comment: Optional[str] = None @@ -40,6 +56,7 @@ class CNAMERecord(BaseModel): """ settings: Optional[Settings] = None + """Settings for the DNS record.""" tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/cname_record_param.py b/src/cloudflare/types/dns/cname_record_param.py index 87006d1b36d..fd5f4dc9907 100644 --- a/src/cloudflare/types/dns/cname_record_param.py +++ b/src/cloudflare/types/dns/cname_record_param.py @@ -20,6 +20,22 @@ class Settings(TypedDict, total=False): flattened. """ + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + class CNAMERecordParam(TypedDict, total=False): comment: str @@ -41,6 +57,7 @@ class CNAMERecordParam(TypedDict, total=False): """ settings: Settings + """Settings for the DNS record.""" tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py index 650e258205b..b7ab534a265 100644 --- a/src/cloudflare/types/dns/dnskey_record.py +++ b/src/cloudflare/types/dns/dnskey_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["DNSKEYRecord", "Data"] +__all__ = ["DNSKEYRecord", "Data", "Settings"] class Data(BaseModel): @@ -24,6 +24,24 @@ class Data(BaseModel): """Public Key.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DNSKEYRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class DNSKEYRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/dnskey_record_param.py b/src/cloudflare/types/dns/dnskey_record_param.py index daba9a3225e..87784bd7f8c 100644 --- a/src/cloudflare/types/dns/dnskey_record_param.py +++ b/src/cloudflare/types/dns/dnskey_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["DNSKEYRecordParam", "Data"] +__all__ = ["DNSKEYRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -25,6 +25,24 @@ class Data(TypedDict, total=False): """Public Key.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DNSKEYRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class DNSKEYRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ds_record.py b/src/cloudflare/types/dns/ds_record.py index 2d13516a67e..7a6f2b87cfc 100644 --- a/src/cloudflare/types/dns/ds_record.py +++ b/src/cloudflare/types/dns/ds_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["DSRecord", "Data"] +__all__ = ["DSRecord", "Data", "Settings"] class Data(BaseModel): @@ -24,6 +24,24 @@ class Data(BaseModel): """Key Tag.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DSRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class DSRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ds_record_param.py b/src/cloudflare/types/dns/ds_record_param.py index 14618b80a4b..b37b3e538b2 100644 --- a/src/cloudflare/types/dns/ds_record_param.py +++ b/src/cloudflare/types/dns/ds_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["DSRecordParam", "Data"] +__all__ = ["DSRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -25,6 +25,24 @@ class Data(TypedDict, total=False): """Key Tag.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DSRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class DSRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/https_record.py b/src/cloudflare/types/dns/https_record.py index 7fb87c4bcf3..9080fc0d2ca 100644 --- a/src/cloudflare/types/dns/https_record.py +++ b/src/cloudflare/types/dns/https_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["HTTPSRecord", "Data"] +__all__ = ["HTTPSRecord", "Data", "Settings"] class Data(BaseModel): @@ -21,6 +21,24 @@ class Data(BaseModel): """value.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class HTTPSRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -43,6 +61,9 @@ class HTTPSRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/https_record_param.py b/src/cloudflare/types/dns/https_record_param.py index 250fbb445ee..510e57ae626 100644 --- a/src/cloudflare/types/dns/https_record_param.py +++ b/src/cloudflare/types/dns/https_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["HTTPSRecordParam", "Data"] +__all__ = ["HTTPSRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -22,6 +22,24 @@ class Data(TypedDict, total=False): """value.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class HTTPSRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -41,6 +59,9 @@ class HTTPSRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/loc_record.py b/src/cloudflare/types/dns/loc_record.py index 0fa1b139124..6fdf091618b 100644 --- a/src/cloudflare/types/dns/loc_record.py +++ b/src/cloudflare/types/dns/loc_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["LOCRecord", "Data"] +__all__ = ["LOCRecord", "Data", "Settings"] class Data(BaseModel): @@ -48,6 +48,24 @@ class Data(BaseModel): """Size of location in meters.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class LOCRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -70,6 +88,9 @@ class LOCRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/loc_record_param.py b/src/cloudflare/types/dns/loc_record_param.py index 15b31223784..55ec03b2297 100644 --- a/src/cloudflare/types/dns/loc_record_param.py +++ b/src/cloudflare/types/dns/loc_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["LOCRecordParam", "Data"] +__all__ = ["LOCRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -49,6 +49,24 @@ class Data(TypedDict, total=False): """Size of location in meters.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class LOCRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -68,6 +86,9 @@ class LOCRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/mx_record.py b/src/cloudflare/types/dns/mx_record.py index ef6c49db053..4d3a7dd1874 100644 --- a/src/cloudflare/types/dns/mx_record.py +++ b/src/cloudflare/types/dns/mx_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["MXRecord"] +__all__ = ["MXRecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class MXRecord(BaseModel): @@ -35,6 +53,9 @@ class MXRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/mx_record_param.py b/src/cloudflare/types/dns/mx_record_param.py index 633211e4684..e38ea7456ca 100644 --- a/src/cloudflare/types/dns/mx_record_param.py +++ b/src/cloudflare/types/dns/mx_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["MXRecordParam"] +__all__ = ["MXRecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class MXRecordParam(TypedDict, total=False): @@ -36,6 +54,9 @@ class MXRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/naptr_record.py b/src/cloudflare/types/dns/naptr_record.py index 909bdc97dad..b2fe91864bf 100644 --- a/src/cloudflare/types/dns/naptr_record.py +++ b/src/cloudflare/types/dns/naptr_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["NAPTRRecord", "Data"] +__all__ = ["NAPTRRecord", "Data", "Settings"] class Data(BaseModel): @@ -30,6 +30,24 @@ class Data(BaseModel): """Service.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NAPTRRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -52,6 +70,9 @@ class NAPTRRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/naptr_record_param.py b/src/cloudflare/types/dns/naptr_record_param.py index 9511cbba68e..25b91ed4f29 100644 --- a/src/cloudflare/types/dns/naptr_record_param.py +++ b/src/cloudflare/types/dns/naptr_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["NAPTRRecordParam", "Data"] +__all__ = ["NAPTRRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -31,6 +31,24 @@ class Data(TypedDict, total=False): """Service.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NAPTRRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -50,6 +68,9 @@ class NAPTRRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ns_record.py b/src/cloudflare/types/dns/ns_record.py index 76e5aaff7c1..78ac6fe4049 100644 --- a/src/cloudflare/types/dns/ns_record.py +++ b/src/cloudflare/types/dns/ns_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["NSRecord"] +__all__ = ["NSRecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class NSRecord(BaseModel): @@ -29,6 +47,9 @@ class NSRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ns_record_param.py b/src/cloudflare/types/dns/ns_record_param.py index f036a719ddf..eabb69eedd4 100644 --- a/src/cloudflare/types/dns/ns_record_param.py +++ b/src/cloudflare/types/dns/ns_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["NSRecordParam"] +__all__ = ["NSRecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class NSRecordParam(TypedDict, total=False): @@ -30,6 +48,9 @@ class NSRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ptr_record.py b/src/cloudflare/types/dns/ptr_record.py index 3eee7c802d1..c392256cbbc 100644 --- a/src/cloudflare/types/dns/ptr_record.py +++ b/src/cloudflare/types/dns/ptr_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["PTRRecord"] +__all__ = ["PTRRecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class PTRRecord(BaseModel): @@ -29,6 +47,9 @@ class PTRRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/ptr_record_param.py b/src/cloudflare/types/dns/ptr_record_param.py index d0390797c51..82d92c301fd 100644 --- a/src/cloudflare/types/dns/ptr_record_param.py +++ b/src/cloudflare/types/dns/ptr_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["PTRRecordParam"] +__all__ = ["PTRRecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class PTRRecordParam(TypedDict, total=False): @@ -30,6 +48,9 @@ class PTRRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_batch_response.py b/src/cloudflare/types/dns/record_batch_response.py index 71382fb420b..1c6ac28c90b 100644 --- a/src/cloudflare/types/dns/record_batch_response.py +++ b/src/cloudflare/types/dns/record_batch_response.py @@ -31,15 +31,37 @@ "RecordBatchResponse", "Delete", "DeleteDNSRecordsOpenpgpkeyRecord", + "DeleteDNSRecordsOpenpgpkeyRecordSettings", "Patch", "PatchDNSRecordsOpenpgpkeyRecord", + "PatchDNSRecordsOpenpgpkeyRecordSettings", "Post", "PostDNSRecordsOpenpgpkeyRecord", + "PostDNSRecordsOpenpgpkeyRecordSettings", "Put", "PutDNSRecordsOpenpgpkeyRecord", + "PutDNSRecordsOpenpgpkeyRecordSettings", ] +class DeleteDNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -59,6 +81,9 @@ class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DeleteDNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -98,6 +123,24 @@ class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel): ] +class PatchDNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PatchDNSRecordsOpenpgpkeyRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -117,6 +160,9 @@ class PatchDNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[PatchDNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -156,6 +202,24 @@ class PatchDNSRecordsOpenpgpkeyRecord(BaseModel): ] +class PostDNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PostDNSRecordsOpenpgpkeyRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -175,6 +239,9 @@ class PostDNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[PostDNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -214,6 +281,24 @@ class PostDNSRecordsOpenpgpkeyRecord(BaseModel): ] +class PutDNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PutDNSRecordsOpenpgpkeyRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -233,6 +318,9 @@ class PutDNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[PutDNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index b9ce9b46a95..cfa25b1f388 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -11,40 +11,60 @@ __all__ = [ "RecordCreateParams", "ARecord", + "ARecordSettings", "AAAARecord", + "AAAARecordSettings", "CAARecord", "CAARecordData", + "CAARecordSettings", "CERTRecord", "CERTRecordData", + "CERTRecordSettings", "CNAMERecord", "CNAMERecordSettings", "DNSKEYRecord", "DNSKEYRecordData", + "DNSKEYRecordSettings", "DSRecord", "DSRecordData", + "DSRecordSettings", "HTTPSRecord", "HTTPSRecordData", + "HTTPSRecordSettings", "LOCRecord", "LOCRecordData", + "LOCRecordSettings", "MXRecord", + "MXRecordSettings", "NAPTRRecord", "NAPTRRecordData", + "NAPTRRecordSettings", "NSRecord", + "NSRecordSettings", "DNSRecordsOpenpgpkeyRecord", + "DNSRecordsOpenpgpkeyRecordSettings", "PTRRecord", + "PTRRecordSettings", "SMIMEARecord", "SMIMEARecordData", + "SMIMEARecordSettings", "SRVRecord", "SRVRecordData", + "SRVRecordSettings", "SSHFPRecord", "SSHFPRecordData", + "SSHFPRecordSettings", "SVCBRecord", "SVCBRecordData", + "SVCBRecordSettings", "TLSARecord", "TLSARecordData", + "TLSARecordSettings", "TXTRecord", + "TXTRecordSettings", "URIRecord", "URIRecordData", + "URIRecordSettings", ] @@ -70,6 +90,9 @@ class ARecord(TypedDict, total=False): Cloudflare. """ + settings: ARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -84,6 +107,24 @@ class ARecord(TypedDict, total=False): """Record type.""" +class ARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -106,6 +147,9 @@ class AAAARecord(TypedDict, total=False): Cloudflare. """ + settings: AAAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -120,6 +164,24 @@ class AAAARecord(TypedDict, total=False): """Record type.""" +class AAAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -142,6 +204,9 @@ class CAARecord(TypedDict, total=False): Cloudflare. """ + settings: CAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -167,6 +232,24 @@ class CAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" +class CAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -189,6 +272,9 @@ class CERTRecord(TypedDict, total=False): Cloudflare. """ + settings: CERTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -217,6 +303,24 @@ class CERTRecordData(TypedDict, total=False): """Type.""" +class CERTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -240,6 +344,7 @@ class CNAMERecord(TypedDict, total=False): """ settings: CNAMERecordSettings + """Settings for the DNS record.""" tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -264,6 +369,22 @@ class CNAMERecordSettings(TypedDict, total=False): flattened. """ + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] @@ -287,6 +408,9 @@ class DNSKEYRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSKEYRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -315,6 +439,24 @@ class DNSKEYRecordData(TypedDict, total=False): """Public Key.""" +class DNSKEYRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -337,6 +479,9 @@ class DSRecord(TypedDict, total=False): Cloudflare. """ + settings: DSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -365,6 +510,24 @@ class DSRecordData(TypedDict, total=False): """Key Tag.""" +class DSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -387,6 +550,9 @@ class HTTPSRecord(TypedDict, total=False): Cloudflare. """ + settings: HTTPSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -412,6 +578,24 @@ class HTTPSRecordData(TypedDict, total=False): """value.""" +class HTTPSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -434,6 +618,9 @@ class LOCRecord(TypedDict, total=False): Cloudflare. """ + settings: LOCRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -486,6 +673,24 @@ class LOCRecordData(TypedDict, total=False): """Size of location in meters.""" +class LOCRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -514,6 +719,9 @@ class MXRecord(TypedDict, total=False): Cloudflare. """ + settings: MXRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -528,6 +736,24 @@ class MXRecord(TypedDict, total=False): """Record type.""" +class MXRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -550,6 +776,9 @@ class NAPTRRecord(TypedDict, total=False): Cloudflare. """ + settings: NAPTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -584,6 +813,24 @@ class NAPTRRecordData(TypedDict, total=False): """Service.""" +class NAPTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -606,6 +853,9 @@ class NSRecord(TypedDict, total=False): Cloudflare. """ + settings: NSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -620,6 +870,24 @@ class NSRecord(TypedDict, total=False): """Record type.""" +class NSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -642,6 +910,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSRecordsOpenpgpkeyRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -656,6 +927,24 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): """Record type.""" +class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -678,6 +967,9 @@ class PTRRecord(TypedDict, total=False): Cloudflare. """ + settings: PTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -692,6 +984,24 @@ class PTRRecord(TypedDict, total=False): """Record type.""" +class PTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -714,6 +1024,9 @@ class SMIMEARecord(TypedDict, total=False): Cloudflare. """ + settings: SMIMEARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -742,6 +1055,24 @@ class SMIMEARecordData(TypedDict, total=False): """Usage.""" +class SMIMEARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -764,6 +1095,9 @@ class SRVRecord(TypedDict, total=False): Cloudflare. """ + settings: SRVRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -795,6 +1129,24 @@ class SRVRecordData(TypedDict, total=False): """The record weight.""" +class SRVRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -817,6 +1169,9 @@ class SSHFPRecord(TypedDict, total=False): Cloudflare. """ + settings: SSHFPRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -842,6 +1197,24 @@ class SSHFPRecordData(TypedDict, total=False): """type.""" +class SSHFPRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -864,6 +1237,9 @@ class SVCBRecord(TypedDict, total=False): Cloudflare. """ + settings: SVCBRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -889,6 +1265,24 @@ class SVCBRecordData(TypedDict, total=False): """value.""" +class SVCBRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -911,6 +1305,9 @@ class TLSARecord(TypedDict, total=False): Cloudflare. """ + settings: TLSARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -939,6 +1336,24 @@ class TLSARecordData(TypedDict, total=False): """Usage.""" +class TLSARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -969,6 +1384,9 @@ class TXTRecord(TypedDict, total=False): Cloudflare. """ + settings: TXTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -983,6 +1401,24 @@ class TXTRecord(TypedDict, total=False): """Record type.""" +class TXTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -1011,6 +1447,9 @@ class URIRecord(TypedDict, total=False): Cloudflare. """ + settings: URIRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -1033,6 +1472,24 @@ class URIRecordData(TypedDict, total=False): """The record weight.""" +class URIRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + RecordCreateParams: TypeAlias = Union[ ARecord, AAAARecord, diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py index 4daffd56f7f..516bf5ac45b 100644 --- a/src/cloudflare/types/dns/record_create_response.py +++ b/src/cloudflare/types/dns/record_create_response.py @@ -27,7 +27,25 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordCreateResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordCreateResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(BaseModel): @@ -49,6 +67,9 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py index 560790f1419..a946133b5da 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -11,40 +11,60 @@ __all__ = [ "RecordEditParams", "ARecord", + "ARecordSettings", "AAAARecord", + "AAAARecordSettings", "CAARecord", "CAARecordData", + "CAARecordSettings", "CERTRecord", "CERTRecordData", + "CERTRecordSettings", "CNAMERecord", "CNAMERecordSettings", "DNSKEYRecord", "DNSKEYRecordData", + "DNSKEYRecordSettings", "DSRecord", "DSRecordData", + "DSRecordSettings", "HTTPSRecord", "HTTPSRecordData", + "HTTPSRecordSettings", "LOCRecord", "LOCRecordData", + "LOCRecordSettings", "MXRecord", + "MXRecordSettings", "NAPTRRecord", "NAPTRRecordData", + "NAPTRRecordSettings", "NSRecord", + "NSRecordSettings", "DNSRecordsOpenpgpkeyRecord", + "DNSRecordsOpenpgpkeyRecordSettings", "PTRRecord", + "PTRRecordSettings", "SMIMEARecord", "SMIMEARecordData", + "SMIMEARecordSettings", "SRVRecord", "SRVRecordData", + "SRVRecordSettings", "SSHFPRecord", "SSHFPRecordData", + "SSHFPRecordSettings", "SVCBRecord", "SVCBRecordData", + "SVCBRecordSettings", "TLSARecord", "TLSARecordData", + "TLSARecordSettings", "TXTRecord", + "TXTRecordSettings", "URIRecord", "URIRecordData", + "URIRecordSettings", ] @@ -70,6 +90,9 @@ class ARecord(TypedDict, total=False): Cloudflare. """ + settings: ARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -84,6 +107,24 @@ class ARecord(TypedDict, total=False): """Record type.""" +class ARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -106,6 +147,9 @@ class AAAARecord(TypedDict, total=False): Cloudflare. """ + settings: AAAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -120,6 +164,24 @@ class AAAARecord(TypedDict, total=False): """Record type.""" +class AAAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -142,6 +204,9 @@ class CAARecord(TypedDict, total=False): Cloudflare. """ + settings: CAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -167,6 +232,24 @@ class CAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" +class CAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -189,6 +272,9 @@ class CERTRecord(TypedDict, total=False): Cloudflare. """ + settings: CERTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -217,6 +303,24 @@ class CERTRecordData(TypedDict, total=False): """Type.""" +class CERTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -240,6 +344,7 @@ class CNAMERecord(TypedDict, total=False): """ settings: CNAMERecordSettings + """Settings for the DNS record.""" tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -264,6 +369,22 @@ class CNAMERecordSettings(TypedDict, total=False): flattened. """ + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] @@ -287,6 +408,9 @@ class DNSKEYRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSKEYRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -315,6 +439,24 @@ class DNSKEYRecordData(TypedDict, total=False): """Public Key.""" +class DNSKEYRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -337,6 +479,9 @@ class DSRecord(TypedDict, total=False): Cloudflare. """ + settings: DSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -365,6 +510,24 @@ class DSRecordData(TypedDict, total=False): """Key Tag.""" +class DSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -387,6 +550,9 @@ class HTTPSRecord(TypedDict, total=False): Cloudflare. """ + settings: HTTPSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -412,6 +578,24 @@ class HTTPSRecordData(TypedDict, total=False): """value.""" +class HTTPSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -434,6 +618,9 @@ class LOCRecord(TypedDict, total=False): Cloudflare. """ + settings: LOCRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -486,6 +673,24 @@ class LOCRecordData(TypedDict, total=False): """Size of location in meters.""" +class LOCRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -514,6 +719,9 @@ class MXRecord(TypedDict, total=False): Cloudflare. """ + settings: MXRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -528,6 +736,24 @@ class MXRecord(TypedDict, total=False): """Record type.""" +class MXRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -550,6 +776,9 @@ class NAPTRRecord(TypedDict, total=False): Cloudflare. """ + settings: NAPTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -584,6 +813,24 @@ class NAPTRRecordData(TypedDict, total=False): """Service.""" +class NAPTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -606,6 +853,9 @@ class NSRecord(TypedDict, total=False): Cloudflare. """ + settings: NSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -620,6 +870,24 @@ class NSRecord(TypedDict, total=False): """Record type.""" +class NSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -642,6 +910,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSRecordsOpenpgpkeyRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -656,6 +927,24 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): """Record type.""" +class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -678,6 +967,9 @@ class PTRRecord(TypedDict, total=False): Cloudflare. """ + settings: PTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -692,6 +984,24 @@ class PTRRecord(TypedDict, total=False): """Record type.""" +class PTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -714,6 +1024,9 @@ class SMIMEARecord(TypedDict, total=False): Cloudflare. """ + settings: SMIMEARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -742,6 +1055,24 @@ class SMIMEARecordData(TypedDict, total=False): """Usage.""" +class SMIMEARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -764,6 +1095,9 @@ class SRVRecord(TypedDict, total=False): Cloudflare. """ + settings: SRVRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -795,6 +1129,24 @@ class SRVRecordData(TypedDict, total=False): """The record weight.""" +class SRVRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -817,6 +1169,9 @@ class SSHFPRecord(TypedDict, total=False): Cloudflare. """ + settings: SSHFPRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -842,6 +1197,24 @@ class SSHFPRecordData(TypedDict, total=False): """type.""" +class SSHFPRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -864,6 +1237,9 @@ class SVCBRecord(TypedDict, total=False): Cloudflare. """ + settings: SVCBRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -889,6 +1265,24 @@ class SVCBRecordData(TypedDict, total=False): """value.""" +class SVCBRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -911,6 +1305,9 @@ class TLSARecord(TypedDict, total=False): Cloudflare. """ + settings: TLSARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -939,6 +1336,24 @@ class TLSARecordData(TypedDict, total=False): """Usage.""" +class TLSARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -969,6 +1384,9 @@ class TXTRecord(TypedDict, total=False): Cloudflare. """ + settings: TXTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -983,6 +1401,24 @@ class TXTRecord(TypedDict, total=False): """Record type.""" +class TXTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -1011,6 +1447,9 @@ class URIRecord(TypedDict, total=False): Cloudflare. """ + settings: URIRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -1033,6 +1472,24 @@ class URIRecordData(TypedDict, total=False): """The record weight.""" +class URIRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + RecordEditParams: TypeAlias = Union[ ARecord, AAAARecord, diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py index 9f6285bd2fc..5bc8c4ec0e0 100644 --- a/src/cloudflare/types/dns/record_edit_response.py +++ b/src/cloudflare/types/dns/record_edit_response.py @@ -27,7 +27,25 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordEditResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordEditResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(BaseModel): @@ -49,6 +67,9 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_get_response.py index 4e1ad042c71..453fb83aa61 100644 --- a/src/cloudflare/types/dns/record_get_response.py +++ b/src/cloudflare/types/dns/record_get_response.py @@ -27,7 +27,25 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordGetResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordGetResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(BaseModel): @@ -49,6 +67,9 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py index f4aa743e44b..9a8641ebd58 100644 --- a/src/cloudflare/types/dns/record_list_response.py +++ b/src/cloudflare/types/dns/record_list_response.py @@ -27,7 +27,25 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordListResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordListResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(BaseModel): @@ -49,6 +67,9 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_param.py b/src/cloudflare/types/dns/record_param.py index 86c91d8b874..bcdb4942d97 100644 --- a/src/cloudflare/types/dns/record_param.py +++ b/src/cloudflare/types/dns/record_param.py @@ -28,7 +28,25 @@ from .dnskey_record_param import DNSKEYRecordParam from .smimea_record_param import SMIMEARecordParam -__all__ = ["RecordParam", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordParam", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): @@ -50,6 +68,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSRecordsOpenpgpkeyRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py index d959b8c6e1e..cc4bb87851b 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -11,40 +11,60 @@ __all__ = [ "RecordUpdateParams", "ARecord", + "ARecordSettings", "AAAARecord", + "AAAARecordSettings", "CAARecord", "CAARecordData", + "CAARecordSettings", "CERTRecord", "CERTRecordData", + "CERTRecordSettings", "CNAMERecord", "CNAMERecordSettings", "DNSKEYRecord", "DNSKEYRecordData", + "DNSKEYRecordSettings", "DSRecord", "DSRecordData", + "DSRecordSettings", "HTTPSRecord", "HTTPSRecordData", + "HTTPSRecordSettings", "LOCRecord", "LOCRecordData", + "LOCRecordSettings", "MXRecord", + "MXRecordSettings", "NAPTRRecord", "NAPTRRecordData", + "NAPTRRecordSettings", "NSRecord", + "NSRecordSettings", "DNSRecordsOpenpgpkeyRecord", + "DNSRecordsOpenpgpkeyRecordSettings", "PTRRecord", + "PTRRecordSettings", "SMIMEARecord", "SMIMEARecordData", + "SMIMEARecordSettings", "SRVRecord", "SRVRecordData", + "SRVRecordSettings", "SSHFPRecord", "SSHFPRecordData", + "SSHFPRecordSettings", "SVCBRecord", "SVCBRecordData", + "SVCBRecordSettings", "TLSARecord", "TLSARecordData", + "TLSARecordSettings", "TXTRecord", + "TXTRecordSettings", "URIRecord", "URIRecordData", + "URIRecordSettings", ] @@ -70,6 +90,9 @@ class ARecord(TypedDict, total=False): Cloudflare. """ + settings: ARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -84,6 +107,24 @@ class ARecord(TypedDict, total=False): """Record type.""" +class ARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -106,6 +147,9 @@ class AAAARecord(TypedDict, total=False): Cloudflare. """ + settings: AAAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -120,6 +164,24 @@ class AAAARecord(TypedDict, total=False): """Record type.""" +class AAAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -142,6 +204,9 @@ class CAARecord(TypedDict, total=False): Cloudflare. """ + settings: CAARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -167,6 +232,24 @@ class CAARecordData(TypedDict, total=False): """Value of the record. This field's semantics depend on the chosen tag.""" +class CAARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -189,6 +272,9 @@ class CERTRecord(TypedDict, total=False): Cloudflare. """ + settings: CERTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -217,6 +303,24 @@ class CERTRecordData(TypedDict, total=False): """Type.""" +class CERTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -240,6 +344,7 @@ class CNAMERecord(TypedDict, total=False): """ settings: CNAMERecordSettings + """Settings for the DNS record.""" tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -264,6 +369,22 @@ class CNAMERecordSettings(TypedDict, total=False): flattened. """ + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] @@ -287,6 +408,9 @@ class DNSKEYRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSKEYRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -315,6 +439,24 @@ class DNSKEYRecordData(TypedDict, total=False): """Public Key.""" +class DNSKEYRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -337,6 +479,9 @@ class DSRecord(TypedDict, total=False): Cloudflare. """ + settings: DSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -365,6 +510,24 @@ class DSRecordData(TypedDict, total=False): """Key Tag.""" +class DSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -387,6 +550,9 @@ class HTTPSRecord(TypedDict, total=False): Cloudflare. """ + settings: HTTPSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -412,6 +578,24 @@ class HTTPSRecordData(TypedDict, total=False): """value.""" +class HTTPSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -434,6 +618,9 @@ class LOCRecord(TypedDict, total=False): Cloudflare. """ + settings: LOCRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -486,6 +673,24 @@ class LOCRecordData(TypedDict, total=False): """Size of location in meters.""" +class LOCRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -514,6 +719,9 @@ class MXRecord(TypedDict, total=False): Cloudflare. """ + settings: MXRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -528,6 +736,24 @@ class MXRecord(TypedDict, total=False): """Record type.""" +class MXRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -550,6 +776,9 @@ class NAPTRRecord(TypedDict, total=False): Cloudflare. """ + settings: NAPTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -584,6 +813,24 @@ class NAPTRRecordData(TypedDict, total=False): """Service.""" +class NAPTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -606,6 +853,9 @@ class NSRecord(TypedDict, total=False): Cloudflare. """ + settings: NSRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -620,6 +870,24 @@ class NSRecord(TypedDict, total=False): """Record type.""" +class NSRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -642,6 +910,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): Cloudflare. """ + settings: DNSRecordsOpenpgpkeyRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -656,6 +927,24 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): """Record type.""" +class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -678,6 +967,9 @@ class PTRRecord(TypedDict, total=False): Cloudflare. """ + settings: PTRRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -692,6 +984,24 @@ class PTRRecord(TypedDict, total=False): """Record type.""" +class PTRRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -714,6 +1024,9 @@ class SMIMEARecord(TypedDict, total=False): Cloudflare. """ + settings: SMIMEARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -742,6 +1055,24 @@ class SMIMEARecordData(TypedDict, total=False): """Usage.""" +class SMIMEARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -764,6 +1095,9 @@ class SRVRecord(TypedDict, total=False): Cloudflare. """ + settings: SRVRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -795,6 +1129,24 @@ class SRVRecordData(TypedDict, total=False): """The record weight.""" +class SRVRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -817,6 +1169,9 @@ class SSHFPRecord(TypedDict, total=False): Cloudflare. """ + settings: SSHFPRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -842,6 +1197,24 @@ class SSHFPRecordData(TypedDict, total=False): """type.""" +class SSHFPRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -864,6 +1237,9 @@ class SVCBRecord(TypedDict, total=False): Cloudflare. """ + settings: SVCBRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -889,6 +1265,24 @@ class SVCBRecordData(TypedDict, total=False): """value.""" +class SVCBRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -911,6 +1305,9 @@ class TLSARecord(TypedDict, total=False): Cloudflare. """ + settings: TLSARecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -939,6 +1336,24 @@ class TLSARecordData(TypedDict, total=False): """Usage.""" +class TLSARecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -969,6 +1384,9 @@ class TXTRecord(TypedDict, total=False): Cloudflare. """ + settings: TXTRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -983,6 +1401,24 @@ class TXTRecord(TypedDict, total=False): """Record type.""" +class TXTRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" @@ -1011,6 +1447,9 @@ class URIRecord(TypedDict, total=False): Cloudflare. """ + settings: URIRecordSettings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" @@ -1033,6 +1472,24 @@ class URIRecordData(TypedDict, total=False): """The record weight.""" +class URIRecordSettings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + RecordUpdateParams: TypeAlias = Union[ ARecord, AAAARecord, diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py index 51c6afdfe49..55e94a1dd9c 100644 --- a/src/cloudflare/types/dns/record_update_response.py +++ b/src/cloudflare/types/dns/record_update_response.py @@ -27,7 +27,25 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordUpdateResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordUpdateResponse", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"] + + +class DNSRecordsOpenpgpkeyRecordSettings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class DNSRecordsOpenpgpkeyRecord(BaseModel): @@ -49,6 +67,9 @@ class DNSRecordsOpenpgpkeyRecord(BaseModel): Cloudflare. """ + settings: Optional[DNSRecordsOpenpgpkeyRecordSettings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py index 7fae716400b..7dc5ddbe673 100644 --- a/src/cloudflare/types/dns/smimea_record.py +++ b/src/cloudflare/types/dns/smimea_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["SMIMEARecord", "Data"] +__all__ = ["SMIMEARecord", "Data", "Settings"] class Data(BaseModel): @@ -24,6 +24,24 @@ class Data(BaseModel): """Usage.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SMIMEARecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class SMIMEARecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/smimea_record_param.py b/src/cloudflare/types/dns/smimea_record_param.py index ce121a41674..45fb99c8700 100644 --- a/src/cloudflare/types/dns/smimea_record_param.py +++ b/src/cloudflare/types/dns/smimea_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["SMIMEARecordParam", "Data"] +__all__ = ["SMIMEARecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -25,6 +25,24 @@ class Data(TypedDict, total=False): """Usage.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SMIMEARecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class SMIMEARecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/srv_record.py b/src/cloudflare/types/dns/srv_record.py index 5be06e73406..add58ecb3c5 100644 --- a/src/cloudflare/types/dns/srv_record.py +++ b/src/cloudflare/types/dns/srv_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["SRVRecord", "Data"] +__all__ = ["SRVRecord", "Data", "Settings"] class Data(BaseModel): @@ -27,6 +27,24 @@ class Data(BaseModel): """The record weight.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SRVRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -52,6 +70,9 @@ class SRVRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/srv_record_param.py b/src/cloudflare/types/dns/srv_record_param.py index 69812aa320e..a451de23711 100644 --- a/src/cloudflare/types/dns/srv_record_param.py +++ b/src/cloudflare/types/dns/srv_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["SRVRecordParam", "Data"] +__all__ = ["SRVRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -28,6 +28,24 @@ class Data(TypedDict, total=False): """The record weight.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SRVRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -47,6 +65,9 @@ class SRVRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/sshfp_record.py b/src/cloudflare/types/dns/sshfp_record.py index 855c412d9c6..cc8082194a4 100644 --- a/src/cloudflare/types/dns/sshfp_record.py +++ b/src/cloudflare/types/dns/sshfp_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["SSHFPRecord", "Data"] +__all__ = ["SSHFPRecord", "Data", "Settings"] class Data(BaseModel): @@ -21,6 +21,24 @@ class Data(BaseModel): """type.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SSHFPRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -43,6 +61,9 @@ class SSHFPRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/sshfp_record_param.py b/src/cloudflare/types/dns/sshfp_record_param.py index 90bced65ccd..1f76cd1426b 100644 --- a/src/cloudflare/types/dns/sshfp_record_param.py +++ b/src/cloudflare/types/dns/sshfp_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["SSHFPRecordParam", "Data"] +__all__ = ["SSHFPRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -22,6 +22,24 @@ class Data(TypedDict, total=False): """type.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SSHFPRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -41,6 +59,9 @@ class SSHFPRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/svcb_record.py b/src/cloudflare/types/dns/svcb_record.py index 57e4bfa4b62..9daf5db47e4 100644 --- a/src/cloudflare/types/dns/svcb_record.py +++ b/src/cloudflare/types/dns/svcb_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["SVCBRecord", "Data"] +__all__ = ["SVCBRecord", "Data", "Settings"] class Data(BaseModel): @@ -21,6 +21,24 @@ class Data(BaseModel): """value.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SVCBRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -43,6 +61,9 @@ class SVCBRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/svcb_record_param.py b/src/cloudflare/types/dns/svcb_record_param.py index e96d13d1bf3..d82b6b1fa75 100644 --- a/src/cloudflare/types/dns/svcb_record_param.py +++ b/src/cloudflare/types/dns/svcb_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["SVCBRecordParam", "Data"] +__all__ = ["SVCBRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -22,6 +22,24 @@ class Data(TypedDict, total=False): """value.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class SVCBRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -41,6 +59,9 @@ class SVCBRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/tlsa_record.py b/src/cloudflare/types/dns/tlsa_record.py index a822b971be1..f87a2bf2e98 100644 --- a/src/cloudflare/types/dns/tlsa_record.py +++ b/src/cloudflare/types/dns/tlsa_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["TLSARecord", "Data"] +__all__ = ["TLSARecord", "Data", "Settings"] class Data(BaseModel): @@ -24,6 +24,24 @@ class Data(BaseModel): """Usage.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TLSARecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class TLSARecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/tlsa_record_param.py b/src/cloudflare/types/dns/tlsa_record_param.py index 9ee66f2ec8d..8ccad170c08 100644 --- a/src/cloudflare/types/dns/tlsa_record_param.py +++ b/src/cloudflare/types/dns/tlsa_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["TLSARecordParam", "Data"] +__all__ = ["TLSARecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -25,6 +25,24 @@ class Data(TypedDict, total=False): """Usage.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class TLSARecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class TLSARecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py index 065a97c8938..77e0cba8c67 100644 --- a/src/cloudflare/types/dns/txt_record.py +++ b/src/cloudflare/types/dns/txt_record.py @@ -7,7 +7,25 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["TXTRecord"] +__all__ = ["TXTRecord", "Settings"] + + +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class TXTRecord(BaseModel): @@ -37,6 +55,9 @@ class TXTRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/txt_record_param.py b/src/cloudflare/types/dns/txt_record_param.py index 4395ac4bcee..b17a8385426 100644 --- a/src/cloudflare/types/dns/txt_record_param.py +++ b/src/cloudflare/types/dns/txt_record_param.py @@ -8,7 +8,25 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["TXTRecordParam"] +__all__ = ["TXTRecordParam", "Settings"] + + +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ class TXTRecordParam(TypedDict, total=False): @@ -38,6 +56,9 @@ class TXTRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py index b3d45461850..d281d0c6d28 100644 --- a/src/cloudflare/types/dns/uri_record.py +++ b/src/cloudflare/types/dns/uri_record.py @@ -7,7 +7,7 @@ from ..._models import BaseModel from .record_tags import RecordTags -__all__ = ["URIRecord", "Data"] +__all__ = ["URIRecord", "Data", "Settings"] class Data(BaseModel): @@ -18,6 +18,24 @@ class Data(BaseModel): """The record weight.""" +class Settings(BaseModel): + ipv4_only: Optional[bool] = None + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: Optional[bool] = None + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class URIRecord(BaseModel): comment: Optional[str] = None """Comments or notes about the DNS record. @@ -46,6 +64,9 @@ class URIRecord(BaseModel): Cloudflare. """ + settings: Optional[Settings] = None + """Settings for the DNS record.""" + tags: Optional[List[RecordTags]] = None """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/dns/uri_record_param.py b/src/cloudflare/types/dns/uri_record_param.py index 59aafdfd3bc..4995b415771 100644 --- a/src/cloudflare/types/dns/uri_record_param.py +++ b/src/cloudflare/types/dns/uri_record_param.py @@ -8,7 +8,7 @@ from .ttl_param import TTLParam from .record_tags import RecordTags -__all__ = ["URIRecordParam", "Data"] +__all__ = ["URIRecordParam", "Data", "Settings"] class Data(TypedDict, total=False): @@ -19,6 +19,24 @@ class Data(TypedDict, total=False): """The record weight.""" +class Settings(TypedDict, total=False): + ipv4_only: bool + """ + When enabled, only A records will be generated, and AAAA records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + ipv6_only: bool + """ + When enabled, only AAAA records will be generated, and A records will not be + created. This setting is intended for exceptional cases. Note that this option + only applies to proxied records and it has no effect on whether Cloudflare + communicates with the origin using IPv4 or IPv6. + """ + + class URIRecordParam(TypedDict, total=False): comment: str """Comments or notes about the DNS record. @@ -44,6 +62,9 @@ class URIRecordParam(TypedDict, total=False): Cloudflare. """ + settings: Settings + """Settings for the DNS record.""" + tags: List[RecordTags] """Custom tags for the DNS record. This field has no effect on DNS responses.""" diff --git a/src/cloudflare/types/email_security/investigate/preview_create_response.py b/src/cloudflare/types/email_security/investigate/preview_create_response.py index decc493cddc..21d6b0ca34a 100644 --- a/src/cloudflare/types/email_security/investigate/preview_create_response.py +++ b/src/cloudflare/types/email_security/investigate/preview_create_response.py @@ -1,6 +1,5 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional from ...._models import BaseModel @@ -9,5 +8,4 @@ class PreviewCreateResponse(BaseModel): screenshot: str - - error: Optional[str] = None + """A base64 encoded PNG image of the email.""" diff --git a/src/cloudflare/types/email_security/settings/block_sender_create_params.py b/src/cloudflare/types/email_security/settings/block_sender_create_params.py index 1408cb0674c..dc5290d600f 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_create_params.py +++ b/src/cloudflare/types/email_security/settings/block_sender_create_params.py @@ -2,13 +2,13 @@ from __future__ import annotations -from typing import Union, Iterable, Optional -from typing_extensions import Literal, Required, TypeAlias, TypedDict +from typing import Optional +from typing_extensions import Literal, Required, TypedDict -__all__ = ["BlockSenderCreateParams", "EmailSecurityCreateBlockedSender", "Variant1", "Variant1Body"] +__all__ = ["BlockSenderCreateParams"] -class EmailSecurityCreateBlockedSender(TypedDict, total=False): +class BlockSenderCreateParams(TypedDict, total=False): account_id: Required[str] """Account Identifier""" @@ -19,23 +19,3 @@ class EmailSecurityCreateBlockedSender(TypedDict, total=False): pattern_type: Required[Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"]] comments: Optional[str] - - -class Variant1(TypedDict, total=False): - account_id: Required[str] - """Account Identifier""" - - body: Required[Iterable[Variant1Body]] - - -class Variant1Body(TypedDict, total=False): - is_regex: Required[bool] - - pattern: Required[str] - - pattern_type: Required[Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"]] - - comments: Optional[str] - - -BlockSenderCreateParams: TypeAlias = Union[EmailSecurityCreateBlockedSender, Variant1] diff --git a/src/cloudflare/types/email_security/settings/block_sender_create_response.py b/src/cloudflare/types/email_security/settings/block_sender_create_response.py index b3e80c9195e..615755f8fd7 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_create_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_create_response.py @@ -1,16 +1,17 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional +from typing import Optional from datetime import datetime -from typing_extensions import Literal, TypeAlias +from typing_extensions import Literal from ...._models import BaseModel -__all__ = ["BlockSenderCreateResponse", "EmailSecurityBlockedSender", "UnionMember1"] +__all__ = ["BlockSenderCreateResponse"] -class EmailSecurityBlockedSender(BaseModel): +class BlockSenderCreateResponse(BaseModel): id: int + """The unique identifier for the allow policy.""" created_at: datetime @@ -23,22 +24,3 @@ class EmailSecurityBlockedSender(BaseModel): pattern_type: Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"] comments: Optional[str] = None - - -class UnionMember1(BaseModel): - id: int - - created_at: datetime - - is_regex: bool - - last_modified: datetime - - pattern: str - - pattern_type: Literal["EMAIL", "DOMAIN", "IP", "UNKNOWN"] - - comments: Optional[str] = None - - -BlockSenderCreateResponse: TypeAlias = Union[EmailSecurityBlockedSender, List[UnionMember1]] diff --git a/src/cloudflare/types/email_security/settings/block_sender_delete_response.py b/src/cloudflare/types/email_security/settings/block_sender_delete_response.py index 2dac65de0e7..f19dbd8d807 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_delete_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_delete_response.py @@ -8,3 +8,4 @@ class BlockSenderDeleteResponse(BaseModel): id: int + """The unique identifier for the allow policy.""" diff --git a/src/cloudflare/types/email_security/settings/block_sender_edit_response.py b/src/cloudflare/types/email_security/settings/block_sender_edit_response.py index 55252960899..764d9fd5dee 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_edit_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_edit_response.py @@ -11,6 +11,7 @@ class BlockSenderEditResponse(BaseModel): id: int + """The unique identifier for the allow policy.""" created_at: datetime diff --git a/src/cloudflare/types/email_security/settings/block_sender_get_response.py b/src/cloudflare/types/email_security/settings/block_sender_get_response.py index 5ec8429d4b8..66f03f3e3f6 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_get_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_get_response.py @@ -11,6 +11,7 @@ class BlockSenderGetResponse(BaseModel): id: int + """The unique identifier for the allow policy.""" created_at: datetime diff --git a/src/cloudflare/types/email_security/settings/block_sender_list_response.py b/src/cloudflare/types/email_security/settings/block_sender_list_response.py index 3b30e018736..497ae4dc93d 100644 --- a/src/cloudflare/types/email_security/settings/block_sender_list_response.py +++ b/src/cloudflare/types/email_security/settings/block_sender_list_response.py @@ -11,6 +11,7 @@ class BlockSenderListResponse(BaseModel): id: int + """The unique identifier for the allow policy.""" created_at: datetime diff --git a/src/cloudflare/types/zero_trust/access/infrastructure/target_list_params.py b/src/cloudflare/types/zero_trust/access/infrastructure/target_list_params.py index fae2ccc7255..fb6f96ce9ad 100644 --- a/src/cloudflare/types/zero_trust/access/infrastructure/target_list_params.py +++ b/src/cloudflare/types/zero_trust/access/infrastructure/target_list_params.py @@ -2,9 +2,9 @@ from __future__ import annotations -from typing import Union, Optional +from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict from ....._utils import PropertyInfo @@ -16,7 +16,13 @@ class TargetListParams(TypedDict, total=False): """Account identifier""" created_after: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] - """Date and time at which the target was created""" + """Date and time at which the target was created after (inclusive)""" + + created_before: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] + """Date and time at which the target was created before (inclusive)""" + + direction: Literal["asc", "desc"] + """The sorting direction.""" hostname: Optional[str] """Hostname of a target""" @@ -30,8 +36,20 @@ class TargetListParams(TypedDict, total=False): ip_v6: Optional[str] """IPv6 address of the target""" + ips: List[str] + """Filters for targets that have any of the following IP addresses. + + Specify `ips` multiple times in query parameter to build list of candidates. + """ + modified_after: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] - """Date and time at which the target was modified""" + """Date and time at which the target was modified after (inclusive)""" + + modified_before: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] + """Date and time at which the target was modified before (inclusive)""" + + order: Literal["hostname", "created_at"] + """The field to sort by.""" page: int """Current page in the response""" diff --git a/src/cloudflare/types/zero_trust/gateway/location.py b/src/cloudflare/types/zero_trust/gateway/location.py index b13ca136603..a5755c64010 100644 --- a/src/cloudflare/types/zero_trust/gateway/location.py +++ b/src/cloudflare/types/zero_trust/gateway/location.py @@ -25,6 +25,13 @@ class Location(BaseModel): dns_destination_ips_id: Optional[str] = None """The identifier of the pair of IPv4 addresses assigned to this location.""" + dns_destination_ipv6_block_id: Optional[str] = None + """ + The uuid identifier of the IPv6 block brought to the gateway, so that this + location's IPv6 address is allocated from the Bring Your Own Ipv6(BYOIPv6) block + and not from the standard CloudFlare IPv6 block. + """ + doh_subdomain: Optional[str] = None """The DNS over HTTPS domain to send DNS requests to. diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index 83d6b2e9b30..7857be9faaa 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -45,6 +45,10 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -102,6 +106,10 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -163,6 +171,10 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -225,6 +237,10 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -282,7 +298,11 @@ def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> N content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -345,6 +365,10 @@ def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -407,6 +431,10 @@ def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -468,6 +496,10 @@ def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -538,6 +570,10 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -596,6 +632,10 @@ def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -660,6 +700,10 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -717,6 +761,10 @@ def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -774,6 +822,10 @@ def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -831,6 +883,10 @@ def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -893,6 +949,10 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -955,6 +1015,10 @@ def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -1016,6 +1080,10 @@ def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -1077,6 +1145,10 @@ def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -1139,6 +1211,10 @@ def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -1196,6 +1272,10 @@ def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -1257,6 +1337,10 @@ def test_method_create_with_all_params_overload_21(self, client: Cloudflare) -> name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", @@ -1316,6 +1400,10 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -1384,6 +1472,10 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -1456,6 +1548,10 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -1529,6 +1625,10 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -1597,7 +1697,11 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -1671,6 +1775,10 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -1744,6 +1852,10 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -1816,6 +1928,10 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -1897,6 +2013,10 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -1966,6 +2086,10 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) -> name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -2041,6 +2165,10 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -2109,6 +2237,10 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) -> content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -2177,6 +2309,10 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) -> content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -2245,6 +2381,10 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) -> content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -2318,6 +2458,10 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -2391,6 +2535,10 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -2463,6 +2611,10 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -2535,6 +2687,10 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -2608,6 +2764,10 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) -> }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -2676,6 +2836,10 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -2748,6 +2912,10 @@ def test_method_update_with_all_params_overload_21(self, client: Cloudflare) -> name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", @@ -2947,6 +3115,10 @@ def test_method_batch_with_all_params(self, client: Cloudflare) -> None: "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -2958,6 +3130,10 @@ def test_method_batch_with_all_params(self, client: Cloudflare) -> None: "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -2969,6 +3145,10 @@ def test_method_batch_with_all_params(self, client: Cloudflare) -> None: "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -3030,6 +3210,10 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -3098,6 +3282,10 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -3170,6 +3358,10 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -3243,6 +3435,10 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -3311,7 +3507,11 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -3385,6 +3585,10 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -3458,6 +3662,10 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -3530,6 +3738,10 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -3611,6 +3823,10 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -3680,6 +3896,10 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -3755,6 +3975,10 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -3823,6 +4047,10 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -3891,6 +4119,10 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -3959,6 +4191,10 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -4032,6 +4268,10 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -4105,6 +4345,10 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -4177,6 +4421,10 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -4249,6 +4497,10 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -4322,6 +4574,10 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -4390,6 +4646,10 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -4462,6 +4722,10 @@ def test_method_edit_with_all_params_overload_21(self, client: Cloudflare) -> No name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", @@ -4716,6 +4980,10 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -4773,6 +5041,10 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -4834,6 +5106,10 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -4896,6 +5172,10 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -4953,7 +5233,11 @@ async def test_method_create_with_all_params_overload_5(self, async_client: Asyn content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -5016,6 +5300,10 @@ async def test_method_create_with_all_params_overload_6(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -5078,6 +5366,10 @@ async def test_method_create_with_all_params_overload_7(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -5139,6 +5431,10 @@ async def test_method_create_with_all_params_overload_8(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -5209,6 +5505,10 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -5267,6 +5567,10 @@ async def test_method_create_with_all_params_overload_10(self, async_client: Asy name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -5331,6 +5635,10 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -5388,6 +5696,10 @@ async def test_method_create_with_all_params_overload_12(self, async_client: Asy content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -5445,6 +5757,10 @@ async def test_method_create_with_all_params_overload_13(self, async_client: Asy content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -5502,6 +5818,10 @@ async def test_method_create_with_all_params_overload_14(self, async_client: Asy content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -5564,6 +5884,10 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -5626,6 +5950,10 @@ async def test_method_create_with_all_params_overload_16(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -5687,6 +6015,10 @@ async def test_method_create_with_all_params_overload_17(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -5748,6 +6080,10 @@ async def test_method_create_with_all_params_overload_18(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -5810,6 +6146,10 @@ async def test_method_create_with_all_params_overload_19(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -5867,6 +6207,10 @@ async def test_method_create_with_all_params_overload_20(self, async_client: Asy content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -5928,6 +6272,10 @@ async def test_method_create_with_all_params_overload_21(self, async_client: Asy name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", @@ -5987,6 +6335,10 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -6055,6 +6407,10 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -6127,6 +6483,10 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -6200,6 +6560,10 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -6268,7 +6632,11 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -6342,6 +6710,10 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -6415,6 +6787,10 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -6487,6 +6863,10 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -6568,6 +6948,10 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -6637,6 +7021,10 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -6712,6 +7100,10 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -6780,6 +7172,10 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -6848,6 +7244,10 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -6916,6 +7316,10 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -6989,6 +7393,10 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -7062,6 +7470,10 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -7134,6 +7546,10 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -7206,6 +7622,10 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -7279,6 +7699,10 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -7347,6 +7771,10 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -7419,6 +7847,10 @@ async def test_method_update_with_all_params_overload_21(self, async_client: Asy name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", @@ -7618,6 +8050,10 @@ async def test_method_batch_with_all_params(self, async_client: AsyncCloudflare) "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -7629,6 +8065,10 @@ async def test_method_batch_with_all_params(self, async_client: AsyncCloudflare) "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -7640,6 +8080,10 @@ async def test_method_batch_with_all_params(self, async_client: AsyncCloudflare) "content": "198.51.100.4", "name": "example.com", "proxied": True, + "settings": { + "ipv4_only": True, + "ipv6_only": True, + }, "tags": ["owner:dns-team"], "ttl": 3600, "type": "A", @@ -7701,6 +8145,10 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC content="198.51.100.4", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="A", @@ -7769,6 +8217,10 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC content="2400:cb00:2049::1", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="AAAA", @@ -7841,6 +8293,10 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CAA", @@ -7914,6 +8370,10 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CERT", @@ -7982,7 +8442,11 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC content="content", name="example.com", proxied=True, - settings={"flatten_cname": True}, + settings={ + "flatten_cname": True, + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="CNAME", @@ -8056,6 +8520,10 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DNSKEY", @@ -8129,6 +8597,10 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="DS", @@ -8201,6 +8673,10 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="HTTPS", @@ -8282,6 +8758,10 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="LOC", @@ -8351,6 +8831,10 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="MX", @@ -8426,6 +8910,10 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NAPTR", @@ -8494,6 +8982,10 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async content="ns1.example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="NS", @@ -8562,6 +9054,10 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async content="content", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="OPENPGPKEY", @@ -8630,6 +9126,10 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async content="example.com", name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="PTR", @@ -8703,6 +9203,10 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SMIMEA", @@ -8776,6 +9280,10 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SRV", @@ -8848,6 +9356,10 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SSHFP", @@ -8920,6 +9432,10 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="SVCB", @@ -8993,6 +9509,10 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async }, name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TLSA", @@ -9061,6 +9581,10 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async content='"v=spf1 include:example.com -all"', name="example.com", proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="TXT", @@ -9133,6 +9657,10 @@ async def test_method_edit_with_all_params_overload_21(self, async_client: Async name="example.com", priority=10, proxied=True, + settings={ + "ipv4_only": True, + "ipv6_only": True, + }, tags=["owner:dns-team"], ttl=3600, type="URI", diff --git a/tests/api_resources/email_security/settings/test_block_senders.py b/tests/api_resources/email_security/settings/test_block_senders.py index 27fc016dbbe..e6bb0a56223 100644 --- a/tests/api_resources/email_security/settings/test_block_senders.py +++ b/tests/api_resources/email_security/settings/test_block_senders.py @@ -25,7 +25,7 @@ class TestBlockSenders: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) @parametrize - def test_method_create_overload_1(self, client: Cloudflare) -> None: + def test_method_create(self, client: Cloudflare) -> None: block_sender = client.email_security.settings.block_senders.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -35,7 +35,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None: assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None: + def test_method_create_with_all_params(self, client: Cloudflare) -> None: block_sender = client.email_security.settings.block_senders.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -46,7 +46,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - def test_raw_response_create_overload_1(self, client: Cloudflare) -> None: + def test_raw_response_create(self, client: Cloudflare) -> None: response = client.email_security.settings.block_senders.with_raw_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -60,7 +60,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None: assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None: + def test_streaming_response_create(self, client: Cloudflare) -> None: with client.email_security.settings.block_senders.with_streaming_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -76,7 +76,7 @@ def test_streaming_response_create_overload_1(self, client: Cloudflare) -> None: assert cast(Any, response.is_closed) is True @parametrize - def test_path_params_create_overload_1(self, client: Cloudflare) -> None: + def test_path_params_create(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): client.email_security.settings.block_senders.with_raw_response.create( account_id="", @@ -85,72 +85,6 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None: pattern_type="EMAIL", ) - @parametrize - def test_method_create_overload_2(self, client: Cloudflare) -> None: - block_sender = client.email_security.settings.block_senders.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - @parametrize - def test_raw_response_create_overload_2(self, client: Cloudflare) -> None: - response = client.email_security.settings.block_senders.with_raw_response.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - block_sender = response.parse() - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - @parametrize - def test_streaming_response_create_overload_2(self, client: Cloudflare) -> None: - with client.email_security.settings.block_senders.with_streaming_response.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - block_sender = response.parse() - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @parametrize - def test_path_params_create_overload_2(self, client: Cloudflare) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.email_security.settings.block_senders.with_raw_response.create( - account_id="", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - @parametrize def test_method_list(self, client: Cloudflare) -> None: block_sender = client.email_security.settings.block_senders.list( @@ -345,7 +279,7 @@ class TestAsyncBlockSenders: parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"]) @parametrize - async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> None: + async def test_method_create(self, async_client: AsyncCloudflare) -> None: block_sender = await async_client.email_security.settings.block_senders.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -355,7 +289,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None: + async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None: block_sender = await async_client.email_security.settings.block_senders.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -366,7 +300,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflare) -> None: + async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None: response = await async_client.email_security.settings.block_senders.with_raw_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -380,7 +314,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) @parametrize - async def test_streaming_response_create_overload_1(self, async_client: AsyncCloudflare) -> None: + async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None: async with async_client.email_security.settings.block_senders.with_streaming_response.create( account_id="023e105f4ecef8ad9ca31a8372d0c353", is_regex=False, @@ -396,7 +330,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncClo assert cast(Any, response.is_closed) is True @parametrize - async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare) -> None: + async def test_path_params_create(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): await async_client.email_security.settings.block_senders.with_raw_response.create( account_id="", @@ -405,72 +339,6 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare pattern_type="EMAIL", ) - @parametrize - async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> None: - block_sender = await async_client.email_security.settings.block_senders.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - @parametrize - async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflare) -> None: - response = await async_client.email_security.settings.block_senders.with_raw_response.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - block_sender = await response.parse() - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - @parametrize - async def test_streaming_response_create_overload_2(self, async_client: AsyncCloudflare) -> None: - async with async_client.email_security.settings.block_senders.with_streaming_response.create( - account_id="023e105f4ecef8ad9ca31a8372d0c353", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - block_sender = await response.parse() - assert_matches_type(BlockSenderCreateResponse, block_sender, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @parametrize - async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.email_security.settings.block_senders.with_raw_response.create( - account_id="", - body=[ - { - "is_regex": False, - "pattern": "test@example.com", - "pattern_type": "EMAIL", - } - ], - ) - @parametrize async def test_method_list(self, async_client: AsyncCloudflare) -> None: block_sender = await async_client.email_security.settings.block_senders.list( diff --git a/tests/api_resources/zero_trust/access/infrastructure/test_targets.py b/tests/api_resources/zero_trust/access/infrastructure/test_targets.py index 6d6fec64674..263003e2c00 100644 --- a/tests/api_resources/zero_trust/access/infrastructure/test_targets.py +++ b/tests/api_resources/zero_trust/access/infrastructure/test_targets.py @@ -178,11 +178,16 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None: target = client.zero_trust.access.infrastructure.targets.list( account_id="023e105f4ecef8ad9ca31a8372d0c353", created_after=parse_datetime("2019-12-27T18:11:19.117Z"), + created_before=parse_datetime("2019-12-27T18:11:19.117Z"), + direction="asc", hostname="hostname", hostname_contains="hostname_contains", ip_v4="ip_v4", ip_v6="ip_v6", + ips=["string"], modified_after=parse_datetime("2019-12-27T18:11:19.117Z"), + modified_before=parse_datetime("2019-12-27T18:11:19.117Z"), + order="hostname", page=1, per_page=1, virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", @@ -573,11 +578,16 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) target = await async_client.zero_trust.access.infrastructure.targets.list( account_id="023e105f4ecef8ad9ca31a8372d0c353", created_after=parse_datetime("2019-12-27T18:11:19.117Z"), + created_before=parse_datetime("2019-12-27T18:11:19.117Z"), + direction="asc", hostname="hostname", hostname_contains="hostname_contains", ip_v4="ip_v4", ip_v6="ip_v6", + ips=["string"], modified_after=parse_datetime("2019-12-27T18:11:19.117Z"), + modified_before=parse_datetime("2019-12-27T18:11:19.117Z"), + order="hostname", page=1, per_page=1, virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",