Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Mar 18, 2024
1 parent dcdd626 commit b3ef162
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions src/cloudflare/resources/url_scanner/url_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def scan(
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
hash: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
is_malicious: bool | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -99,8 +98,6 @@ def scan(
date_start: Filter scans requested after date (inclusive).
hash: Filter scans by hash of any html/js/css request made by the webpage.
hostname: Filter scans by hostname of _any_ request made by the webpage.
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
Expand Down Expand Up @@ -150,7 +147,6 @@ def scan(
"asn": asn,
"date_end": date_end,
"date_start": date_start,
"hash": hash,
"hostname": hostname,
"ip": ip,
"is_malicious": is_malicious,
Expand Down Expand Up @@ -194,7 +190,6 @@ async def scan(
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
hash: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
is_malicious: bool | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -235,8 +230,6 @@ async def scan(
date_start: Filter scans requested after date (inclusive).
hash: Filter scans by hash of any html/js/css request made by the webpage.
hostname: Filter scans by hostname of _any_ request made by the webpage.
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
Expand Down Expand Up @@ -286,7 +279,6 @@ async def scan(
"asn": asn,
"date_end": date_end,
"date_start": date_start,
"hash": hash,
"hostname": hostname,
"ip": ip,
"is_malicious": is_malicious,
Expand Down
3 changes: 0 additions & 3 deletions src/cloudflare/types/url_scanner_scan_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ class URLScannerScanParams(TypedDict, total=False):
date_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
"""Filter scans requested after date (inclusive)."""

hash: str
"""Filter scans by hash of any html/js/css request made by the webpage."""

hostname: str
"""Filter scans by hostname of _any_ request made by the webpage."""

Expand Down
2 changes: 0 additions & 2 deletions tests/api_resources/test_url_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def test_method_scan_with_all_params(self, client: Cloudflare) -> None:
asn="13335",
date_end=parse_datetime("2019-12-27T18:11:19.117Z"),
date_start=parse_datetime("2019-12-27T18:11:19.117Z"),
hash="string",
hostname="example.com",
ip="1.1.1.1",
is_malicious=True,
Expand Down Expand Up @@ -107,7 +106,6 @@ async def test_method_scan_with_all_params(self, async_client: AsyncCloudflare)
asn="13335",
date_end=parse_datetime("2019-12-27T18:11:19.117Z"),
date_start=parse_datetime("2019-12-27T18:11:19.117Z"),
hash="string",
hostname="example.com",
ip="1.1.1.1",
is_malicious=True,
Expand Down

0 comments on commit b3ef162

Please sign in to comment.