Skip to content

Commit 4856e0e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#138)
1 parent 30ecf48 commit 4856e0e

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/cloudflare/resources/url_scanner/url_scanner.py

-8
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def scan(
5858
asn: str | NotGiven = NOT_GIVEN,
5959
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
6060
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
61-
hash: str | NotGiven = NOT_GIVEN,
6261
hostname: str | NotGiven = NOT_GIVEN,
6362
ip: str | NotGiven = NOT_GIVEN,
6463
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -99,8 +98,6 @@ def scan(
9998
10099
date_start: Filter scans requested after date (inclusive).
101100
102-
hash: Filter scans by hash of any html/js/css request made by the webpage.
103-
104101
hostname: Filter scans by hostname of _any_ request made by the webpage.
105102
106103
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -150,7 +147,6 @@ def scan(
150147
"asn": asn,
151148
"date_end": date_end,
152149
"date_start": date_start,
153-
"hash": hash,
154150
"hostname": hostname,
155151
"ip": ip,
156152
"is_malicious": is_malicious,
@@ -194,7 +190,6 @@ async def scan(
194190
asn: str | NotGiven = NOT_GIVEN,
195191
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
196192
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
197-
hash: str | NotGiven = NOT_GIVEN,
198193
hostname: str | NotGiven = NOT_GIVEN,
199194
ip: str | NotGiven = NOT_GIVEN,
200195
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -235,8 +230,6 @@ async def scan(
235230
236231
date_start: Filter scans requested after date (inclusive).
237232
238-
hash: Filter scans by hash of any html/js/css request made by the webpage.
239-
240233
hostname: Filter scans by hostname of _any_ request made by the webpage.
241234
242235
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -286,7 +279,6 @@ async def scan(
286279
"asn": asn,
287280
"date_end": date_end,
288281
"date_start": date_start,
289-
"hash": hash,
290282
"hostname": hostname,
291283
"ip": ip,
292284
"is_malicious": is_malicious,

src/cloudflare/types/url_scanner_scan_params.py

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ class URLScannerScanParams(TypedDict, total=False):
2727
date_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
2828
"""Filter scans requested after date (inclusive)."""
2929

30-
hash: str
31-
"""Filter scans by hash of any html/js/css request made by the webpage."""
32-
3330
hostname: str
3431
"""Filter scans by hostname of _any_ request made by the webpage."""
3532

tests/api_resources/test_url_scanner.py

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def test_method_scan_with_all_params(self, client: Cloudflare) -> None:
3535
asn="13335",
3636
date_end=parse_datetime("2019-12-27T18:11:19.117Z"),
3737
date_start=parse_datetime("2019-12-27T18:11:19.117Z"),
38-
hash="string",
3938
hostname="example.com",
4039
ip="1.1.1.1",
4140
is_malicious=True,
@@ -107,7 +106,6 @@ async def test_method_scan_with_all_params(self, async_client: AsyncCloudflare)
107106
asn="13335",
108107
date_end=parse_datetime("2019-12-27T18:11:19.117Z"),
109108
date_start=parse_datetime("2019-12-27T18:11:19.117Z"),
110-
hash="string",
111109
hostname="example.com",
112110
ip="1.1.1.1",
113111
is_malicious=True,

0 commit comments

Comments
 (0)