Skip to content

feat(api): api update #2299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1483
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e77c57a9eafea3cb08364e2c43b0e4f54cef07caee6bbbd0b9200161e9ff67e9.yml
configured_endpoints: 1475
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-663ea50351c42f1c51f49f099c888745f6a06cf22b8fe46cf1fa9ae89fdfdd61.yml
45 changes: 0 additions & 45 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6594,51 +6594,6 @@ Methods:
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/list">client.vectorize.indexes.metadata_index.<a href="./src/cloudflare/resources/vectorize/indexes/metadata_index.py">list</a>(index_name, \*, account_id) -> <a href="./src/cloudflare/types/vectorize/indexes/metadata_index_list_response.py">Optional[MetadataIndexListResponse]</a></code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/delete">client.vectorize.indexes.metadata_index.<a href="./src/cloudflare/resources/vectorize/indexes/metadata_index.py">delete</a>(index_name, \*, account_id, \*\*<a href="src/cloudflare/types/vectorize/indexes/metadata_index_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/vectorize/indexes/metadata_index_delete_response.py">Optional[MetadataIndexDeleteResponse]</a></code>

# URLScanner

Types:

```python
from cloudflare.types.url_scanner import URLScannerDomain, URLScannerTask
```

## Responses

Types:

```python
from cloudflare.types.url_scanner import ResponseGetResponse
```

Methods:

- <code title="get /accounts/{accountId}/urlscanner/v2/responses/{responseId}">client.url_scanner.responses.<a href="./src/cloudflare/resources/url_scanner/responses.py">get</a>(response_id, \*, account_id) -> str</code>

## Scans

Types:

```python
from cloudflare.types.url_scanner import (
ScanCreateResponse,
ScanListResponse,
ScanBulkCreateResponse,
ScanDOMResponse,
ScanGetResponse,
ScanHARResponse,
)
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

# Radar

## AI
Expand Down
38 changes: 0 additions & 38 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
memberships,
page_shield,
rate_limits,
url_scanner,
dns_firewall,
healthchecks,
security_txt,
Expand Down Expand Up @@ -186,7 +185,6 @@
from .resources.botnet_feed.botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource
from .resources.diagnostics.diagnostics import DiagnosticsResource, AsyncDiagnosticsResource
from .resources.page_shield.page_shield import PageShieldResource, AsyncPageShieldResource
from .resources.url_scanner.url_scanner import URLScannerResource, AsyncURLScannerResource
from .resources.dns_firewall.dns_firewall import DNSFirewallResource, AsyncDNSFirewallResource
from .resources.healthchecks.healthchecks import HealthchecksResource, AsyncHealthchecksResource
from .resources.email_routing.email_routing import EmailRoutingResource, AsyncEmailRoutingResource
Expand Down Expand Up @@ -706,12 +704,6 @@ def vectorize(self) -> VectorizeResource:

return VectorizeResource(self)

@cached_property
def url_scanner(self) -> URLScannerResource:
from .resources.url_scanner import URLScannerResource

return URLScannerResource(self)

@cached_property
def radar(self) -> RadarResource:
from .resources.radar import RadarResource
Expand Down Expand Up @@ -1477,12 +1469,6 @@ def vectorize(self) -> AsyncVectorizeResource:

return AsyncVectorizeResource(self)

@cached_property
def url_scanner(self) -> AsyncURLScannerResource:
from .resources.url_scanner import AsyncURLScannerResource

return AsyncURLScannerResource(self)

@cached_property
def radar(self) -> AsyncRadarResource:
from .resources.radar import AsyncRadarResource
Expand Down Expand Up @@ -2181,12 +2167,6 @@ def vectorize(self) -> vectorize.VectorizeResourceWithRawResponse:

return VectorizeResourceWithRawResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.URLScannerResourceWithRawResponse:
from .resources.url_scanner import URLScannerResourceWithRawResponse

return URLScannerResourceWithRawResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.RadarResourceWithRawResponse:
from .resources.radar import RadarResourceWithRawResponse
Expand Down Expand Up @@ -2706,12 +2686,6 @@ def vectorize(self) -> vectorize.AsyncVectorizeResourceWithRawResponse:

return AsyncVectorizeResourceWithRawResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.AsyncURLScannerResourceWithRawResponse:
from .resources.url_scanner import AsyncURLScannerResourceWithRawResponse

return AsyncURLScannerResourceWithRawResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.AsyncRadarResourceWithRawResponse:
from .resources.radar import AsyncRadarResourceWithRawResponse
Expand Down Expand Up @@ -3231,12 +3205,6 @@ def vectorize(self) -> vectorize.VectorizeResourceWithStreamingResponse:

return VectorizeResourceWithStreamingResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.URLScannerResourceWithStreamingResponse:
from .resources.url_scanner import URLScannerResourceWithStreamingResponse

return URLScannerResourceWithStreamingResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.RadarResourceWithStreamingResponse:
from .resources.radar import RadarResourceWithStreamingResponse
Expand Down Expand Up @@ -3760,12 +3728,6 @@ def vectorize(self) -> vectorize.AsyncVectorizeResourceWithStreamingResponse:

return AsyncVectorizeResourceWithStreamingResponse(self._client.vectorize)

@cached_property
def url_scanner(self) -> url_scanner.AsyncURLScannerResourceWithStreamingResponse:
from .resources.url_scanner import AsyncURLScannerResourceWithStreamingResponse

return AsyncURLScannerResourceWithStreamingResponse(self._client.url_scanner)

@cached_property
def radar(self) -> radar.AsyncRadarResourceWithStreamingResponse:
from .resources.radar import AsyncRadarResourceWithStreamingResponse
Expand Down
47 changes: 0 additions & 47 deletions src/cloudflare/resources/url_scanner/__init__.py

This file was deleted.

182 changes: 0 additions & 182 deletions src/cloudflare/resources/url_scanner/responses.py

This file was deleted.

Loading