Skip to content

Commit 3823729

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(url_scanner)!: swap all methods to be v2 only (#2231)
1 parent 1156419 commit 3823729

28 files changed

+1118
-3450
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1451
1+
configured_endpoints: 1448
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-42487f301ac890f26746fff6d38ea575967593a21caa5b678ce3a5197b7d2625.yml

api.md

+9-51
Original file line numberDiff line numberDiff line change
@@ -6488,13 +6488,9 @@ Methods:
64886488
Types:
64896489

64906490
```python
6491-
from cloudflare.types.url_scanner import URLScannerDomain, URLScannerTask, URLScannerBulkResponse
6491+
from cloudflare.types.url_scanner import URLScannerDomain, URLScannerTask
64926492
```
64936493

6494-
Methods:
6495-
6496-
- <code title="post /accounts/{accountId}/urlscanner/v2/bulk">client.url_scanner.<a href="./src/cloudflare/resources/url_scanner/url_scanner.py">bulk</a>(account_id, \*\*<a href="src/cloudflare/types/url_scanner/url_scanner_bulk_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/url_scanner_bulk_response.py">URLScannerBulkResponse</a></code>
6497-
64986494
## Responses
64996495

65006496
Types:
@@ -6515,6 +6511,8 @@ Types:
65156511
from cloudflare.types.url_scanner import (
65166512
ScanCreateResponse,
65176513
ScanListResponse,
6514+
ScanBulkCreateResponse,
6515+
ScanDOMResponse,
65186516
ScanGetResponse,
65196517
ScanHARResponse,
65206518
)
@@ -6523,52 +6521,12 @@ from cloudflare.types.url_scanner import (
65236521
Methods:
65246522

65256523
- <code title="post /accounts/{accountId}/urlscanner/v2/scan">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">create</a>(account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_create_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_create_response.py">str</a></code>
6526-
- <code title="get /accounts/{accountId}/urlscanner/scan">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">list</a>(account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_list_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_list_response.py">ScanListResponse</a></code>
6527-
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">get</a>(scan_id, \*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_get_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_get_response.py">ScanGetResponse</a></code>
6528-
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}/har">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">har</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/scan_har_response.py">ScanHARResponse</a></code>
6529-
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}/screenshot">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">screenshot</a>(scan_id, \*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_screenshot_params.py">params</a>) -> BinaryAPIResponse</code>
6530-
6531-
## DOM
6532-
6533-
Types:
6534-
6535-
```python
6536-
from cloudflare.types.url_scanner import DOMGetResponse
6537-
```
6538-
6539-
Methods:
6540-
6541-
- <code title="get /accounts/{accountId}/urlscanner/v2/dom/{scanId}">client.url_scanner.dom.<a href="./src/cloudflare/resources/url_scanner/dom.py">get</a>(scan_id, \*, account_id) -> str</code>
6542-
6543-
## HAR
6544-
6545-
Types:
6546-
6547-
```python
6548-
from cloudflare.types.url_scanner import HARGetResponse
6549-
```
6550-
6551-
Methods:
6552-
6553-
- <code title="get /accounts/{accountId}/urlscanner/v2/har/{scanId}">client.url_scanner.har.<a href="./src/cloudflare/resources/url_scanner/har.py">get</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/har_get_response.py">HARGetResponse</a></code>
6554-
6555-
## Result
6556-
6557-
Types:
6558-
6559-
```python
6560-
from cloudflare.types.url_scanner import ResultGetResponse
6561-
```
6562-
6563-
Methods:
6564-
6565-
- <code title="get /accounts/{accountId}/urlscanner/v2/result/{scanId}">client.url_scanner.result.<a href="./src/cloudflare/resources/url_scanner/result.py">get</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/result_get_response.py">ResultGetResponse</a></code>
6566-
6567-
## Screenshot
6568-
6569-
Methods:
6570-
6571-
- <code title="get /accounts/{accountId}/urlscanner/v2/screenshots/{scanId}.png">client.url_scanner.screenshot.<a href="./src/cloudflare/resources/url_scanner/screenshot.py">get</a>(scan_id, \*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/screenshot_get_params.py">params</a>) -> BinaryAPIResponse</code>
6524+
- <code title="get /accounts/{accountId}/urlscanner/v2/search">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">list</a>(account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_list_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_list_response.py">ScanListResponse</a></code>
6525+
- <code title="post /accounts/{accountId}/urlscanner/v2/bulk">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">bulk_create</a>(account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_bulk_create_params.py">params</a>) -> <a href="./src/cloudflare/types/url_scanner/scan_bulk_create_response.py">ScanBulkCreateResponse</a></code>
6526+
- <code title="get /accounts/{accountId}/urlscanner/v2/dom/{scanId}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">dom</a>(scan_id, \*, account_id) -> str</code>
6527+
- <code title="get /accounts/{accountId}/urlscanner/v2/result/{scanId}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">get</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/scan_get_response.py">ScanGetResponse</a></code>
6528+
- <code title="get /accounts/{accountId}/urlscanner/v2/har/{scanId}">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">har</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/url_scanner/scan_har_response.py">ScanHARResponse</a></code>
6529+
- <code title="get /accounts/{accountId}/urlscanner/v2/screenshots/{scanId}.png">client.url_scanner.scans.<a href="./src/cloudflare/resources/url_scanner/scans.py">screenshot</a>(scan_id, \*, account_id, \*\*<a href="src/cloudflare/types/url_scanner/scan_screenshot_params.py">params</a>) -> BinaryAPIResponse</code>
65726530

65736531
# Radar
65746532

src/cloudflare/resources/url_scanner/__init__.py

-56
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .dom import (
4-
DOMResource,
5-
AsyncDOMResource,
6-
DOMResourceWithRawResponse,
7-
AsyncDOMResourceWithRawResponse,
8-
DOMResourceWithStreamingResponse,
9-
AsyncDOMResourceWithStreamingResponse,
10-
)
11-
from .har import (
12-
HARResource,
13-
AsyncHARResource,
14-
HARResourceWithRawResponse,
15-
AsyncHARResourceWithRawResponse,
16-
HARResourceWithStreamingResponse,
17-
AsyncHARResourceWithStreamingResponse,
18-
)
193
from .scans import (
204
ScansResource,
215
AsyncScansResource,
@@ -24,14 +8,6 @@
248
ScansResourceWithStreamingResponse,
259
AsyncScansResourceWithStreamingResponse,
2610
)
27-
from .result import (
28-
ResultResource,
29-
AsyncResultResource,
30-
ResultResourceWithRawResponse,
31-
AsyncResultResourceWithRawResponse,
32-
ResultResourceWithStreamingResponse,
33-
AsyncResultResourceWithStreamingResponse,
34-
)
3511
from .responses import (
3612
ResponsesResource,
3713
AsyncResponsesResource,
@@ -40,14 +16,6 @@
4016
ResponsesResourceWithStreamingResponse,
4117
AsyncResponsesResourceWithStreamingResponse,
4218
)
43-
from .screenshot import (
44-
ScreenshotResource,
45-
AsyncScreenshotResource,
46-
ScreenshotResourceWithRawResponse,
47-
AsyncScreenshotResourceWithRawResponse,
48-
ScreenshotResourceWithStreamingResponse,
49-
AsyncScreenshotResourceWithStreamingResponse,
50-
)
5119
from .url_scanner import (
5220
URLScannerResource,
5321
AsyncURLScannerResource,
@@ -70,30 +38,6 @@
7038
"AsyncScansResourceWithRawResponse",
7139
"ScansResourceWithStreamingResponse",
7240
"AsyncScansResourceWithStreamingResponse",
73-
"DOMResource",
74-
"AsyncDOMResource",
75-
"DOMResourceWithRawResponse",
76-
"AsyncDOMResourceWithRawResponse",
77-
"DOMResourceWithStreamingResponse",
78-
"AsyncDOMResourceWithStreamingResponse",
79-
"HARResource",
80-
"AsyncHARResource",
81-
"HARResourceWithRawResponse",
82-
"AsyncHARResourceWithRawResponse",
83-
"HARResourceWithStreamingResponse",
84-
"AsyncHARResourceWithStreamingResponse",
85-
"ResultResource",
86-
"AsyncResultResource",
87-
"ResultResourceWithRawResponse",
88-
"AsyncResultResourceWithRawResponse",
89-
"ResultResourceWithStreamingResponse",
90-
"AsyncResultResourceWithStreamingResponse",
91-
"ScreenshotResource",
92-
"AsyncScreenshotResource",
93-
"ScreenshotResourceWithRawResponse",
94-
"AsyncScreenshotResourceWithRawResponse",
95-
"ScreenshotResourceWithStreamingResponse",
96-
"AsyncScreenshotResourceWithStreamingResponse",
9741
"URLScannerResource",
9842
"AsyncURLScannerResource",
9943
"URLScannerResourceWithRawResponse",

src/cloudflare/resources/url_scanner/dom.py

-180
This file was deleted.

0 commit comments

Comments
 (0)