Skip to content

Commit e05edcc

Browse files
feat(api): api update (#2544)
1 parent 6657691 commit e05edcc

26 files changed

+4259
-57
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1617
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8103ad52977aa9c1ce4655e2afd3ade7f6e891aafaa9bd1fbf4630348bc3fd02.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8891f9870c2c46f5bc3d5f2cb7e0ecf351f81838574949a43298f2f0bd303399.yml

src/cloudflare/resources/radar/as112/as112.py

Lines changed: 251 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Type, Union, cast
5+
from typing import List, Type, Union, Optional, cast
66
from datetime import datetime
77
from typing_extensions import Literal
88

@@ -97,6 +97,122 @@ def timeseries(
9797
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
9898
location: List[str] | NotGiven = NOT_GIVEN,
9999
name: List[str] | NotGiven = NOT_GIVEN,
100+
protocol: Literal["UDP", "TCP", "HTTPS", "TLS"] | NotGiven = NOT_GIVEN,
101+
query_type: Optional[
102+
Literal[
103+
"A",
104+
"AAAA",
105+
"A6",
106+
"AFSDB",
107+
"ANY",
108+
"APL",
109+
"ATMA",
110+
"AXFR",
111+
"CAA",
112+
"CDNSKEY",
113+
"CDS",
114+
"CERT",
115+
"CNAME",
116+
"CSYNC",
117+
"DHCID",
118+
"DLV",
119+
"DNAME",
120+
"DNSKEY",
121+
"DOA",
122+
"DS",
123+
"EID",
124+
"EUI48",
125+
"EUI64",
126+
"GPOS",
127+
"GID",
128+
"HINFO",
129+
"HIP",
130+
"HTTPS",
131+
"IPSECKEY",
132+
"ISDN",
133+
"IXFR",
134+
"KEY",
135+
"KX",
136+
"L32",
137+
"L64",
138+
"LOC",
139+
"LP",
140+
"MAILA",
141+
"MAILB",
142+
"MB",
143+
"MD",
144+
"MF",
145+
"MG",
146+
"MINFO",
147+
"MR",
148+
"MX",
149+
"NAPTR",
150+
"NB",
151+
"NBSTAT",
152+
"NID",
153+
"NIMLOC",
154+
"NINFO",
155+
"NS",
156+
"NSAP",
157+
"NSEC",
158+
"NSEC3",
159+
"NSEC3PARAM",
160+
"NULL",
161+
"NXT",
162+
"OPENPGPKEY",
163+
"OPT",
164+
"PTR",
165+
"PX",
166+
"RKEY",
167+
"RP",
168+
"RRSIG",
169+
"RT",
170+
"SIG",
171+
"SINK",
172+
"SMIMEA",
173+
"SOA",
174+
"SPF",
175+
"SRV",
176+
"SSHFP",
177+
"SVCB",
178+
"TA",
179+
"TALINK",
180+
"TKEY",
181+
"TLSA",
182+
"TSIG",
183+
"TXT",
184+
"UINFO",
185+
"UID",
186+
"UNSPEC",
187+
"URI",
188+
"WKS",
189+
"X25",
190+
"ZONEMD",
191+
]
192+
]
193+
| NotGiven = NOT_GIVEN,
194+
response_code: Literal[
195+
"NOERROR",
196+
"FORMERR",
197+
"SERVFAIL",
198+
"NXDOMAIN",
199+
"NOTIMP",
200+
"REFUSED",
201+
"YXDOMAIN",
202+
"YXRRSET",
203+
"NXRRSET",
204+
"NOTAUTH",
205+
"NOTZONE",
206+
"BADSIG",
207+
"BADKEY",
208+
"BADTIME",
209+
"BADMODE",
210+
"BADNAME",
211+
"BADALG",
212+
"BADTRUNC",
213+
"BADCOOKIE",
214+
]
215+
| NotGiven = NOT_GIVEN,
100216
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
101217
# The extra values given here take precedence over values defined on the client or passed to this method.
102218
extra_headers: Headers | None = None,
@@ -136,6 +252,12 @@ def timeseries(
136252
137253
name: Array of names used to label the series in the response.
138254
255+
protocol: Filters results by DNS transport protocol.
256+
257+
query_type: Filters results by DNS query type.
258+
259+
response_code: Filters results by DNS response code.
260+
139261
extra_headers: Send extra headers
140262
141263
extra_query: Add additional query parameters to the request
@@ -162,6 +284,9 @@ def timeseries(
162284
"format": format,
163285
"location": location,
164286
"name": name,
287+
"protocol": protocol,
288+
"query_type": query_type,
289+
"response_code": response_code,
165290
},
166291
as112_timeseries_params.AS112TimeseriesParams,
167292
),
@@ -215,6 +340,122 @@ async def timeseries(
215340
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
216341
location: List[str] | NotGiven = NOT_GIVEN,
217342
name: List[str] | NotGiven = NOT_GIVEN,
343+
protocol: Literal["UDP", "TCP", "HTTPS", "TLS"] | NotGiven = NOT_GIVEN,
344+
query_type: Optional[
345+
Literal[
346+
"A",
347+
"AAAA",
348+
"A6",
349+
"AFSDB",
350+
"ANY",
351+
"APL",
352+
"ATMA",
353+
"AXFR",
354+
"CAA",
355+
"CDNSKEY",
356+
"CDS",
357+
"CERT",
358+
"CNAME",
359+
"CSYNC",
360+
"DHCID",
361+
"DLV",
362+
"DNAME",
363+
"DNSKEY",
364+
"DOA",
365+
"DS",
366+
"EID",
367+
"EUI48",
368+
"EUI64",
369+
"GPOS",
370+
"GID",
371+
"HINFO",
372+
"HIP",
373+
"HTTPS",
374+
"IPSECKEY",
375+
"ISDN",
376+
"IXFR",
377+
"KEY",
378+
"KX",
379+
"L32",
380+
"L64",
381+
"LOC",
382+
"LP",
383+
"MAILA",
384+
"MAILB",
385+
"MB",
386+
"MD",
387+
"MF",
388+
"MG",
389+
"MINFO",
390+
"MR",
391+
"MX",
392+
"NAPTR",
393+
"NB",
394+
"NBSTAT",
395+
"NID",
396+
"NIMLOC",
397+
"NINFO",
398+
"NS",
399+
"NSAP",
400+
"NSEC",
401+
"NSEC3",
402+
"NSEC3PARAM",
403+
"NULL",
404+
"NXT",
405+
"OPENPGPKEY",
406+
"OPT",
407+
"PTR",
408+
"PX",
409+
"RKEY",
410+
"RP",
411+
"RRSIG",
412+
"RT",
413+
"SIG",
414+
"SINK",
415+
"SMIMEA",
416+
"SOA",
417+
"SPF",
418+
"SRV",
419+
"SSHFP",
420+
"SVCB",
421+
"TA",
422+
"TALINK",
423+
"TKEY",
424+
"TLSA",
425+
"TSIG",
426+
"TXT",
427+
"UINFO",
428+
"UID",
429+
"UNSPEC",
430+
"URI",
431+
"WKS",
432+
"X25",
433+
"ZONEMD",
434+
]
435+
]
436+
| NotGiven = NOT_GIVEN,
437+
response_code: Literal[
438+
"NOERROR",
439+
"FORMERR",
440+
"SERVFAIL",
441+
"NXDOMAIN",
442+
"NOTIMP",
443+
"REFUSED",
444+
"YXDOMAIN",
445+
"YXRRSET",
446+
"NXRRSET",
447+
"NOTAUTH",
448+
"NOTZONE",
449+
"BADSIG",
450+
"BADKEY",
451+
"BADTIME",
452+
"BADMODE",
453+
"BADNAME",
454+
"BADALG",
455+
"BADTRUNC",
456+
"BADCOOKIE",
457+
]
458+
| NotGiven = NOT_GIVEN,
218459
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
219460
# The extra values given here take precedence over values defined on the client or passed to this method.
220461
extra_headers: Headers | None = None,
@@ -254,6 +495,12 @@ async def timeseries(
254495
255496
name: Array of names used to label the series in the response.
256497
498+
protocol: Filters results by DNS transport protocol.
499+
500+
query_type: Filters results by DNS query type.
501+
502+
response_code: Filters results by DNS response code.
503+
257504
extra_headers: Send extra headers
258505
259506
extra_query: Add additional query parameters to the request
@@ -280,6 +527,9 @@ async def timeseries(
280527
"format": format,
281528
"location": location,
282529
"name": name,
530+
"protocol": protocol,
531+
"query_type": query_type,
532+
"response_code": response_code,
283533
},
284534
as112_timeseries_params.AS112TimeseriesParams,
285535
),

0 commit comments

Comments
 (0)