Skip to content

Commit 2f9af7b

Browse files
chore(api): TTL is required on DNS records
1 parent ad0f8c2 commit 2f9af7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2112
-1524
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b9cf8d97f015bd3c7509f68b4dea2c37dc5f97183372064702ea540b6dd999f8.yml
33
openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e
4-
config_hash: e4575ceccb44266d8c23990849b2a5ac
4+
config_hash: cce40d4d65a4d67d5df957a75a15b567

src/cloudflare/resources/dns/records.py

Lines changed: 648 additions & 648 deletions
Large diffs are not rendered by default.

src/cloudflare/types/dns/a_record.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class ARecord(BaseModel):
3232
name: str
3333
"""DNS record name (or @ for the zone apex) in Punycode."""
3434

35+
ttl: TTL
36+
"""Time To Live (TTL) of the DNS record in seconds.
37+
38+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
39+
minimum reduced to 30 for Enterprise zones.
40+
"""
41+
3542
type: Literal["A"]
3643
"""Record type."""
3744

@@ -55,10 +62,3 @@ class ARecord(BaseModel):
5562

5663
tags: Optional[List[RecordTags]] = None
5764
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
58-
59-
ttl: Optional[TTL] = None
60-
"""Time To Live (TTL) of the DNS record in seconds.
61-
62-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
63-
minimum reduced to 30 for Enterprise zones.
64-
"""

src/cloudflare/types/dns/a_record_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ class ARecordParam(TypedDict, total=False):
3333
name: Required[str]
3434
"""DNS record name (or @ for the zone apex) in Punycode."""
3535

36+
ttl: Required[TTLParam]
37+
"""Time To Live (TTL) of the DNS record in seconds.
38+
39+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
40+
minimum reduced to 30 for Enterprise zones.
41+
"""
42+
3643
type: Required[Literal["A"]]
3744
"""Record type."""
3845

@@ -56,10 +63,3 @@ class ARecordParam(TypedDict, total=False):
5663

5764
tags: List[RecordTags]
5865
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
59-
60-
ttl: TTLParam
61-
"""Time To Live (TTL) of the DNS record in seconds.
62-
63-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
64-
minimum reduced to 30 for Enterprise zones.
65-
"""

src/cloudflare/types/dns/aaaa_record.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class AAAARecord(BaseModel):
3232
name: str
3333
"""DNS record name (or @ for the zone apex) in Punycode."""
3434

35+
ttl: TTL
36+
"""Time To Live (TTL) of the DNS record in seconds.
37+
38+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
39+
minimum reduced to 30 for Enterprise zones.
40+
"""
41+
3542
type: Literal["AAAA"]
3643
"""Record type."""
3744

@@ -55,10 +62,3 @@ class AAAARecord(BaseModel):
5562

5663
tags: Optional[List[RecordTags]] = None
5764
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
58-
59-
ttl: Optional[TTL] = None
60-
"""Time To Live (TTL) of the DNS record in seconds.
61-
62-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
63-
minimum reduced to 30 for Enterprise zones.
64-
"""

src/cloudflare/types/dns/aaaa_record_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ class AAAARecordParam(TypedDict, total=False):
3333
name: Required[str]
3434
"""DNS record name (or @ for the zone apex) in Punycode."""
3535

36+
ttl: Required[TTLParam]
37+
"""Time To Live (TTL) of the DNS record in seconds.
38+
39+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
40+
minimum reduced to 30 for Enterprise zones.
41+
"""
42+
3643
type: Required[Literal["AAAA"]]
3744
"""Record type."""
3845

@@ -56,10 +63,3 @@ class AAAARecordParam(TypedDict, total=False):
5663

5764
tags: List[RecordTags]
5865
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
59-
60-
ttl: TTLParam
61-
"""Time To Live (TTL) of the DNS record in seconds.
62-
63-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
64-
minimum reduced to 30 for Enterprise zones.
65-
"""

src/cloudflare/types/dns/batch_patch_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class OpenpgpkeyRecord(TypedDict, total=False):
105105
name: Required[str]
106106
"""DNS record name (or @ for the zone apex) in Punycode."""
107107

108+
ttl: Required[TTLParam]
109+
"""Time To Live (TTL) of the DNS record in seconds.
110+
111+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
112+
minimum reduced to 30 for Enterprise zones.
113+
"""
114+
108115
type: Required[Literal["OPENPGPKEY"]]
109116
"""Record type."""
110117

@@ -129,13 +136,6 @@ class OpenpgpkeyRecord(TypedDict, total=False):
129136
tags: List[RecordTags]
130137
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
131138

132-
ttl: TTLParam
133-
"""Time To Live (TTL) of the DNS record in seconds.
134-
135-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
136-
minimum reduced to 30 for Enterprise zones.
137-
"""
138-
139139

140140
class PTRRecord(PTRRecordParam, total=False):
141141
id: Required[str]

src/cloudflare/types/dns/batch_put_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class OpenpgpkeyRecord(TypedDict, total=False):
105105
name: Required[str]
106106
"""DNS record name (or @ for the zone apex) in Punycode."""
107107

108+
ttl: Required[TTLParam]
109+
"""Time To Live (TTL) of the DNS record in seconds.
110+
111+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
112+
minimum reduced to 30 for Enterprise zones.
113+
"""
114+
108115
type: Required[Literal["OPENPGPKEY"]]
109116
"""Record type."""
110117

@@ -129,13 +136,6 @@ class OpenpgpkeyRecord(TypedDict, total=False):
129136
tags: List[RecordTags]
130137
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
131138

132-
ttl: TTLParam
133-
"""Time To Live (TTL) of the DNS record in seconds.
134-
135-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
136-
minimum reduced to 30 for Enterprise zones.
137-
"""
138-
139139

140140
class PTRRecord(PTRRecordParam, total=False):
141141
id: Required[str]

src/cloudflare/types/dns/caa_record.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ class CAARecord(BaseModel):
4343
name: str
4444
"""DNS record name (or @ for the zone apex) in Punycode."""
4545

46+
ttl: TTL
47+
"""Time To Live (TTL) of the DNS record in seconds.
48+
49+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
50+
minimum reduced to 30 for Enterprise zones.
51+
"""
52+
4653
type: Literal["CAA"]
4754
"""Record type."""
4855

@@ -69,10 +76,3 @@ class CAARecord(BaseModel):
6976

7077
tags: Optional[List[RecordTags]] = None
7178
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
72-
73-
ttl: Optional[TTL] = None
74-
"""Time To Live (TTL) of the DNS record in seconds.
75-
76-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
77-
minimum reduced to 30 for Enterprise zones.
78-
"""

src/cloudflare/types/dns/caa_record_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ class CAARecordParam(TypedDict, total=False):
4444
name: Required[str]
4545
"""DNS record name (or @ for the zone apex) in Punycode."""
4646

47+
ttl: Required[TTLParam]
48+
"""Time To Live (TTL) of the DNS record in seconds.
49+
50+
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
51+
minimum reduced to 30 for Enterprise zones.
52+
"""
53+
4754
type: Required[Literal["CAA"]]
4855
"""Record type."""
4956

@@ -67,10 +74,3 @@ class CAARecordParam(TypedDict, total=False):
6774

6875
tags: List[RecordTags]
6976
"""Custom tags for the DNS record. This field has no effect on DNS responses."""
70-
71-
ttl: TTLParam
72-
"""Time To Live (TTL) of the DNS record in seconds.
73-
74-
Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the
75-
minimum reduced to 30 for Enterprise zones.
76-
"""

0 commit comments

Comments
 (0)