Skip to content

Commit 3cd208b

Browse files
feat(api): api update
1 parent 42e4d7b commit 3cd208b

File tree

13 files changed

+2089
-2864
lines changed

13 files changed

+2089
-2864
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: 1751
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37793ea0affb7c20693224555f407c8bf2acd5347ec09bcfde81b99eb516e30d.yml
3-
openapi_spec_hash: 8001963097c104db68370a69266bc160
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fe23c2b96b28c275d9fa9aa84c80204d1c133b05d8bd06576490b744717bebd.yml
3+
openapi_spec_hash: f1f25f232107e95c1df69870abfc0cc9
44
config_hash: 259b5eeae0358ea7d7756b294847f140

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,6 @@ from cloudflare.types.dns import (
10811081
NAPTRRecord,
10821082
NSRecord,
10831083
PTRRecord,
1084-
Record,
10851084
RecordResponse,
10861085
RecordTags,
10871086
SMIMEARecord,

src/cloudflare/resources/dns/records.py

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

src/cloudflare/types/dns/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from .cname_record import CNAMERecord as CNAMERecord
2424
from .https_record import HTTPSRecord as HTTPSRecord
2525
from .naptr_record import NAPTRRecord as NAPTRRecord
26-
from .record_param import RecordParam as RecordParam
2726
from .sshfp_record import SSHFPRecord as SSHFPRecord
2827
from .dnskey_record import DNSKEYRecord as DNSKEYRecord
2928
from .smimea_record import SMIMEARecord as SMIMEARecord

src/cloudflare/types/dns/batch_patch_param.py

Lines changed: 26 additions & 153 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, Required, TypeAlias, TypedDict
6+
from typing_extensions import Literal, TypeAlias, TypedDict
77

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

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"]
10632

10733

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):
11935
ipv4_only: bool
12036
"""
12137
When enabled, only A records will be generated, and AAAA records will not be
@@ -133,10 +49,7 @@ class OpenpgpkeySettings(TypedDict, total=False):
13349
"""
13450

13551

136-
class Openpgpkey(TypedDict, total=False):
137-
id: Required[str]
138-
"""Identifier."""
139-
52+
class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False):
14053
comment: str
14154
"""Comments or notes about the DNS record.
14255
@@ -155,7 +68,7 @@ class Openpgpkey(TypedDict, total=False):
15568
Cloudflare.
15669
"""
15770

158-
settings: OpenpgpkeySettings
71+
settings: DNSRecordsOpenpgpkeyRecordSettings
15972
"""Settings for the DNS record."""
16073

16174
tags: List[RecordTags]
@@ -172,66 +85,26 @@ class Openpgpkey(TypedDict, total=False):
17285
"""Record type."""
17386

17487

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-
21588
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,
237110
]

0 commit comments

Comments
 (0)