3
3
from __future__ import annotations
4
4
5
5
from typing import List , Union
6
- from typing_extensions import Literal , Required , TypeAlias , TypedDict
6
+ from typing_extensions import Literal , TypeAlias , TypedDict
7
7
8
8
from .ttl_param import TTLParam
9
9
from .record_tags import RecordTags
28
28
from .dnskey_record_param import DNSKEYRecordParam
29
29
from .smimea_record_param import SMIMEARecordParam
30
30
31
- __all__ = [
32
- "BatchPatchParam" ,
33
- "A" ,
34
- "AAAA" ,
35
- "CAA" ,
36
- "CERT" ,
37
- "CNAME" ,
38
- "DNSKEY" ,
39
- "DS" ,
40
- "HTTPS" ,
41
- "LOC" ,
42
- "MX" ,
43
- "NAPTR" ,
44
- "NS" ,
45
- "Openpgpkey" ,
46
- "OpenpgpkeySettings" ,
47
- "PTR" ,
48
- "SMIMEA" ,
49
- "SRV" ,
50
- "SSHFP" ,
51
- "SVCB" ,
52
- "TLSA" ,
53
- "TXT" ,
54
- "URI" ,
55
- ]
56
-
57
-
58
- class A (ARecordParam , total = False ):
59
- id : Required [str ]
60
- """Identifier."""
61
-
62
-
63
- class AAAA (AAAARecordParam , total = False ):
64
- id : Required [str ]
65
- """Identifier."""
66
-
67
-
68
- class CAA (CAARecordParam , total = False ):
69
- id : Required [str ]
70
- """Identifier."""
71
-
72
-
73
- class CERT (CERTRecordParam , total = False ):
74
- id : Required [str ]
75
- """Identifier."""
76
-
77
-
78
- class CNAME (CNAMERecordParam , total = False ):
79
- id : Required [str ]
80
- """Identifier."""
81
-
82
-
83
- class DNSKEY (DNSKEYRecordParam , total = False ):
84
- id : Required [str ]
85
- """Identifier."""
86
-
87
-
88
- class DS (DSRecordParam , total = False ):
89
- id : Required [str ]
90
- """Identifier."""
91
-
92
-
93
- class HTTPS (HTTPSRecordParam , total = False ):
94
- id : Required [str ]
95
- """Identifier."""
96
-
97
-
98
- class LOC (LOCRecordParam , total = False ):
99
- id : Required [str ]
100
- """Identifier."""
101
-
102
-
103
- class MX (MXRecordParam , total = False ):
104
- id : Required [str ]
105
- """Identifier."""
31
+ __all__ = ["BatchPatchParam" , "DNSRecordsOpenpgpkeyRecord" , "DNSRecordsOpenpgpkeyRecordSettings" ]
106
32
107
33
108
- class NAPTR (NAPTRRecordParam , total = False ):
109
- id : Required [str ]
110
- """Identifier."""
111
-
112
-
113
- class NS (NSRecordParam , total = False ):
114
- id : Required [str ]
115
- """Identifier."""
116
-
117
-
118
- class OpenpgpkeySettings (TypedDict , total = False ):
34
+ class DNSRecordsOpenpgpkeyRecordSettings (TypedDict , total = False ):
119
35
ipv4_only : bool
120
36
"""
121
37
When enabled, only A records will be generated, and AAAA records will not be
@@ -133,10 +49,7 @@ class OpenpgpkeySettings(TypedDict, total=False):
133
49
"""
134
50
135
51
136
- class Openpgpkey (TypedDict , total = False ):
137
- id : Required [str ]
138
- """Identifier."""
139
-
52
+ class DNSRecordsOpenpgpkeyRecord (TypedDict , total = False ):
140
53
comment : str
141
54
"""Comments or notes about the DNS record.
142
55
@@ -155,7 +68,7 @@ class Openpgpkey(TypedDict, total=False):
155
68
Cloudflare.
156
69
"""
157
70
158
- settings : OpenpgpkeySettings
71
+ settings : DNSRecordsOpenpgpkeyRecordSettings
159
72
"""Settings for the DNS record."""
160
73
161
74
tags : List [RecordTags ]
@@ -172,66 +85,26 @@ class Openpgpkey(TypedDict, total=False):
172
85
"""Record type."""
173
86
174
87
175
- class PTR (PTRRecordParam , total = False ):
176
- id : Required [str ]
177
- """Identifier."""
178
-
179
-
180
- class SMIMEA (SMIMEARecordParam , total = False ):
181
- id : Required [str ]
182
- """Identifier."""
183
-
184
-
185
- class SRV (SRVRecordParam , total = False ):
186
- id : Required [str ]
187
- """Identifier."""
188
-
189
-
190
- class SSHFP (SSHFPRecordParam , total = False ):
191
- id : Required [str ]
192
- """Identifier."""
193
-
194
-
195
- class SVCB (SVCBRecordParam , total = False ):
196
- id : Required [str ]
197
- """Identifier."""
198
-
199
-
200
- class TLSA (TLSARecordParam , total = False ):
201
- id : Required [str ]
202
- """Identifier."""
203
-
204
-
205
- class TXT (TXTRecordParam , total = False ):
206
- id : Required [str ]
207
- """Identifier."""
208
-
209
-
210
- class URI (URIRecordParam , total = False ):
211
- id : Required [str ]
212
- """Identifier."""
213
-
214
-
215
88
BatchPatchParam : TypeAlias = Union [
216
- A ,
217
- AAAA ,
218
- CAA ,
219
- CERT ,
220
- CNAME ,
221
- DNSKEY ,
222
- DS ,
223
- HTTPS ,
224
- LOC ,
225
- MX ,
226
- NAPTR ,
227
- NS ,
228
- Openpgpkey ,
229
- PTR ,
230
- SMIMEA ,
231
- SRV ,
232
- SSHFP ,
233
- SVCB ,
234
- TLSA ,
235
- TXT ,
236
- URI ,
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 ,
237
110
]
0 commit comments