Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5777e78

Browse files
fix: add missing properties
1 parent b7c8c9b commit 5777e78

File tree

4 files changed

+850
-84
lines changed

4 files changed

+850
-84
lines changed

src/cloudflare/types/dns/batch_patch_param.py

Lines changed: 153 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import List, Union
6-
from typing_extensions import Literal, TypeAlias, TypedDict
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .ttl_param import TTLParam
99
from .record_tags import RecordTags
@@ -28,10 +28,59 @@
2828
from .dnskey_record_param import DNSKEYRecordParam
2929
from .smimea_record_param import SMIMEARecordParam
3030

31-
__all__ = ["BatchPatchParam", "DNSRecordsOpenpgpkeyRecord", "DNSRecordsOpenpgpkeyRecordSettings"]
31+
__all__ = [
32+
"BatchPatchParam",
33+
"ARecord",
34+
"AAAARecord",
35+
"CNAMERecord",
36+
"MXRecord",
37+
"NSRecord",
38+
"OpenpgpkeyRecord",
39+
"OpenpgpkeyRecordSettings",
40+
"PTRRecord",
41+
"TXTRecord",
42+
"CAARecord",
43+
"CERTRecord",
44+
"DNSKEYRecord",
45+
"DSRecord",
46+
"HTTPSRecord",
47+
"LOCRecord",
48+
"NAPTRRecord",
49+
"SMIMEARecord",
50+
"SRVRecord",
51+
"SSHFPRecord",
52+
"SVCBRecord",
53+
"TLSARecord",
54+
"URIRecord",
55+
]
56+
57+
58+
class ARecord(ARecordParam, total=False):
59+
id: Required[str]
60+
"""Identifier."""
61+
62+
63+
class AAAARecord(AAAARecordParam, total=False):
64+
id: Required[str]
65+
"""Identifier."""
66+
67+
68+
class CNAMERecord(CNAMERecordParam, total=False):
69+
id: Required[str]
70+
"""Identifier."""
71+
72+
73+
class MXRecord(MXRecordParam, total=False):
74+
id: Required[str]
75+
"""Identifier."""
76+
77+
78+
class NSRecord(NSRecordParam, total=False):
79+
id: Required[str]
80+
"""Identifier."""
3281

3382

34-
class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False):
83+
class OpenpgpkeyRecordSettings(TypedDict, total=False):
3584
ipv4_only: bool
3685
"""
3786
When enabled, only A records will be generated, and AAAA records will not be
@@ -49,7 +98,10 @@ class DNSRecordsOpenpgpkeyRecordSettings(TypedDict, total=False):
4998
"""
5099

51100

52-
class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
101+
class OpenpgpkeyRecord(TypedDict, total=False):
102+
id: Required[str]
103+
"""Identifier."""
104+
53105
comment: str
54106
"""Comments or notes about the DNS record.
55107
@@ -68,7 +120,7 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
68120
Cloudflare.
69121
"""
70122

71-
settings: DNSRecordsOpenpgpkeyRecordSettings
123+
settings: OpenpgpkeyRecordSettings
72124
"""Settings for the DNS record."""
73125

74126
tags: List[RecordTags]
@@ -85,26 +137,101 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
85137
"""Record type."""
86138

87139

140+
class PTRRecord(PTRRecordParam, total=False):
141+
id: Required[str]
142+
"""Identifier."""
143+
144+
145+
class TXTRecord(TXTRecordParam, total=False):
146+
id: Required[str]
147+
"""Identifier."""
148+
149+
150+
class CAARecord(CAARecordParam, total=False):
151+
id: Required[str]
152+
"""Identifier."""
153+
154+
155+
class CERTRecord(CERTRecordParam, total=False):
156+
id: Required[str]
157+
"""Identifier."""
158+
159+
160+
class DNSKEYRecord(DNSKEYRecordParam, total=False):
161+
id: Required[str]
162+
"""Identifier."""
163+
164+
165+
class DSRecord(DSRecordParam, total=False):
166+
id: Required[str]
167+
"""Identifier."""
168+
169+
170+
class HTTPSRecord(HTTPSRecordParam, total=False):
171+
id: Required[str]
172+
"""Identifier."""
173+
174+
175+
class LOCRecord(LOCRecordParam, total=False):
176+
id: Required[str]
177+
"""Identifier."""
178+
179+
180+
class NAPTRRecord(NAPTRRecordParam, total=False):
181+
id: Required[str]
182+
"""Identifier."""
183+
184+
185+
class SMIMEARecord(SMIMEARecordParam, total=False):
186+
id: Required[str]
187+
"""Identifier."""
188+
189+
190+
class SRVRecord(SRVRecordParam, total=False):
191+
id: Required[str]
192+
"""Identifier."""
193+
194+
195+
class SSHFPRecord(SSHFPRecordParam, total=False):
196+
id: Required[str]
197+
"""Identifier."""
198+
199+
200+
class SVCBRecord(SVCBRecordParam, total=False):
201+
id: Required[str]
202+
"""Identifier."""
203+
204+
205+
class TLSARecord(TLSARecordParam, total=False):
206+
id: Required[str]
207+
"""Identifier."""
208+
209+
210+
class URIRecord(URIRecordParam, total=False):
211+
id: Required[str]
212+
"""Identifier."""
213+
214+
88215
BatchPatchParam: TypeAlias = Union[
89-
ARecordParam,
90-
AAAARecordParam,
91-
CNAMERecordParam,
92-
MXRecordParam,
93-
NSRecordParam,
94-
DNSRecordsOpenpgpkeyRecord,
95-
PTRRecordParam,
96-
TXTRecordParam,
97-
CAARecordParam,
98-
CERTRecordParam,
99-
DNSKEYRecordParam,
100-
DSRecordParam,
101-
HTTPSRecordParam,
102-
LOCRecordParam,
103-
NAPTRRecordParam,
104-
SMIMEARecordParam,
105-
SRVRecordParam,
106-
SSHFPRecordParam,
107-
SVCBRecordParam,
108-
TLSARecordParam,
109-
URIRecordParam,
216+
ARecord,
217+
AAAARecord,
218+
CNAMERecord,
219+
MXRecord,
220+
NSRecord,
221+
OpenpgpkeyRecord,
222+
PTRRecord,
223+
TXTRecord,
224+
CAARecord,
225+
CERTRecord,
226+
DNSKEYRecord,
227+
DSRecord,
228+
HTTPSRecord,
229+
LOCRecord,
230+
NAPTRRecord,
231+
SMIMEARecord,
232+
SRVRecord,
233+
SSHFPRecord,
234+
SVCBRecord,
235+
TLSARecord,
236+
URIRecord,
110237
]

0 commit comments

Comments
 (0)